Web-aware Tool CLI - 支持 ReAct、Plan-and-Execute、Memory、RAG、Multi-Agent、HITL
Project description
Vox Code
一个面向开发工作流的 AI CLI,带有桌宠 GUI、工具调用、记忆、RAG 和多运行模式。
Vox Code 试图把“能聊天的模型”变成“能在本地开发环境里协作的助手”。
它既可以作为纯终端工具使用,也可以作为桌面编程搭子运行。
当前版本:2.0.1
Highlights
vox-code:终端交互式 AI CLIvox-pet:基于PySide6的桌宠 GUI- 支持
GLM、DeepSeek、Qwen API、Ollama - 支持
/model动态切换模型 - 支持
single / plan / team三种运行模式 - 内置工具调用、代码检索、Memory、RAG、HITL、安全策略和审计日志
- 配置与源码分离,支持
.env、环境变量和用户目录配置
Why Vox Code
和普通的聊天壳不一样,Vox Code 更偏向“本地开发协作工具”:
- 不只关心对话,还关心项目上下文、命令执行和代码检索
- 不把模型绑定死在单一厂商,支持云端和本地模型混用
- 同时提供 CLI 和桌宠 GUI,两套交互风格可以共存
- 适合作为个人 AI Coding Assistant 的实验场和产品原型
Quick Start
Requirements
- Python
3.11+
1. Install
CLI only:
pip install -e .
With GUI:
pip install -e ".[gui]"
2. Init Config
推荐先运行:
vox-code init
它会引导你填写:
- provider
- model
- base URL
- API key
也可以手动写 .env 或环境变量,示例见 .env.example。
3. Start CLI
vox-code
4. Start Desktop Pet
vox-pet
也支持模块方式启动:
python -m voxcli
python -m voxcli.gui
Supported Providers
当前正式支持的 provider:
| Provider | Mode | Default Model |
|---|---|---|
glm |
Cloud API | glm-5.1 |
deepseek |
Cloud API | deepseek-chat |
qwen |
Cloud API | qwen-plus |
ollama |
Local Model | qwen2.5:7b |
说明:
qwen支持QWEN_*变量名- 同时兼容阿里云
DASHSCOPE_*变量名 ollama适合本地模型和离线/低成本场景
Configuration
Config Priority
配置按下面优先级读取:
- 环境变量
.env~/.vox-code/config.json
默认配置目录:
- macOS / Linux:
~/.vox-code/config.json - Windows:
%USERPROFILE%\.vox-code\config.json
也支持自定义目录:
VOX_CODE_HOMEVOX_HOME
Example: GLM
export GLM_API_KEY="your_key"
export GLM_MODEL="glm-5.1"
export GLM_BASE_URL="https://open.bigmodel.cn/api/paas/v4/chat/completions"
vox-code
Example: DeepSeek
export DEEPSEEK_API_KEY="your_key"
export DEEPSEEK_MODEL="deepseek-chat"
export DEEPSEEK_BASE_URL="https://api.deepseek.com/chat/completions"
vox-code
Example: Qwen
export QWEN_API_KEY="your_key"
export QWEN_MODEL="qwen-plus"
export QWEN_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
vox-code
兼容 DashScope 命名:
export DASHSCOPE_API_KEY="your_key"
export DASHSCOPE_MODEL="qwen-plus"
export DASHSCOPE_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
vox-code
Example: Ollama
export OLLAMA_MODEL="qwen2.5:7b"
export OLLAMA_BASE_URL="http://localhost:11434"
vox-code
Common Commands
| Command | Description |
|---|---|
vox-code init |
初始化模型配置 |
vox-code config-path |
查看配置文件路径 |
/model <preset-id|provider[:model]> |
切换模型 |
/team |
切换运行模式 |
/style <work|pet> |
切换展示风格 |
/memory |
查看记忆状态 |
/policy |
查看安全策略 |
/audit |
查看最近审计日志 |
Desktop GUI
vox-pet 会启动桌宠界面,适合偏轻量、陪伴式的交互方式。
GUI 当前支持:
- 跟随全局 CLI 配置
- 独立 GUI 模型配置
- OpenAI Compatible 网关
- Qwen API 标签显示
如果 PySide6 不可用,GUI 无法启动,但 CLI 仍可正常使用。
如果你要把 GUI 一起装上:
pip install "vox-code[gui]"
Project Layout
voxcli/
├── agent/ # Agent、Plan-and-Execute、多 Agent 协作
├── cli/ # CLI 入口与命令解析
├── config.py # 配置读取与持久化
├── gui/ # 桌宠 GUI
├── hitl/ # 人工审批与交互控制
├── llm/ # 模型接入层
├── memory/ # 长短期记忆
├── rag/ # 索引、切块、检索、嵌入
├── runtime/ # 会话控制器
├── tool/ # 工具注册与调用
└── web/ # Web 搜索与抓取
Development
常用开发命令:
vox-code
vox-pet
vox-code config-path
如果你想快速验证配置是否生效,推荐先跑:
vox-code init
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 vox_code-2.0.5.tar.gz.
File metadata
- Download URL: vox_code-2.0.5.tar.gz
- Upload date:
- Size: 122.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7df08c57b91e7e325ab4409d3130a611115ab3d317c01c45dbbe79046e788e4
|
|
| MD5 |
a647fd066d1d1dccd267c7da8900b671
|
|
| BLAKE2b-256 |
021e231629c9a45795047d7c016aff361b3717022d8737621f6d518a6b3993b6
|
Provenance
The following attestation bundles were made for vox_code-2.0.5.tar.gz:
Publisher:
pypi-publish.yml on faliang1129/vox-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vox_code-2.0.5.tar.gz -
Subject digest:
f7df08c57b91e7e325ab4409d3130a611115ab3d317c01c45dbbe79046e788e4 - Sigstore transparency entry: 1641329743
- Sigstore integration time:
-
Permalink:
faliang1129/vox-cli@165920975db81e5fc1c04062e774762abbfcdc9a -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/faliang1129
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@165920975db81e5fc1c04062e774762abbfcdc9a -
Trigger Event:
push
-
Statement type:
File details
Details for the file vox_code-2.0.5-py3-none-any.whl.
File metadata
- Download URL: vox_code-2.0.5-py3-none-any.whl
- Upload date:
- Size: 160.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253ae3dee6b473717fd85b60b300bc9e1478ba291e50d0233e33e9844b397772
|
|
| MD5 |
8f515ba25ebfc5ce79414a7b1059f9b3
|
|
| BLAKE2b-256 |
4aa3e849a1ee7d9d7f9f1d9f52520171caf2204d0600e364b63225597f862682
|
Provenance
The following attestation bundles were made for vox_code-2.0.5-py3-none-any.whl:
Publisher:
pypi-publish.yml on faliang1129/vox-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vox_code-2.0.5-py3-none-any.whl -
Subject digest:
253ae3dee6b473717fd85b60b300bc9e1478ba291e50d0233e33e9844b397772 - Sigstore transparency entry: 1641329939
- Sigstore integration time:
-
Permalink:
faliang1129/vox-cli@165920975db81e5fc1c04062e774762abbfcdc9a -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/faliang1129
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@165920975db81e5fc1c04062e774762abbfcdc9a -
Trigger Event:
push
-
Statement type: