| Crates.io | vtcode |
| lib.rs | vtcode |
| version | 0.70.1 |
| created_at | 2025-09-18 15:48:49.80251+00 |
| updated_at | 2026-01-25 02:00:16.939773+00 |
| description | A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers |
| homepage | https://github.com/vinhnx/vtcode |
| repository | https://github.com/vinhnx/vtcode |
| max_upload_size | |
| id | 1844928 |
| size | 13,135,323 |
VT Code is an open-source coding agent, with semantic code intelligence via Tree-sitter. Supports multiple LLM providers with automatic failover and efficient context management.
Native Installer (Recommended) - No dependencies, instant setup:
macOS & Linux:
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.ps1 | iex
Alternative Installation Methods:
# Cargo (Rust package manager)
cargo install vtcode
# Homebrew (macOS/Linux)
brew install vinhnx/tap/vtcode
See Installation Guide and Native Installer Guide for more options and troubleshooting.
# Set your API key
export OPENAI_API_KEY="sk-..."
# Launch VT Code
vtcode
VT Code works with OpenAI, Anthropic, Google Gemini, xAI, DeepSeek, OpenRouter, Z.AI, Moonshot AI, MiniMax, HuggingFace Inference Providers, Ollama (local & cloud), and LM Studio (local).
Set the corresponding environment variable for your provider (see Installation Guide for all options).
VT Code supports multiple agent protocols for integration:
VT Code can integrate with code editors like Zed. To configure ACP, refer to the ACP docs.
VT Code implements the Agent2Agent (A2A) Protocol, enabling communication and interoperability between AI agents. The A2A protocol supports:
/.well-known/agent-card.jsonsubmitted, working, completed, failedFor more information about A2A protocol support, see A2A Protocol Documentation.
VT Code provides compatibility with the Anthropic Messages API to help connect existing applications to VT Code, including tools like Claude Code.
The server supports:
/v1/messagesFor more information about Anthropic API compatibility, see Anthropic API Documentation.
VT Code supports a rich set of configuration options, with preferences stored in vtcode.toml. Key configuration features include:
For full configuration options, see Configuration.
VT Code follows the Command Line Interface Guidelines and standard UNIX principles to ensure a robust and pipe-friendly experience:
ask, events from exec) is sent to stdout. All logs, metadata, reasoning traces, and interaction prompts are sent to stderr. This allows you to safely pipe vtcode output to other tools.
# Only the generated code is saved to file; metadata remains on screen
vtcode ask "factorial function in rust" > factorial.rs
clap, supporting standard flags like --help, --version, and -- separator for positional arguments.spawn_subagent; see docs/subagents/SUBAGENTS.mdVT Code implements a defense-in-depth security model to protect against prompt injection and argument injection attacks:
See Security Model and Sandbox Deep Dive for details.
VT Code is available as an VS Code extension.
The original VT Code extension for Visual Studio Code with full semantic code understanding and AI assistance.
VT Code is also compatible with other VS Code-compatible editors:
Compatible with Cursor, Windsurf, and other VS Code-compatible editors through the Open VSX registry.
For installation instructions and download links for other IDEs, visit our IDE Downloads page. For troubleshooting, see the IDE Integration Troubleshooting Guide.
This repository is licensed under the MIT License.