stacklok/toolhive/toolhive-cli-user
- community
Checking that the SKILL.md file is still in the repository.
Guide for using ToolHive CLI (thv) to run and manage MCP servers, skills, and AI-client plugins. Use when managing `thv ai-plugin` installs, project sync or upgrades, or plugin publishing for Claude Code or Codex; also use for MCP server and skill lifecycle commands. Covers server lifecycle, registries, secrets, client registration, builds, permissions, skills, and AI plugins. NOT for Kubernetes operator usage, ToolHive development/contributing, or general AI-client configuration unrelated to ToolHive.
Install
npx vskill@latest install stacklok/toolhive/toolhive-cli-userSKILL.md
ToolHive CLI User Guide
Prerequisites
- Container Runtime: Docker, Podman, Colima, or Rancher Desktop (with dockerd/moby)
- ToolHive CLI: Install with
brew install stacklok/tap/thv(macOS/Linux) orwinget install stacklok.thv(Windows)
Verify: thv version
Quick Start
Running MCP Servers
Five input methods: registry name, container image, protocol scheme (uvx://, npx://, go://), exported config (--from-config), or remote URL.
For all flags, authentication options, and telemetry configuration, see COMMANDS.md. For detailed usage patterns, see EXAMPLES.md.
Managing Servers
Note: Remote servers trigger fresh OAuth authentication on start.
Registry Operations
Custom registry:
Group Management
All servers are assigned to default group unless specified.
Each server belongs to one group. To run same server in multiple groups, create uniquely named instances.
Secrets Management
Setup is required before use: thv secret setup (interactive provider selection).
Providers: Encrypted (AES-256-GCM, password in OS keyring) or 1Password (read-only, requires OP_SERVICE_ACCOUNT_TOKEN).
Using secrets with servers:
Client Configuration
Permissions and Network Isolation
Permission profiles control what a container can access (filesystem, network):
Registry servers include a default profile. Without registry info, default is network.
Network isolation restricts outbound traffic to an allowlist via an egress proxy:
Volume mounts for filesystem access:
.thvignore hides sensitive files from volume mounts using gitignore-style patterns. Place .thvignore in mounted directories or globally at ~/.config/toolhive/thvignore. Disable global patterns with --ignore-globally=false.
For detailed examples, see EXAMPLES.md.
Building, Export, and Tool Overrides
For tool overrides, see EXAMPLES.md.
Skills Management
Requires thv serve to be running. Skills have two scopes: user (global, default) and project (local to a project root).
For all flags and detailed examples, see COMMANDS.md and EXAMPLES.md.
AI Plugin Management
Use thv ai-plugin for manifest-based bundles for AI clients, not ToolHive itself. Plugins may contain commands, agents, skills, hooks, and declared MCP/LSP entries; they are distinct from standalone ToolHive skills and MCP workloads. Plugin-declared MCP/LSP entries are not ToolHive-managed workloads.
These commands use the ToolHive API; start thv serve first. The supported plugin clients are claude-code and codex; target either, or all available clients, with --clients. Install an exact registry name, OCI reference, or git://host/org/repo[@ref][#subdir] source, then use list/info to inspect what ToolHive installed. Verification and lock-file trust are project-only: user-scoped installs do not use lock-file verification.
ToolHive extracts, registers, and enables Claude Code plugins. For Codex, ToolHive only materializes the ToolHive marketplace; complete activation yourself:
ToolHive does not edit Codex config.toml or invoke Codex. Installed-component metadata only describes the extracted/materialized tree; it does not prove client activation. A client can leave unsupported components in that tree without loading them.
For command details, trust boundaries, and publishing, see COMMANDS.md and EXAMPLES.md.
Debugging
For tool invocation patterns (file args, stdin, JSON output, error handling), see EXAMPLES.md.
Guardrails
- NEVER use
docker rmorpodman rmon ToolHive-managed containers -- always usethv rmfor proper cleanup. - NEVER pass secrets as
-e SECRET=value-- use--secretwith managed secrets instead. - Confirm destructive operations (
thv rm --all,thv stop --all,thv group rm --with-workloads) with the user before running. - Skill commands require
thv serveto be running. If a skill command fails with a connection error, suggest startingthv servefirst. - AI plugin commands also require
thv serve. Treat plugin content as AI-followed instructions: inspect the source and use project-scoped installs only in the intended project. - For an externally key-pair-signed OCI plugin, give
--public-keyonly on its first project install; ToolHive pins the key intoolhive.lock.yamlfor sync and upgrade. Do not replace that pin without explicit review. - Never add
--allow-unsigned,--allow-signer-change,--allow-ref-change,--force,--prune, or--yessilently. Unsigned consent is explicit and does not bypass invalid signature verification. Confirm beforesync/upgradeapplies content orbuilds removedeletes a local artifact. - If the user asks about Kubernetes deployment, this skill does not cover the operator -- direct them accordingly.
Error Handling
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/toolhive-cli-user/SKILL.md
Popularity
- Repository stars
- 2,230
- Repository forks
- 309
- 7-day trend score
- 39
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/stacklok/toolhive/toolhive-cli-user)