# Check the Node.js versionnode --version # Should display v18.0.0 or later# Check the npm versionnpm --version
npm install -g @tencent-ai/codebuddy-code
pnpm add -g @tencent-ai/codebuddy-code
yarn global add @tencent-ai/codebuddy-code
bun install -g @tencent-ai/codebuddy-code
# Add tapbrew tap Tencent-CodeBuddy/tap# Install Toolsbrew install codebuddy-code
brew install Tencent-CodeBuddy/tap/codebuddy-code
tap "Tencent-CodeBuddy/tap"brew "codebuddy-code"
# macOS/Linuxcurl -fsSL https://copilot.tencent.com/cli/install.sh | bash
# Windowsirm https://copilot.tencent.com/cli/install.ps1 | iex
codebuddy install
curl -fsSL https://www.codebuddy.cn/cli/install.sh | bash
irm https://www.codebuddy.cn/cli/install.ps1 | iex
codebuddy --version
PATH environment variable:export PATH="$HOME/.local/bin:$PATH"# To make it permanent, add it to your shell configuration file:# Bash: ~/.bashrc or ~/.bash_profile# Zsh: ~/.zshrc
# Add the following path to your user environment variables:# %USERPROFILE%\\AppData\\Local\\codebuddy\\bin
Platform | Default Configuration Directory |
macOS / Linux | ~/.codebuddy |
Windows | %USERPROFILE%\\.codebuddy |
~/.codebuddy/├── settings.json # User settings├── .mcp.json # MCP server configuration└── skills/ # User-defined skills
CODEBUDDY_CONFIG_DIR environment variable:export CODEBUDDY_CONFIG_DIR="$HOME/.my-codebuddy-config"
export DISABLE_AUTOUPDATER=1
codebuddy update
update command automatically detects your installation method and performs the corresponding update.codebuddy update command fails to update successfully, you can also reinstall using a package manager:npm install -g @tencent-ai/codebuddy-code
# Uninstall Toolsbrew uninstall codebuddy-code# Remove tap (Optional)brew untap Tencent-CodeBuddy/tap
npm uninstall -g @tencent-ai/codebuddy-code
pnpm remove -g @tencent-ai/codebuddy-code
yarn global remove @tencent-ai/codebuddy-code
bun remove -g @tencent-ai/codebuddy-code
rm -f ~/.local/bin/codebuddy
rm -rf ~/.codebuddyrm -rf ~/.local/share/codebuddy
CODEBUDDY_CONFIG_DIR environment variable, delete the corresponding directory.Select login method:› Log in via Chinese SiteLog in via International SiteLog in via Enterprise DomainLog in via iOA (Tencent only)
Login Method | Scenario | Description |
Chinese Site | Domestic users | Authenticate through the Tencent Cloud China site (copilot.tencent.com), which supports mainstream domestic models. |
International Site | Overseas users | Authenticate through the Tencent Cloud International site (codebuddy.ai), which supports mainstream overseas models. |
Enterprise Domain | Dedicated Edition/Private Deployment | Connect to the enterprise dedicated or self-hosted CodeBuddy service and enter the service address provided by the enterprise. |
↑↓ keys to select a login method, and press Enter to confirm. The browser then opens automatically to complete authentication.codebuddy: command not foundPATH environment variable:echo $PATH
PATH (see the installation verification section above).source ~/.bashrc # or ~/.zshrc
npm install -g indicates successful installation, but codebuddy --version still shows an old version.codebuddy executable files existing in the system, for example, when CodeBuddy is installed through both npm and Homebrew, or when nvm switches the Node version.npm config set registry https://registry.npmmirror.com
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback