VT Code is an open-source coding agent for everyone. alt="VT Code Desktop app running an agent coding task" loading="lazy" /> Desktop app demo — see also the terminal TUI demo Overview VT Code is an open-source coding agent: one shared runloop powers the terminal TUI and the native macOS app, under MIT OR Apache-2.0 (see License). Start with Quick start; the full map is in Documentation. At a glance | What you get |…
VT Code is an open-source coding agent with LLM-native code understanding and robust shell safety. Supports multiple LLM providers with automatic failover and efficient context management.
VT Code is an open-source coding agent: one shared runloop powers the terminal TUI and the
native macOS app, under MIT OR Apache-2.0 (see License).
Start with Quick start; the full map is in Documentation.
Install on macOS, Linux, or Windows/WSL, configure once, and run. Source builds need Rust 1.100.0+
(edition 2024); the installation guide covers every method.
1. Install
# 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 --version
Alternatives: brew install vinhnx/tap/vtcode, cargo install vtcode, Desktop app,
or the Windows install.ps1 script. See the installation guide.
2. Configure your project
From your project directory:
cd path/to/your/project
# Scaffolds vtcode.toml, .vtcode/, and AGENTS.md; review before committing.
vtcode init
API key:vtcode secret add openai (replace openai with your provider). Keys stay in secure storage
(OS keyring or encrypted file); environment variables or a workspace .env also work where supported.
ChatGPT subscription:vtcode login openai — no API key needed.
Reuse an existing Codex login:vtcode login openai --from-codex (requires an authenticated Codex CLI).
Copilot uses the official copilot CLI — see OAuth authentication.
Caution: Keep API keys out of Git and vtcode.toml, and never commit a workspace .env file.
3. Run your first task
vtcode # opens the interactive TUI
Ask one focused question, review the proposed changes and test results, then commit. If vtcode is not
found, reopen your shell so PATH picks up the install, then rerun vtcode --version.
Trust levels: ask never runs tools, review inspects uncommitted changes without the agent loop, and only
exec runs the full tool loop. exec needs workspace trust: approve the TTY prompt, or set
VTCODE_TRUST_WORKSPACE=full-auto for non-TTY runs (deny refuses instead). For larger tasks, start read-only,
review the turn diff, and use /explain without another model call. See interactive mode,
exec mode, and full automation.
Desktop app
Native macOS app (macOS 15+) sharing the CLI runloop, providers, tool policy, sandboxing, sessions,
config, and credentials. Configure a provider first (Quick start).
Install (macOS 15+)
brew install --cask vinhnx/tap/vtcode-desktop
Update with brew upgrade --cask vinhnx/tap/vtcode-desktop. Without Homebrew, download the
latest release or run vtcode desktop --install,
then launch with vtcode desktop or from Finder. The cask ships Apple Silicon builds; Intel Macs install
from source with vtcode desktop --install. See the installation guide.
[!WARNING]
First launch needs one-time approval for ad hoc-signed builds (Homebrew cask included): open the app
once from Applications, click Open Anyway in System Settings › Privacy & Security, then reopen it.
The button expires about an hour after a blocked launch; reopen the app to bring it back. Notarized
releases skip this. See desktop workspace.
27-crate workspace at version 0.185.2 (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 below shows the core harness path, not every crate:
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)
CI uses --locked and RUSTFLAGS="-D warnings"; match locally with
RUSTFLAGS="-D warnings" cargo check --locked. See development and testing.
Release binaries and notes live on GitHub releases.
Contributing
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.
If you like VT Code, please star the repo and share it. Thank you for growing the community.
Star History
License
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.
评论