VT Code

VT Code is a Rust-based terminal coding agent with semantic code intelligence via Tree-sitter and ast-grep. It supports multiple LLM providers with automatic failover and efficient context management.
Key Features
- Multi-Provider AI: OpenAI, Anthropic, xAI, DeepSeek, Gemini, Z.AI, Moonshot AI, OpenRouter, Ollama (local)
- Code Intelligence: Tree-sitter parsers for Rust, Python, JavaScript/TypeScript, Go, Java
- Smart Tools: Built-in code analysis, file operations, terminal commands, and refactoring
- Editor Integration: Native support for Zed IDE via Agent Client Protocol (ACP)
- Security First: Sandboxed execution with configurable safety policies
Installation
Package Managers
# Cargo (recommended)
# Homebrew (macOS)
# NPM
Quick Start
# Set your API key
# Launch VT Code
# Or run a single query
Configuration
Create vtcode.toml in your project root:
[]
= "openai" # Choose your provider
= "gpt-5" # Latest model
= "OPENAI_API_KEY" # Environment variable
[]
= "prompt" # Safety: "allow", "prompt", or "deny"
[]
= "allow" # Always allow file reading
= "prompt" # Prompt before modifications
= "prompt" # Prompt before commands
Available Providers
Set your API key environment variable:
# OpenAI
# Anthropic
# Google Gemini
# xAI
# DeepSeek
# Z.AI
# Moonshot AI
# OpenRouter
Command Line Interface
Basic Usage
# Interactive mode
# Single query mode
# With specific provider and model
Agent Client Protocol
VT Code supports the Agent Client Protocol (ACP) for integration with code editors like Zed.
ACP Quick Setup
- Install VT Code with
cargo install vtcode - Configure your
vtcode.tomlwith provider credentials - Register in Zed's settings:
{
"agent_servers": {
"vtcode": {
"command": "vtcode",
"args": ["acp"],
"env": {
"OPENAI_API_KEY": "your_api_key_here"
}
}
}
}
Development
Getting Started
# Clone and build
# Run tests
Support VT Code Development
I build VT Code in my free time as a passion project to research and explore how coding agents work in practice. If you find VT Code useful, please consider supporting my work with a coffee via BuyMeACoffee:
Your support means the world to me, thank you!
License
MIT License - see LICENSE for full terms.
