NexForgeCLI 是一个运行在终端里的智能体助手,专为 DeepSeek V4 打造。既能作为全屏 TUI 交互式对话/编码,也能作为 one-shot 命令行工具嵌进脚本和管道。
当前版本:v0.2.0 · PyPI:
pip install nexforge-cli
📦 安装
# pipx 安装(推荐,自动管理 PATH)
pipx install nexforge-cli
# pip 安装
pip install nexforge-cli
# 开发版
pip install git+https://gitee.com/Lighthorn/nexforgecli.git
设置 API Key:
export DEEPSEEK_API_KEY="sk-..."
# 或启动后在输入框输入: /key sk-...
API Key 获取: https://platform.deepseek.com/api_keys
✨ 特性
- DeepSeek V4 深度优化 —— thinking 模式、KV Cache、streaming、采样参数、JSON Mode、tool_choice 全适配
- TUI 全屏交互 —— Textual 驱动,流式 Markdown、可折叠思考面板、工具卡片、状态栏
- 安全分级 —— safe/supervised/auto 三级权限,审批弹窗
- 会话管理 —— 自动保存/恢复、多会话切换、重命名/删除
- 计划模式 —— 只读讨论,AI 生成计划后执行
- 多行输入 —— F2 弹窗面板、F3 系统编辑器
- 一键安装 ——
pip install nexforge-cli - 性能优化 —— O(n²)→O(n) 流式渲染、DOM 查询缓存、I/O 异步化
🚀 使用
# 全屏 TUI(默认)
nexforge
# 或简写
nf
# one-shot 模式
nexforge -p "这个项目是做什么的?"
快捷键
| 快捷键 | 功能 |
|---|---|
Enter |
发送消息 |
F1 |
帮助 |
F2 |
多行输入弹窗 |
F3 |
外部编辑器 |
Ctrl+S |
会话面板 |
Ctrl+B |
计划面板 |
Ctrl+L |
清屏 |
Ctrl+Shift+C |
复制 AI 回复 |
Esc |
停止/退出 |
📁 文档
| 文档 | 内容 |
|---|---|
| 总览 | 项目介绍 |
| 安装与配置 | 安装/配置/FAQ |
| 命令与快捷键 | 全部命令和快捷键 |
| 工具参考 | AI 可调用工具说明 |
| 会话管理 | 会话保存/恢复/切换 |
| 计划模式 | 只读讨论模式 |
| 权限系统 | 三级权限 |
| 高级功能 | DeepSeek 集成/Web/技能 |
🧪 开发
git clone https://gitee.com/Lighthorn/nexforgecli.git
cd nexforgecli
pip install -e ".[dev]"
python -m pytest -q
📄 License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nexforge_cli-0.2.1.tar.gz
(78.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexforge_cli-0.2.1.tar.gz.
File metadata
- Download URL: nexforge_cli-0.2.1.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
886397db15aa68500a11e3758150a844decd59db8a99e5b04d47e4fe6cdf3b14
|
|
| MD5 |
d1c664fe5f7ad4645995174e9618b024
|
|
| BLAKE2b-256 |
dca9feacdef60411603aeee01e27bbc1a09767b9eedfd3400cff02eeaa6acbd4
|
File details
Details for the file nexforge_cli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nexforge_cli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 86.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3290c7a103c1cf1e4cb87f502e1f9ef844f87bb764d01c492489f305473f9435
|
|
| MD5 |
5d84f6ffaafb4cd87d368c6ef5333d7f
|
|
| BLAKE2b-256 |
a24a2e3e437d69d7120f28ad2d1cf3b4cf526e58d917083bbc26dde0b697a6a1
|