Open, self-hostable alternative to closed AI bots: production-ready, customizable, and able to plug into any agent, model or tool.
Character.AI اور Custom GPTs کا اوپن سورس متبادل
Open, self-hostable alternative to closed AI bots: production-ready, customizable, and able to plug into any agent, model or tool.
READMEGitHub پر CopilotKit/OpenBot
A modular, self-hostable workspace for AI coworkers. Choose your models. Bring your agents. Own your infrastructure.
open.bot · Docs · Deploy on Kubernetes · Run from source
Notarized .dmg for Apple silicon and Intel Macs · signed installer for Windows x64 · no terminal or developer tools needed · Release notes
From CopilotKit, creators of AG-UI.
https://github.com/user-attachments/assets/c60f07da-8b6d-46eb-a573-17fc1e65a644
The easiest way to get started is with the fully self-contained app that runs on your laptop, combining the OpenBot frontend and Docker-based backend in one application.
Mac / Apple silicon · Mac / Intel · Windows
Run from source
OpenBot for Business brings your agents into one workspace with company sign-in, tool permissions, approvals, and audit. Deploy on your infrastructure or work with our engineers on hosting and customization.
Get early access to OpenBot for Business → · Talk to an engineer · Kubernetes setup
Web · iOS · Android · Slack · Teams
Connect your agent · Configure models and tools · Explore OpenBot for Business
OpenBot is built on CopilotKit, which is used in production by a majority of Fortune 500 companies.
Your agent stack. AG-UI has first-class integrations across the major agent frameworks and harnesses, including Anthropic's Claude Agent SDK, Microsoft Agent Framework and Agent Harness, Google ADK, AWS Strands, Oracle Agent Spec, LangChain, Mastra, Pydantic AI, Agno, and CrewAI. Many ship first-party support; Amazon Bedrock AgentCore supports AG-UI directly.
Your execution platform. Keep your agents on Amazon Bedrock AgentCore, Claude Managed Agents, Google's Agent Platform, LangChain's Managed Deep Agents, Microsoft Foundry Agent Service, or your own infrastructure. Connect them to OpenBot through an AG-UI endpoint, using an adapter where needed. Your choice of agent platform stays independent of your workspace.
OpenBot has three parts. On your laptop, setup runs the backend and Intelligence for you. For a team, the Helm charts deploy both on Kubernetes in your own infrastructure: openbot-bundle installs the two together, and openbot installs OpenBot beside an Intelligence that already runs.
| Part | What it does |
|---|---|
| OpenBot frontends | Mac, Windows, web, iOS, Android, Slack, and Teams connect people to the same workspace. Conversations, interactive results, computer view, and approvals adapt to each surface. Choose a frontend. |
| OpenBot backend | Runs the workspace API and built-in Bots, connects external agents and tools, manages Bot computers, and enforces identity, permissions, action policies, and audit. Published as signed images and Helm charts, and reached through one API. Deploys on Kubernetes with PostgreSQL and persistent storage. |
| CopilotKit Intelligence | Durable conversations, memory, Automatic Learning, and enterprise governance services. Separately licensed; runs on Kubernetes alongside OpenBot. |
OpenBot enforces sign-in, tool permissions, action policies, and audit at its API, alongside Intelligence's platform services. Built-in Bots run in the OpenBot server; your own agents can run alongside OpenBot or on any agent execution platform. Both use AG-UI and can share the same workspace.
Computer execution is pluggable: use the default Kubernetes setup or connect a compatible external computer provider.
Architecture details · Services and ports · Kubernetes deployment
The OpenBot application template is open source under the MIT license. You can fork, modify, and white-label it. It uses CopilotKit Intelligence, which is separately licensed and can run entirely on your own machine or infrastructure.
| Where you run it | CopilotKit Intelligence license |
|---|---|
| Your laptop, for personal use and experimentation | Requires a free local Intelligence license. Desktop setup handles this for you. |
| Kubernetes evaluation | Requires a free Intelligence trial license. Request a trial. |
| Kubernetes / production | Requires a production Intelligence license beyond evaluation. OpenBot for Business includes Intelligence for use with OpenBot. Plans and pricing. |
Fully local is an option. Run OpenBot, Intelligence, and a compatible model locally. A cloud model or connected online app still sends requests to that service. Initial downloads, account sign-in, and local license renewal need internet access.
Deploy OpenBot on AWS EKS, Azure AKS, Google GKE, or your own Kubernetes cluster. Each release publishes two Helm charts:
| Chart | What it installs |
|---|---|
openbot-bundle (openbot-bundle-0.1.0.tgz in v1.1.0) | OpenBot and CopilotKit Intelligence together, on one PostgreSQL server. Nobody signs in to Intelligence: the chart makes OpenBot's organization, project and key in it. The quickest way to try OpenBot on a cluster, and the evaluation below. |
openbot (openbot-0.3.0.tgz in v1.1.0) | OpenBot alone, pointed at an Intelligence that already runs, managed or self-hosted: its two addresses in config.intelligence.apiUrl and config.intelligence.gatewayWsUrl, and a project key. |
For a first evaluation, you need a cluster with a default StorageClass, kubectl, Helm, a trial or production license, and a model key. The install requests about 3.15 vCPU while it runs, plus about 0.4 vCPU while its install Jobs run; on EKS that is three t3.large nodes, not two. The commands below use an OpenAI key. For Anthropic, a model router, your own database, or OpenBot against an Intelligence you already run, use the Helm guide that comes with each chart (helm show readme on the chart).
Setting up with an AI assistant? Give it this README and the Helm guide (
helm show readmeon the chart below). The guide covers cloud-specific values, storage, secrets, sign-in, networking, upgrades, and troubleshooting. Use the evaluation below only through a local port-forward; configure sign-in and TLS before sharing a deployment.
Create openbot-values.yaml locally. Replace the placeholders with your license and model key. Keep this file out of source control.
openbot:
config:
singleUser: true
secrets:
licenseToken: "<your CopilotKit trial or production license>"
modelApiKey: "<your OpenAI API key>"
Install the openbot-bundle chart published with the release.
This evaluation runs shared computers: every Bot runs on one computer, and a command one Bot runs can read another person's files. That suits a proof of concept only, and openbot.computers.sharedModeAcknowledged=true says you know it. For people, use sandbox mode instead, which gives each person a computer of their own and is more secure: install the agent-sandbox controller in the cluster and set openbot.computers.mode=sandbox (the Helm guide has the command).
helm install openbot https://github.com/CopilotKit/OpenBot/releases/download/v1.1.0/openbot-bundle-0.1.0.tgz \
--namespace openbot --create-namespace \
--values openbot-values.yaml \
--set openbot.computers.sharedModeAcknowledged=true \
--timeout 15m
On arm64 nodes, add --set intelligence.embeddings.enabled=false. The OpenBot image runs on amd64 and arm64, but the embeddings server Intelligence runs for Memory is amd64 only. Without it, Memory recalls by keyword.
From the release after v1.1.2, the chart also installs CopilotKit's management agent into openbot-system, which connects a team-licensed install to CopilotKit by default (see CopilotKit management). To leave it out, add --set openbot.management.enabled=false.
Open your evaluation.
kubectl -n openbot get pods,jobs
kubectl -n openbot port-forward svc/openbot-server 3001:3001
Open http://127.0.0.1:3001. This configuration is single-user: anyone who can reach it is an administrator. Keep the port-forward local.
The chart generates every password, key and token both products need, creates both databases, and sets up Intelligence's organization, OpenBot's project and the Learning container. OpenBot's server migrates its own database as it starts and does the scheduled work itself, so there is no migration Job and no CronJob. Automatic Learning uses your model key too.
For OpenBot against managed Intelligence, or an Intelligence you already run, install the openbot chart instead (https://github.com/CopilotKit/OpenBot/releases/download/v1.1.0/openbot-0.3.0.tgz) with config.intelligence.apiUrl, config.intelligence.gatewayWsUrl and secrets.intelligenceApiKey; its guide has the commands. A release of the 0.2 chart that still runs the Intelligence it installed is refused at upgrade to 0.3: keep it on 0.2, or install openbot-bundle as a new release in a namespace of its own.
For a team deployment, follow the Helm guide (helm show readme on the chart) to configure authentication, TLS, your database, secrets, persistent storage, and network policies. For a single-container alternative, see Deploy it.
From the release after v1.1.2, both charts install a management agent into the namespace openbot-system (management.enabled). With a team licence, the OpenBot server connects the install to CopilotKit's management service by itself, with no enrollment step. It never connects on OpenBot Desktop, on the personal edition, on OpenBot Cloud, or without a team licence.
management.enabled=false (openbot.management.enabled=false on openbot-bundle), or have an admin press Disconnect on Admin → Managed updates. Connect there turns it back on.CopilotKit management on Kubernetes lists every field that leaves your cluster and how to set up managed upgrades.
Use the template to customize the workspace, branding, Bots, and skills. The source setup below uses an Intelligence on your own machine by default; managed Intelligence is the alternative.
git clone https://github.com/CopilotKit/OpenBot.git
cd OpenBot
To run the open-source template locally, you’ll need the following.
scripts/start.sh pulls at the
tag in backend-images.env: main in a checkout of main, the images built from main, and the
release's own version in a release (v1.0.3 in the v1.0.3 tag). Nothing else is built or needed
for them.BOT_PROVIDER set.The example configuration sets OPENBOT_SINGLE_USER=true, so you can try the app as a local administrator. Configure sign-in before giving anyone else access.
Setting up with an AI assistant? Paste
prompt.txtinto it first. It carries the same steps as below plus the things that are easy to get wrong: which of the blank keys in.env.exampleare actually yours to fill (the CopilotKit key and a model key), which the start script fills for you, and what each start-up refusal means. Every claim in it is checked against this repository.
Create .env:
cp .env.example .env
bun install
Connect Intelligence. .env.example leaves its two addresses and its key empty, for one of
these to fill.
On this machine, the default (a preview for macOS with Docker Desktop; see Intelligence on your own machine):
npx --yes copilotkit@latest login
npx --yes copilotkit@latest local setup
npx --yes copilotkit@latest local connect --approve-connection
local setup installs Intelligence in a local cluster of its own, and local connect writes
its two addresses and its project key to .env. Each installation has its own ports, which is
why the example file has no address to ship.
A managed project instead, where the local Intelligence does not run or to keep
conversations in the managed service. Set the two addresses in .env first:
INTELLIGENCE_API_URL=https://api.intelligence.copilotkit.ai
INTELLIGENCE_GATEWAY_WS_URL=wss://realtime.intelligence.copilotkit.ai
then:
npx --yes copilotkit@latest login
npx --yes copilotkit@latest project select
bun scripts/setup-learning.ts
login opens a browser on this machine. On a machine with no browser, such as over SSH,
npx --yes copilotkit@latest login --device signs in with a code from a browser anywhere.
project select asks which project in the terminal; where there is no terminal to ask in,
name it: npx --yes copilotkit@latest project select --project <slug or id> --json.
The helper provisions the selected project's runtime key, creates or reuses its
openbot Learning container, then writes both settings to .env. It preserves
custom container assignments and never replaces an existing OpenBot key; with one
set, it only creates openbot in that key's project if it is missing.
For fresh self-hosted setup, set INTELLIGENCE_API_URL to that deployment's
HTTPS API origin (or http://localhost for a local one) and run the helper
without the two npx commands. It opens an isolated Chrome or Edge window for
your usual sign-in and project choice; install either browser first. For CLI-managed
local evaluation installs, it discovers the matching dashboard with the newest installed or
cached CopilotKit CLI and uses that dashboard for login and session requests. Discovery
runs offline with Bun, without downloading the CLI or requiring npx on your PATH.
If no CLI is available, manually hosted deployments use their API origin for sign-in. Complete the local auth
approval shown in the browser when prompted. The runtime API URL stays unchanged. It writes
the API URL, the key and the container, not INTELLIGENCE_GATEWAY_WS_URL, so
set that one to the same deployment yourself. Once openbot exists, the server assigns it
as the default by itself unless Admin → Automatic Learning
has a saved setting.
Managed Intelligence needs no separate license token.
The same CopilotKit CLI sign-in provisions Composio automatically when you run
bash scripts/start.sh. If that cannot complete, OpenBot still starts, with apps
unavailable. You can run bun run setup:composio first to prepare it separately, or
later to retry; it does not need a Learning container. The helper creates or reuses one
isolated Composio project for this installation and saves its project key to .env.
Existing Composio keys and Arcade configurations are preserved. Keep the private
.env.openbot-installation-id file across restarts and interrupted setup attempts;
do not copy it into a new installation. This needs a published CopilotKit CLI with
integrations composio provision and the hosted provisioning service enabled.
See Composio setup for deployment preparation.
Fill the remaining required values:
OPENAI_API_KEY, or for Anthropic both ANTHROPIC_API_KEY and BOT_PROVIDER=anthropicThe example KEY_ENCRYPTION_KEY is public and fine locally; generate your own with:
openssl rand -base64 32
Run:
bash scripts/start.sh
Open http://localhost:3010.
scripts/start.sh pulls the OpenBot images at the tag in backend-images.env, starts Docker services, starts the API server on port 3001 from the OpenBot server image (it applies its own migrations as it starts and fires routines itself), starts the app from this checkout on port 3010, and checks that the services answer their own health routes before printing next steps. It pulls on every start, so a checkout of main runs the images built from main now; offline, it uses the copies already on the machine. The server's log is docker compose logs server.
scripts/stop.sh takes the same things down, including each Bot's computer, which compose does not own; --keep-computers leaves the computers running. Nothing is deleted: the database, the Bots' files and their browser profiles are volumes.
Run the clone inside WSL 2 with Ubuntu, and run every step above from an Ubuntu terminal. Windows (WSL 2) lists what to install in Ubuntu first. Keep an Ubuntu terminal open while you use OpenBot, and open the app from your Windows browser at http://127.0.0.1:3010. These steps were checked there with a managed project in step 2.
The example configuration expects Intelligence on this machine, installed by the CopilotKit CLI as
Evaluate Intelligence locally describes. The free
Developer plan qualifies. The local license lasts 30 days and
npx copilotkit@latest local renew renews it as often as you need, while your account is in good
standing. It is a preview for macOS with Docker Desktop,
not a production installation. Run its
npx copilotkit@latest local connect from the OpenBot root, where .env is.
That command writes INTELLIGENCE_API_URL, INTELLIGENCE_GATEWAY_WS_URL and
CPK_INTELLIGENCE_API_KEY to .env. OpenBot reads those settings directly; no key
copying or renaming is needed. INTELLIGENCE_API_KEY remains supported for older
configurations. When both are set, the non-empty CLI key takes precedence so
reconnecting uses the new project's key.
To give the Bots a Learning container on that stack, see Automatic Learning.
One image carries the app, the API, the browser the Bots drive, and optionally PostgreSQL. Same
.env, no Kubernetes.
# The published image. Nothing to clone and nothing to build.
docker run -p 3001:3001 --env-file .env \
-e EMBEDDED_POSTGRES=on -v openbot-data:/var/lib/postgresql \
ghcr.io/copilotkit/openbot:latest
Everything is on 3001 here, the app included, rather than the 3010 the clone uses. latest is the
most recent release and a version tag such as :v1.0.1 pins one.
Leave EMBEDDED_POSTGRES off and set DATABASE_URL to point at a database you already run.
docs/deployment.md has the minimum sizes, the platform notes, and how it behaves behind more than one replica.
Pick a task you know well enough to review. For example, ask a Bot to check a hotel receipt against a travel policy in Drive. Have it show the room rate and tax separately so you can decide whether the claim meets the nightly limit. Use Teach a Bot to record the steps you want it to follow on the next claim.
/bot and ask: Open news.ycombinator.com and tell me the top story./admin/audit./admin/boundaries, add a deny rule or preset, and retry the same browser action./bots, give it a standing role, and start a channel with it.In Personal Edition, you start with one assistant on your computer. With the source template, Docker Compose starts the supporting services, PostgreSQL stores the workspace configuration, and you choose the model. OpenBot encrypts stored model credentials and keeps them out of logs.
The team template comes with two Bots. General Assistant helps with everyday work. Knowledge answers questions from the company documents you connect and cites its sources.
To add a Bot, open /bots or start from one of the YAML examples. For example, Meeting Follow-ups reads meeting notes and lists who agreed to do what. Copy its file into examples/fintech/agents/ and restart OpenBot to try it. You grant tool access separately, so you can let a Bot read a document without giving it permission to edit it.
More at open.bot.
A Bot is any endpoint speaking AG-UI, the open protocol for agent-to-user interaction, so OpenBot is not tied to a framework and neither are you. Agents built with LangGraph, Mastra, CrewAI, Pydantic AI, Google ADK or written by hand all arrive the same way, and the governance rides the protocol rather than the framework.
A Bot has eight things, always listed in this order: Conversations, Routines, Memory, Skills, Apps, Computer, Approvals and Activity. How OpenBot works explains each one. Each is set in at most three places: for one Bot on its page, for every Bot in the main menu (Routines, Memory, Skills, Connections) or Settings (the rest), and, in the team edition, for everyone in Admin.
| One Bot | Every Bot | Everyone (Admin) | |
|---|---|---|---|
| Conversations | /channel/:id, /bot?agent=<id> | /, /channel/new | |
| Routines | /bots/:id/routines | /routines | /admin/proactive |
| Memory | /bots/:id/memory | /memory | |
| Skills | /bots/:id/skills | /skills | /admin/skills, /admin/learning |
| Apps | /bots/:id/apps | /connections | /admin/plugins, /admin/components, /admin/playground |
| Computer | /bots/:id/computer | /settings/computer | /admin/computers |
| Approvals | /bots/:id/approvals | /settings/approvals | /admin/approvals, /admin/boundaries, /admin/what-if |
| Activity | /bots/:id/activity | /settings/activity (personal edition) | /admin/audit |
Beside the eight:
| Route | Purpose |
|---|---|
/bots | Every Bot you can reach; create one, and open its page to change it. |
/bots/:id | One Bot: what it waits on you for, what it is doing, and its rows in the order above. |
/bots/:id/setup | The Bot's name, instructions and who it hands work to. |
/bots/:id/reach, /bots/:id/sharing | Team edition: reach the Bot in Slack, Microsoft Teams or by text, and share it. |
/settings | Your account and preferences. |
/settings/notifications | Where updates go, your devices, and recent deliveries. |
/settings/vault | Your saved logins and, in the personal edition, your keys. No Bot sees what is in it. |
/settings/setup | What OpenBot has and still needs. |
/admin/credentials | Admin → Vault: write-only encrypted credentials for the deployment. |
/admin/people, /admin/permissions, /admin/identity-providers, /admin/providers | Admin → Team: who can sign in, what they may do, and which models Bots use. |
Old addresses redirect to the pages above:
| Old address | Opens |
|---|---|
/capabilities, /capabilities/skills, /settings/skills, /settings/learning | /skills |
/settings/skills/new, /settings/skills/:slug (personal edition) | /skills/new, /skills/:slug |
/capabilities/memory, /settings/memory | /memory, which opens /bots in the personal edition |
/responsibilities | /routines |
/bots/:id/responsibilities | /bots/:id/routines |
/bots/:id/access | /bots/:id/apps |
/settings/passwords, /settings/credentials | /settings/vault |
/settings/credentials/new | /settings/vault/new in the personal edition, /settings/vault in the team edition |
/settings/this-computer | /settings/computer#this-computer |
/settings/browsers | /settings/computer#browsers |
COMPUTER_RUNTIME=runsc to run them under gVisor where the host supports it.tool.name, intent, bot.id, actor.id, page.url, page.host, element.*, key, command, file.*, mcp.* and initiator.* (what started the run, so a rule can refuse a scheduled routine what it would allow a person). Deny is evaluated before allow, a missing policy permits nothing, and a broken rule refuses rather than opens.computer.help_requested, computer.control_taken and computer.control_released. While a person is driving, Bot actions are refused rather than queued.app/src/components/gallery/, sandboxed ones are authored in /admin/playground and published with no deployment. Every call asks the server whether the component exists, is published, and is not withheld from that Bot. Data functions are granted per component./ in the composer. A Bot granted the shipped skill-creator skill can write one with you in the conversation, and saves it only when you press the button on the card./admin/people lists everybody who has signed in, promotes and demotes them, and removes access, which ends the session they are using and stops the next sign-in. Every change is on the audit trail./admin/audit lists what was permitted, what was refused and what failed, and every refusal carries the rule that caused it./admin/credentials, never returned by an API, and redacted from audit events.127.0.0.1 and require a per-container token, so nothing reaches a logged-in browser by knowing its port. The supervisor binds there too, because it holds the Docker socket and its token is a shared secret rather than a network boundary.Any AG-UI endpoint can be a Bot.
From /bots, create a Bot with:
The server validates agent endpoints with the same target checks used for browser navigation, at registration and again on every redirect the endpoint answers with. If no custom endpoint is set, product-created coworkers use MANAGED_AGENT_AG_UI_URL when it is configured, and otherwise run in the OpenBot server on their role description.
A private address is refused unless it is listed in AGENT_ENDPOINT_ALLOWED_HOSTS:
AGENT_ENDPOINT_ALLOWED_HOSTS=agents.internal,10.0.0.42:9000
A host on its own covers any port on that host; a host with a port pins that port. Matching is exact: no wildcards, no suffixes. An entry written as a URL, or containing *, stops startup and names that entry.
The list covers agent endpoints only. Browsing is unaffected, the addresses holding a deployment's own cloud credentials are refused whatever is listed, and listing an address permits registering an agent there rather than granting that agent anything.
Tenant package agents are declared in the package's own agents.yaml, in the directory TENANT_PACKAGE_DIR names (examples/fintech by default), or each in a file of its own under that package's agents/ directory, as one of:
built-in, with a system prompt;remote-ag-ui, with an endpoint; orremote-mastra, with a Mastra server's address.See docs/configuration.md and docs/coworkers.md.
.env.example is the source template. The API server refuses to start without:
DATABASE_URLKEY_ENCRYPTION_KEYINTELLIGENCE_API_URLINTELLIGENCE_GATEWAY_WS_URLCPK_INTELLIGENCE_API_KEY (or the older INTELLIGENCE_API_KEY)COPILOTKIT_LICENSE_TOKEN is optional. With none, the server starts on the
Intelligence project key, once the Intelligence at INTELLIGENCE_API_URL accepts
it; managed Intelligence issues no license. With one set, it must be a valid
CopilotKit license: one that is invalid or expired stops startup with a sentence
naming the variable, and the key is not tried instead. It is also forwarded to the
runtime. The server also checks at start that Intelligence has every operation it
calls, and names the oldest Intelligence version that does when one is missing. A self-hosted Intelligence
also needs the license on its own deployment, or it refuses memory; OpenBot logs
intelligence-entitlement-not-ready at boot when that is missing.
Settings worth knowing:
| Variable | Use |
|---|---|
OPENBOT_SINGLE_USER | Admits every request as one administrator. Required when no identity provider is configured; .env.example ships it on. |
OPENAI_BASE_URL | Answers the OpenAI-shaped calls from somewhere else: a gateway, a proxy. |
COPILOTKIT_OPENAI_API | responses or chat: the OpenAI API the built-in Bots call behind that OPENAI_BASE_URL. Unset, models that take tools only through the Responses API (gpt-5.6 and later) get responses and the rest get chat. |
ANTHROPIC_BASE_URL, GOOGLE_GENERATIVE_AI_BASE_URL | The same, for those two APIs. |
COMPUTER_TOKEN | Secret every Bot computer request must present. start.sh falls back to a fixed dev value. |
SUPERVISOR_TOKEN | Secret the supervisor requires. start.sh falls back to a fixed dev value. |
AGENT_TOOL_TOKEN | Secret a Bot presents to call a granted tool back. start.sh sets one. Without it no Bot may call tools. |
COMPUTER_SUPERVISOR_URL | Gives each person a computer of their own instead of one shared computer. |
COMPUTER_RUNTIME | Set to runsc to run computers under gVisor, where the host has it. |
COMPUTER_SANDBOX | Set to on for Chromium's own sandbox, where the host permits it. |
EMBEDDED_POSTGRES | Set to on for a database inside the deployment container. |
AGENT_COMPUTER_POLICY | JSON action policy. Malformed JSON stops server startup. |
AGENT_COMPUTER_ALLOW_PRIVATE_HOSTS | Lets a Bot reach this machine's own services. Local only, and refused under NODE_ENV=production. |
AGENT_ENDPOINT_ALLOWED_HOSTS | Private addresses an agent may be registered at, comma separated. A host, optionally with a port. |
TENANT_PACKAGE_DIR | Directory containing tenant YAML. Defaults to ../examples/fintech. |
DEPLOYMENT_ID | Names this deployment when two share one Intelligence project. |
OPENBOT_SELF_HOST_BANNER | Set false to hide the bar offering CopilotKit's help self-hosting OpenBot. It never shows on a paid Intelligence plan. |
Full reference: docs/configuration.md.
| Service | Port | Purpose |
|---|---|---|
app | 3010 | React/Vite UI. |
server | 3001 | Hono API, CopilotKit runtime, auth, policy, audit, plugins, components, coworkers, and channels. |
agent-computer | 4100 | Chromium plus /workspace and browser profile. |
agent-langgraph-agui | 4201 host / 4206 container | The managed Bot: the LangGraph harness the team edition's Risk Analyst runs on. |
agent-langgraph-ts | 4215 | The TypeScript LangGraph engine new Bots run on. Compose runs it in every edition. |
agent-harness | 4202 to 4214, per framework | The agent framework picked in OpenBot Desktop setup, behind the harness Compose profile. |
supervisor | 4500 host / 4300 container | Creates and manages one computer per person, and one per Isolated Bot. |
| PostgreSQL | 5432 | Product data, policy, audit, credentials, grants, channels, and component metadata. |
| CopilotKit Intelligence | external | Durable threads and memory. |
The server gateway is the product/API path for Bot browser and file tool calls.
It resolves the target, evaluates policy, writes an audit row, and then calls
agent-computer. The computer also exposes lower-level token-protected service
endpoints; keep them private and do not use them to bypass the gateway.
More detail: docs/architecture.md.
Every OpenBot client uses one API, and its spec is in this repository under api/:
api/openapi.yaml, bundled from one file per area in api/openapi/. Every resource is under /api/v2/organizations/{organizationId}/, where organizationId is an organization's id or its slug. default is the first organization, the one that holds everything from before organizations, so its Bots are at /api/v2/organizations/default/bots. An OpenBot holds more than one when OPENBOT_ORGANIZATION_AUTHORITY is intelligence-platform or ops, and a caller who isn't a member of the organization an address names gets the same not found as one that doesn't exist.api/asyncapi.yaml. A Bot's run as it streams, what changed in your conversations, a Bot's screen and its terminal.The conventions are the same everywhere. An error is a problem detail (application/problem+json, RFC 9457). A list pages with cursor and limit. Every write takes an Idempotency-Key header, and repeating a request with the same key within 24 hours does it once. The web app signs in with its session cookie; anything else sends Authorization: Bearer with an API key, which acts as the person who made it, or with an access token from OAuth 2.1 with PKCE. Both work on /api/v2 only.
A client is given one address, OpenBot's. An Intelligence that runs beside OpenBot is reached there too: on a laptop OpenBot's server carries the Intelligence gateway's socket on its own port, and on a cluster the Ingress or HTTPRoute sends that socket's path straight to Intelligence and everything else to OpenBot. Run from a source checkout, the app keeps the gateway's own port unless OPENBOT_PUBLIC_URL is set. Configuration has the settings.
The web app's client is generated from the spec (bun run api:generate, into app/src/lib/api/generated), and CI fails a pull request whose spec breaks an existing client. Every client is on the API now. The earlier /api/... addresses are retired, except those that stay outside it for a named reason, such as sign-in, the CopilotKit runtime, machine callbacks, webhooks and health checks, which api/client-boundary.allow.ts lists in STAYS. A script should call only /api/v2.
.env.example ships OPENBOT_SINGLE_USER=true, which is one administrator and no sign-in: how a
fresh clone reaches the product without registering an OAuth client first. Delete that line and
configure any one of Google, Microsoft or Okta before anybody else can reach the deployment.
With neither, it refuses to start rather than admitting everybody as an administrator. Configure
more than one provider and the sign-in screen offers each of them.
These four are needed whichever you pick:
BETTER_AUTH_URL=http://localhost:3001 # where OAuth callbacks come back to
BETTER_AUTH_SECRET= # openssl rand -base64 32
TRUSTED_ORIGINS=http://localhost:3010 # where the app is served from
[email protected] # comma separated
Then the provider. Register the redirect URI shown beside it.
# Google — http://localhost:3001/api/auth/callback/google
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
# Microsoft — http://localhost:3001/api/auth/callback/microsoft
MICROSOFT_OAUTH_CLIENT_ID=
MICROSOFT_OAUTH_CLIENT_SECRET=
MICROSOFT_OAUTH_TENANT_ID=common # your directory GUID for staff only
# Okta — http://localhost:3001/api/auth/callback/okta
OKTA_OAUTH_CLIENT_ID=
OKTA_OAUTH_CLIENT_SECRET=
OKTA_OAUTH_ISSUER=https://example.okta.com/oauth2/default
Restart. Accounts, sessions and roles are stored in the same PostgreSQL database as everything else.
A company's own SAML or OpenID Connect provider is registered while the deployment runs, under
Admin → Identity providers, and routed by email domain. An OIDC registration needs every host in the
provider's discovery document listed in TRUSTED_ORIGINS, not only the issuer.
INITIAL_ADMIN_EMAILS is required, because it is what grants the first administrator. After that
/admin/people can promote others, but an address named here stays an administrator and cannot be
demoted or removed from that screen. It is re-read on every sign-in, so editing it takes effect
the next time that person signs in.MICROSOFT_OAUTH_TENANT_ID defaults to common, which admits personal Microsoft accounts as well
as work ones. On a multi-tenant app registration Entra may send no email claim at all, so
OpenBot falls back to upn and then preferred_username. If none of the three arrives the
sign-in is refused and the reason is logged: add email as an optional claim, or use your
directory GUID here.BETTER_AUTH_SECRET shorter than 32 characters, or an Okta issuer with no
credentials behind it.http:// on anything but
localhost is not a secure context, and sign-in cookies want Secure.A team deployment can leave sign-in to another OpenBot, the authority, configured with the Google,
Microsoft or Okta settings above (your Kubernetes OpenBot can serve this role). Set
OPENBOT_ORGANIZATION_AUTH_URL=https://openbot.company.example to the authority's origin. Use an
HTTPS origin; HTTP is accepted only on loopback for local tests. Provider client secrets stay on
that authority. The authority verifies the person and their current role; organization mode never
substitutes [email protected], and it decides sign-in ahead of OPENBOT_SINGLE_USER.
This optional URL is separate from INTELLIGENCE_API_URL, INTELLIGENCE_GATEWAY_WS_URL and
CPK_INTELLIGENCE_API_KEY. Each deployment keeps its own Intelligence project credential.
OpenBot Desktop does not offer organization sign-in. It installs the personal edition, which
refuses OPENBOT_ORGANIZATION_AUTH_URL, and removes that setting from its .env on every Start.
agent-computer drives a browser holding real logins. docker-compose.yml binds it to loopback; leave it there./admin/credentials, which encrypts them. Do not put credential values in tenant YAML or in committed files.AGENT_COMPUTER_ALLOW_PRIVATE_HOSTS lets a Bot reach services on this machine. It ships commented out in .env.example, is for a laptop only, and a deployment running with NODE_ENV=production refuses to start while it is set.AGENT_ENDPOINT_ALLOWED_HOSTS instead. That permits the one address, where the switch above permits the network.bun run format:check
bun run lint
bun run typecheck
bun run test
bun run build
After changing the API spec under api/openapi/, bundle it and regenerate the app's client, and commit both (api/README.md):
bun run api:generate
Use bash scripts/start.sh for the whole stack and bash scripts/stop.sh to take it down. Use bun run dev only when you want the app on its own, against a server that is already running. The database schema and its migrations come with the server image, which applies them as it starts.
openbot and openbot-bundle, published with each release: helm show readme on either is its Helm guideThe OpenBot application source is MIT-licensed © CopilotKit. CopilotKit Intelligence is separately licensed. OpenBot for Business includes Intelligence for use with OpenBot. See plans and pricing.
With official Windows and macOS desktop installers, plus a self-hosted web stack.
GitHub سے آخری اپ ڈیٹ: 4 گھنٹے پہلے
GitHub کے اعداد دن میں چند بار تازہ کیے جاتے ہیں۔
لاگ اِن کریں یا اکاؤنٹ بنائیں تاکہ تبصرہ کر سکیں۔
ابھی کوئی تبصرہ نہیں۔ پہلا تبصرہ آپ کریں۔
فخر سے دکھائیں: آپ کے درجے اور ریٹنگ والا لائیو کارڈ، جو خود بخود اپ ڈیٹ ہوتا ہے۔
چھوٹا والا چاہیے؟ یہ شامل کریں: ?style=flat