能力标签
DeepSeek-TUI Agent工作流
🛠
AI工具

DeepSeek-TUI Agent工作流

基于 Rust · 开源 AI 工具,GitHub 社区精选
英文名:DeepSeek-TUI
⭐ 30.7k Stars 🍴 2.6k Forks 💻 Rust 📄 MIT 🏷 AI 8.5分
8.5AI 综合评分
编码助手终端工具DeepSeek工作流Rust实现
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:DeepSeek-TUI Agent工作流 是一款优质的AI工具。在 GitHub 上收获超过 30.7k 颗 Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。

📚 深度解析
DeepSeek-TUI Agent工作流 是一款基于 Rust 的开源工具,在 GitHub 上收获 31k+ Star,是编码助手、终端工具、DeepSeek、工作流领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
DeepSeek-TUI Agent工作流 依赖 Rust 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Rust 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 DeepSeek-TUI Agent工作流 的版本更新,及时通知重要功能变化。
📋 工具概览

基于DeepSeek模型的开源AI编码工作流工具,直接在终端运行。支持代码生成、调试和优化,为开发者提供高效的命令行编程助手。适合熟悉终端的开发者和DevOps工程师。

DeepSeek-TUI Agent工作流 是一款基于 Rust 开发的开源工具,专注于 编码助手、终端工具、DeepSeek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 30.7k
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
活跃维护,更新频繁
开源协议
MIT
AI 综合评分
8.5 分
工具类型
AI工具
Forks
2.6k
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

基于DeepSeek模型的开源AI编码工作流工具,直接在终端运行。支持代码生成、调试和优化,为开发者提供高效的命令行编程助手。适合熟悉终端的开发者和DevOps工程师。

DeepSeek-TUI Agent工作流 是一款基于 Rust 开发的开源工具,专注于 编码助手、终端工具、DeepSeek 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:cargo install(推荐)
cargo install deepseek-tui

# 方式二:从源码编译
git clone https://github.com/Hmbown/DeepSeek-TUI
cd DeepSeek-TUI
cargo build --release
# 二进制在 ./target/release/deepseek-tui
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
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"
📑 README 深度解析 真实文档 完整度 82/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

DeepSeek TUI

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.

简体中文 README 日本語 README

2024 edition; older toolchains fail with "feature `edition2024` is

Key Features

  • Auto mode--model auto / /model auto chooses both the model and thinking level for each turn
  • Thinking-mode streaming — see DeepSeek reasoning blocks as the model works
  • Full tool suite — file ops, shell execution, git, web search/browse, apply-patch, sub-agents, MCP servers
  • 1M-token context — context tracking, manual or configured compaction, and prefix-cache telemetry
  • Prefix-cache stability tracking — an optional /statusline footer chip surfaces how stable the cached prefix has been across recent turns so cost-busting edits are visible before they land
  • Three modes — Plan (read-only explore), Agent (interactive with approval), YOLO (auto-approved)
  • Reasoning-effort tiers — cycle through off → high → max with Shift + Tab
  • Session save/resume/fork — checkpoint long-running sessions and fork saved conversations into sibling paths with parent lineage shown in the picker
  • Workspace rollback — side-git pre/post-turn snapshots with /restore and revert_turn, without touching your repo's .git
  • OS-level sandbox — Seatbelt on macOS, Landlock on Linux, Job Objects on Windows; shell commands run with workspace-scoped filesystem access only
  • Durable task queue — background tasks can survive restarts
  • HTTP/SSE runtime APIdeepseek serve --http for headless agent workflows
  • MCP protocol — connect to Model Context Protocol servers for extended tooling; please see docs/MCP.md
  • Native RLM (rlm_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_batch
  • LSP diagnostics — inline error/warning surfacing after every edit via rust-analyzer, pyright, typescript-language-server, gopls, clangd
  • User memory — optional persistent note file injected into the system prompt for cross-session preferences
  • Localized UIen, ja, zh-Hans, pt-BR with auto-detection
  • Live cost tracking — per-turn and session-level token usage and cost estimates; cache hit/miss breakdown; CNY display when the session locale is zh-Hans
  • Skills system — composable, installable instruction packs from GitHub; ships with a bundled starter set (skill-creator, mcp-builder, plugin-creator, v4-best-practices, documents, presentations, spreadsheets, pdf, feishu, skill-installer, delegate) so /skills is useful from first launch
  • Terminal-native notifications — OSC 9 (iTerm2/WezTerm/Ghostty), OSC 99 (Kitty), OSC 777 (Ghostty), plus desktop notification fallback
  • Built-in theme picker — Catppuccin, Tokyo Night, Dracula, Gruvbox alongside the original light/dark palettes; switch live with /theme

---

2. Cargo — no Node needed. Requires Rust 1.88+ (the crates use the

Install

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

5. Docker — prebuilt release image.

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 ```

CI npm crates.io DeepWiki project index

DeepSeek TUI screenshot

---

China / Mirror-friendly Installation

If GitHub or npm downloads are slow from mainland China, use a Cargo registry mirror:

```toml

Linux build deps (Debian/Ubuntu/RHEL):

sudo apt-get install -y build-essential pkg-config libdbus-1-dev

sudo dnf install -y gcc make pkgconf-pkg-config dbus-devel

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>

Quickstart

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.

Usage

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

~/.cargo/config.toml

[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.

Configuration

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:

VariablePurpose
DEEPSEEK_API_KEYAPI key
DEEPSEEK_BASE_URLAPI base URL
DEEPSEEK_HTTP_HEADERSOptional custom model request headers, e.g. X-Model-Provider-Id=your-model-provider
DEEPSEEK_MODELDefault model
DEEPSEEK_STREAM_IDLE_TIMEOUT_SECSStream idle timeout in seconds, default 300, clamped to 1..=3600
DEEPSEEK_PROVIDERdeepseek (default), nvidia-nim, openai, atlascloud, wanjie-ark, openrouter, novita, fireworks, sglang, vllm, ollama
DEEPSEEK_PROFILEConfig profile name
DEEPSEEK_MEMORYSet to on to enable user memory
DEEPSEEK_ALLOW_INSECURE_HTTP=1Allow 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_KEYProvider auth
OPENAI_BASE_URL / OPENAI_MODELGeneric OpenAI-compatible endpoint and model ID
ATLASCLOUD_BASE_URL / ATLASCLOUD_MODELAtlasCloud endpoint and model override
WANJIE_ARK_BASE_URL / WANJIE_ARK_MODELWanjie Ark endpoint and model override
OPENROUTER_BASE_URLOpenRouter endpoint override
NOVITA_BASE_URLNovita endpoint override
FIREWORKS_BASE_URLFireworks endpoint override
SGLANG_BASE_URLSelf-hosted SGLang endpoint
SGLANG_MODELSelf-hosted SGLang model ID
VLLM_BASE_URLSelf-hosted vLLM endpoint
VLLM_MODELSelf-hosted vLLM model ID
OLLAMA_BASE_URLSelf-hosted Ollama endpoint
OLLAMA_MODELSelf-hosted Ollama model tag
NO_ANIMATIONS=1Force accessibility mode at startup
SSL_CERT_FILECustom 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.

---

Other API Providers

```bash

Generic OpenAI-compatible endpoint

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

1. npm — easiest if you already use Node. The package downloads the

3. Homebrew — macOS package manager.

brew tap Hmbown/deepseek-tui brew install deepseek-tui

4. Direct download — no package manager or toolchain.

description: Use this when DeepSeek should follow my custom workflow.

🇨🇳 中文文档镜像 AI 翻译 2026-05-23
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

DeepSeek-TUI 是一个终端编码代理,用于 DeepSeek V4。它从 `deepseek` 命令运行,流式传输推理块,编辑本地工作区,并包括一个自动模式,选择每次回合的模型和思考水平。

⚡ 功能介绍

DeepSeek-TUI 的关键功能包括自动模式、思考模式流式传输、全套工具、1M-token 上下文、文件操作、shell 执行、git、Web 搜索/浏览、应用补丁、子代理和 MCP 服务器等。

📋 环境依赖

DeepSeek-TUI 需要 Rust 1.88+,不需要 Node。Cargo 是必需的,用于安装和管理依赖项。

🛠 安装步骤(Docker/pip/源码)

DeepSeek-TUI 可以通过多种方式安装,包括 Cargo、Docker、npm 和源码安装。可以选择使用预构建的二进制文件或从源码编译。

🚀 使用教程

DeepSeek-TUI 的使用方法包括交互式 TUI、一次性提示、NDJSON 后端流式传输和继续非交互式会话等。

⚙️ 配置说明(含 MCP / env)

DeepSeek-TUI 的配置包括用户配置文件 `~/.deepseek/config.toml` 和项目覆盖层 `<workspace>/.deepseek/config.toml`。还支持环境变量和 MCP 配置。

🔌 API 说明

DeepSeek-TUI 支持 OpenAI 兼容的 API 端点,包括设置 API 密钥和端点 URL。

🔄 工作流/模块

DeepSeek-TUI 的工作流和模块包括 npm、Homebrew 和直接下载等。

🎯 aiskill88 AI 点评 A 级 2026-05-20

高质量开源项目,Rust实现保证性能,30.7k星证明社区认可度高。深度集成DeepSeek模型,为终端用户提供专业编码能力。维护活跃,生态完善。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • Docker:DeepSeek-TUI 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
DeepSeek-TUI 中文教程DeepSeek-TUI 安装报错怎么办DeepSeek-TUI MCP 配置DeepSeek-TUI Docker 部署DeepSeek-TUI Agent 工作流DeepSeek-TUI 与同类工具对比DeepSeek-TUI 最佳实践DeepSeek-TUI 适合谁用
⚡ 核心功能
👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
👥 适合人群
AI 技术爱好者研究人员和学生开发者和工程师技术创业者
🎯 使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
⚖️ 优点与不足
✅ 优点
  • +GitHub 30.7k Star,社区高度认可
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐
📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
支持DeepSeek的主流推理和代码模型,具体版本见文档
💡 AI Skill Hub 点评

总体来看,DeepSeek-TUI Agent工作流 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

📚 深入学习 DeepSeek-TUI Agent工作流
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 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
🔗 原始来源
🐙 GitHub 仓库  https://github.com/Hmbown/DeepSeek-TUI 🌐 官方网站  https://deepseek-tui.com/

收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。