VT Code is a Rust coding agent with LLM-native code understanding, OS-native sandboxing, and multi-provider support.
VT Code is a Rust coding agent with LLM-native code understanding, OS-native sandboxing, and multi-provider support.
[!TIP] New here? Start with Installation, then Getting Started.
Contents
VT Code is an open-source terminal coding agent written in Rust: one static binary for quick interactive sessions and long-running autonomous work alike, no IDE required, no context left behind. It is a harness, not just an LLM wrapper: the model reasons; the runtime supplies everything else: tools, context, sandboxing, state, and verification: turning raw model output into safe, reviewable progress, entirely in your terminal.
The full documentation catalog lives in the docs overview.
[!NOTE] Status: Active development. Local inference and some automation flows are experimental and may change between releases.
Behind the build
VT Code is built for work that takes more than one prompt: the model reasons, and the harness supplies the context, tools, safeguards, state, and verification that turn reasoning into dependable, reviewable progress.
In practice, that means:
| What can go wrong | How VT Code responds |
|---|---|
| Long tasks lose focus | Dynamic context assembly, project instructions, auto-compaction, and bounded tool output keep the active context useful while preserving recoverable work. Runtime guidance · Architecture |
| Generated commands can cause damage | Policy checks and sandboxed, fail-closed execution limit what commands can do, with defenses against injection, path and symlink escape, and environment leakage. Security model |
| A session is interrupted | Durable sessions can be resumed with vtcode continue; workspace snapshots make changes easy to inspect and restore with vtcode snapshots and vtcode revert. Commands |
| “Done” is asserted without proof | Built-in evals verify the environment instead of trusting the agent’s report, using pass@k and pass^k for repeatable measurement. Eval guide |
| Big changes ship unreviewed | The Planning Workflow keeps planning read-only: iterate on a /plan draft, approve it at a review gate, then hand off to build or auto for implementation. Planning workflow |
You get a terminal-native workflow that is:
ThreadEvent record.VT Code is not just a model producing a plausible next response. It is a runtime you can inspect, resume, extend, and verify.
One binary, four layers. Everything the model touches goes through the harness; nothing bypasses it.
…exec/ask, cron schedules, and
editors over ACP all drive the same loop.ThreadEvent log records everything for replay and
rollback.For layer-by-layer details, extension seams, and internal composition rules, see the Architecture guide.
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
# or: brew install vinhnx/tap/vtcode
# or: cargo install vtcodecd path/to/your/project
vtcode init # scaffolds config + AGENTS.md; review before committing
vtcode secret add openai # stores the API key in your OS keyring/secret add inside the TUI does the same. vtcode login covers
OAuth providers (ChatGPT, GitHub Copilot); plain env vars and workspace
.env still work for CI. See
Getting started for the credential
resolution order.
[!CAUTION] Never commit API keys or put them in
vtcode.toml.
vtcode # interactive TUI: the whole loop is install, init, runSee Commands for the complete CLI surface, including headless
exec, one-shot ask, and session resume.
Pair the TUI with a browser editor for authenticated, bounded workspace editing:
/webmcp pair # inside the TUISee the WebMCP user guide for hosts and deployment.
One static Rust binary: no runtime dependencies, no plugins to install, nothing to wire up. Everything below ships in the default build.
At a glance: durable sessions · sandboxed execution · every major model · MCP, Skills & plugins · terminal-native TUI · built-in evals
Bare vtcode opens the interactive TUI. Four subcommands cover most of the
work:
vtcode ask "explain Rc vs Arc" # one-shot answer, no session, no tools
vtcode exec "refactor main.rs" # headless task with the full tool loop
vtcode review # agent review of uncommitted changes
vtcode eval --suite suite.json # verify behavior with pass@k metricsThe complete CLI surface, flags, and exit codes are documented in the command reference.
A second tier handles session lifecycle and day-to-day operations:
| Command | Purpose |
|---|---|
vtcode continue |
Resume the last session, or fork it into a new one with --session-id |
vtcode schedule |
Durable recurring prompts, by cron or one-shot; install-service survives restarts |
vtcode secret |
Store provider API keys in your OS keyring, never in shell history or workspace files |
vtcode models |
Inspect, test, and compare providers and models |
vtcode snapshots / vtcode revert |
List and roll back to workspace snapshots |
vtcode tool-policy |
Allow or deny specific tools per workspace |
vtcode trajectory |
Pretty-print run logs for debugging and audits |
vtcode analyze, vtcode check, vtcode schema tools, vtcode man, and
vtcode update round out the operator surface. See vtcode --help for the
full list.
# Review only the uncommitted diff, then exit with a verdict
vtcode review
# Nightly dependency audit as a durable cron job
vtcode schedule create --cron "0 9 * * 1" --prompt "check for outdated deps and open an issue if any have CVEs"
# Resume yesterday's session and fork it for a new experiment
vtcode continue --session-id
# See exactly what the agent did in the last run
vtcode trajectoryHeadless exec usage is covered in the
exec mode guide; durable cron schedules in
the scheduled tasks guide.
| Layer | Guides |
|---|---|
| Start | Installation · Getting started · Wiki |
| Use | TUI · CLI · WebMCP · Automation · Planning · Configuration |
| Extend | Skills · Plugins · MCP · Editors (ACP) |
| Operate | Safety · Protocols · Loop engineering · Architecture |
The full catalog lives in the Documentation Index.
The WebMCP hosted app (fallback mirror) pairs with the TUI bridge; deployment details live in the WebMCP deployment reference.
graph LR
types --> config --> core --> tools --> agent --> TUIRust stable, edition 2024, MSRV 1.93. Clone and run the fast gate:
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 (No open issues yet, or sync has not completed.