RedCode is a multi-model AI coding agent for both the terminal (TUI) and desktop (GUI).
It understands and edits code, runs commands, uses developer tools, and works with you in natural language to get real development work done.
Deeply developed from OpenCode, RedCode is tailored to Chinese-language workflows and personalized collaboration.
Choose your models freely. Connect coding plans, compatible APIs, or local models from different providers, and pick the right model for each task without being tied to one service.
Put AI to work on real development. File editing, terminal commands, code search, MCP tools, and subagents come together in a complete development workflow.
A desktop workspace, not just a chat box. Keep the file tree, change review, terminal, and context dashboard together. Choose your theme, Soul, and reasoning effort where the model supports it.
Built for long-running collaboration. Session management, context compaction, prefix-cache management, and memory help carry complex work forward.
Make every token count. Optimize prompt prefixes, cache reuse, and context management across models and providers to reduce overhead and make long-running tasks more stable and cost-efficient.
More than a personality-free tool. The Soul system lets you customize your AI partner's identity and interaction style, keeping that persona consistent across TUI and GUI sessions.
Keep control in your hands. Plan, RedMind, and Auto permission modes let you choose how much freedom the AI has for each task.
Requires Windows 10/11, Git, and Bun 1.3+.
git clone https://github.com/JiaHuiRed/RedCode.git
cd RedCode
bun install
# Terminal
bun dev
# Desktop
bun run dev:desktopAfter the first launch, connect your own model provider or local model. Model service credits are not included. See Add an AI model for configuration examples (Chinese).
Keep API keys and machine-specific paths in your local ~/.redcode/redcode.local.jsonc, not in version control.
For installation, model setup, permissions, and Soul configuration, see MANUAL.md (Chinese).
- User manual β installation, configuration, and usage
- Changelog β release changes and fixes
RedCode is based on OpenCode. Thanks to the original project and the open-source community.
This project is licensed under the MIT License.

