VT Code is an open-source coding agent for everyone.

Desktop app demo — see also the terminal TUI demo
VT Code is an open-source coding agent for the terminal TUI and native macOS app, sharing one runloop under MIT OR Apache-2.0 (see License).
The model surface stays lean: six default tools (apply_patch, exec_command,
write_stdin, search_tools, record_decision, message_user; plus code_search in
the advanced profile) backed by 33 builtin registrations. Skills, MCP servers, subagents, planning,
and web research load on demand via search_tools. See
Tool Specifications. Start with Quick start.
| At a glance | What you get |
|---|---|
| Ship faster | Agent edits, tests, and reviewable diffs in your repo. |
| Stay safe | Sandboxed runs under an auditable command policy. |
| Run long | Resumable headless exec with snapshots and subagents. |
| Extend | MCP servers, skills, and plugins on demand. |
| Pick models | Per-task hosted or local providers. |
Three steps on macOS, Linux, or Windows/WSL. Full options: installation guide.
# Review the installer script before running it: https://github.com/vinhnx/vtcode/blob/main/scripts/install.sh
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
vtcode --versionAlternatives: brew install vinhnx/tap/vtcode, cargo install vtcode,
Desktop app, or the Windows install.ps1 script.
If vtcode is not found, reopen your shell to refresh PATH.
In your project directory, scaffold config and authenticate:
cd path/to/your/project
vtcode init
vtcode secret add openaiinit scaffolds vtcode.toml, .vtcode/, and AGENTS.md (review before committing).
Replace openai with your provider; keys stay in secure storage. Subscription or SSO
options: getting started,
provider guides,
OAuth.
Caution: Keep API keys out of Git and
vtcode.toml, and never commit a workspace.envfile.
vtcodeAsk one focused question in the TUI, review the diff and test results, then commit.
Core commands (full list in command reference):
| Goal | Command |
|---|---|
| Start the TUI | vtcode |
| Ask without tools | vtcode ask "explain Rc vs Arc" |
| Run a task headlessly | vtcode exec "refactor main.rs" |
| Review pending changes | vtcode review |
| Resume the last session | vtcode continue |
| Roll back a snapshot | vtcode revert |
| Inspect a run log | vtcode trajectory |
Trust levels:
asknever runs tools.reviewinspects uncommitted changes without the agent loop.execruns the full tool loop and needs workspace trust: approve the TTY prompt, or setVTCODE_TRUST_WORKSPACE=full-autofor non-TTY runs (denyrefuses instead).
For larger tasks, start read-only and review the turn diff. See interactive mode, exec mode, and full automation.
Native macOS app (macOS 15+) sharing the CLI runloop, providers, tool policy, sandboxing, sessions, config, and credentials. Configure a provider first (Quick start).
brew install --cask vinhnx/tap/vtcode-desktopUpdate with brew upgrade --cask vinhnx/tap/vtcode-desktop. Without Homebrew, use the
latest release or
vtcode desktop --install, then launch with vtcode desktop or from Finder. The cask
ships Apple Silicon builds; Intel Macs install from source. See the
installation guide.
Warning
First launch needs one-time approval for ad hoc-signed builds (Homebrew cask included): open the app from Applications, click Open Anyway in System Settings › Privacy & Security, then reopen it. Notarized releases skip this. See desktop workspace.
Start from the canonical documentation index.
- Installation and getting started
- Providers and OAuth login
- FAQ and compatibility
- Interactive mode and command reference
- Configuration and security model
- Computer Use: isolated offline browser preview with per-turn approval
27-crate workspace (full list in the architecture guide).
The default build covers the root binary plus vtcode-core, vtcode-skills,
vtcode-tui-runtime, and vtcode-ui. The sketch shows the core harness path,
not every crate:
graph LR
BIN["vtcode binary"] --> CORE["vtcode-core harness"]
CORE --> LLM["vtcode-llm"]
CORE --> SAFETY["vtcode-safety"]
CORE --> EVENTS["vtcode-exec-events (crates/common)"]
CORE --> MEMORY["vtcode-memory"]
CORE --> SKILLS["vtcode-skills"]
CORE --> TUI["vtcode-tui-runtime"]
CORE --> UI["vtcode-ui"]
Build with Rust 1.100.1+ (edition 2024); CI pins dependencies with --locked:
git clone https://github.com/vinhnx/vtcode.git
cd vtcode
./scripts/run-debug.sh # build and launch a debug binary
./scripts/check-dev.sh # fast gate: clippy, fmt, check (add --test for tests)
cargo nextest run # tests via nextest (see testing guide)Match CI warnings locally with RUSTFLAGS="-D warnings" cargo check --locked.
See development and
testing. Release binaries and notes live on
GitHub releases.
VT Code is open source and community-driven. Code, docs, evals,
and fixes are welcome — include vtcode trajectory output in bug reports where possible.
Before a PR, read contributing and pick a
good first issue or
help wanted item.
Report vulnerabilities privately via GitHub private vulnerability reporting. See the security policy.
- Report a bug · Request a feature · Discussions
- Elsewhere: building VT Code, a year in · podcast · video
The Code of Conduct keeps review constructive.
Contact: vinhnguyen2308 [at] gmail [dot] com.
Current sponsors: Codemod and CodeRabbit.
If you like VT Code, please star the repo and share it. Thank you for growing the community.
First-party code is MIT OR Apache-2.0, available under either LICENSE-MIT or LICENSE (Apache-2.0). Keep the license and copyright notices when you distribute copies. Third-party code keeps its original licenses, listed in THIRD-PARTY-NOTICES.