Codewhale
Open source terminal coding agent for any model, with approval gates.
Replaces Claude Code, Cursor, Github Copilot

Who it's for
Use Codewhale when you want a coding agent that runs in the shell, works with any provider, and keeps session control on your machine. /undo takes back your last request and its file changes, and session receipts list what a session did.
Skip it if your team has standardized on IDE-native assistants like Cursor or GitHub Copilot in VS Code and cannot use a terminal-first workflow.
codewhale exec runs one task without the interactive interface, suitable for scripts and CI pipelines. The Runtime API exposes threads, approvals, and file changes programmatically, making it composable with external automation.
Skip it if your CI environment requires a hosted, audit-logged coding platform with centralized policy management.
Use Codewhale to run sub-agents, Fleet configurations, and workflow files for multi-agent task coordination. Each agent gets its own role and model. The /goal command carries an objective across turns and sub-agent calls.
Skip it if you need a fully managed, enterprise-policy-controlled multi-agent product with centralized billing today.
The problem
Most AI coding agents tie you to one editor, one vendor account, or one hosted service. Terminal developers who already work in shell sessions, remote workspaces, and keyboard-driven environments often find that moving to a browser-based or IDE-extension agent disrupts the workflow more than it helps. The harder challenge is trust. An agent that edits files and runs shell commands needs visible controls: approval gates before each action, rollback when a turn goes wrong, session receipts showing exactly what changed, and sandboxed execution to block access to credentials. Many hosted coding products handle these controls on the vendor's side, out of the developer's direct view.
How it works
Codewhale supports more than 40 built-in providers, including Anthropic, OpenAI, DeepSeek, Google, Mistral, and xAI, plus any OpenAI-compatible endpoint and local models through Ollama, vLLM, or SGLang. The default model is DeepSeek V4.1 Flash. Switch providers or models between turns with /model.
Before shell commands run, Codewhale asks for approval (or uses Auto-Review rules for routine calls). After a session ends, /receipts lists every file changed, command run, MCP call, and agent started, with each approval and who gave it. /undo takes back a turn's file changes in one step.
Use /goal to set an objective that persists across turns. Sub-agents, Fleet runs, and checked-in workflow files let several agents share one task with their own roles and models. codewhale exec runs a single task headlessly for scripts and CI pipelines.
Connect any MCP server, add skills, plugins, and hooks on session and tool events. Code mode (experimental) lets the model write one program that calls several MCP and plugin tools in one pass. /import-claude imports Claude Code settings and MCP servers for review.
codewhale web opens a local browser client that comes with the terminal: read the conversation, send a task, and answer approvals in your browser with no account needed. codewhale app-server --http exposes a Runtime API for threads, events, approvals, and each turn's file changes.
Features
- Any model, any provider
- Approval gates and session receipts
- Multi-agent and sub-agent workflows
- MCP servers, skills, and plugins
- Local browser client and Runtime API
How to install
These are alternative install methods: curl script for macOS or Linux, npm, Cargo, and winget on Windows. Use one method per machine; two copies on PATH conflict.
curl -fsSL https://codewhale.net/install.sh | sh
npm install -g codewhale
cargo install codewhale-cli --locked
winget install --id HunterBown.CodeWhale --exact --source wingetRecommended for this setup
Strengths
- MIT licensed with no account required: Codewhale runs with no vendor account, no sign-up, and no hosted service. The MIT license lets you read every line of source, fork it, and use it commercially without restriction. Keys you add with /provider stay on your machine, and you pay the provider directly.
- Model-agnostic, any provider works: Unlike Claude Code (Anthropic models exclusively), Codewhale works with any OpenAI-compatible endpoint and local models through Ollama. You can switch models between turns and use /model auto to pick one per turn based on routing rules.
- OS sandbox on macOS and Linux: In Ask and Auto-Review modes, shell commands run inside an OS-level sandbox: Seatbelt on macOS, bubblewrap on Linux when installed. The sandbox blocks access to credential stores such as ~/.ssh, ~/.aws, and .env files, so the agent cannot read secrets you did not explicitly grant.
Trade-offs
- Telemetry on by default: Codewhale sends aggregate counts (version, platform, session length, error counts) with a rotating install ID that changes every 90 days. It never sends conversations, code, prompts, or file names. Turn it off with codewhale config set telemetry false. The opt-out is documented but requires a manual step.
- No OS sandbox on Windows: Seatbelt and bubblewrap provide OS-level sandboxing on macOS and Linux, but Windows has no OS sandbox yet, so shell commands there run without that credential isolation.
- Desktop app and cloud computers not yet released: The desktop app is in development with no public download. Cloud computers are invite-only. These are roadmap items, not released features, so users who need a GUI or cloud-based session today will need to stay with the terminal app and local web client.
Tech stack
FAQ
Yes. Codewhale was formerly called DeepSeek TUI. It still reads the old project's configuration and sessions. The old domain deepseek-tui.com redirects to codewhale.net. The GitHub repository is at codewhale-hq/Codewhale. Codewhale is independently maintained and not affiliated with DeepSeek or any other model provider.
No. Codewhale works with any model from more than 40 built-in providers, including Anthropic, OpenAI, Google, Mistral, and local Ollama models. DeepSeek is the default provider (deepseek-flash, serving DeepSeek V4.1 Flash), but no specific key is required. On first launch with no key configured, Codewhale prompts you to pick a provider and offers local Ollama if it finds a running server on your machine.
Codewhale is a local terminal application, not a server you deploy. It runs on your machine and needs no hosted infrastructure. You bring your own API keys for the provider you choose, and they stay on your machine. The MIT license lets you run it for any purpose, including commercial and team use, with no restrictions from the project.
MIT. The MIT license lets you use, fork, modify, and distribute Codewhale for any purpose, including commercial use, with no restrictions. The source is on GitHub at codewhale-hq/Codewhale and every line is readable. Third-party notices for vendored and adapted code are listed in the repository's THIRD_PARTY_NOTICES.md files.
Both are terminal coding agents with approval modes and session context. Claude Code uses Anthropic models exclusively and is tightly integrated with Anthropic's tooling and billing. Codewhale is model-agnostic (40+ providers), MIT licensed, has no account or hosted service of its own, and keeps your keys on your machine. Claude Code is the better fit when your team already uses Anthropic models and wants a managed experience with Anthropic support. Codewhale is the better fit when you want model flexibility, full source access, or a local-first workflow with no vendor account required.