DATABASE_URL=postgres://openbot:openbot@localhost:5432/openbot # Credential vault encryption key. The example value is public and only suitable for local # development. Production refuses to start with this key. # openssl rand -base64 32 KEY_ENCRYPTION_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= # How many days of audit trail to keep. Unset keeps everything, which is the safe default and the # one to leave alone until somebody has decided otherwise: the trail is append-only and nothing else # can remove a row, so this is the only way it ever shrinks. # AUDIT_RETENTION_DAYS=365 # Two names for one number, and they must agree when both are set. # # The server accepts either PORT or SERVER_PORT (server/src/config.ts), preferring PORT when both # are present and refusing to start if they disagree, so a single edit is enough. An empty value # is an unset one, so `PORT=` with SERVER_PORT set moves the server too. scripts/start.sh # and the app's Vite proxy read SERVER_PORT/APP_PORT, and docs/configuration.md documents # SERVER_PORT as the setting. Only PORT shipped here historically, so moving the server by # editing one line left the script still looking at 3001: it found whatever else was there, # accepted the first 200 as proof, and failed several stages later parsing that stranger's # HTML as JSON. Setting both to the same value remains valid. PORT=3001 SERVER_PORT=3001 TENANT_PACKAGE_DIR=../examples/fintech # Let a Bot answer with an interface it wrote itself: markup, styles and a script it generates for # that one answer, streamed into the transcript and rendered in a sandboxed iframe with no # same-origin access to this app. On by default; set this to `false` or `0` to opt out. # # This is not the component catalogue. A component is something this deployment holds and an # administrator grants per Bot; this has nothing to grant, because the Bot writes it on the spot and # it is gone when the conversation moves on. It is a deployment switch rather than a per-Bot grant # because the SDK offers no seam for one — see DeploymentConfig.generativeUi in server/src/config.ts. # # What the interface can reach is what the sandbox hands it, and this deployment hands it nothing: no # session, no same-origin access, and no route into your data. It can load libraries from a CDN, so a # deployment that must not reach the public internet from a browser tab should set this to false. # OPENBOT_GENERATIVE_UI=false # The signed-in app shows a bar offering CopilotKit's help self-hosting OpenBot, until each person # closes it. A deployment on a paid Intelligence plan never shows it. A fork running OpenBot for its # own organization can turn it off for everybody. # OPENBOT_SELF_HOST_BANNER=false # What this deployment calls itself, when more than one shares an Intelligence project. A copy of a # deployment made for development uses the same project key, and threads are listed per Bot with # nothing to say which deployment a conversation came from. The name goes into every thread id this # deployment mints, so its own conversations stay identifiable. Unset, the tenant package's id is # used, which tells two packages apart but not two copies of one. # DEPLOYMENT_ID= # Sign-in. The line below runs the deployment as one administrator with no sign-in at all, which is # how you reach the product without registering an OAuth client first. Delete it and configure a # provider before anybody else can reach this: while it is set, every visitor is an administrator. # With no provider and this line gone, the deployment refuses to start rather than guessing. OPENBOT_SINGLE_USER=true # Optional desktop employee sign-in authority: an OpenBot deployment configured with a provider # below. Separate from Intelligence URLs/project credentials; secrets stay on the authority. # When set, verified employee identity replaces the standalone actor even if SINGLE_USER is true. # OPENBOT_ORGANIZATION_AUTH_URL=https://openbot.company.example # # Configure ANY ONE of the four providers to turn sign-in on. Configure several and the sign-in # screen offers several, which is the normal shape for a company mid-migration. # # These four are needed whichever provider you pick: # BETTER_AUTH_URL is where OAuth callbacks come back to, which is the API on port 3001. # BETTER_AUTH_SECRET signs session cookies. At least 32 characters: openssl rand -base64 32 # TRUSTED_ORIGINS is where the app is served from, which is port 3010 locally. # INITIAL_ADMIN_EMAILS names who is an administrator. Required, because nothing else grants the # role and no screen can promote somebody later. Re-read on every sign-in, so editing it works. # BETTER_AUTH_URL=http://localhost:3001 # BETTER_AUTH_SECRET= # INITIAL_ADMIN_EMAILS=admin@example.com # # Google. Redirect URI: http://localhost:3001/api/auth/callback/google # GOOGLE_OAUTH_CLIENT_ID= # GOOGLE_OAUTH_CLIENT_SECRET= # # Microsoft (Entra ID). Redirect URI: http://localhost:3001/api/auth/callback/microsoft # MICROSOFT_OAUTH_TENANT_ID defaults to `common`, which admits personal Microsoft accounts as well # as work ones. Put your directory GUID here if you mean only your own company. # MICROSOFT_OAUTH_CLIENT_ID= # MICROSOFT_OAUTH_CLIENT_SECRET= # MICROSOFT_OAUTH_TENANT_ID=common # OpenBot's own API in Entra, for company systems reached as the signed-in person # (docs/configuration.md). Defaults to api:///.default. # MICROSOFT_OAUTH_API_SCOPE= # The apps that may call OpenBot with a person's Entra token, by client id, comma-separated. # Unset, no app may. # MICROSOFT_OAUTH_ALLOWED_CLIENTS= # # Okta. Redirect URI: http://localhost:3001/api/auth/callback/okta # The issuer is what makes it your Okta rather than Okta in general. # OKTA_OAUTH_CLIENT_ID= # OKTA_OAUTH_CLIENT_SECRET= # OKTA_OAUTH_ISSUER=https://example.okta.com/oauth2/default # Optional. Unset asks for openid profile email; set openid for a provider that grants nothing else. # OKTA_OAUTH_SCOPES=openid # # Apple. Return URL: https:///api/auth/callback/apple. Apple accepts only HTTPS on a # real domain, never localhost, so set BETTER_AUTH_URL to that address. The client id is your # Services ID; the private key is the contents of the Sign in with Apple key's .p8 file, from which # the server makes the client secret Apple asks for. Register the address OpenBot's mail comes from # under Sign in with Apple for Email Communication, or mail to hidden addresses bounces. # See docs/configuration.md, Sign in with Apple. # APPLE_OAUTH_CLIENT_ID=com.example.openbot.web # APPLE_OAUTH_TEAM_ID= # APPLE_OAUTH_KEY_ID= # APPLE_OAUTH_PRIVATE_KEY= # Optional. An iPhone app's bundle id, to accept that app's own Sign in with Apple too. # APPLE_OAUTH_APP_BUNDLE_IDENTIFIER= # Email domains admitted at sign-in, comma separated. Empty admits everybody, which is what the # providers above already do on their own: the Entra tenant is `common` unless changed, which is any # Microsoft account including personal ones, and Okta has no equivalent. Google has one, `hd`, which # is stronger than this because Google verifies Workspace domain ownership; narrow it there as well # rather than instead. # # A filter, not a boundary: it is checked against the address the provider returns, and OpenBot does # not require a verified one. The server refuses this combined with MICROSOFT_OAUTH_TENANT_ID=common, # where that address is written by the tenant signing in. # # Matched exactly, no wildcards, so name every domain you use. `example.com` admits neither # `sub.example.com` nor `evil-example.com`. # SIGNIN_ALLOWED_EMAIL_DOMAINS=example.com,example.co.uk # Where this deployment is reached from outside. Only needed for connectors that a person connects # their own account to, such as Google Drive, and for linking GitHub accounts: it builds the # redirect URI the vendor sends them back to, which has to match what an administrator registered # character for character. Defaults to BETTER_AUTH_URL, so most deployments never set it; set it # where the API is behind a different public address than the one sign-in uses. Without either, the # Plugins page says so and nobody can connect an account, and GITHUB_APP_CLIENT_ID stops the server # at start-up. # OPENBOT_PUBLIC_URL=https://openbot.example.com # Where the browser app is served from. The OAuth callback lands on the API and has to send the # person back to a page, and locally those are two different ports: the app is 3010 and the API is # 3001. Defaults to the first TRUSTED_ORIGINS entry, then to OPENBOT_PUBLIC_URL, which is right for a # deployment serving both from one origin. # OPENBOT_APP_URL=http://localhost:3010 TRUSTED_ORIGINS=http://localhost:3010 # CopilotKit Intelligence. Required: the server refuses to start without the URL, the gateway URL # and the key below, because Intelligence owns durable threads and memory and a deployment without it # forgets every conversation. There is no degraded mode. # # By default OpenBot runs on an Intelligence on this machine: the one the CopilotKit CLI installs # (see "Intelligence on your own machine" in README.md, and # https://docs.copilotkit.ai/intelligence/self-hosting-local). From the OpenBot root, where this # file is: # # npx --yes copilotkit@latest login # npx --yes copilotkit@latest local setup # npx --yes copilotkit@latest local connect --approve-connection # # `local connect` fills in the three settings below: that Intelligence's two addresses on this # machine (each installation has its own ports, so there is nothing to type here) and its project # key. Leave them empty until it has. INTELLIGENCE_API_URL= INTELLIGENCE_GATEWAY_WS_URL= # # The managed service instead. Use it where the local Intelligence does not run (it is a preview # for macOS with Docker Desktop), or to keep conversations in a managed project. Write these two # addresses on the two lines above, then get the key from the CopilotKit CLI: # # INTELLIGENCE_API_URL=https://api.intelligence.copilotkit.ai # INTELLIGENCE_GATEWAY_WS_URL=wss://realtime.intelligence.copilotkit.ai # # npx --yes copilotkit@latest login # browser sign-in # npx --yes copilotkit@latest project select # writes the cpk-... key to .env as CPK_INTELLIGENCE_API_KEY # bun scripts/setup-learning.ts # ensures the Learning container exists # # The managed runtime key is also under "API Keys" in your project at # https://intelligence.copilotkit.ai # # Running Intelligence in production on your own infrastructure is an Enterprise Intelligence # Platform feature deployed by Helm chart: https://docs.showcase.copilotkit.ai/premium/self-hosting # # OpenBot reads CPK_INTELLIGENCE_API_KEY directly. INTELLIGENCE_API_KEY is a legacy fallback. # When both are set, the non-empty CPK_INTELLIGENCE_API_KEY takes precedence. CPK_INTELLIGENCE_API_KEY= # Optional, and blank on purpose. Managed Intelligence derives entitlement from the project key # above and issues no licence token. A self-hosted Intelligence with its own licence sets this and # it is forwarded to the runtime; startup does not require it. COPILOTKIT_LICENSE_TOKEN= # Learning defaults on. Fresh managed setup: login, project select, then bun scripts/setup-learning.ts. # The helper creates/reuses openbot and writes the verified key and container; custom targets stay. # Fresh self-hosted setup: set its API URL, install Chrome/Edge, then run the same helper to sign in. # With nothing saved in Admin and no container below, the server assigns the key's project's openbot # container by itself once it exists. The key cannot create it: run the helper (it keeps an existing # key) or create it in Intelligence. scripts/start.sh runs that check on every start, non-interactively. # Admin → Automatic Learning can enable/disable, override per Bot, and save settings in the DB. # Saved settings take precedence, including off. Without an assigned container, collection and # delivery stay inactive; OpenBot still starts and chats. # false or 0 stops the automatic openbot assignment. A container named below also stops it. # OPENBOT_LEARNING_AUTO_ASSIGN=false # The runtime key cannot create the openbot container; bash scripts/start.sh does it with your CopilotKit # CLI login. On a CopilotKit local evaluation install a service token can, together with its project: # INTELLIGENCE_SERVICE_TOKEN= # INTELLIGENCE_PROJECT_ID= # A memory source copies an app's records into one Bot's memory, and a person adds one by hand. # true brings back the old default: each app a person connected becomes a memory source for the # Bots they talk to, and its records are imported for review. # OPENBOT_MEMORY_SOURCE_DEFAULTS=true # Check-ins are offered by a Bot in the conversation, one per thing it watches, and run only once # the person accepts. true brings back the old default: one hourly check-in on everything a Bot can # read, switched on the first time a person talks to it alone. # OPENBOT_PROACTIVE_DEFAULTS=true # Project credentials remain server-side; review and publish skills in the Intelligence UI. # CPK_INTELLIGENCE_LEARNING_CONTAINER_ID=support-learning # Optional opaque published revision ID; omit to follow latest. # CPK_INTELLIGENCE_SKILLS_REVISION=exact-revision-id # See docs/automatic-learning.md for managed/self-hosted setup and permissions. # OpenBot accepts the OpenBot Recorder extension only from its own extension id. A fork, or a build # signed with another key, has another id: list it here, comma separated, each 32 letters from a to # p. Any other value stops the server at boot. # OPENBOT_RECORDER_EXTRA_EXTENSION_IDS= # How long a Bot's stream may say nothing before this deployment gives up on the turn, in # milliseconds. A Bot is any AG-UI endpoint, which means it will be redeployed mid-answer, its own # upstream will time out, and it will sometimes accept a connection and then write nothing at all. # Without this the channel stays busy, the composer stays locked, and the only way out is a reload. # # Silence, not duration. A turn may legitimately run for an hour while events keep arriving; what is # measured here is the gap between them. Nothing about how long a Bot is allowed to work changes. # # A minute, because this deadline is in a race it has to win. Every Bot in this repository serves on # Bun with `idleTimeout: 120`, and Bun tears a wedged streaming response down at roughly a second # past that. A watchdog set to the same two minutes lands within a second of the socket dying, and # whichever gets there first decides what the person sees: this deployment's sentence naming the Bot # and saying the turn was ended, or "The socket connection was closed unexpectedly" and no audit row # at all. Half the Bot's own idle timeout is far enough clear that the answer is always the first. # # A minute is still far longer than any real silence inside a run. The longest legitimate one is the # wait for a model's first token, which is seconds. Browser tool calls do not need allowing for: # they run between turns, not during one, because the run ends before the browser executes the tool # and a second run carries the result back. # # 0, or leaving this unset, switches the watchdog off. Nothing is watched and no turn is ever ended. AGENT_STALL_TIMEOUT_MS=60000 # Model key. Required by the built-in Bots and the framework Bot unless you point them at another # provider below. OPENAI_API_KEY= # Where that key is spent. Unset, it is OpenAI. Set, it is any endpoint speaking the same # `/v1/chat/completions` API: a gateway in front of several providers, a proxy, or a model on # hardware you control. The API server reads it for the built-in agents and the framework Bot reads # it too, so one line moves the whole deployment rather than one Bot. # # Model names travel verbatim, so use whatever the endpoint publishes. An endpoint that namespaces # its catalogue wants both halves of the name, in `BOT_MODEL` and in the tenant package's # `default_model` alike: # # OPENAI_BASE_URL=https://gateway.internal/v1 # OPENAI_API_KEY=... # BOT_MODEL=openai/gpt-5.5 # # OPENAI_BASE_URL= # Behind an OPENAI_BASE_URL that is not OpenAI or Azure, built-in Bots call the endpoint's Chat # Completions API, which is what most compatible endpoints serve, unless their model takes tools only # through the Responses API (gpt-5.6 and later, the -pro models, gpt-5.3-codex, under a gateway's # `openai/` name too): those call `/responses`, which a gateway or proxy in front of OpenAI serves. # A gateway that serves the Responses API keeps Responses-only features, such as reasoning summaries, # for every model with `responses`. `chat` forces Chat Completions for every model; any other value is # an error when a built-in Bot runs. # COPILOTKIT_OPENAI_API=responses # The model that picks which Bot an untagged message from the home page goes to. It runs while the # person waits for the conversation to open, so it defaults to a light one (claude-haiku-5-5 on # Anthropic, gpt-6-luna on OpenAI) and falls back to the Bots' model if that one is refused. Behind # OPENAI_BASE_URL / ANTHROPIC_BASE_URL nothing is assumed: the Bots' model is used unless this is set. # ROUTER_MODEL=gpt-6-luna # Optional dictation, independent of every agent/chat provider. Set provider, base URL, # and model together. The endpoint must implement POST /audio/transcriptions under this # base URL (include /v1 if needed). No chat endpoint or API key is inherited. # TRANSCRIPTION_PROVIDER=openai-compatible # TRANSCRIPTION_BASE_URL=https://api.openai.com/v1 # TRANSCRIPTION_MODEL=gpt-transcribe # TRANSCRIPTION_API_KEY= # The key may be omitted for an explicitly configured local service without authentication. # Optional live voice calls. Independent from dictation and each agent's chat provider. # Choose openai-realtime (WebRTC) or xai-realtime (Grok Voice over WebSocket). # VOICE_PROVIDER=openai-realtime # VOICE_MODEL=gpt-realtime # VOICE_NAME=marin # VOICE_API_KEY=$OPENAI_API_KEY # Grok alternative: VOICE_PROVIDER=xai-realtime, VOICE_MODEL=grok-voice-latest, # VOICE_NAME=ara, VOICE_API_KEY=$XAI_API_KEY (define XAI_API_KEY separately). # Optional. Leave empty unless containers need a different route to the same compatible endpoint, # such as a locally hosted model whose host URL is localhost but whose Compose-network URL is a # service name. Empty means containers use OPENAI_BASE_URL too. # OPENAI_CONTAINER_BASE_URL= # The same for the other two providers, under the names the API server already reads. They are # different APIs rather than different URLs for this one, so each has its own. # ANTHROPIC_BASE_URL= # GOOGLE_GENERATIVE_AI_BASE_URL= # Framework Bot provider: openai, anthropic or google. It reads that provider's own # key and refuses to start without it, so a deployment on Anthropic never needs an OpenAI key for it. # BOT_PROVIDER=openai # ANTHROPIC_API_KEY= # GOOGLE_API_KEY= # A model sign-in in place of a key: the Anthropic token from `claude setup-token`, and the file a # signed-in ChatGPT plan writes. The desktop app sets both when a provider is connected that way; a # box you configure yourself sets them here. The API server reads them for built-in agents, and # compose passes them to the picked harness. See docs/configuration.md. # CLAUDE_CODE_OAUTH_TOKEN= # CHATGPT_AUTH_FILE= # Where a ChatGPT plan's model calls go, for the TypeScript LangGraph engine and the server's own # Bots: the LangGraph harness (agent-langgraph-agui), which holds that plan's token store, by its # name on the Compose network. Set only with CHATGPT_AUTH_FILE. The token defaults to # MANAGED_AGENT_TOKEN. The desktop app sets this itself on a ChatGPT plan. # CHATGPT_PLAN_HARNESS_URL=http://agent-langgraph-agui:4206 # CHATGPT_PLAN_HARNESS_TOKEN= # Which model the framework Bot uses. Defaults per provider: gpt-5.5, claude-sonnet-5-5, # gemini-3.8-flash. A 5.6 tier works here: set one and the Responses API is switched on # automatically. It used to answer nothing at all on those models — RUN_STARTED, RUN_FINISHED, no # text — because that API streams content blocks rather than a string and the run read only the # string. The default is left at 5.5 so the two shipped Bots stay comparable out of the box. # BOT_MODEL=gpt-5.5 # Read only by the example Bots in examples/langgraph-bot and examples/mastra-bot. OpenAI only, and # rarely needed: they turn the Responses API on by themselves for models that require it. Set it # when you are using a model they have not heard of that needs it too. # BOT_RESPONSES_API=false # The Bot computer. Absent means the feature is off and its routes are not mounted. AGENT_COMPUTER_URL=http://localhost:4100 # Secret every computer requires from its caller. `agent-computer` drives a browser holding real # logins, while policy, audit and sign-in live in the API server. The computer refuses to start # without this value and refuses every request that does not present it. Use a long random value # (`openssl rand -hex 32`); `scripts/start.sh` generates one and writes it here. There is no default. COMPUTER_TOKEN= # Local only, and commented out because this file gets copied. Uncommenting it lets a Bot browse this # machine's own services, which is what a laptop wants and what a deployment must never have: it # lifts the private-address floor in browsing and in the endpoint a Bot may be registered against. # The server refuses to start with it set under NODE_ENV=production. # AGENT_COMPUTER_ALLOW_PRIVATE_HOSTS=true # # Private addresses an agent may be registered at, named one at a time, comma separated. This is what # a deployment uses instead of the switch above: bring your own agent, running on your own network, # without lifting the floor for browsing or for anything else. # # A host, optionally with a port. `agents.internal` covers any port on that host; `10.0.0.42:9000` # pins that one. Matching is exact — no wildcards, no suffixes — and a URL or a `*` is refused at # startup with the entry named, rather than silently never matching. The never-allowed addresses, # cloud metadata among them, cannot be named back in. Unset means none, which is the default posture. # # AGENT_ENDPOINT_ALLOWED_HOSTS=agents.internal,10.0.0.42:9000 # # What a Bot may do on its computer, as one JSON object. Absent uses the built-in default, which # permits the acting tools and forbids nothing, and records every action either way. # # `deny` is evaluated first and beats `allow`. An empty `allow` permits nothing, a missing policy # permits nothing, and a rule that fails to parse denies rather than letting the action through. The # server refuses to start if this is set and malformed, so an invalid restriction never falls back to # permissive behavior. # # Workspace and browser profile per Bot. Each Bot's computer is its own container with its own # volumes, so one Bot cannot read another's files or use another's logins, and every action records # which Bot took it. A rule can still restrict a single Bot with `bot.id`. # # Attributes: tool.name, intent, bot.id, actor.id, page.url, page.host, # element.ref/role/name/type, key, command, file.path, file.name, file.extension, # mcp.server, mcp.tool, mcp.effect, initiator.kind, initiator.id. # # Name every route to the same effect. A form submits from a keypress in any of its fields, so a rule # that only blocks a Submit button does not block Enter from another field. The example below refuses # an activating keypress outright for that reason, from both tools that can press one: a key action, # and a type action carrying `submit`. It asks for `intent == "activate"`, not `key == "Enter"`, so # Enter with a modifier (Shift+Enter), `\n` and Space are refused too. # Functions: contains(haystack, needle) and matches(value, pattern), both case-insensitive. # `enforce` blocks; `dry-run` decides and records but lets everything through, so a new rule can be # tried against real traffic before it starts refusing anybody's work. # # AGENT_COMPUTER_POLICY={"mode":"enforce","deny":["(intent == \"activate\" && contains(element.name, \"submit\")) || ((tool.name == \"computer_key\" || tool.name == \"computer_type\") && intent == \"activate\")"],"allow":["true"]} # How long one action waits for its element, in ms. Read by agent-computer, not the server. # ACTION_TIMEOUT_MS=10000 # Extra environment variables a command on the computer may see, by name, comma-separated. The # shell already receives PATH, locale, terminal and proxy variables. Proxy userinfo is stripped, so # a password in HTTP_PROXY is not in `env`. It does not inherit the rest of this process, so # KEY_ENCRYPTION_KEY and the other deployment secrets are not in `env`. Naming a secret or a # credentialed proxy here is an operator's decision. # COMPUTER_SHELL_ENV=JAVA_HOME,GOPATH # The address the computer listens on. Unset, a managed computer listens on every interface, which # a container needs. A computer run straight on a laptop (`bun run dev` in agent-computer) is then # reachable from the local network too; its API needs the computer token, but nothing else needs to # reach it, so set 127.0.0.1 there. A computer driving a native Chrome (OpenBot Desktop's) always # listens on loopback, whatever this says. # COMPUTER_BIND=127.0.0.1 # --------------------------------------------------------------------------- # The computer's profile and where its traffic leaves from # --------------------------------------------------------------------------- # Chromium profile directory inside agent-computer, mounted from the `agent-profiles` volume in # docker-compose.yml. Pointing it somewhere unmounted disables login persistence. # PROFILES_DIR=/profiles # Browser process used by a Bot's computer. Managed mode always uses full Chromium. `headed` is the # default wherever a hosted computer runs (Linux: a container, a pod, the desktop app's engine): full # Chromium on the computer's own virtual display, behind the same live screen, which bot checks such # as Cloudflare's challenge far less than headless. `headless` is still available, smaller, and the # default only when the computer runs directly on macOS or Windows, where headed would open windows. # COMPUTER_BROWSER_BACKEND=managed # COMPUTER_BROWSER_MODE=headed # When a computer closes a browser besides the cap (COMPUTER_MAX_BROWSERS) and the idle timeout # (COMPUTER_BROWSER_IDLE_MS). At or above this share of its memory limit, read as the kubelet reads it # (the working set, so the page cache does not count), it closes browsers nobody has used for a # minute, least recently used first, until it is ten points under. Memory is read before each launch # and once a minute, so a page that grows between two checks can still run it out of memory. A # container with no memory limit is measured against the machine's memory; a computer outside a # container closes nothing for memory. In the all-in-one image the share counts the database and the # API server too, on purpose: the out-of-memory kill counts them as well. 0 switches it off. # COMPUTER_MEMORY_HIGH_PERCENT=85 # How long a Bot's background tab may sit untouched before it is closed, in ms: a tab the Bot left # behind, such as the page a sign-in popup opened from. The page the Bot is on, a person's own # browser, and any tab of a Bot whose wheel a person holds are never closed. 0 keeps them. # COMPUTER_TAB_IDLE_MS=600000 # Web Bot Auth: every request a Bot's browser makes is signed as coming from this deployment # (Ed25519, HTTP Message Signatures), and the public key is published at # /.well-known/http-message-signatures-directory. Off unless set to on, because # it announces the deployment's URL to every site a Bot visits. `on` needs OPENBOT_PUBLIC_URL (or # BETTER_AUTH_URL) to be https and not this machine, and is refused otherwise. It only earns anything # once the deployment is registered with Cloudflare, a manual step: see docs/configuration.md. # WEB_BOT_AUTH=on # The signing key, an Ed25519 private key as a JSON Web Key. Unset derives one from # KEY_ENCRYPTION_KEY, the same on every replica, so nothing new is needed to start. Never logged. # WEB_BOT_AUTH_KEY= # The computer's browser. Local mode drives an installed Chrome on the computer's own machine and # requires headed; do not leave an explicit headless override set in its environment. # COMPUTER_BROWSER_BACKEND=local-chrome # COMPUTER_BROWSER_MODE=headed # Optional absolute app-owned data root; defaults to the platform's OpenBot user-data directory. # OPENBOT_LOCAL_COMPUTER_DIR= # The OpenBot browser: each person's own browser, opened from OpenBot with the Recorder already in it # and connected. Unset, the supervisor below gives it a computer of its own (on a computer in the cloud # it reaches the open web, this OpenBot and the Intelligence gateway, nothing inside the deployment); # the one computer every Bot shares never runs it. Set, it runs on this # computer instead, as a window on the person's own desktop, while Bots' computers stay where they are: # OpenBot Desktop points it at its host-side local Chrome computer, called with COMPUTER_TOKEN. The # Recorder in it reaches OpenBot at OPENBOT_PUBLIC_URL (or BETTER_AUTH_URL), which must be https, or # http on 127.0.0.1 or [::1] with a port. # OPENBOT_BROWSER_URL=http://127.0.0.1:4101 # Which Bot this computer belongs to, and therefore which profile directory it uses. # COMPUTER_BOT_ID=shared # Per-Bot egress identity. A proxy the Bot's browser sends everything through, so the far side sees a # stable address it can allow-list or attribute to that Bot. `EGRESS_PROXY_` names one Bot, # `EGRESS_PROXY_DEFAULT` covers the rest, and absent means the browser goes out directly. # # Credentials may be in the URL and are split out before Playwright sees them. Only the HOST is ever # reported back on the admin page or the API, so the password does not end up on a screen. # # This is attribution, not anonymity, and it is not a boundary by itself: it gives a security team a # per-Bot address for network rules alongside AGENT_COMPUTER_POLICY. # # These go in `egress.env` beside this file, NOT here. The names are per-Bot, so Compose cannot # list them the way it lists every variable below, and it hands a container only what it is told to. # In `.env` they reach no process and the browser goes out directly with nothing saying so. # # EGRESS_PROXY_DEFAULT=http://user:password@proxy.internal:8080 # EGRESS_PROXY_SALES_BOT=http://sales.proxy.internal:8080 # # A residential or ISP proxy goes in the same place, and is the operator's choice to make knowingly: # the Bots' traffic then leaves from an address a consumer ISP owns, so sites see what looks like a # person at home rather than a datacenter. Off unless set. The egress filter still applies first. # # EGRESS_PROXY_DEFAULT=http://customer-user:password@gateway.residential.example:8000 # The managed coworker AG-UI endpoint. Optional: use an HTTP(S) URL, and set MANAGED_AGENT_TOKEN # with it. A URL with no token refuses to start; a leftover token with no URL is ignored. # # Unset in the one-container image, which does not carry a Bot. `scripts/start.sh` points this at # the LangGraph harness (agent-langgraph-agui) on 4201 for a laptop. # MANAGED_AGENT_AG_UI_URL=http://127.0.0.1:4201/ # The TypeScript LangGraph engine (agent-langgraph-ts), which new Bots run on. Required for them: # a server that cannot find the engine refuses new Bots rather than run them on its built-in agent. # Called with MANAGED_AGENT_TOKEN, like the managed Bot. `scripts/start.sh` points this at the # engine on 4215 in every edition, and docker-compose.yml always names its own engine to the server, # so set it only for an engine somewhere else, such as beside the one-container image. # Set OPENBOT_DEFAULT_BOT_ENGINE=built-in to put every Bot on the built-in agent instead. # LANGGRAPH_TS_AG_UI_URL=http://127.0.0.1:4215/ # Shared secret sent by the server on every call to a managed Bot, as the `x-openbot-agent-token` # header. Required together with the URL above; the server starts without either. # # `scripts/start.sh` generates one and writes it back here on first run, so leaving this empty is # fine locally. Set it yourself for a deployment: openssl rand -base64 32 MANAGED_AGENT_TOKEN= # Which model the Bots use. Unset, each Bot takes its row in shared/model-providers.json, and the # server names the model on every run. The LangGraph harness switches to the Responses API by itself # for a model that needs it. # BOT_MODEL= # One computer per person. Unset, every Bot shares the computer at AGENT_COMPUTER_URL, suitable on a # laptop and explicit about being one shared machine. Set, the supervisor gives each person a # container of their own, in which each of their Bots has its own folder and browser profile, and # gives a Bot marked Isolated a container of its own. A person's own OpenBot browser runs only on a # computer of its own, so it needs this (or OPENBOT_BROWSER_URL above): on the shared computer a # Bot's shell could read the person's logins off the disk. COMPUTER_SUPERVISOR_URL= # Shared with the supervisor. Not the security boundary, its four verbs are, but it keeps anything # else that can reach the port from cycling a Bot's computer. The supervisor refuses to start # without it; `scripts/start.sh` generates one and writes it here. There is no default. SUPERVISOR_TOKEN= # Set to runsc to run every computer under gVisor, if the host has it. Unset, a computer is an # ordinary container and shares the host kernel, which is worth knowing when the Bot is not ours. COMPUTER_RUNTIME= # The secret a framework Bot presents when it calls a tool back through this server. A Bot runs its # own loop, in its own process, and still may not reach a vendor directly: it calls the deployment # that granted the tool, which is where the grant, the policy and the audit row are. Absent, no Bot # may call tools back and it is told so rather than being quietly allowed. AGENT_TOOL_TOKEN= # Composio, the broker that holds people's accounts for a few hundred apps, so a Bot can act in Gmail # or Slack or Notion without this deployment registering an OAuth client with each of them. # # `bash scripts/start.sh` automatically provisions an isolated Composio project using the same # CopilotKit CLI login as Intelligence. Run `bun run setup:composio` to prepare it separately; # it does not need a Learning container. The compatible published CLI must support # `integrations composio provision`, and its hosted provisioning service must be enabled. # A supplied key is never replaced. Arcade selections and Arcade-only keys skip this step. # The helper first saves OPENBOT_INSTALLATION_ID in private `.env.openbot-installation-id`, then # the CLI writes the project key here. Keep that ignored identity file for retries and restarts; # do not copy it into a new installation. DEPLOYMENT_ID is never used as this identity. # You can supply a stable UUID through OPENBOT_INSTALLATION_ID before first setup. A later value # must match the saved one. Never put a parent Composio organization credential in OpenBot. # # This variable is the whole of the setting. There is no screen anywhere in the product that sets it: # it is read from this environment at startup, and an administrator with every permission there is # cannot turn Composio on from a page. # # One key for the whole deployment, not one per person. Composio keeps people apart by a user id sent # with every call, so one account's connections are never reachable from another's. COMPOSIO_API_KEY= # Optional, per app. A Composio app that connects with a server-to-server grant (S2S_OAUTH2) needs # an OAuth client registered by whoever runs this deployment; Shopify is one. Set both halves for the # app's slug, upper-cased, with a dash as an underscore. One without the other is no client, and the # app stays out of the picker. # COMPOSIO_SHOPIFY_CLIENT_ID= # COMPOSIO_SHOPIFY_CLIENT_SECRET= # --------------------------------------------------------------------------- # Linking people's GitHub accounts # --------------------------------------------------------------------------- # A GitHub App lets people link their GitHub account under Settings -> Connected accounts -> Linked # accounts. Register the App's callback URL as /api/identity/github/callback and keep # "Expire user authorization tokens" on. A webhook is not needed for linking. Set both the client id # and the client secret, or neither: one without the other stops the server at start-up, and so does # setting them with no public URL (OPENBOT_PUBLIC_URL or BETTER_AUTH_URL). People must be signed in # to OpenBot in the same browser to connect. Afterwards the browser returns to OPENBOT_APP_URL, which # you need when the app and the server are on different origins. # GITHUB_APP_CLIENT_ID= # GITHUB_APP_CLIENT_SECRET= # --------------------------------------------------------------------------- # Reaching people outside the app: Slack, Teams, SMS, push # --------------------------------------------------------------------------- # Slack and Microsoft Teams arrive through an OpenTag deployment, which calls this server as its # AG-UI agent at /api/delivery/webhooks/opentag/agent. The secret is at least 32 # characters and is the same value as OpenTag's AGENT_AUTH_HEADER bearer token. OPENTAG_URL is # where messages go when no Slack or Teams turn is open (replies after an approval, questions, # progress); without it those sends fail visibly. Setting OPENTAG_URL or the icon without the secret # stops the server at start-up. The former SLACK_* settings are refused at start-up. # OPENTAG_SHARED_SECRET= # OPENTAG_URL=https://opentag.example.com # OPENTAG_BOT_ICON_URL_TEMPLATE=https://avatars.example.com/{seed}.png # The public origin providers call back on, when it is not OPENBOT_PUBLIC_URL or BETTER_AUTH_URL (a # tunnel, say). Twilio signs over the URL it was given, so this must match the Twilio number's setting. # DELIVERY_PUBLIC_URL=https://hooks.example.com # SMS. All four or none: some but not all stops the server at start-up. Point the number's incoming # webhook at /api/delivery/webhooks/sms. # TWILIO_ACCOUNT_SID= # TWILIO_AUTH_TOKEN= # TWILIO_VERIFY_SERVICE_SID= # TWILIO_FROM_NUMBER= # Push to OpenBot Mobile (mobile/). EXPO_PROJECT_ID is the app's EAS project UUID and switches push # and sign-in from OpenBot Mobile on; a device registers only when the app reports the same id. The access token is optional and is # sent to Expo's push service as a bearer token. # EXPO_PROJECT_ID=00000000-0000-0000-0000-000000000000 # EXPO_ACCESS_TOKEN= # Push to browsers (web push), always on. The server makes a VAPID key pair the first time a browser # asks for it and keeps it in its database, so nothing is needed here. Set both keys, or neither, only # where several databases must sign with one key (`npx web-push generate-vapid-keys` prints a pair). # WEB_PUSH_SUBJECT is who the browsers' push services may contact: an https: URL or a mailto: address; # unset, an https OPENBOT_PUBLIC_URL, or OpenBot's own site. # WEB_PUSH_VAPID_PUBLIC_KEY= # WEB_PUSH_VAPID_PRIVATE_KEY= # WEB_PUSH_SUBJECT= # --------------------------------------------------------------------------- # Inbound email triggers # --------------------------------------------------------------------------- # Amazon SES receiving for this domain publishes to an SNS topic subscribed to # /api/events/email/sns. Each email trigger's address is trigger-@. Both # are needed; without them email triggers have no address. Messages from any other topic are refused. # OPENBOT_INBOUND_EMAIL_DOMAIN=in.example.com # OPENBOT_INBOUND_EMAIL_SNS_TOPIC_ARNS=arn:aws:sns:us-east-1:123456789012:openbot-inbound # --------------------------------------------------------------------------- # Directory provisioning and audit export # --------------------------------------------------------------------------- # SCIM 2.0 at /api/auth/scim/v2, on only while the token is set. The _NEXT token is # accepted alongside it while a directory moves to a new one. # openssl rand -base64 32 # SCIM_BEARER_TOKEN= # SCIM_BEARER_TOKEN_NEXT= # SCIM_CONNECTION_ID=directory # Every audit row as an OTLP log record over HTTP, for a SIEM or an OpenTelemetry Collector. Either # endpoint switches it on: the logs endpoint is used as written, the generic one gets /v1/logs. # Headers are key=value pairs separated by commas. OPENBOT_OTEL_EXPORT=off turns it off with an # endpoint still set. # OTEL_EXPORTER_OTLP_ENDPOINT=https://collector.example.com:4318 # OTEL_EXPORTER_OTLP_LOGS_ENDPOINT= # OTEL_EXPORTER_OTLP_HEADERS=x-api-key=change-me # OTEL_EXPORTER_OTLP_LOGS_HEADERS= # OTEL_SERVICE_NAME=openbot # OPENBOT_OTEL_EXPORT=off # Rich OpenBot usage/run/capability/consumption telemetry via the existing CopilotKit sink. # Explicit opt-in for self-hosted/local evaluation; desktop defaults on under its setup disclosure. # Set 0 to disable; DO_NOT_TRACK=1 or COPILOTKIT_TELEMETRY_DISABLED=1 always overrides. # No prompts, answers, raw audit payloads, URLs, names or credentials are exported. # See docs/TELEMETRY.md for identity, coverage and destination-delivery limitations. # OPENBOT_PRODUCT_TELEMETRY=1