Codewhale README

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

Codewhale

Codewhale is an open-source agent that reads your project, edits files, runs commands, and checks its work using a hosted or local model you choose. Start with one task in your terminal. For a larger job, give parts of the work to agents with different models and roles.

Codewhale

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

CI crates.io npm Discord

A Codewhale terminal session

Terminal preview from a v0.9.12 development build.

Install

macOS / Linux — install the official GitHub release:

curl -fsSL https://codewhale.net/install.sh | sh
"$HOME/.local/bin/codewhale"

The installer selects the latest published release. The changelog also describes the next release's unreleased candidate; those changes are not included in published downloads until the release is available.

Windows: download the matching installer or archive from GitHub Releases. For an existing direct install, run codewhale update (or codewhale update --check to inspect it). The updater prints the executable path and keeps newer builds.

The first run helps you connect a provider or configure Codewhale offline. Model replies require a connected hosted or local model. Codewhale also supports npm and Cargo as secondary packaging routes, plus Docker, Nix, Scoop, Android/Termux, and an optional CNB mirror. Existing package-managed installs receive migration instructions. See installation and PATH help.

Tab completion is one command per shell — codewhale completion bash|zsh|fish|powershell|elvish. See shell completions.

Use

Open a terminal in your project folder and run codewhale. Choose your provider with /provider and your model with /model. Then describe a concrete task:

Fix the failing tests and explain what changed.

Or run a task without opening the TUI:

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

Codewhale can read your repository, edit files, run commands, inspect results, and keep working toward a goal. Use /mode plan to explore without file changes or shell execution, and /mode work when you want it to make changes. Press Shift+Tab to choose Ask, Auto-Review, or Full Access; the modes and permissions guide explains what each allows.

Terminal, apps, and Computer Use

The terminal and graphical clients connect to the Codewhale Runtime, which runs the agent and its tools:

Computer Use adds tools for observing and interacting with other applications. The plugin is included in the current source. Review its requested access and enable it before use; OS permissions and platform requirements still apply. See the included Computer Use guide and plugin setup.

For VS Code, the community-maintained CodeWhale extension connects to the local Runtime from a sidebar. Install it from the VS Code Marketplace; source code is on GitHub.

Why Codewhale

Run /help in the TUI for commands and keyboard shortcuts.

Safety

Codewhale runs on your machine with the access you grant it. Approval modes and repository rules limit what the agent may do; optional OS sandboxing adds a stronger execution boundary where supported. Unknown model prices stay unknown instead of being reported as free.

Read authorization order for the exact policy stack and configuration for local settings.

Documentation

Join the community

Bug reports, feature ideas, and pull requests are welcome, whether you have used Codewhale for months or are trying it for the first time. If a provider is missing, a workflow is awkward, or the terminal UI gets in your way, open an issue or send a pull request so we can improve it together. We welcome first contributions, and contributors keep credit for the work that lands.

Join the Discord, or add Hunter on WeChat (hunterbown) and ask to join the Whale Brothers group.

Project history

Codewhale began as deepseek-tui and still preserves that configuration and session compatibility. It is now provider-neutral and independently maintained; it is not affiliated with any model provider.

Thanks to every contributor and to the open source communities that helped the project grow. See the contributor record.

License

MIT. Portions adapted from other open-source projects are recorded in third-party notices.

Codewhale (codewhale-hq/Codewhale)

Searching Database…

41.1K ·GitHub
这是什么?Codewhale 是一个开源的编码智能体,在终端里运行:它会读取你的项目、编辑文件、执行 shell 命令,并检查自己的工作成果。你可以选择任何托管或本地模型来使用。
它只是个终端工具,还是也有图形界面?它主要是通过 codewhale 启动的终端 TUI 界面,另外还可以运行 codewhale web 打开内置的本地网页客户端。桌面端和网页应用仍在开发中;社区维护的 VS Code 扩展则连接到同一个 Runtime。
我该怎么安装并开始使用?在 macOS/Linux 上安装 GitHub 官方发布版,或在 Windows 上安装对应的安装程序。你也可以通过 npm、Cargo、Docker、Nix、Scoop 或 Android/Termux 获取。然后在项目文件夹中打开终端,运行 codewhale。
我需要自己准备模型或 API 密钥吗?需要。首次运行时,你要连接一个托管服务商,或者设置本地模型;在连接其中之一之前,模型无法回复。本地模型可以通过 Ollama、vLLM 或 SGLang 运行。
更新日志里的每一条,我现在都能下载到吗?不能。更新日志可能描述的是下一版本尚未发布的候选版本,这些改动在该版本真正发布之前,不会出现在任何已发布的版本中。
我能控制智能体被允许做哪些事吗?审批模式(Ask、Auto-Review、Full Access)和仓库规则会限制智能体能做什么。即使是 Full Access,也要遵守硬性策略边界。在支持的系统上,可选的操作系统沙箱提供更强的执行边界。
我能把一个大任务拆给多个智能体一起做吗?可以。Codewhale 支持智能体团队:你可以把大型任务的各个部分交给使用不同模型、承担不同角色的智能体,并协调它们工作,同时不让它们的内部指令泄露到你的对话记录中。
这个项目为什么会和 Claude Code、Codex 等工具并存?Codewhale 最初是 deepseek-tui,仍保留该项目的配置和会话兼容性。但现在它与模型服务商无关,由独立团队维护,也不隶属于任何模型服务商。
我能接入自己的 MCP 服务器和技能吗?可以。你可以连接 MCP 服务器和技能,配置钩子(hooks),并把智能体角色保存为项目或个人设置中可读的文件。
如果智能体做了我不想要的改动怎么办?/undo 和 /restore 命令可以让你撤销智能体对工作区所做的更改。
Size
285.5 MB
Stars
41.1K
Age
8mo
Commits · 90 Days