CLI Hub: AI Tools TerminalEnglish | 中文 A lightweight VS Code extension that brings multiple AI CLI tools into your editor with multi-terminal sessions and active-session routing. Download: use the GitHub Actions build artifacts or the Features1. Quick Terminal Access
2. Send File Paths to the AI Tool TerminalUse the keyboard shortcut In Editor (requires editor focus):
Alternative Methods:
3. Switch Between AI Tools
Usage
Configuration
|
| Tool | Flag | Description | Risk |
|---|---|---|---|
| Copilot | --allow-all-tools |
Grants access to every tool and system feature | High |
| Claude | --dangerously-skip-permissions |
Skips permission prompts and executes automatically | High |
| Codebuddy | --dangerously-skip-permissions |
Skips permission prompts and executes automatically | High |
| Codex | --full-auto |
Full automation without human confirmation | High |
| Gemini | --yolo |
Auto-confirms all operations | High |
| OpenCode | No default preset | Check opencode --help and add the flags you want |
Medium |
| Cursor Agent | --force / -f |
Forces command execution unless explicitly denied | High |
Troubleshooting
- Invalid JSON: Ensure double quotes are used and commas are in place.
- Unknown parameter: Run
<tool> --helpto confirm the flag is supported. - Flag ignored: Close the existing terminal and relaunch it via the extension.
- Multiple flags: Separate them with spaces, e.g.
"--flag1 --flag2 value". - Whitespace inside values: Wrap them in quotes such as
"--arg \"value with spaces\""; VS Code preserves the quoting.
Adding a Tool
- Edit
config/tool-manifest.public.jsonand add a new tool entry withid,label,description, andcommand, pluspackageNameorinstallCommandwhen needed. - For non-public builds, inject an external manifest through the release pipeline instead of committing private tool definitions to this repository.
- Update
README.md,README.zh-CN.md, andCHANGELOG.mdso users know how the new tool is installed and used. - Run
npm run compileand validate terminal routing in an Extension Development Host.
Developer Install Script
npm run install:everywhere installs Codebuddy CLI and the selected VSIX for local/remote testing. By default, extension installation targets only VS Code (code locally and .vscode-server remotely).
To include other VS Code-like IDEs explicitly:
bash ./scripts/install-everywhere.sh --local-editors "code=VS Code,cursor=Cursor"
CLIHUB_REMOTE_SERVER_TARGETS=".vscode-server,.cursor-server" bash ./scripts/install-everywhere.sh
Release Publishing
Pushing a v* tag runs the release workflow. It tests, packages cli-hub-<version>-public.vsix and cli-hub-local-bridge-<version>-public.vsix, uploads both to GitHub Releases, and publishes both VSIX files to the VS Code Marketplace and Open VSX when their repository secrets are configured.
Create the Marketplace token from the Visual Studio Marketplace publisher portal, then store it as a GitHub Actions repository secret named VSCE_PAT:
gh secret set VSCE_PAT --repo hxy91819/clihub
Create an Open VSX access token after signing the publisher agreement, then store it as a GitHub Actions repository secret named OPENVSX:
gh secret set OPENVSX --repo hxy91819/clihub
The release workflow creates the MasonHuang Open VSX namespace on the first publish if it does not already exist. Do not commit either token or paste it into workflow files.
For local debugging, use npm run package:dev. It generates both VSIX files with a visible prerelease version above the current patch, such as 1.4.8-dev.20260709185312 when the source version is 1.4.7, then restores the source package.json files back to the normal release version. Set CLIHUB_DEV_BUILD_LABEL=<label> to use a readable suffix instead of the timestamp.
Use npm run install:dev to install the latest dev VSIX into local VS Code and the dev-server VS Code Server without relying on code --remote --install-extension. Use npm run install:dev:cursor-main to install only the main extension into local Cursor and the dev-server Cursor Server, leaving CLI Hub Local Bridge uninstalled for missing-bridge prompt testing.
Supported Tools
| Tool ID | Display Name | Command | Default install command |
|---|---|---|---|
codebuddy |
Codebuddy | codebuddy |
npm install -g @tencent-ai/codebuddy-code |
gemini |
Gemini CLI | gemini |
npm install -g @google/gemini-cli |
claude |
Claude Code | claude |
npm install -g @anthropic-ai/claude-code |
codex |
Codex | codex |
npm install -g @openai/codex |
opencode |
OpenCode | opencode |
npm install -g opencode-ai |
copilot |
Copilot | copilot |
npm install -g @github/copilot |
cursor-agent |
Cursor CLI | cursor-agent |
curl -fsSL https://cursor.com/install \| bash |