Settings File
Bossanova reads global settings from a JSON file on disk:
- macOS:
~/Library/Application Support/bossanova/settings.json - Linux:
$XDG_CONFIG_HOME/bossanova/settings.json(defaults to~/.config/bossanova/settings.json) - Profile override: set
BOSS_SETTINGS_PATHto an absolute path to select a specific settings file.
The file is optional. When it's absent, defaults apply. Both boss and
bossd read the same file. Use BOSS_SETTINGS_PATH when you want a dev
build and an installed build to run in parallel without sharing local state.
Press s from the home screen to open the Settings view. It hosts the global
toggles (such as the Skip permissions checkbox) and is also the gateway to the
Repos (r), Cron (c), and Trash (t) screens.
Example
{
"worktree_base_dir": "/Users/you/work/worktrees",
"default_agent": "claude",
"poll_interval_seconds": 120,
"plugins": [
{
"name": "claude",
"path": "/opt/homebrew/libexec/plugins/bossd-plugin-claude",
"enabled": true,
"config": {
"dangerously_skip_permissions": "true"
}
},
{
"name": "codex",
"path": "/opt/homebrew/libexec/plugins/bossd-plugin-codex",
"enabled": true
},
{
"name": "repair",
"path": "/opt/homebrew/libexec/plugins/bossd-plugin-repair",
"enabled": true
}
],
"repair": {
"skills": { "repair": "boss-repair" },
"cooldown_minutes": 1,
"poll_interval_seconds": 5,
"sweep_interval_minutes": 1
}
}
Cloud-sync settings (orchestrator URL, WorkOS client ID, daemon ID) are configured via environment variables. See Environment overrides below.
Top-level fields
| Field | Type | Default | Description |
|---|---|---|---|
worktree_base_dir | string | ~/.bossanova/worktrees | Directory where per-session git worktrees are created. Auto-created on load. |
app_data_dir | string | platform default | Absolute directory for local daemon data: bossd.db, bossd.lock, profile plugin discovery, and default socket placement. |
socket_path | string | derived from data directory | Absolute path to the local bossd Unix-domain socket. If unset and app_data_dir is set, defaults to app_data_dir/bossd.sock. |
default_agent | string | claude | Name of the default agent plugin used for new sessions. |
skills_declined | bool | false | Set after the user declines the one-time skills install prompt so it's not shown again. |
daemon_name | string | machine hostname | Display name this daemon advertises in the web daemon picker. Set with boss settings --daemon-name; blank resets to the machine hostname. Restart the daemon to apply. |
poll_interval_seconds | int | 120 | How often the Terminal UI (TUI) polls for PR display status, in seconds. |
plugins | array | auto-discovered | Plugin binaries to load (see below). If unset, bossd auto-discovers bossd-plugin-* binaries next to its own. |
repair | object | defaults below | Repair plugin configuration. |
tmux_delivery | object | defaults below | Composer-readiness deadlines for message delivery into an agent pane. See tmux_delivery fields. |
notes | object | defaults below | Note retention: how long notes are kept and how many each repo holds. See notes fields. |
proof_upload | object | absent | Destination of the built-in verify evidence uploader. See proof_upload fields. |
daemon_path_extra | array | [] | Directories prepended to the PATH written into the generated bossd service file. See Daemon PATH. |
subagent_dispatch_grant | string | always | Which chats receive the bounded subagent-dispatch grant in their system prompt. See subagent_dispatch_grant below. |
Daemon PATH
A service manager never sources your interactive shell config, so the daemon
does not inherit the PATH your terminal has. A toolchain installed by nodenv,
nvm, asdf or volta (or a claude from the native installer in
~/.local/bin) is therefore invisible to bossd unless its directory is on
the service PATH.
The generated service file sets this PATH by default:
~/.nodenv/shims:~/.local/bin:/usr/local/bin:/usr/bin:/bin:/opt/homebrew/bin
on macOS (the LaunchAgent plist), and the same two shim directories prepended
to the installing shell's PATH on Linux (the systemd unit). The bossd service
and the MCP service render this from the same helper, so they can never
disagree about where node lives.
At startup, bossd also asks the captured login shell (login_shell) where
node is and prepends that directory to its own PATH when the service PATH
lacks it, so cron gates, setup scripts, plugins and shims inherit your shell's
node. boss daemon doctor shows the probe result under the service-PATH
lines, and daemon_path_extra remains the override when the probe cannot
answer.
daemon_path_extra
Set daemon_path_extra to put your own directories at the front of that
PATH:
{
"daemon_path_extra": ["~/.asdf/shims", "/opt/custom/bin"]
}
Entries must be absolute or ~/-rooted. Anything else is dropped when the
service file is rendered: a relative path, an empty entry, an entry containing a
: (the PATH separator itself), a \, or one containing a newline or an
XML-special character (<, >, &, "), which would otherwise corrupt the
generated plist or inject a directive into the systemd unit. Duplicates are
removed, keeping the first occurrence, so listing a baseline directory moves it
to the front rather than repeating it.
A directory containing a space is fine; the systemd unit quotes its PATH
value, and the plist stores it as XML text.
The key is prepend-only by design; there is deliberately no
full-replacement override. The baseline entries can never be removed, so a typo
here costs you one tool rather than a daemon that cannot run git.
Settings are read when the service file is rendered, so an edit is inert until
you run boss daemon restart.
boss daemon doctor reports both PATHs and tells them apart: the one in the
installed service file, which is what the running daemon actually has, and
the one the next restart will write. When they differ it says so and points
at the restart. It resolves node and claude under the installed PATH, not
your shell's, which is exactly the check that passes while the daemon is broken.
plugins[] entries
| Field | Type | Description |
|---|---|---|
name | string | Plugin name (matches the suffix after bossd-plugin-). |
path | string | Absolute path to the plugin binary. |
enabled | bool | When false, the plugin is loaded-but-inert. |
version | string | Optional version string, informational. |
config | object | Plugin-specific string key/value pairs. |
experimental_plugins
Some plugins ship installed but stay off until you opt in. They are alpha quality, so bossanova will not load one on your daemon unless you name it here.
{
"experimental_plugins": ["opencode"]
}
Entries are plugin names without the bossd-plugin- prefix, the same spelling
plugins[].name uses. Today the only experimental plugin is opencode; naming
a plugin that is not experimental (or not installed) does nothing.
plugins[].enabled is ignored for an experimental pluginFor a plugin in this list, experimental_plugins is the only enable switch:
listed means the plugin loads, absent means it does not, regardless of what its
plugins[].enabled field says. So a {"name": "opencode", "enabled": true}
entry left over from an earlier version keeps showing true in your
settings.json while the daemon leaves the plugin unloaded; remove the plugin
from experimental_plugins to turn it off, and add it to turn it on. Toggling
enabled in the TUI or with boss settings has no effect for these plugins.
If default_agent names an experimental plugin you have not opted into, the
daemon clears it on startup rather than failing every session that does not name
an agent explicitly.
claude plugin config keys
| Key | Type | Default | Description |
|---|---|---|---|
dangerously_skip_permissions | string "true" / "false" | "false" (omit for default) | Pass --dangerously-skip-permissions to the Claude Code CLI invoked by the claude plugin. Off by default. Toggle via boss settings --skip-permissions / --no-skip-permissions, or in the boss TUI settings view. |
antigravity plugin config keys
| Key | Type | Default | Description |
|---|---|---|---|
dangerously_skip_permissions | string "true" / "false" | "false" | Pass --dangerously-skip-permissions to the Antigravity CLI (agy). |
mode | string | "" | Pass --mode to agy: accept-edits, auto or plan. Empty passes no flag. |
model | string | "" | Fallback --model for runs without their own, such as gemini-4-neon-medium. Empty uses the agy default. |
repair fields
| Field | Type | Default | Description |
|---|---|---|---|
skills.repair | string | boss-repair | Skill invoked to attempt repair. |
cooldown_minutes | int | 1 | Minimum gap between repair attempts on the same session. |
poll_interval_seconds | int | 5 | Poll interval for repair status checks. |
sweep_interval_minutes | int | 1 | How often the plugin sweeps for sessions needing repair. |
max_concurrent_repairs | int | 3 | Maximum number of concurrent automated repairs per host. Values of zero or below use the default (3). Excess repairable sessions wait in a queue and start in rank order as running repairs finish; the live queue TTL scales dynamically with sweep_interval_minutes (max(5m, 3 × sweep_interval_minutes)). |
notes fields
bossd prunes notes so a repo that records them by default never accumulates
them without bound. Pruning runs per repo, each time a new note is written in
that repo: notes older than the retention window are deleted first, then the
repo is trimmed to its newest max_per_repo notes, oldest removed first. The
note just written is never pruned, and a pruning failure is logged as a warning
without failing the write.
| Field | Type | Default | Description |
|---|---|---|---|
retention_days | int | 180 | Delete a repo's notes older than this many days. 0 keeps notes forever. |
max_per_repo | int | 10000 | Keep at most this many notes per repo. 0 means no cap. |
A negative value is ignored and the default applies. bossd reads these values at
startup, so restart the daemon (boss daemon restart) after changing them. A
repo that receives no new notes keeps its existing ones until its next write.
proof_upload fields
The built-in uploader publishes verify evidence for repos that set
publishConfig.proof in .boss-skills.json and have no proof-publish hook.
It writes with the operator's upload token from the OS keyring
(boss proof set-secret), and this block names where that token writes. The
token is scoped to one bucket, so one daemon has one destination. A repo that
hosts its own review pages uses a proof-publish hook instead, with its own
credentials.
A repo that sets publishConfig.proof uses this bucket first, and the daemon's
hosted review page host when this block is incomplete.
| Field | Type | Default | Description |
|---|---|---|---|
account_id | string | — | Cloudflare account that owns the bucket. Not a secret. |
bucket | string | — | R2 bucket objects are written to. |
public_base_url | string | — | Absolute https:// origin that serves the bucket, with no credentials, query or fragment. |
pages_enabled | bool | true | Allow index.html review pages. Set false until the host in front of the bucket is protected for HTML pages, because pages quote the PR's code. |
account_id, bucket and public_base_url are required. When any is missing,
or the base URL is not absolute https://, the uploader reports "not
configured", uploads nothing and the evidence stays local; the daemon logs only
the names of the missing keys. bossd reads the block on every upload, so a
change applies to the next publish without a restart.
Objects are keyed <owner>/<repo>/<pr>/<head sha>/<name>, with the slug taken
from the session repo's origin remote, and served at
<public_base_url>/<key>. Republishing the same head overwrites the same keys.
tmux_delivery fields
Before bossanova types into an agent's pane it waits for the composer prompt to appear. Delivery fails rather than typing into a pane that isn't ready, because keystrokes sent early are swallowed or land in the wrong widget.
There are two deadlines because the two delivery paths have different ceilings, and each is configured independently; setting one never moves the other.
| Field | Type | Default | Description |
|---|---|---|---|
session_start_ready_deadline_seconds | int | 45 | How long each attempt of a session start or resume waits for the composer prompt. This covers tmux spawn, interactive login-shell init, agent exec, node boot, and first paint. The start path makes up to two attempts, and each one reserves a further two seconds for an interstitial-dialog check, so the worst-case wall clock is a little over twice the value you write. Not clamped — raise it as needed. |
send_ready_deadline_seconds | int | 5 | How long a send into an already-running agent waits for the composer prompt. Clamped to 20 seconds, whatever you write. |
Values of zero or below are ignored and the default applies; a settings file written before this block existed keeps both defaults, so there is nothing to migrate.
Raise session_start_ready_deadline_seconds when sessions fail to start on a
host with a slow shell profile; measured login-shell init alone has ranged from
under a second to twelve seconds on affected machines.
It is a per-attempt budget, not a total. The start path retries the readiness wait once before giving up, so a start that is genuinely going to fail spends roughly twice this value, about 94 seconds at the default of 45 (each attempt also reserves two seconds for an interstitial-dialog check on its way out). Size the knob against the boot you want to survive, then expect a little over twice that before a doomed start reports failure. The send deadline is not retried: one attempt, always.
An attempt can also be shortened, not by this setting, but by whatever context the start is running under. If the caller has less time left than a full attempt needs, the wait is trimmed to fit rather than skipped, and the timeout message says so: shortened from 45s to stay inside the caller's context. Read that clause as pointing somewhere other than this file: the number you configured was not the constraint, and something above the start ran out first.
Switching a chat's account used to be the commonest concrete source, and is no longer one. A switch respawns the pane under the new account and then waits for its composer, and bossanova gives that whole operation a budget of its own, so a failing switch cannot run unbounded after the request that asked for it. That budget is derived from this setting rather than fixed: it is whatever you configure here plus a further 45 seconds, covering the interstitial-dialog check an attempt reserves, the work the switch does before the respawn even starts (mid-turn check, pane kill, transcript probe, account binding write), and a margin on top.
So the longest a doomed switch waits before reporting failure is
session_start_ready_deadline_seconds + 45 seconds: 90 seconds at the
45-second default, and 345 seconds if you raise the setting to 300. Raising this
value does help on the switch route: the budget rises with it instead of
clamping the wait below the number you wrote. The cost is proportional, and it
is the deliberate trade: the more room you buy a slow host, the longer a switch
that is going to fail takes to say so.
The repair-driven start path has the same derived protection around its
plugin-to-daemon StartChatRun RPC. Its ceiling is
session_start_ready_deadline_seconds + max(session_start_ready_deadline_seconds, 4 seconds):
90 seconds at the 45-second default, and 600 seconds if you raise the setting to 300. Raising this value therefore also lengthens how long an automated repair
attempt may wait on an unresponsive daemon. That is intentional; a fixed cap
would put the silent readiness clamp back on the slow hosts this setting exists
to support.
That number is the daemon's budget. The result path has a separate reporting
bound: the same 120-second ceiling applies to a switch sent through the cloud
relay and to the local path's daemon socket write timeout plus the TUI's slow-RPC
deadline. The crossover readiness (config.SwitchBudgetCrossoverReadiness(), 75
seconds at today's reserves) is a nominal, budget-only comparison of
session_start_ready_deadline_seconds + 45 seconds against that 120-second
result ceiling. It excludes the bosso work that happens before the daemon switch
budget starts: cloud/account access, ownership and chat lookup, command
dispatch, and transport scheduling. Values near 75 seconds are therefore not a
hard user-visible flip point.
When the bosso relay result ceiling does stop waiting first, the switch may
still be running, the request did not cancel or tear it down, and the timeout
text says the caller stopped waiting without receiving a daemon verdict. Re-check
the chat's account to see where it landed. The relayed switch path is the remote
client (boss --remote) and gateway proxy path, not a web-UI-only button. The
local TUI path is bounded by the same 120-second value, but it still uses the
generic slow-RPC wording from the local client deadline interceptor when that
caller-side ceiling wins. A /boss switch typed into a chat still runs inside
the ordinary 30-second chat-message ceiling, which it is already past at the
default; that route deliberately keeps the generic chat-message timeout wording
because bosso cannot cheaply single out switches there without moving the command
parser.
The budget still funds one full attempt and declines a second once the first has
used most of it, so above roughly 33 configured seconds a switch reports
after 1 of 2 attempts where an ordinary session start would have tried twice.
That is the switch's budget doing its job, not this setting being too small.
Below that threshold both attempts are still funded, which costs a doomed switch
a few extra seconds and nothing else.
The other sources of a shortened attempt are unchanged: a request deadline, or a cancelled parent.
The send deadline is clamped because that delivery runs inside a request the cloud relay bounds at 30 seconds. A readiness wait that outlives the relay returns an ambiguous result the caller must not retry: a retry would type the message into the composer a second time. The 20-second ceiling leaves the relay ten seconds of headroom.
One case is served by the shorter deadline even though it is a cold start: sending to a chat that is asleep, with wake enabled. The wake only launches (or resumes) the agent; it delivers nothing and never waits for the composer, so the session-start deadline is not spent there. Your message is typed in afterwards, by the ordinary send path, which is therefore waiting on a pane that is still booting while holding only the send deadline. If that combination fails for you, wake the chat first and send once it is live: the wake itself does not time out on the composer, so the pane has as long as it needs, and the separate send then meets a pane that is already up.
Both deadlines are read once, when the daemon builds its tmux client, so an edit
here is inert until you run boss daemon restart.
subagent_dispatch_grant
Most boss skills mandate subagent dispatch as part of their protocol:
boss-review runs its finders and verifiers as subagents, boss-plan
dispatches its drafting and reviewer extensions, boss-repair and boss-epic
fan out the same way. Coding-agent harnesses ship a standing system-prompt line
that tells the agent not to dispatch subagents unless the user asked for it.
That restriction comes from the harness, not from bossanova, and it has no
off switch, so without a counter-instruction those skills quietly collapse
their dispatched work into a single context and can still report a clean run.
Bossanova therefore appends a bounded dispatch grant to the system prompt it builds for each chat. The grant authorises only the dispatches the running skill's protocol already mandates, requires every dispatch to be awaited rather than backgrounded, and treats a skill's documented inline fallback as a clean result. It is not a general widening of tool access.
subagent_dispatch_grant selects which chats receive it:
| Value | Effect |
|---|---|
always | Default. Unattended sessions and attended chats both receive the grant. |
unattended | Opt out for attended chats. Only unattended sessions (cron, boss-epic children, detached runs) get it. |
{
"subagent_dispatch_grant": "unattended"
}
The key is absent from a fresh settings.json and behaves as always. An
unrecognised value also resolves to always; a typo must not withdraw the
shipped default, and it never fails daemon startup. Because that fallback would
otherwise discard an intended opt-out in silence, bossd logs a warning naming
the offending value each time it spawns or wakes a chat; check bossd's log
if an opt-out does not seem to be taking effect.
Edit this key in settings.json directly; it is not yet exposed in the boss
settings form or the update_settings API, so the TUI neither shows nor
overwrites it. Unrelated settings changes made through the TUI preserve it.
Unattended sessions receive their grant in every configuration; unattended is
an opt-out for attended chats only, and cannot be used to withdraw authority
from an autonomous run.
The setting is read when a chat is spawned, so a change takes effect for chats started afterwards. Chats already running keep the grant they were launched with; start a new chat (or wake a sleeping one, which re-spawns it) to pick up the change.
Development profile
To run a development build beside the Homebrew build, keep a profile in the
repo-local .config/ directory:
mkdir -p .config/data
Put this settings content in .config/settings.json, replacing
/path/to/bossanova with your repo path:
{
"app_data_dir": "/path/to/bossanova/.config/data",
"socket_path": "/path/to/bossanova/.config/bossd.sock",
"default_agent": "claude"
}
export BOSS_SETTINGS_PATH="/path/to/bossanova/.config/settings.json"
With that environment, the development boss CLI reads .config/settings.json,
starts or dials the daemon at .config/bossd.sock, and stores daemon data in
.config/data. The Homebrew install can continue using the standard macOS
Application Support paths.
If BOSS_SOCKET is set in your shell, it overrides the socket selected by
socket_path. Unset BOSS_SOCKET when using profile files unless you are
intentionally debugging a single socket path.
Child process environment
child_env_passthrough is an array of environment variable names;
it defaults to []. Plugins and headless agents inherit only the approved
baseline: normal shell/locale/proxy/certificate variables, GitHub credentials,
Boss variables, and provider variables for their agent plugin.
Unknown variables from the daemon environment are omitted.
Use this setting when a custom agent setup needs additional daemon environment
variables. Entries grant exact names or a prefix ending in _*:
{
"child_env_passthrough": ["CUSTOM_API_KEY", "MY_PROVIDER_*"]
}
Edit the field in settings.json and restart the daemon. The setting carries
names, not secret values; set the values in the environment that starts the
daemon. Login-shell startup files still control additional exports after the daemon
applies the baseline.
Environment overrides
Cloud-sync settings (orchestrator URL, WorkOS client ID, daemon ID)
are configured exclusively via environment variables. Other settings
that have a settings.json field can also be overridden by env var.
Precedence (highest wins): environment variable → settings.json →
hardcoded default.
boss (TUI / CLI)
| Variable | Notes |
|---|---|
BOSS_WORKOS_CLIENT_ID | WorkOS client used by boss login; override when pointing at a staging orchestrator |
BOSS_CLOUD_URL | overrides the authenticated cloud orchestrator URL used by boss login and remote CLI calls; the stored Bossanova Cloud login is sent only to the Bossanova Cloud production (https://orchestrator.bossanova.dev) and staging (https://orchestrator-staging.bossanova.dev) orchestrators |
BOSS_CLOUD_TOKEN | explicit bearer credential for any other orchestrator URL (CLI mirror of BOSSD_USER_JWT; bypasses the keychain) |
BOSS_SKIP_SKILLS | any non-empty value suppresses the first-run skill-install prompt (persistent equivalent: skills_declined in settings.json) |
BOSS_SETTINGS_PATH | absolute path to the settings file; selects a profile before boss chooses the daemon socket or reads other settings |
BOSS_SOCKET | explicit socket override for tests and one-off debugging; for normal profiles prefer BOSS_SETTINGS_PATH plus socket_path |
BOSS_DAEMON_SKIP_LAUNCHCTL | any non-empty value skips launchctl calls in boss daemon install/uninstall/status |
BOSS_NO_AUTO_DAEMON_INSTALL | any non-empty value stops the first local boss launch on macOS from registering the bossd LaunchAgent, and stops the Mac app from starting its bundled bossd |
BOSS_REPORT_URL | overrides the bug-report submission URL; reports to any origin other than Bossanova Cloud production or staging are sent anonymously (no Authorization header) |
BOSS_AUTH_E2E_EMAIL | e2e tests only: pre-seeds an authenticated identity so login flows can be exercised in CI; built only under the e2e build tag |
BOSS_AUTH_E2E_NEEDS_RELOGIN | e2e tests only: flags the seeded identity as retained-but-needing-boss login; unset, empty, or an explicit falsey value (0/false/no/off) means no flag, refresh_token_rejected selects that reason and any other non-empty value selects refresh_outcome_unknown. Without BOSS_AUTH_E2E_EMAIL it seeds the identity [email protected]; built only under the e2e build tag |
BOSS_HOST_E2E_RECONNECT | e2e tests only: stages the --host tunnel-dropped wait screen before the TUI dials, so the reconnecting state can be captured on a harness with no network; unset, empty, or an explicit falsey value (0/false/no/off) means no seed, and any other value is used verbatim as the ssh destination shown on screen; built only under the e2e build tag |
BOSS_HOST_E2E_RECONNECT_POLLS | e2e tests only: how many probes report the seeded tunnel as still down before it recovers unaided (default 3); a malformed or negative value falls back to the default rather than failing the run, and it has no effect without BOSS_HOST_E2E_RECONNECT; built only under the e2e build tag |
bossd (daemon)
| Variable | Notes |
|---|---|
BOSSD_ORCHESTRATOR_URL | URL bossd syncs with (default: https://orchestrator.bossanova.dev); set to "" for local-only mode. The stored Bossanova Cloud login is sent only to the Bossanova Cloud production and staging orchestrators; any other URL without BOSSD_USER_JWT logs an error and runs local-only |
BOSSD_DAEMON_ID | stable identifier this daemon registers under (defaults to machine hostname); each value creates a separate daemon record, so change carefully |
BOSSD_USER_JWT | explicit bearer credential for any other orchestrator URL (bypasses the keychain; used in CI and local development) |
When running a local bosso against real WorkOS with make serve --auth workos (which does not start a dev bossd), pass BOSSD_USER_JWT to a daemon or BOSS_CLOUD_TOKEN to the CLI when pointing it at that local orchestrator.
bosso (server)
| Variable | Notes |
|---|---|
BOSSO_DB_DRIVER | Required — there is no default. The only accepted value is postgres. bosso refuses to start and exits non-zero when it is unset, empty, or whitespace-only, and on any other value — including sqlite, which was accepted until the SQLite server-side path was deleted. |
BOSSO_DATABASE_URL | Runtime Postgres connection string; required. Production uses PgBouncer for this connection. |
BOSSO_MIGRATIONS_DATABASE_URL | Direct Postgres connection string for Goose migrations; required. Production bypasses PgBouncer because migrations require session-level DDL. |
BOSSO_MULTI_INSTANCE | true runs bosso as more than one replica |
BOSSO_ADDR | Listen address (default :8080) |
BOSSO_PUBLIC_ORIGIN | Public scheme, host and port that clients sign, such as https://orchestrator.example.com. Required when device authentication is enabled; bosso refuses to start if it is unset or invalid. |
BOSSO_DEVICE_AUTH | Device-signature policy: verify (default) checks signatures from known roster devices; require also confines WorkOS logins without an approved device signature to device enrollment; off ignores device headers. Other values prevent startup. |
BOSSO_INSTANCE_ID | Distinct stable identity per bosso process; must be set on each process for multi-instance runs |
Local development database
The repository ships a docker-compose.yml at its root with a single
bosso-postgres service, so a working local database needs no manual setup:
# 1. Start Postgres (postgres:16, published on host port 5433).
docker compose up -d bosso-postgres
# 2. Configure a matching local listener and signing origin, then the database.
export BOSSO_ADDR=127.0.0.1:8181
export BOSSO_PUBLIC_ORIGIN=http://127.0.0.1:8181
export BOSSO_DB_DRIVER=postgres
export BOSSO_DATABASE_URL=postgres://bosso:bosso@localhost:5433/bosso_dev?sslmode=disable
export BOSSO_MIGRATIONS_DATABASE_URL=postgres://bosso:bosso@localhost:5433/bosso_dev?sslmode=disable
# 3. Build and run bosso; it applies its migrations on startup.
make bin/bosso
./bin/bosso
make -C services/bosso dev runs the same server straight from source. It
inherits the variables from step 2, so export all of them in that shell too.
The default verify device-auth policy requires a valid BOSSO_PUBLIC_ORIGIN;
keep it aligned with the URL clients use to reach this server.
Whichever way you start it, also export BOSS_ENV=development. BOSS_ENV
defaults to production and BOSSO_SENTRY_DSN defaults to the hard-coded
production Sentry DSN, so a bare ./bin/bosso reports local errors into
production error triage.
Note what BOSS_ENV=development does and does not do: it only retags those
events, which are still transmitted to the same Sentry project, under the
development environment. Setting BOSSO_SENTRY_DSN= does not stop them
either; config.EnvOr treats an empty value as unset and falls back to the
built-in DSN. To send nothing at all, set BOSSO_SENTRY_DSN to a non-empty
invalid value, which makes sentry.Init fail and bosso log
errortrack disabled.
Stop it with docker compose stop bosso-postgres. docker compose down also
removes the container, but the named volume keeps the data.
Add -v to discard it.
The host port is 5433, not 5432, on purpose: the Makefile's throwaway test
container (bossanova-test-postgres, database bosso_test) already publishes
5432, so the split lets make test-bosso-postgres run while a development
database stays up.
XDG and path variables
| Variable | What it affects |
|---|---|
XDG_CONFIG_HOME | Where settings.json is read from on Linux (macOS uses ~/Library/Application Support/) |
XDG_STATE_HOME | Where rotated log files live |
XDG_RUNTIME_DIR | Not used for Bossanova's daemon socket; set socket_path in settings or use BOSS_SOCKET for an explicit override |
HOME | Used to resolve ~/.claude/skills/ and ~/.bossanova/ |
GitHub App integration
Bossanova receives GitHub PR, check, status, review, and comment events through the GitHub App webhook endpoint on the orchestrator.
Configure the GitHub App with these URLs:
| GitHub App setting | Value |
|---|---|
| Homepage URL | https://app.bossanova.dev/github/setup |
| Setup URL | https://app.bossanova.dev/github/setup |
| User authorization callback URL | https://app.bossanova.dev/github/setup |
| Webhook URL | https://orchestrator.bossanova.dev/webhooks/github |
The Homepage URL, Setup URL, and User authorization callback URL must match
BOSSO_GITHUB_APP_CALLBACK_URL. Enable Request user authorization during
installation and Redirect on update. Set the GitHub webhook secret to the
same value as BOSSO_GITHUB_APP_WEBHOOK_SECRET.
Required repository permissions:
| Permission | Access |
|---|---|
| Pull requests | Read and write |
| Checks | Read and write |
| Actions | Read-only |
| Contents | Read-only |
| Issues | Read-only |
| Metadata | Read-only |
| Statuses | Read and write |
Required organization permissions:
| Permission | Access |
|---|---|
| Members | Read-only |
Setup uses Members access to check that the person connecting an organization
installation is an admin of that organization. When you add a permission, each
organization owner must approve the update on their installation before setup
verifies them. Run bosso check-github-app to compare the live App's permissions
and webhook subscriptions with the set the code requires.
Subscribe to these events:
pull_requestcheck_runcheck_suitestatuspushissue_commentpull_request_review
Required environment variables:
| Runtime env | Source |
|---|---|
BOSSO_GITHUB_APP_ID | GitHub App settings page, App ID |
BOSSO_GITHUB_APP_SLUG | GitHub App URL slug |
BOSSO_GITHUB_APP_PRIVATE_KEY | GitHub App private key PEM, stored as one escaped env value |
BOSSO_GITHUB_APP_WEBHOOK_SECRET | Webhook secret configured on the GitHub App |
BOSSO_GITHUB_APP_CALLBACK_URL | Frontend setup route, for example https://app.bossanova.dev/github/setup |
BOSSO_GITHUB_APP_CLIENT_ID | GitHub App settings page, Client ID |
BOSSO_GITHUB_APP_CLIENT_SECRET | GitHub App generated client secret |
Keep the private key, webhook secret, and client secret in an encrypted secret store, never in plain-text configuration. Do not pass secret values as command-line arguments; process argv can be inspected.
Bosso runtime
Generate each BOSSO_INTERNAL_ROUTING_TOKEN as a high-entropy secret, for
example with openssl rand -base64 32, and set the same value on every bosso
instance in that environment. The token authenticates internal routed delivery
when one bosso instance forwards webhook or command work to the instance that
owns the target daemon stream.
Use this token only for internal routed delivery between bosso instances; it is separate from the GitHub App webhook secret.
Multi-instance runs must set BOSSO_INSTANCE_ID on each process to a distinct
stable value.
A deployment with exactly one bosso process sets
BOSSO_ROUTING_PROVIDER=single and keeps BOSSO_MULTI_INSTANCE=true, so daemon
tokens and ownership claims stay in Redis across restarts and
bosso revoke-daemon-tokens keeps working. Give the process a fixed
BOSSO_INSTANCE_ID, such as bosso-0. The single provider never forwards a
request; a claim that names any other instance is treated as stale.
A deployment with several bosso processes sets BOSSO_ROUTING_PROVIDER=dns
and BOSSO_ROUTING_PEER_ADDRESS to a host:port that contains {instance}
once. A process that receives a request for a daemon another instance owns
forwards it over plaintext HTTP/2 to that address, with {instance} replaced
by the owner's BOSSO_INSTANCE_ID. For example, use
{instance}.bosso-headless.bosso.svc.cluster.local:8080 behind a Kubernetes
headless service, or {instance}:8080 on a network that resolves instance IDs
as hostnames. Instance IDs must be lowercase DNS labels. bosso refuses to start
when the template is missing or puts {instance} anywhere but the host.
bosso listens only for plaintext HTTP/2 (h2c) on BOSSO_ADDR. Put a reverse
proxy in front of it to terminate TLS, and have the proxy refuse
/internal/* and /webhooks/internal/*, which only bosso instances call on
each other. bosso itself answers 404 on those paths to any request that
carries X-Forwarded-For or Forwarded. It cannot tell a proxy that adds
neither header from a peer, so behind such a proxy the shared
BOSSO_INTERNAL_ROUTING_TOKEN is the only check left. Point
BOSSO_WEBHOOK_ROUTING_URL at the bosso instances directly, never through the
proxy.
Per-client rate limits key on the connecting address, so set
BOSSO_TRUSTED_PROXY_CIDRS to the proxy's addresses, as comma-separated CIDRs,
to have bosso read the client from X-Forwarded-For. When the proxy also
appends addresses after the client's, set BOSSO_TRUSTED_PROXY_APPENDED_HOPS
to how many (default 0). Unset, bosso trusts no proxy and keys every request
on its transport peer.
Webhook behavior:
- GitHub signs webhook payloads with the app webhook secret.
- The orchestrator verifies the signature, then routes the event by
installation_idto the WorkOS user that completed setup. - Pull request events trigger a targeted refresh for the affected repository and PR.
- The polling fallback backs off for 5 minutes on repositories that recently delivered webhooks.
Cloud control
cloud_control selects the cloud's authority on this machine. The default is full: Boss Cloud
shows sessions and also starts, steers and types into them. Under read-only, viewing remains
available, while commands that change local state, terminal input and uploads are refused.
Terminal viewers cannot resize the operator's pane, and account lists do not refresh provider
credentials. An unrecognised value resolves to read-only. Change the mode locally with:
boss settings --cloud-control private
boss settings --cloud-control signed
boss settings --cloud-control full
boss settings --cloud-control read-only
boss settings --cloud-control default
boss settings --cloud-control-repo acme/oss=read-only
boss settings --cloud-control-repo acme/oss=default
boss settings --cloud-control-owner github.com/acme=read-only
boss settings
The summary reports the resolved mode, including the default or an unrecognised stored value.
In the TUI, open Settings → General → Cloud control. The selector cycles through default, private,
read-only, signed and full with Enter or Space; Left and Right choose the previous or next value.
Selecting full, or default, which is also full, requires confirmation: anyone acting as you in
Boss Cloud has permission to drive agents on this machine. Cancelling keeps the previous value. Choosing private, read-only or signed
saves immediately. Both controls persist your explicit choice in settings.json; no restart is needed.
The web keeps a chat preview it already has until that chat next changes.
Choose signed to require a signature from a locally approved viewer device for every cloud
control command. Pair a browser with boss viewer approve. Observation and housekeeping remain
available. Terminal input requires an encrypted attach, while resize, uploads and waking a chat
through attach are refused. Triggers, hosted MCP, cloud CLI, broadcasts and account sync have no
browser signature and are refused; grant a specific repository full locally when it needs
unsigned automation, for example boss settings --cloud-control-repo acme/automation=full.
The default remains full.
Choose private through either local control, or set "cloud_control": "private" in the local
settings.json, to keep content-bearing observe
commands and terminal attach on this machine. Metadata lists and statuses remain available, while
transcripts, notes, cron and callback prompts, tracker issue descriptions and terminal output are
refused. Outbound session/chat metadata is still sent; this setting does not yet trim titles or output
previews in events.
When private policy disallows an open cloud terminal, it closes with
"cloud control is private on this machine" before sending more output. Idle terminals check local
settings and cached repository identity once a second. A terminal opened in private mode stays
authorized while its viewer approval remains valid and its connection uses end-to-end encryption.
Use default to clear the explicit machine-wide mode, which returns the machine to full. The per-repo section in the CLI summary
and TUI lists registered repositories grouped by their local host/owner, with effective modes
and their source. Select a repository by its origin, display name or checkout path.
Repeat --cloud-control-repo or --cloud-control-owner for multiple edits. An owner edit writes
one identity-bound grant for each currently registered repository; it creates no wildcard and
does not apply to future registrations. A repository =default removes its grants.
GitHub full grants require an identity verified by the local daemon. If verification is unavailable, retry later; narrowing to read-only or private remains available. A stale identity binding is shown as “grant not verified: narrowing only”. Remote settings, MCP and the cloud command stream cannot inspect or edit these grants.
Full access runs shell commands as you and reaches every other repository on this machine. Use a separate OS user per organization when they need different trust. The CLI prints this warning and the TUI confirms it before granting full control to a repository or owner group.
A missing or empty value resolves to full. Otherwise only the exact lowercase full, private
and read-only, with surrounding whitespace allowed, select those modes; any other value
resolves to read-only.
This setting is local only. Remote settings calls and MCP cannot read or change it, and an
UpdateSettings save preserves its value. Local edits take effect on the next command decision
without restarting bossd. An unreadable settings file fails closed to read-only.
Using the web with a signed machine
With cloud_control: signed, code-running web actions require this browser's viewer signing key.
Open Settings → Security, set up this browser, and approve its displayed device ID and
fingerprint locally with boss viewer approve. Confirm the machine's fingerprint in the browser.
The web then signs session creation, schedule creation and updates, Run now, repository edits,
account changes and tests, chat start and wake, resume run, and send back to repair. Full-control
machines keep working without browser pairing.
An unpaired browser shows “Pair this browser to control this machine” and links to Security settings. Terminals use the existing encrypted attach when paired; a plaintext attach on a signed machine is view-only. Chat messages without attachments are signed too. Messages with uploaded attachments still use the unsigned proxy path and are refused by signed machines; use the machine locally for those sends until signed upload support is available.