AI Skill Hub 推荐使用:CodeWhale 是一款优质的Agent工作流。在 GitHub 上收获超过 34.0k 颗 Star,AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
Coding agent for DeepSeek models that runs in your terminal,提高开发效率和AI模型的使用体验。
CodeWhale 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Coding agent for DeepSeek models that runs in your terminal,提高开发效率和AI模型的使用体验。
CodeWhale 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install codewhale # 方式二:从源码编译 git clone https://github.com/Hmbown/CodeWhale cd CodeWhale cargo build --release # 二进制在 ./target/release/codewhale
# 查看帮助 codewhale --help # 基本运行 codewhale [options] <input> # 详细使用说明请查阅文档 # https://github.com/Hmbown/CodeWhale
# codewhale 配置说明 # 查看配置选项 codewhale --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CODEWHALE_CONFIG="/path/to/config.yml"
DeepSeek-first agentic terminal for open source and open-weight coding models. It runs from the codewhale command, streams reasoning blocks, edits local workspaces with approval gates, and can auto-route each turn to the right DeepSeek model and thinking level.
--model auto / /model auto chooses both the model and thinking level for each turn/statusline footer chip surfaces how stable the cached prefix has been across recent turns so cost-busting edits are visible before they landoff → high → max with Shift + Tab/restore and revert_turn, without touching your repo's .gitcodewhale serve --http for headless agent workflowsdeepseek-v4-flash with thinking off handles routing, RLM child calls, summaries, and other fast coordination workrlm_open/rlm_eval) — persistent REPL sessions for batched analysis with bounded helpers like peek, search, chunk, and sub_query_batchen, ja, zh-Hans, pt-BR with auto-detectionzh-Hansskill-creator, mcp-builder, plugin-creator, v4-best-practices, documents, presentations, spreadsheets, pdf, feishu, skill-installer, delegate) so /skills is useful from first launch/theme---
codewhale is distributed as Rust binaries: the dispatcher command (codewhale) and the companion TUI runtime (codewhale-tui). Pick whichever install path you already use; they all put the same commands on your PATH. The npm package is an installer/wrapper for the release binaries, not the agent runtime itself.
```bash
docker volume create codewhale-home docker run --rm -it \ -e DEEPSEEK_API_KEY="$DEEPSEEK_API_KEY" \ -v codewhale-home:/home/codewhale/.deepseek \ -v "$PWD:/workspace" \ -w /workspace \ ghcr.io/hmbown/codewhale:latest
> In mainland China, speed up the npm path with
> `--registry=https://registry.npmmirror.com`, or use the
> [Cargo mirror](#china--mirror-friendly-installation) below.
>
> Download safety: official release binaries live under
> `https://github.com/Hmbown/CodeWhale/releases`. For manual downloads,
> verify the SHA-256 manifest and avoid look-alike repositories or search-result
> mirrors. See [download safety and checksums](docs/INSTALL.md#2-download-safety-and-checksums).
Already installed? Use the updater that matches the install path:
bash codewhale update # release-binary updater npm install -g codewhale@latest # npm wrapper brew update && brew upgrade deepseek-tui cargo install codewhale-cli --locked --force cargo install codewhale-tui --locked --force ```

---
If GitHub or npm downloads are slow from mainland China, use a Cargo registry mirror:
```toml
git clone https://github.com/Hmbown/CodeWhale.git cd CodeWhale
cargo install --path crates/cli --locked # requires Rust 1.88+; provides codewhale cargo install --path crates/tui --locked # provides codewhale-tui ```
Both binaries are required. Cross-compilation and platform-specific notes: docs/INSTALL.md.
</details>
npm install -g codewhale
codewhale --version
codewhale --model auto
Prebuilt binaries are published for Linux x64, Linux ARM64 (v0.8.8+), macOS x64, macOS ARM64, and Windows x64. For other targets (musl, riscv64, FreeBSD, etc.), see Install from source or docs/INSTALL.md.
On first launch you'll be prompted for your DeepSeek API key. The key is saved to ~/.deepseek/config.toml so it works from any directory without OS credential prompts.
You can also set it ahead of time:
codewhale auth set --provider deepseek # saves to ~/.deepseek/config.toml
codewhale auth status # shows the active credential source
export DEEPSEEK_API_KEY="YOUR_KEY" # env var alternative; use ~/.zshenv for non-interactive shells
codewhale
codewhale doctor # verify setup
If codewhale doctor says the rejected key came from DEEPSEEK_API_KEY, remove the stale export from your shell startup file, open a fresh shell, or run codewhale auth set --provider deepseek. Use codewhale auth status to see the config, keyring, and env-var source state without printing the key. Saved config keys take precedence over the keyring and environment and are easier to rotate.
To rotate or remove a saved key: codewhale auth clear --provider deepseek.
codewhale # interactive TUI
codewhale "explain this function" # one-shot prompt
codewhale exec --auto --output-format stream-json "fix this bug" # agentic exec with tool auto-approvals
codewhale exec --resume <SESSION_ID> "follow up" # continue a non-interactive session
codewhale --model deepseek-v4-flash "summarize" # model override
codewhale --model auto "fix this bug" # auto-route model + thinking
codewhale --yolo # auto-approve tools
codewhale auth set --provider deepseek # save API key
codewhale doctor # check setup & connectivity
codewhale doctor --json # machine-readable diagnostics
codewhale setup --status # read-only setup status
codewhale setup --tools --plugins # scaffold tool/plugin dirs
codewhale models # list live API models
codewhale sessions # list saved sessions
codewhale resume --last # resume the most recent session in this workspace
codewhale resume <SESSION_ID> # resume a specific session by UUID
codewhale fork <SESSION_ID> # fork a saved session into a sibling path
codewhale serve --http # HTTP/SSE API server
codewhale serve --acp # ACP stdio adapter for Zed/custom agents
codewhale run pr <N> # fetch PR and pre-seed review prompt
codewhale mcp list # list configured MCP servers
codewhale mcp validate # validate MCP config/connectivity
codewhale mcp-server # run dispatcher MCP stdio server
codewhale update # check for and apply binary updates
[source.crates-io] replace-with = "tuna"
[source.tuna] registry = "sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/"
Then install both binaries (the dispatcher delegates to the TUI at runtime):
bash cargo install codewhale-cli --locked # provides codewhale cargo install codewhale-tui --locked # provides codewhale-tui codewhale --version ```
Prebuilt binaries can also be downloaded from GitHub Releases. Use DEEPSEEK_TUI_RELEASE_BASE_URL for mirrored release assets.
User config: ~/.deepseek/config.toml. Project overlay: <workspace>/.deepseek/config.toml (denied: api_key, base_url, provider, mcp_config_path). config.example.toml has every option.
Key environment variables:
| Variable | Purpose |
|---|---|
DEEPSEEK_API_KEY | API key |
DEEPSEEK_BASE_URL | API base URL |
DEEPSEEK_HTTP_HEADERS | Optional custom model request headers, e.g. X-Model-Provider-Id=your-model-provider |
DEEPSEEK_MODEL | Default model |
DEEPSEEK_STREAM_IDLE_TIMEOUT_SECS | Stream idle timeout in seconds, default 300, clamped to 1..=3600 |
DEEPSEEK_PROVIDER | codewhale (default), nvidia-nim, openai, atlascloud, wanjie-ark, openrouter, novita, fireworks, sglang, vllm, ollama |
DEEPSEEK_PROFILE | Config profile name |
DEEPSEEK_MEMORY | Set to on to enable user memory |
DEEPSEEK_ALLOW_INSECURE_HTTP=1 | Allow non-local http:// API base URLs on trusted networks |
NVIDIA_API_KEY / OPENAI_API_KEY / ATLASCLOUD_API_KEY / WANJIE_ARK_API_KEY / OPENROUTER_API_KEY / NOVITA_API_KEY / FIREWORKS_API_KEY / SGLANG_API_KEY / VLLM_API_KEY / OLLAMA_API_KEY | Provider auth |
OPENAI_BASE_URL / OPENAI_MODEL | Generic OpenAI-compatible endpoint and model ID |
ATLASCLOUD_BASE_URL / ATLASCLOUD_MODEL | AtlasCloud endpoint and model override |
WANJIE_ARK_BASE_URL / WANJIE_ARK_MODEL | Wanjie Ark endpoint and model override |
OPENROUTER_BASE_URL | OpenRouter endpoint override |
NOVITA_BASE_URL | Novita endpoint override |
FIREWORKS_BASE_URL | Fireworks endpoint override |
SGLANG_BASE_URL | Self-hosted SGLang endpoint |
SGLANG_MODEL | Self-hosted SGLang model ID |
VLLM_BASE_URL | Self-hosted vLLM endpoint |
VLLM_MODEL | Self-hosted vLLM model ID |
OLLAMA_BASE_URL | Self-hosted Ollama endpoint |
OLLAMA_MODEL | Self-hosted Ollama model tag |
NO_ANIMATIONS=1 | Force accessibility mode at startup |
SSL_CERT_FILE | Custom CA bundle for corporate proxies |
Set locale in settings.toml, use /config locale zh-Hans, or rely on LC_ALL/LANG to choose UI chrome and the fallback language sent to V4 models. The latest user message still wins for natural-language reasoning and replies, so Chinese user turns stay Chinese even on an English system locale. See docs/CONFIGURATION.md and docs/MCP.md.
---
Official DeepSeek remains the default and first-class path. Other providers are additive, with OpenRouter starting from DeepSeek Pro/Flash before broader open-model catalogs are enabled.
```bash
codewhale auth set --provider openai --api-key "YOUR_OPENAI_COMPATIBLE_API_KEY" OPENAI_BASE_URL="https://openai-compatible.example/v4" codewhale --provider openai --model glm-5
brew tap Hmbown/deepseek-tui brew install deepseek-tui
CodeWhale是一个开源的AI工作流,提供了一个Coding agent for DeepSeek models that runs in your terminal的功能,提高开发效率和AI模型的使用体验,值得关注。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,CodeWhale 是一款质量良好的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | CodeWhale |
| Topics | workflowclideepseekllmrustterminal |
| GitHub | https://github.com/Hmbown/CodeWhale |
| License | MIT |
| 语言 | Rust |
收录时间:2026-05-24 · 更新时间:2026-05-24 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端