AI Skill Hub 强烈推荐:DeepSeek-TUI Agent工作流 是一款优质的AI工具。在 GitHub 上收获超过 30.7k 颗 Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
基于DeepSeek模型的开源AI编码工作流工具,直接在终端运行。支持代码生成、调试和优化,为开发者提供高效的命令行编程助手。适合熟悉终端的开发者和DevOps工程师。
DeepSeek-TUI Agent工作流 是一款基于 Rust 开发的开源工具,专注于 编码助手、终端工具、DeepSeek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于DeepSeek模型的开源AI编码工作流工具,直接在终端运行。支持代码生成、调试和优化,为开发者提供高效的命令行编程助手。适合熟悉终端的开发者和DevOps工程师。
DeepSeek-TUI Agent工作流 是一款基于 Rust 开发的开源工具,专注于 编码助手、终端工具、DeepSeek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install deepseek-tui # 方式二:从源码编译 git clone https://github.com/Hmbown/DeepSeek-TUI cd DeepSeek-TUI cargo build --release # 二进制在 ./target/release/deepseek-tui
# 查看帮助 deepseek-tui --help # 基本运行 deepseek-tui [options] <input> # 详细使用说明请查阅文档 # https://github.com/Hmbown/DeepSeek-TUI
# deepseek-tui 配置说明 # 查看配置选项 deepseek-tui --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export DEEPSEEK_TUI_CONFIG="/path/to/config.yml"
Terminal coding agent for DeepSeek V4. It runs from the deepseek command, streams reasoning blocks, edits local workspaces with approval gates, and includes an auto mode that chooses both model and thinking level per turn.
--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 .gitdeepseek serve --http for headless agent workflowsrlm_open/rlm_eval) — persistent REPL sessions for batched analysis; run cheap deepseek-v4-flash children 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---
deepseek is distributed as Rust binaries: the dispatcher command (deepseek) and the companion TUI runtime (deepseek-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 deepseek-tui-home docker run --rm -it \ -e DEEPSEEK_API_KEY="$DEEPSEEK_API_KEY" \ -v deepseek-tui-home:/home/deepseek/.deepseek \ -v "$PWD:/workspace" \ -w /workspace \ ghcr.io/hmbown/deepseek-tui: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/DeepSeek-TUI/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 deepseek update # release-binary updater npm install -g deepseek-tui@latest # npm wrapper brew update && brew upgrade deepseek-tui cargo install deepseek-tui-cli --locked --force cargo install deepseek-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/DeepSeek-TUI.git cd DeepSeek-TUI
cargo install --path crates/cli --locked # requires Rust 1.88+; provides deepseek cargo install --path crates/tui --locked # provides deepseek-tui ```
Both binaries are required. Cross-compilation and platform-specific notes: docs/INSTALL.md.
</details>
npm install -g deepseek-tui
deepseek --version
deepseek --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:
deepseek auth set --provider deepseek # saves to ~/.deepseek/config.toml
deepseek auth status # shows the active credential source
export DEEPSEEK_API_KEY="YOUR_KEY" # env var alternative; use ~/.zshenv for non-interactive shells
deepseek
deepseek doctor # verify setup
If deepseek 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 deepseek auth set --provider deepseek. Use deepseek 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: deepseek auth clear --provider deepseek.
deepseek # interactive TUI
deepseek "explain this function" # one-shot prompt
deepseek exec --auto --output-format stream-json "fix this bug" # NDJSON backend stream
deepseek exec --resume <SESSION_ID> "follow up" # continue a non-interactive session
deepseek --model deepseek-v4-flash "summarize" # model override
deepseek --model auto "fix this bug" # auto-select model + thinking
deepseek --yolo # auto-approve tools
deepseek auth set --provider deepseek # save API key
deepseek doctor # check setup & connectivity
deepseek doctor --json # machine-readable diagnostics
deepseek setup --status # read-only setup status
deepseek setup --tools --plugins # scaffold tool/plugin dirs
deepseek models # list live API models
deepseek sessions # list saved sessions
deepseek resume --last # resume the most recent session in this workspace
deepseek resume <SESSION_ID> # resume a specific session by UUID
deepseek fork <SESSION_ID> # fork a saved session into a sibling path
deepseek serve --http # HTTP/SSE API server
deepseek serve --acp # ACP stdio adapter for Zed/custom agents
deepseek run pr <N> # fetch PR and pre-seed review prompt
deepseek mcp list # list configured MCP servers
deepseek mcp validate # validate MCP config/connectivity
deepseek mcp-server # run dispatcher MCP stdio server
deepseek 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 deepseek-tui-cli --locked # provides deepseek cargo install deepseek-tui --locked # provides deepseek-tui deepseek --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 | deepseek (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.
---
```bash
deepseek auth set --provider openai --api-key "YOUR_OPENAI_COMPATIBLE_API_KEY" OPENAI_BASE_URL="https://openai-compatible.example/v4" deepseek --provider openai --model glm-5
brew tap Hmbown/deepseek-tui brew install deepseek-tui
DeepSeek-TUI 是一个终端编码代理,用于 DeepSeek V4。它从 `deepseek` 命令运行,流式传输推理块,编辑本地工作区,并包括一个自动模式,选择每次回合的模型和思考水平。
DeepSeek-TUI 的关键功能包括自动模式、思考模式流式传输、全套工具、1M-token 上下文、文件操作、shell 执行、git、Web 搜索/浏览、应用补丁、子代理和 MCP 服务器等。
DeepSeek-TUI 需要 Rust 1.88+,不需要 Node。Cargo 是必需的,用于安装和管理依赖项。
DeepSeek-TUI 可以通过多种方式安装,包括 Cargo、Docker、npm 和源码安装。可以选择使用预构建的二进制文件或从源码编译。
DeepSeek-TUI 的使用方法包括交互式 TUI、一次性提示、NDJSON 后端流式传输和继续非交互式会话等。
DeepSeek-TUI 的配置包括用户配置文件 `~/.deepseek/config.toml` 和项目覆盖层 `<workspace>/.deepseek/config.toml`。还支持环境变量和 MCP 配置。
DeepSeek-TUI 支持 OpenAI 兼容的 API 端点,包括设置 API 密钥和端点 URL。
DeepSeek-TUI 的工作流和模块包括 npm、Homebrew 和直接下载等。
高质量开源项目,Rust实现保证性能,30.7k星证明社区认可度高。深度集成DeepSeek模型,为终端用户提供专业编码能力。维护活跃,生态完善。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,DeepSeek-TUI Agent工作流 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | DeepSeek-TUI |
| 原始描述 | 开源AI工作流:Coding agent for DeepSeek models that runs in your terminal。⭐30.7k · Rust |
| Topics | 编码助手终端工具DeepSeek工作流Rust实现 |
| GitHub | https://github.com/Hmbown/DeepSeek-TUI |
| License | MIT |
| 语言 | Rust |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。