Skip to main content

◆ NexForgeCLI

面向 DeepSeek V4 的终端智能体 · TUI + CLI 双模式

NexForgeCLI 是一个运行在终端里的智能体助手,既支持 DeepSeek/千问等多模型,也是插件宿主(plugins 目录即插即用)。既能作为全屏 TUI 交互式对话/编码,也能作为 one-shot 命令行工具嵌进脚本和管道。

当前版本:v0.2.11 · 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(内置) / 千问专用底座 / 通用 OpenAI 兼容 / Anthropic,/provider 即切
  • 插件宿主 —— plugins/ 目录即插即用(工具/UI特性/技能),无需改主程序
  • 三级知识库 —— 全局+项目+项目地图,kb_search 检索、kb_write 沉淀
  • DeepSeek 深度优化 —— thinking 模式、KV Cache、streaming、采样参数、JSON Mode、tool_choice 全适配
  • TUI 全屏交互 —— Textual 驱动,流式 Markdown、可折叠思考面板、工具卡片、状态栏
  • 安全分级 —— safe/supervised/auto 三级权限,审批弹窗
  • 会话管理 —— 自动保存/恢复、多会话切换、重命名/删除
  • 计划模式 —— 只读讨论,AI 生成计划后执行
  • 多行输入 —— F2 弹窗面板、F3 系统编辑器
  • 一键安装 —— pip install nexforge-cli

🚀 使用

# 全屏 TUI(默认)
nexforge

# 或简写
nf

# one-shot 模式
nexforge -p "这个项目是做什么的?"

快捷键

快捷键 功能
Enter 发送消息
F1 帮助
F2 多行输入弹窗
F3 外部编辑器
Ctrl+S 会话面板
Ctrl+B 计划面板
Ctrl+L 清屏
Ctrl+Shift+C 复制 AI 回复
Esc 停止/退出

📁 文档

文档 内容
01-安装与配置 安装/配置/API Key
02-界面与快捷键 全部命令和快捷键
03-模型配置 DeepSeek/千问/多模型接入
04-工具参考 AI 可调用工具说明
08-自定义配置 config.toml/models.toml 全字段
10-插件开发 插件宿主开发指南

🧪 开发

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.12.tar.gz (239.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexforge_cli-0.2.12-py3-none-any.whl (240.1 kB view details)

Uploaded Python 3

File details

Details for the file nexforge_cli-0.2.12.tar.gz.

File metadata

  • Download URL: nexforge_cli-0.2.12.tar.gz
  • Upload date:
  • Size: 239.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for nexforge_cli-0.2.12.tar.gz
Algorithm Hash digest
SHA256 c44dd05883f6cd3faf741663b2e31d4fe529f8c38a5754e8f8d03fcdd23899bb
MD5 bd134d666ace5f44d083b041b3af2d52
BLAKE2b-256 87cf4c79c12e97671933f806bea61f84102419c8bccef064ba74f8cc5f3e9652

See more details on using hashes here.

File details

Details for the file nexforge_cli-0.2.12-py3-none-any.whl.

File metadata

  • Download URL: nexforge_cli-0.2.12-py3-none-any.whl
  • Upload date:
  • Size: 240.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for nexforge_cli-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 88d49ec28a23f8a4694c64105df5ec29a12aff49899e921cf579e311517b75d3
MD5 195bf8a397f2a4fa8457af13763963fa
BLAKE2b-256 a4eb0956606f0c160780c1a483cf0a2cb49ed2c92bc97b8e3999ae411d192b81

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

This release

0.2.12 This release

2 files

0.2.11

2 files

0.2.10

1 file

0.2.9

2 files

0.2.8

1 file

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page