3b567886935e8648627281224b10551fd2822a46
VoidBot English Docs
Back to Index | 中文文档 | Architecture
Overview
VoidBot is a Python agent runtime built around three ideas:
- Borrow the lightweight execution loop and persistence style from
nanobot - Borrow the provider compatibility and gateway/runtime separation from
openclaw - Keep the first version runnable while supporting CLI, gateway, SQLite persistence, multi-provider config, and per-session model switching
Current Capabilities
- Build runtime context from workspace data, system prompt, tools, and session history
- Call an OpenAI-compatible
/chat/completionsendpoint - Execute tools and feed tool results back into the model loop
- Run directly as a CLI or as a standalone gateway
- Let the gateway receive HTTP, Feishu, and QQ traffic
- Store sessions, messages, and session metadata in SQLite
- Configure multiple providers and switch models per session
Installation
uv tool install --editable .
After installation:
voidbot --help
Quick Start
- Sync the default config into
~/.voidbot/config.json
voidbot config sync
- Check or open the config file
voidbot config path
voidbot config open
-
Fill in your real API keys and provider settings
-
Start the CLI
voidbot
- Run one message
voidbot --message "Summarize this repository"
- Start the gateway
voidbot gateway
- Inspect SQLite data
voidbot data dump
voidbot data dump --session-id main
Config Shape
Key fields:
default_provider: default provider id for new sessionsproviders: list of configured model endpointsproviders[].id: stable id used by/use <id>providers[].preset: provider preset nameproviders[].api_key: provider API keyproviders[].api_base: optional compatible base URLproviders[].model: model nameproviders[].label: display labelworkspace: workspace used by tools and contextdatabase_path: SQLite database pathcli_via:local/gateway/auto
Channel fields:
channels.feishu.enabledchannels.feishu.app_idchannels.feishu.app_secretchannels.feishu.group_policychannels.qq.enabledchannels.qq.app_idchannels.qq.secret
Dynamic Model Switching
Each provider has a unique id, for example:
{
"default_provider": "1",
"providers": [
{ "id": "1", "preset": "zhipu_coding_plan", "api_key": "...", "model": "glm-4.7" },
{ "id": "2", "preset": "openai_chatgpt", "api_key": "...", "model": "gpt-4.1-mini" }
]
}
Inside a conversation:
/models
/use 2
/modelslists configured models/use <id>switches only the current session- The selected provider id is stored in SQLite session metadata
User Home
The default user-level data directory is ~/.voidbot:
~/.voidbot/config.json~/.voidbot/voidbot.db~/.voidbot/cli_history
Without --config, config lookup order is:
./config.json~/.voidbot/config.json
Notes
- The model layer currently focuses on OpenAI-compatible APIs first
- Built-in tools are
list_dir,read_file,write_file, andrun_command voidbotstarts the interactive CLI by defaultvoidbot gatewaystarts HTTP and any enabled channel listeners
Languages
Python
99.5%
Makefile
0.5%