2026-03-13 16:31:08 +08:00
2026-03-13 15:52:40 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 12:33:54 +08:00
2026-03-13 15:52:40 +08:00
2026-03-13 14:55:41 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 16:31:08 +08:00
2026-03-13 14:55:41 +08:00

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/completions endpoint
  • 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

  1. Sync the default config into ~/.voidbot/config.json
voidbot config sync
  1. Check or open the config file
voidbot config path
voidbot config open
  1. Fill in your real API keys and provider settings

  2. Start the CLI

voidbot
  1. Run one message
voidbot --message "Summarize this repository"
  1. Start the gateway
voidbot gateway
  1. Inspect SQLite data
voidbot data dump
voidbot data dump --session-id main

Config Shape

Key fields:

  • default_provider: default provider id for new sessions
  • providers: list of configured model endpoints
  • providers[].id: stable id used by /use <id>
  • providers[].preset: provider preset name
  • providers[].api_key: provider API key
  • providers[].api_base: optional compatible base URL
  • providers[].model: model name
  • providers[].label: display label
  • workspace: workspace used by tools and context
  • database_path: SQLite database path
  • cli_via: local / gateway / auto

Channel fields:

  • channels.feishu.enabled
  • channels.feishu.app_id
  • channels.feishu.app_secret
  • channels.feishu.group_policy
  • channels.qq.enabled
  • channels.qq.app_id
  • channels.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
  • /models lists 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:

  1. ./config.json
  2. ~/.voidbot/config.json

Notes

  • The model layer currently focuses on OpenAI-compatible APIs first
  • Built-in tools are list_dir, read_file, write_file, and run_command
  • voidbot starts the interactive CLI by default
  • voidbot gateway starts HTTP and any enabled channel listeners
S
Description
No description provided
Readme
223 KiB
Languages
Python 99.5%
Makefile 0.5%