Deployment Guide¶
This page covers practical Bub deployment paths based on the current repository behavior.
1) Prerequisites¶
- Python 3.12+
uvinstalled- a valid model provider key (for example
OPENROUTER_API_KEY)
Bootstrap:
Minimum .env example:
2) Runtime Modes¶
Choose one command based on your operation target:
- Interactive local operator:
uv run bub chat - Channel listener service:
uv run bub gateway - One-shot task execution:
uv run bub run "summarize this repo"
3) Telegram Channel Setup¶
Telegram configuration and runtime behavior are documented in:
docs/channels/telegram.md
Quick start:
4) Docker Compose¶
Repository assets:
Dockerfiledocker-compose.ymlentrypoint.sh
Build and run:
Current entrypoint behavior:
- if
/workspace/startup.shexists, entrypoint tries to runstartup.sh - otherwise it starts
bub gateway
Default mounts in docker-compose.yml:
${BUB_WORKSPACE_PATH:-.}:/workspace${BUB_HOME:-${HOME}/.bub}:/data${BUB_AGENT_HOME:-${HOME}/.agent}:/root/.agent
5) Operational Checks¶
- Verify process:
ps aux | rg "bub (chat|gateway|run)" - Verify model config:
rg -n "BUB_MODEL|OPENROUTER_API_KEY|LLM_API_KEY" .env - Verify Telegram settings:
rg -n "BUB_TELEGRAM_TOKEN|BUB_TELEGRAM_ALLOW_USERS|BUB_TELEGRAM_ALLOW_CHATS" .env - Verify startup logs:
uv run bub gateway --enable-channel telegram
6) Safe Upgrade¶
Then restart your service command.