CLI reference
Run boba --help (or boba <command> --help) for the authoritative, built-in
help. This page summarizes the commands.
Sessions
boba
With no command, BotBandit starts the interactive terminal UI. On a machine with no config, it runs the setup wizard first.
boba [--profile <profile>]-p, --profile <profile>— profile to use for the session.
boba init
First-run setup: detects agent CLIs on your PATH (claude, codex), walks
you through a provider otherwise, and writes
~/.botbandit/botbandit.config.yaml. In background-service mode it can also
set up the web UI: run it on this machine
(a local Supabase backend the daemon runs, and the web served by the daemon), or
connect to a web app you already run — it asks
for the URL and a personal access token and checks both live.
Refuses if a config already exists, and needs an interactive terminal.
boba run <prompt...>
Run a single prompt and print the result.
boba run "Summarize the README." --profile coder-s, --system <systemPrompt>— optional system prompt.-p, --profile <profile>— profile to use.--keep— keep the session as a normal, listed session. By default it is disposable: stored, hidden from listings, and pruned after a week.
boba resume <sessionId>
Reattach to an existing session.
-p, --profile <profile>— override the profile stored in the session.
boba run-task <file>
Run a markdown document’s body as a headless session — no TUI. The scheduler uses the same path, so this is how you test a scheduled task by hand.
boba run-task ./morning-triage.md --profile coder-p, --profile <profile>— overrides the document’s profile.-m, --model <model>— model override (must belong to the profile’s provider).--json— emit raw session events as JSON lines instead of rendered text.--disposable— file the session for pruning instead of keeping it. It is hidden from listings either way.
Daemon
boba daemon
Run the local session-owning daemon in the foreground. Thin clients (TUI, web, Telegram) attach to it; it otherwise starts on demand.
| Subcommand | What |
|---|---|
boba daemon status | Whether it’s running — pid, uptime, sessions, and the web and backend it runs |
boba daemon logs | The daemon log (-n <count>, -f to follow) |
boba daemon stop | Stop gracefully (--force if sessions are running) |
boba daemon restart | Restart, starting it if not running (--force) |
Restart after changing config or extensions.
boba proc
Start a command that keeps running after the shell call that started it — a dev server, a watcher — and list or stop what was started.
boba proc start -- <command...> # detached; prints its id, process group and log path
boba proc list [--json] # what was started, and whether it still runs
boba proc stop <id> # SIGTERM to its process group, SIGKILL after 5 sThe command runs through sh -c in the current directory. Quote it as one
argument to keep &&, | or ; in it.
This host
boba backup excludes
Print what a backup of the application home should leave out, one path per
line with a # comment above each: an exclude file for restic
(--exclude-file) and borg (--exclude-from). It covers the home’s
rebuildable entries and your config’s browser profile, and its header names the
data your config keeps outside the home. See Backups.
--format tmutil—tmutil addexclusioncommands for Time Machine, for the paths that exist.
boba doctor
Read-only checks for setups that silently do something else; exits non-zero on
a warning. boba doctor <check> runs one.
| Check | What |
|---|---|
config | Which config file is in use |
home | What removed features left behind in the application home, with its size |
Providers
boba auth
Manage provider authentication.
boba auth login openai-codex # sign in via OAuth
boba auth status openai-codex # stored credential status
boba auth logout openai-codex # clear credentialsopenai-codex (a ChatGPT Plus/Pro subscription) is currently the only OAuth
provider; other providers use API keys from your config, and claude / codex
use their own CLI logins.
boba subscriptions
Show the daemon’s LLM account status — subscription windows, resets, freshness.
--refresh— poll every collector before reporting.--json— print the raw snapshot instead of the report.
boba usage
Show recorded token usage — uncached input, cache read, cache write, output — from your session logs, next to what the agent loops did: loops, steps, tool calls, active time, and tool calls and output tokens per step.
boba usage --by provider,model --since 7d
boba usage --by work-item --project my-project--by <axes>— comma-separated grouping:provider,model,profile,source,day,session(defaultprovider,model); orwork-itemalone, for what each dispatched work item cost up to its merged PR.--since <when>—<N>d,YYYY-MM-DDorall(default30d);--until <day>— last UTC day (default today).--json— the report as JSON, with exact counts.- Work-item filters:
--project <slug>,--item <path#id>,--focus <labels>,--include-unmerged,--refresh-prs,--top <n>.
Documents
boba work
List and update work items from a shell, for an agent that runs outside a BotBandit
session. Status changes get the same stamps and refusals as the agents’
document tools: an awaiting_operator item stays the operator’s.
boba work list plans/checkout.md --json
boba work set plans/checkout.md api in_review --pr https://github.com/acme/shop/pull/7
boba work question plans/checkout.md api "Which provider?" --option stripe=Stripe --option adyen=Adyenlist <path>— items, progress and manifest diagnostics;--jsonfor agents.set <path> <id> <status>—--note <text>,--pr <url>,--doc <path>; an empty value clears the field.question <path> <id> <text>— a blocking question for the operator;--option <id>=<label>(repeat),--multiple,--question-id <id>(default: the item’s next freeq<n>). The operator answers it in the web app.--root <dir>— document root (default: the documents extension’s root); refuses when that folder does not exist.
<path> is relative to the document root. The CLI writes the file directly, and
a running daemon syncs the change like any other edit.
boba sweep-merged-prs [parentPath]
Flip work items whose pull requests are all merged to done. Deterministic: it
reads each PR’s state from GitHub, with no model call.
boba sweep-merged-prs --from in_review,awaiting_operator --dry-run--from <statuses>(required) — the item statuses that qualify.--root <dir>— document root (default~/.botbandit/docs).--dry-run— report what would flip without writing.
Reads GITHUB_TOKEN or GH_TOKEN when set. Which statuses to pass, and why
in_progress is left out: Working with agents.
Web UI and database
boba db
Inspect, migrate and copy the BotBandit data in a Supabase database — supabase.com or self-hosted.
| Subcommand | What |
|---|---|
boba db status | List every migration as applied or pending |
boba db migrate | Apply the pending migrations (--pretend prints the SQL, --force skips the question) |
boba db export | Write one user’s Supabase-only rows (bookmarks, web UI state) to a JSONL file; reads only |
boba db import <file> | Insert an export’s rows for the target’s login user; rows it already has are skipped |
boba db restore <dump> | Load an existing instance’s data-only dump and Storage files into a backend without users (--db-url only), and report what was left out |
Every subcommand takes one way to reach the database:
--db-url <url>— a direct or session-pooler Postgres URL (env:NAMEreads it from the environment).--project-ref <ref>— a supabase.com project, over the Management API, with--access-token(defaultSUPABASE_ACCESS_TOKEN).--url <url>+--secret-key <key>— a self-hosted Supabase, over its own gateway. Both default toservice.web.envin your config.
A daemon that runs a local backend migrates it itself on start.
boba sessions resync [sessionIds...]
Push local session logs to the web UI’s mirror — the session row and every event it lacks — without opening the sessions. Use it after connecting a fresh backend, which otherwise shows only sessions opened since. It runs through the daemon, so the daemon must be up.
--all— every local session.--rate <rows>— ceiling on pushed event rows per second (default 100; use about 20 on supabase.com’s Free plan).
boba session-records backfill
Write a session-record row to the mirror for every local session whose row does
not cover its log yet. It prints the counts and the estimated model cost, and
writes only with --yes.
--dry-run— counts and estimate only (the default without--yes).--yes— write, making the model calls the estimate covers.--facts-only— write without a model call: facts only.-p, --profile <profile>— the profile whose model judges (default: the memory extension’s model).--limit <n>— at mostnjudged passes, roughly newest first.
Not a command
Telegram is a resident service, not a subcommand: configure
extensions.telegram.token and it runs with the daemon. See
Telegram.
Extensions can add their own commands, so boba --help on your machine may list
more than this page does.