Skip to main content

Configuration Reference

Every config field and environment variable. For a guided version, see Configuration.

config.json

Per-presence, at os-data/presences/<id>/config.json (or os-data/config.json single-tenant).
FieldTypePurpose
defaultProviderstringActive provider id: bor, anthropic, openai, gemini, openai-compatible.
providersobjectMap of providerId → { apiKey, model, baseUrl }.
aiNamestringWhat the presence calls itself.
personalitystringPersona injected into the system prompt.
baseThemestringActive theme id.
avatarobjectDiceBear avatar config.
onboardedbooleanWhether onboarding completed.
API keys live here until the planned Keychain migration. Treat os-data/ as sensitive.

Environment variables

Networking & data

VariableDefaultPurpose
PORT7777Runtime HTTP port.
BOR_DATA_DIRos-data/Per-presence data root (the v2 host sets os-data/presences/<id>/).
BOR_RUNTIME_URLAttach the v2 host to an already-running runtime.
BOR_PRESENCE_IDThe presence id this runtime serves.

Chat loop

VariablePurpose
BOR_CHAT_MAX_PASSESMax tool-use passes per turn (safety ceiling).
BOR_CHAT_STREAM_ATTEMPTSStream retry attempts.
BOR_TOOL_MAX_ATTEMPTSPer-tool retry attempts on transient failure.
BOR_STREAM_IDLE_TIMEOUT_MSIdle timeout before a stalled stream retries.

LLM harness

VariablePurpose
BOR_LEGACY_LLM=1Force the legacy XML-tool harness (the default path).
BOR_NEW_LLM=1Opt into the native-tool-calling harness (experimental).

Browser

VariablePurpose
BOR_BROWSER_HEADLESS=1Run the user-facing Browser app headless.
BOR_BROWSER_EXECUTABLE_PATHSpecific Chrome/Chromium binary.
BOR_BROWSER_CHANNELe.g. chrome.
BOR_BROWSER_DATA_DIRBrowser data root.
BOR_BROWSER_USER_DATA_DIRThe automation profile dir.
BOR_USER_BROWSER_USER_DATA_DIRThe user-facing Browser profile dir.
BOR_USER_BROWSER_DOWNLOADS_DIRDownloads dir for the Browser app.
BOR_BROWSER_OUTPUT_DIRMCP browser output dir.

MCP

VariableDefaultPurpose
BOR_MCP_MARKETPLACE_URLhttps://api.cline.bot/v1/mcpMarketplace catalog source.

Host control (v2)

VariablePurpose
BOR_HOST_CONTROL_URLThe Electron host’s local control server URL (runtime → host callbacks).
BOR_HOST_CONTROL_TOKENAuth token for the control server.

Config files (non-JSON)

PathPurpose
.bor/mcp.jsonPer-presence MCP servers (marketplace + AI write here).
.bed-of-roses/mcp/servers.jsonShared MCP config.
~/.bed-of-roses/mcp/servers.jsonGlobal MCP config.
.bed-of-roses/skills/Project skills (Markdown).
~/.bed-of-roses/skills/Global skills.
design-guideline/<theme>.mdTheme handbooks.
server/api-registry.mdPublic web APIs the model is told about.
See Storage & data for the full directory map.