Codewhale README

The project's README from github.com/codewhale-hq/Codewhale. As one markdown file: README.md.

Codewhale

Open-source Rust coding agent for your terminal. Any model, multi-agent fleets, OS sandboxing, and verifiable receipts.

curl -fsSL https://codewhale.net/install.sh | sh

Latest release CI crates.io npm License: MIT Discord

Website · Documentation · Changelog · Contributing

简体中文 · 日本語 · Tiếng Việt · Bahasa Indonesia · 한국어 · Español · Português · Русский · Українська · Français · Deutsch · 繁體中文 · हिन्दी · Türkçe · Italiano · Polski · العربية · Català

Codewhale v0.10.4 in a terminal after a real task on local Ollama (qwen3:4b): it edited ls.py, waited for approval before running python3 -m unittest -v test_ls.py, ran 2 passing tests, and reported the result.

Real session on published Codewhale v0.10.4 (48669ad108fa) running local Ollama (qwen3:4b) in Accept Edits mode.

Install

The install script above puts checksum-verified codewhale and its short alias codew in ~/.local/bin on macOS and Linux. If your shell reports command not found, add ~/.local/bin to your PATH (details). Upgrade in place with codewhale update.

winget install --id HunterBown.CodeWhale --exact --source winget  # Windows x64
npm install -g codewhale                                          # wraps the same release binaries
cargo install codewhale-cli --locked                              # builds from source; can trail GitHub Releases

Prebuilt binaries ship for Linux, macOS, and Windows (x64 and arm64). Scoop, Nix, Homebrew on Linux, Android/Termux (preview), and manual downloads are in docs/INSTALL.md; container images are in docs/DOCKER.md. Use one install method per machine so two binaries do not shadow each other on PATH.

Quickstart

  1. Commit or stash your work, then run codewhale from a git repository root.
  2. Run /provider (or press F3) to select a provider, paste an API key, and pick a model. DeepSeek is the default; if no key is configured and a local Ollama server responds, Codewhale offers its models on your first message.
  3. Give it a task:
Fix the failing tests and explain what changed.

Read-only commands run immediately, except in Ask, which asks before every command. Mutating shell commands prompt for approval: y runs once, a allows matching commands for the rest of the session, and n denies. Run /undo to revert the last turn and its file edits, or /help for commands and keybindings.

Capabilities

Entry points

Command Purpose
codewhale Interactive terminal app
codewhale exec "…" Headless single-task runner for scripts and CI (guide; --auto uses Full Access unless sandboxed)
codewhale web Local web client on 127.0.0.1 (guide)
codewhale review --pr N Advisory GitHub PR review; GitHub bot setup runs it on your own key
codewhale app-server --http Local HTTP Runtime API for threads, events, approvals, and per-turn diffs
codewhale serve --acp Agent Client Protocol over stdio for editors such as Zed

All entry points share one Rust engine (architecture). A community-maintained VS Code extension (source) connects to the same engine. See the latest release notes and roadmap for current release and desktop/cloud status.

Permissions, sandboxing, and privacy

Shift+Tab cycles permission modes: Ask → Accept Edits → Plan → Auto-Review → Full Access (Tab only completes). Accept Edits (default) applies edits inside the git repository and asks before commands. Ask prompts on every edit and command. Plan is read-only. Auto-Review uses rules and a reviewer model to approve routine calls and block high-risk ones. Full Access skips prompts and disables the OS sandbox (repository rules and managed policy still apply). See Modes.

In Ask, Accept Edits, and Auto-Review, commands run inside an OS sandbox where available: Seatbelt on macOS and bubblewrap on Linux (Windows has no OS sandbox yet). Sandboxed commands and terminal sessions cannot read credential paths such as ~/.ssh, ~/.aws, or .env files. Run /preview-request to inspect a redacted outgoing request before sending it.

API keys added with /provider stay on your machine, and local models require no key. /cost and the footer track session spend when pricing is known (an unknown price is shown as unknown, never as free).

Aggregate telemetry is enabled by default (version, OS, session length/outcome, built-in provider IDs, bundled public-catalog model IDs (custom, private, or local models map to other), aggregate token totals, built-in tool call/error counts, and feature/error counters; rotating 90-day random install ID; never code, prompts, conversations, custom/private model names, file/repo/branch names, credentials, or IP addresses). Disable it with:

codewhale config set telemetry false

At startup Codewhale also checks GitHub for a new release (CODEWHALE_NO_UPDATE_CHECK=1 to skip) and refreshes the public models.dev model catalog every 24 hours (CODEWHALE_DISABLE_MODELS_DEV_FETCH=1 or [catalog] auto_refresh = false to skip; suppressed automatically in CI and under DO_NOT_TRACK). Details: authorization order, sandboxing, and telemetry.

Documentation

Guides follow main and may describe changes not yet in the latest release.

Start here Reference
User guide Configuration
Installation Architecture
Providers and local models Runtime API
Modes and permissions Plugin authoring
Keybindings Receipts
GitHub pull request review All documentation

Contributing and license

Codewhale contributor wall

The contributor wall (scripts/contributor-wall.py) tracks code, co-authored commits, carried-forward PRs, and credited reports. Bug reports and feature proposals go to Issues, questions to Discussions, and contribution guidelines plus layout are in CONTRIBUTING.md (project structure). Join us on Discord or add hunterbown on WeChat for the Whale Brothers group.

Codewhale started as deepseek-tui and remains backward-compatible with its config and sessions. It is independently maintained and not affiliated with DeepSeek or any other model provider.

MIT. Third-party notices: vendored sources and adapted designs.

Codewhale (codewhale-hq/Codewhale)

agent-client-protocol
Searching Database…

What is this?Codewhale is an open-source coding agent that runs in your terminal: it reads your project, edits files, runs shell commands, and checks its own work, using whichever hosted or local model you pick.
Is this just a terminal tool, or does it have a GUI too?It is primarily a terminal TUI launched with codewhale, plus codewhale web for a bundled local web client; desktop and web apps are still in development, and a community-maintained VS Code extension connects to the same Runtime.
How do I install and start using it?Install the official GitHub release on macOS/Linux or the matching installer on Windows, or grab it via npm, Cargo, Docker, Nix, Scoop, or Android/Termux. Then open a terminal in your project folder and run codewhale.
Do I need to bring my own model or API key?Yes, on first run you connect a hosted provider or set up a local model; model replies won't work until one is connected. Local models can run through Ollama, vLLM, or SGLang.
Is every changelog entry something I can actually download right now?No, the changelog can describe the next release's unreleased candidate, and those changes aren't in any published build until that release actually ships.
How much control do I have over what the agent is allowed to do?Approval modes (Ask, Auto-Review, Full Access) and repository rules gate what the agent can do, and even Full Access respects hard policy boundaries; optional OS sandboxing adds a stronger execution boundary where supported.
Can I split a big task across multiple agents?Yes, Codewhale supports agent teams: you can hand parts of a larger job to agents running different models and roles, and coordinate them without their internal instructions leaking into your transcript.
Why did this project exist alongside tools like Claude Code or Codex?Codewhale began as deepseek-tui, still keeps that project's configuration and session compatibility, but is now provider-neutral, independently maintained, and not affiliated with any model provider.
Can I plug in my own MCP servers and skills?Yes, you can connect MCP servers and skills, configure hooks, and keep agent roles as readable files in your project or personal settings.
What if the agent makes a change I don't want?The /undo and /restore commands let you roll back workspace changes the agent made.
Size
363.1 MB
Stars
41.2K
Age
10mo
Commits · 90 Days