AI/TLDR

Codewhale

An open-source terminal coding agent in Rust, with the model provider left up to you

Autonomous Coding AgentsOpen source
Language
Rust
License
MIT
$npm install -g codewhale

Overview

Codewhale is an open-source coding agent that runs in your terminal. It reads your repository, edits files, runs commands, inspects the results and keeps working toward a goal — either through its TUI or as a one-shot command. It is written in Rust and distributed through npm, Cargo, Docker, Nix, Scoop, prebuilt archives, Android/Termux and a CNB mirror.

The project's distinguishing choice is provider neutrality. You can connect hosted model providers or point it at local models served through Ollama, vLLM or SGLang, and swap provider and model mid-session with the `/model` command. Codewhale began life as `deepseek-tui` and still keeps that configuration and session compatibility, but it is now provider-neutral and independently maintained, and states it is not affiliated with any model provider.

Control over what the agent may do is explicit rather than implicit. Plan mode is read-only; Ask, Auto-Review and Full Access make approval behaviour visible; `/undo` reverts the last turn and `/restore` returns the workspace to an earlier snapshot. Optional OS sandboxing adds a stronger execution boundary where the platform supports it. For longer work, sessions can be saved, a durable `/goal` set, and workflows reviewed before they run. The agent is extensible through MCP servers, skills, hooks and agent roles kept as readable files in project or personal settings.

What it does

  • Provider-neutral: hosted providers or local models through Ollama, vLLM or SGLang, switchable in-session with `/model`
  • Graded approval modes — Plan (read-only), Ask, Auto-Review and Full Access — plus optional OS sandboxing
  • `/undo` reverts the last turn and `/restore` rolls the workspace back to an earlier snapshot
  • Non-interactive `codewhale exec "…"` for scripting a task without opening the TUI
  • Extensible via MCP servers, skills, hooks and agent roles stored as readable files
  • Saved sessions, a durable `/goal`, and reviewable workflows for long-running work
  • Shell completions for bash, zsh, fish, PowerShell and elvish

Getting started

The quickest route is the npm package; the first run walks you through connecting a provider or staying offline. All commands below come from the project README.

Install and launch

Install globally with npm, then start the TUI.

bashbash
npm install -g codewhale
codewhale

Talk to it like a teammate

Inside the TUI you describe the task in plain language.

texttext
Fix the failing tests and explain what changed.

Or run a single task without the TUI

Use `exec` when you want one task done from a script or CI step.

bashbash
codewhale exec "fix the failing tests and explain what changed"

Add shell completion

One command per shell — bash, zsh, fish, powershell or elvish.

bashbash
codewhale completion zsh

Explore commands and switch models

Run `/help` in the TUI for the command list and keyboard shortcuts, and `/model` to change provider or model.

texttext
/help
/model

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reach for it when you want a terminal coding agent that is not tied to one model vendor
  • Reach for it when work has to stay local — point it at Ollama, vLLM or SGLang instead of a hosted API
  • Reach for it when you need explicit approval boundaries, with an undo and a workspace snapshot to fall back on
  • Reach for it to script a one-off repository change from CI with `codewhale exec`

How Codewhale compares

Codewhale alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
opencode★ 204kOpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app.
Claude Code★ 144kAnthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands.
OpenAI Codex★ 122kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Gemini CLI★ 107kAn open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web.
Pi★ 102kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
OpenHands★ 86.2kAn open-source AI software-development agent that plans tasks, edits files, runs commands, and tests code, usable from a terminal CLI, a local web GUI, or a Python SDK.
Orca★ 62kOpen-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app.
Codewhale★ 40.9kAn open-source terminal coding agent in Rust, with the model provider left up to you