VT Code supports multiple installation methods. Choose the one that works best for you.
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bashirm https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.ps1 | iexbrew install vinhnx/tap/vtcodecargo install vtcodenpm install -g @vinhnx/vtcode --registry=https://npm.pkg.github.com| Method | Platforms | Command | Notes |
|---|---|---|---|
| Native Installer | macOS, Linux, WSL | See Quick Install above | Recommended, auto-detects platform |
| Homebrew | macOS, Linux | brew install vinhnx/tap/vtcode |
Package manager, easy updates |
| Cargo | All | cargo install vtcode |
Build from source, latest dev version |
| npm | All | npm install -g @vinhnx/vtcode --registry=https://npm.pkg.github.com |
JavaScript package manager |
| npx | All | npx @vinhnx/vtcode |
No installation, run directly |
vtcode --versionexport OPENAI_API_KEY="sk-..."vtcode- OpenAI (OPENAI_API_KEY)
- Anthropic (ANTHROPIC_API_KEY)
- Google Gemini (GEMINI_API_KEY)
- xAI (XAI_API_KEY)
- DeepSeek (DEEPSEEK_API_KEY)
- OpenRouter (OPENROUTER_API_KEY)
- Ollama (local, no API key)
- LM Studio (local, no API key by default)
Set the corresponding environment variable for your chosen provider.
macOS/Linux:
# Refresh your shell
source ~/.bashrc # bash
source ~/.zshrc # zshWindows: Restart PowerShell or Command Prompt.
This typically indicates a network or CDN caching issue. Try one of:
# Force fresh download
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
# Or use GitHub API (always fresh)
curl -fsSL "https://api.github.com/repos/vinhnx/vtcode/contents/scripts/install.sh?ref=main" | jq -r '.content' | base64 -d | bashmacOS/Linux:
chmod +x /usr/local/bin/vtcodeWindows: Run PowerShell as Administrator.
- Check internet connection:
curl https://api.github.com - Verify GitHub is accessible
- Try again in a fresh terminal
- Check GitHub status
- Open an issue: https://github.com/vinhnx/vtcode/issues
- Check docs: https://github.com/vinhnx/vtcode/docs
- See detailed guide
rm /usr/local/bin/vtcode
# or
rm ~/.local/bin/vtcodebrew uninstall vtcodecargo uninstall vtcodenpm uninstall -g @vinhnx/vtcodeRemove-Item "$env:LOCALAPPDATA\VT Code\vtcode.exe"
# or (if in Program Files)
Remove-Item "C:\Program Files\VT Code\vtcode.exe"/usr/local/bin/vtcode(standard)/opt/local/bin/vtcode(Homebrew ARM64)~/.local/bin/vtcode(user fallback)
C:\Program Files\VT Code\vtcode.exe(system-wide, requires admin)%LOCALAPPDATA%\VT Code\vtcode.exe(user-scoped)
The native installers automatically select the best location and add it to PATH.
- Detailed Native Installers Guide - Technical details and advanced options
- Quick Reference - One-liner commands
- GitHub Releases - Download binaries manually
- Documentation - Full documentation