vinhnx/VTCode
Tentang
VT Code adalah coding agent sumber terbuka untuk semua orang.
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +5
- dalam 15 hari
- +9
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliVT Code is an open-source coding agent for everyone.
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.
The default model surface stays lean on purpose: five tools
(apply_patch, exec_command, write_stdin, search_tools, record_decision;
plus code_search in the advanced profile) backed by 32 builtin registrations.
Everything else — skills, MCP servers, subagents, planning, web research — is
discovered on demand through search_tools, so the prompt stays small while the
registry stays complete. See Tool Specifications.
| At a glance | What you get |
|---|---|
| Plan first | Read-only planning with reviewable turn diffs. |
| Stay safe | Sandboxed runs under an auditable command policy. |
| Run long | Resumable headless exec with snapshots and subagents. |
| Extend | MCP servers, skills, and plugins. |
| Pick models | Per-task hosted or local providers. |
Details live in Documentation.
Quick start
Install on macOS, Linux, or Windows/WSL, configure once, and run. 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.
If vtcode is not found, reopen your shell so PATH picks up the install.
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
Authenticate your provider (getting started, provider guides):
- API key:
vtcode secret add openai(replaceopenaiwith your provider). Keys stay in secure storage (OS keyring or encrypted file); environment variables or a workspace.envalso 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
copilotCLI — see OAuth authentication.
Caution: Keep API keys out of Git and
vtcode.toml, and never commit a workspace.envfile.
3. Run your first task
vtcode # opens the interactive TUI
Ask one focused question, review the proposed changes and test results, then commit.
Usage
Common 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 |
| Schedule recurring work | vtcode schedule create --prompt "..." --every 1h |
| Resume the last session | vtcode continue |
| Resume a headless run | vtcode exec resume --last "prompt" |
| List snapshots | vtcode snapshots |
| Roll back a snapshot | vtcode revert |
| Inspect a run log | vtcode trajectory |
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 and review the turn diff. 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 approval button expires about an hour after a blocked launch; reopen the app to bring it back. Notarized releases skip this. See desktop workspace.
Documentation
Start from the canonical documentation index or Wiki.
Start
- Installation and getting started
- Providers and OAuth login
- FAQ and compatibility
Use
- Interactive mode and command reference
- Configuration and security model
- Computer Use: isolated offline browser preview with per-turn approval
Automate
Extend
Develop
Development
27-crate workspace at version 0.185.5 (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.0+ (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.
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.
Security
Report vulnerabilities privately via GitHub private vulnerability reporting. See the security policy.
Community
- 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.
Thanks to our contributors
Support VT Code
Current sponsors: Codemod and CodeRabbit.
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.
Jelajahi proyek terkait
Memuat…