npm install -g rustcode这条安装链路只安装 TUI,并会下载当前平台的预编译二进制。 不会打包 GUI / Tauri 桌面版,也不要求本地安装 Rust toolchain。
cargo install --path .安装完成后:
rustcode --helpcargo build --release产物位置:
- Linux/macOS:
target/release/rustcode - Windows:
target/release/rustcode.exe
Linux/macOS:
./scripts/install-linux.shWindows:
.\scripts\install-windows.ps1推荐直接启动:
rustcode首次启动会自动进入全屏 TUI,并在未完成配置时自动弹出 onboarding。
如果你想随时重新进入交互式引导:
rustcode config onboard手动配置示例:
rustcode config set provider deepseek
rustcode config set api_key "your-api-key"
rustcode config set model deepseek-chat自定义 provider:
rustcode config set provider custom
rustcode config set protocol anthropic
rustcode config set base_url https://api.example.com
rustcode config set model claude-3-5-sonnet-20241022fallback:
rustcode config set fallback.enabled true
rustcode config set fallback.chain "deepseek:deepseek-chat,openai:gpt-4.1-mini"