Configuration
Most people never write this file by hand — boba init generates it. This page
is the reference for when you outgrow it. A fully annotated example ships in the
repository at botbandit.config.example.yaml.
Where the config comes from
BotBandit looks for botbandit.config.yaml (or .yml) in:
- The path in
BOTBANDIT_CONFIG_PATH, if set — and fails if it is missing. - The current directory, so a project can carry its own.
- The application home,
~/.botbandit/— where the wizard writes it.
The first file found wins outright; they are not merged. Within a run, values resolve environment variables → the YAML file → defaults.
Set BOTBANDIT_HOME to move the application home itself. A config found in the
current directory or through BOTBANDIT_CONFIG_PATH can instead name its own
home with a top-level home: key (relative to the config file), which keeps a
project’s sessions, vault and daemon apart from your global ones.
BOTBANDIT_HOME wins over home:.
The config has three main sections: profiles (what a session is made of), providers (the models), and extensions (the tools and behaviors). Two more blocks shape how BotBandit runs: service and sessions.
Service
service:
enabled: true # a daemon owns the sessions; clients attach to itWith service.enabled: true, a background daemon owns every session and the
CLI starts it whenever it isn’t running. Without it, sessions run in-process.
The web UI, Telegram and the scheduler need the daemon. See
Daemon & sessions.
Two optional sub-blocks let the daemon run the web UI’s pieces itself.
boba init writes both when you pick Run it on this machine:
service.web— the daemon serves the web UI (enabled,port— default3000, orauto—,host— default127.0.0.1—, andenv, the web’s runtime environment). Not available on Windows.service.supabase— the daemon starts, watches and stops a local Supabase stack (enabled,cli— the Supabase CLI binary).
Sessions
sessions:
defaultProfile: coder # preselected in new-session pickers (default: `profile`)
profiles: [coder, claude] # offered in the pickers, in order (default: all)
scratchDir: ~/.botbandit/scratch
projectsDir: ~/.botbandit/projects
disposableRetentionDays: 7 # how long `boba run` sessions are keptAll keys are optional. scratchDir is where a session with no directory of its
own starts; a session opened for a vault project with no explicit directory
starts in projectsDir/<slug>.
Profiles
A profile bundles a provider with a set of extensions. BotBandit runs the profile
named by the top-level profile: key, or one you pass with --profile.
profile: default
profiles:
default:
provider: alibaba
extensions: [systemPrompt, baseTools, skills, approval, compaction, memory, documents, subAgents]
coder:
# Codex is a complete coding agent with its own prompt/tools/skills,
# so we proxy to it directly and add only what we need.
provider: codex
extensions:
- systemPrompt
- approval: { policyNotice: off } # inline config for this profile only
- memoryAn extension entry is a name, or { name: { …config } } to override that
extension’s shared config for one profile.
Providers
BotBandit is provider-neutral. Define the models you want under providers: and
reference the provider from a profile.
providers:
# Claude Code, via its Agent SDK. Auth: your `claude` login or ANTHROPIC_API_KEY.
claude:
models:
claude-sonnet-5:
claude-opus-5-5:
# Codex, via its app server. Auth: your `codex` login.
codex:
models:
gpt-6.1-sol:
gpt-6-luna:
# ChatGPT Plus/Pro subscription via OAuth — no API key to manage.
# First-time login: `boba auth login openai-codex`
openai-codex:
models:
gpt-6.1-sol:
gpt-6-astra:
# Standard OpenAI API via API key.
openai:
models:
gpt-5:
gpt-5-mini:
apiKey: env:OPENAI_API_KEY
# Any OpenAI-compatible chat-completions endpoint.
openai-compatible:
name: OpenAICompatible
baseURL: https://api.example.com/v1
apiKey: env:OPENAI_COMPATIBLE_API_KEY
models:
my-model:
# OpenRouter — model IDs in provider/model form.
openrouter:
models:
openai/gpt-5:
apiKey: env:OPENROUTER_API_KEY
# Alibaba / DashScope.
alibaba:
models:
qwen3-coder-plus:
apiKey: env:ALIBABA_API_KEY
# Ollama (local or remote).
ollama:
baseURL: http://localhost:11434
models:
"qwen3-coder:480b-cloud":Derive a custom endpoint from a base provider with baseProvider:
providers:
my-endpoint:
baseProvider: openai-compatible
name: MyEndpoint
baseURL: https://my.host/v1
apiKey: env:MY_API_KEY
model: my-modelExtensions
Extensions inject prompts, tools, and behaviors into a session. Common ones:
systemPrompt— the base instructions.baseTools— filesystem, shell, and web search.skills— discoveredSKILL.mdcapabilities (with optional allow/blocklist).approval— gate risky tool calls (see Concepts).compaction— auto-compact long transcripts.memory— cross-session recall.documents— a local markdown vault the agent can read/write.subAgents— delegate to specialized profiles (your crew).
Define defaults under extensions:; profiles can override inline.
Secrets in config values
Config values support two schemes:
plain:<value>— or a bare value, which is treated the sameenv:<ENV_VAR_NAME>— read the value from an environment variable
Resident extensions
A few extensions are not attached to a profile — they run for the life of
the daemon and read their own block under extensions:: telegram,
accountStatus (what boba subscriptions reports), keepAwake (keeps the
machine from sleeping while a session runs; mode: always for the daemon’s
whole life), selfHelp and the scheduler. Adding them to a profile’s
extensions: list does nothing.
selfHelp is on by default: it writes a short reference to ~/.botbandit/BOTBANDIT.md and
adds one sentence to every session’s prompt telling the agent to read it when you ask
about botbandit itself. Switch it off with selfHelp: { enabled: false }, or narrow it
with subAgents: false or skipProfiles: [...].
extensions:
telegram:
token: env:BOTBANDIT_TELEGRAM_TOKEN
allowedUsers: [123456789]Restart the daemon (boba daemon restart) after changing any of them.
Web UI
The supabaseBridge extension connects the daemon to a self-hosted web UI.
Unlike the residents above, it is listed on profiles: on every profile
whose sessions should mirror, including the default. It also needs
service.enabled: true. boba init writes all of it at Connect to a BotBandit web
app?, whether you pick Run it on this machine or Connect. See
Connect the agent for the hand-written form,
and Self-host for both paths.
extensions:
supabaseBridge:
agentName: my-laptop # how the web lists this machine
url: https://your-web-host # the web app's root URL
pat: env:BOTBANDIT_PAT # a personal access token minted in the web app
# syncDocuments: false # two-way vault sync is on by default
# documentsRoot: ~/.botbandit/docs