Users reported high CPU usage when the app does nothing. A profile of an idle window found 17.4% of one core, and it did not fall when the window lost focus or was minimized. Two causes, both animations that nobody can see: - Every sidebar row shows an `idle` avatar, and the sidebar is not virtualized, so each row morphed an SVG for as long as the list was on screen. `idle` now rests with `hover` and plays on pointer or focus. `working` and `connecting` still play, because motion is the only sidebar signal that an agent runs. - A finished image generation leaves its canvas mounted at `opacity: 0`, and the glow inside it kept two infinite keyframes on `mask-size` and `mask-position`, which the compositor cannot take. One old image repainted every frame for as long as the conversation stayed open. `bun run dev:cpu` is the read-only command that found them. It reads cumulative CPU time from CDP and from `ps` and reports the difference over a known interval, because `ps -o %cpu` is an average over process lifetime and would give a confident wrong answer. It adds no IPC channel and ships nothing into the product. Measured on one machine, idle, with 4 agents in the sidebar: focused 17.4% -> 0.1% (renderer 11.3 -> 0, gpu 5.9 -> 0.1) blurred 18.5% minimized 16.3% Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
OpenBot
OpenBot is a local-first desktop workspace for persistent AI teammates. It supports the local Codex App Server and Claude Code, plus Grok CLI through ACP. It gives every agent its own workspace and conversation, and provides local queues, file transfers, an embedded browser, and agent-to-agent messaging in one desktop app.
Warning
OpenBot is a development preview. Agents currently run with
danger-full-accessandapprovalPolicy: never. They can read and modify files, run commands, use the network, and control the embedded browser without per-action confirmations after the explicit first-launch consent. Run only agents and tasks you trust, keep backups, and review Security before use.
What works
- Prompt-driven agent creation and editing on desktop and mobile, with editable instructions, avatar, and section review before saving.
- Persistent agents backed by independent Codex, Claude, Grok, or OpenCode sessions and local workspaces.
- Per-agent context monitoring with automatic compaction before long threads exhaust the model window.
- FIFO message queues with pause, resume, cancellation, and crash-safe persistence.
- Agent-to-agent messages, replies, reactions, images, and managed file transfers.
- Shared desktop channel chats with one task owner, explicit delegation, shared history, and Stop, Resume, Reassign, Archive, and Restore controls.
- A persistent embedded browser that agents can open, inspect, and control.
- Optional Computer Use integration for macOS through a locally installed Codex plugin.
- Per-agent model, reasoning, profile, notification, browser, and panel state.
- Local data and privacy-safe diagnostics exports from the account menu.
- Optional OpenBot accounts through one-time email codes. The account API runs on Cloudflare Workers and D1.
OpenBot is local-first, not offline-only. Codex connects to OpenAI, Claude connects to Anthropic, Grok connects to xAI, visited pages use the network, and installed plugins may connect to their own services.
Install
OpenBot supports macOS 13 or newer on Apple Silicon, Windows 10 or newer on x64 systems, and x64 Linux as an AppImage.
macOS
- Download the latest
OpenBot-*.dmgfrom GitHub Releases. - Drag OpenBot to Applications and open it.
Windows
- Download the latest
OpenBot-*-x64.exefrom GitHub Releases. - Run the installer and open OpenBot.
Linux
- Download the latest
OpenBot-*-x86_64.AppImagefrom GitHub Releases. - Make it executable with
chmod +x OpenBot-*-x86_64.AppImage, then run it.
On Ubuntu 23.10 or newer and on Debian 13, unprivileged user namespaces are restricted by AppArmor and OpenBot exits during launch until you install an AppArmor profile:
sudo install -m 0644 build/linux/openbot.apparmor /etc/apparmor.d/openbot
sudo systemctl reload apparmor
The same file ships inside the AppImage at resources/linux/openbot.apparmor. Edit the attachment
path in the profile if you keep the AppImage outside the usual locations. Do not start OpenBot with
--no-sandbox: that removes the boundary between a renderer and the rest of the computer.
On the first start from an AppImage, OpenBot writes ~/.local/share/applications/openbot.desktop
and ~/.local/share/icons/openbot.png, which is what lets an openbot:// invitation link open the
app and gives the launcher an icon that stays after the app exits. Delete the two files to undo it.
Voice prompts and remote desktop are not available on Linux.
Important
The Windows preview is not code-signed. Windows can show an
Unknown publisheror SmartScreen warning. Check the release checksum or GitHub build attestation before you run the installer.
Agent setup
OpenBot can download a supported provider runtime when you select Download in onboarding,
Settings, agent setup, or the model picker. OpenBot prefers its managed CLI. Explicit OPENBOT_*_PATH overrides take precedence; a compatible
system CLI is used when no managed copy is available. Updates install OpenBot’s pinned runtime
without changing the user’s system CLI.
You can also install a CLI yourself.
Codex CLI on macOS:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Claude CLI on macOS:
curl -fsSL https://claude.ai/install.sh | bash
Install Grok CLI following the Grok Build documentation, then
authenticate with grok login or set XAI_API_KEY in the environment used to launch OpenBot.
OpenBot downloads and pins the OpenCode CLI, like Codex, Claude, and Grok. OpenCode's free models
need no account and no sign-in: select OpenCode, click Connect, and OpenBot reads the models that
the CLI advertises. To use the paid OpenCode Zen models, click Sign in on the OpenCode row and
paste a key from opencode.ai/auth. OpenBot encrypts the key on this
computer and gives it only to the local CLI. OpenCode Go is a separate subscription that a Zen key
does not buy, so OpenBot leaves the opencode-go/ models out of the picker unless you signed in to
Go in OpenCode itself. If you installed OpenCode yourself, OpenBot
keeps that install and offers no download. Set OPENBOT_OPENCODE_PATH to select an executable
outside your shell's search path. Remote OpenCode agents require Team API v4; older clients do not
show these agents.
On Windows, install the native CLI and make sure codex, claude, or grok is available in PowerShell.
Claude Code also requires Git for Windows. Then authenticate the installed CLI and restart OpenBot.
Bun and Node.js are not required when using an installed release. Screen Recording and Accessibility permissions are needed only for the optional Computer Use plugin.
OpenBot uses the existing local CLI login. It does not copy provider credentials. Grok's
XAI_API_KEY and per-session MCP bearer tokens are never persisted or logged.
For setup problems, data reset, and uninstall instructions, see Troubleshooting. OpenBot's data and network behavior is documented in Privacy.
Development
Development requires stable Bun 1.4.0, Node.js 24 (the version in .nvmrc, matching
the Node that Electron bundles - run nvm use), and at least one supported agent CLI.
Install the exact Bun version on macOS or Linux:
curl -fsSL https://bun.com/install | bash -s "bun-v1.4.0"
Install it on Windows in PowerShell:
iex "& {$(irm https://bun.com/install.ps1)} -Version 1.4.0"
git clone https://github.com/nightly-labs/openbot.git
cd openbot
bun install --frozen-lockfile
bun run codex:doctor
bun run dev
codex:doctor checks the CLI version, App Server handshake, ChatGPT login, and Computer Use plugin
without starting a model turn.
To reset only the local development state, quit the dev app and test client, then run
bun run dev:reset.
The command deletes the app and test-client development profiles plus the legacy host profile,
including openbot.db and its WAL files. It does not change the production profile, agent
workspaces, ~/.codex, or ~/.claude.
To replace only the app development profile with a durable UI showcase, quit the dev app, then run:
bun run dev:seed
bun run dev
The seed adds agents, rich conversations, managed files and references, reactions, completed
agent exchanges, two channels with a delegated task run, channel memories and routines, and local
team chat data. It dates every record backwards from the run, so the transcripts read Today and
Yesterday. It does not add live queue items, open routine runs, or queued channel tasks, so it
starts no model turn.
Use bun run dev:seed --dry-run to inspect the target and fixture counts without changing files.
Marketplace launch catalog
Seed the approved OpenBot team catalog locally with bun run marketplace:seed:local, then start or reuse bun run dev --isolated. Search OpenBot Team in Marketplace to review its Skills and Agents. This seed adds catalog records without resetting app data.
bun run marketplace:build creates the launch bundles. bun run marketplace:publish:production is a dry run; production writes require explicit flags and admin credentials. See the catalog and publication guide.
Skill authors can add optional example-prompt text to the YAML frontmatter in SKILL.md:
example-prompt: Turn the latest commits into release notes.
The skill preview shows this text. Try skill appends it and a skill reference to the selected agent's draft. It does not send the message. The field accepts up to 1,000 characters after trimming. Missing or invalid values use a default example. No new package format or database migration is required.
Local skills
Ask an agent to create a skill from a reusable workflow. It prepares a folder with SKILL.md and calls create_skill. The skill is saved in a shared local library and enabled for that agent. No account is required. Other agents can add it through Settings → Skills → Local skills.
Agents can use list_local_skills, read_local_skill, revise_skill, and install_local_skill. Revisions require the version read by the agent and retain previous versions. Updating a library skill does not update installed copies: use the Update chip or install an exact revision. Modified installed files are protected. To publish a local skill, submit its folder separately through the marketplace.
Optional scripts, references, and assets follow the Codex skill folder structure. A PNG at assets/icon.png supplies the local preview logo. The built-in openbot-skill-creator guide explains the format and validation limits. Registration does not run scripts.
Commands
| Command | Purpose |
|---|---|
bun run dev |
Start the local Auth API, Signal service, and Electron client with renderer HMR on its app profile. Ports are allocated through the dev registry, so a sibling worktree never takes one this stack won. It refuses a second stack in the same worktree unless you pass --force, and --isolated gives the worktree a profile of its own keyed to its path instead of the shared OpenBot Dev one. An isolated profile still shares the computer's provider CLI store, so it does not download the pinned CLIs again. |
bun run preview |
Preview the built Electron client with the green preview icon. |
bun run mobile:go |
Start the mobile app in Expo Go and clear the Metro cache. |
bun mobile:ios |
Build and launch the iOS simulator app without RocketSim. |
bun run mobile:ios:build:local |
Build a production iOS .ipa locally for upload with Transporter. See TestFlight setup. |
bun run mobile:ios:release:testflight |
Start the GitHub Actions iOS build from main and upload to TestFlight. Requires authenticated GitHub CLI. See iOS release setup. |
bun mobile:ios:rocketsim |
Start RocketSim and build and launch the iOS simulator app with RocketSim Connect. See mobile setup. |
bun run mobile:go:tunnel |
Start the mobile app in Expo Go through a Metro tunnel and clear the cache. The OpenBot API and Signal still need their own reachable addresses. |
bun run dev:api |
Start the TanStack Start API and its local D1 database on 127.0.0.1:3100. |
bun run api:start |
Build and preview the Cloudflare Worker locally. |
bun run api:images |
Draw the article artwork into apps/auth-api/content-art/ after you add an article or change a title. Commit the result; the site build fails until it matches. Needs Electron and a GPU, so run it on your own machine. |
bun run api:migrate:local |
Apply D1 migrations to the local development database. |
bun run api:migrate:remote |
Apply D1 migrations to the configured remote database. |
bun run api:deploy |
Build and deploy the account API to Cloudflare Workers. |
bun run remote:up |
Build and start the self-hosted Signal, coturn, and ACME stack. |
bun run remote:check |
Check the Remote API and both Docker Compose configurations. |
bun run remote:check:compose |
Validate both Docker Compose configurations alone, without a running daemon. |
bun run remote:update |
Update Signal, then drain and update the single coturn instance. |
bun run dev:all |
Start the Auth API, Signal service, and single local Electron instance. |
bun run dev:test-client |
Start the Auth API, Signal service, local instance, and an isolated second client for team testing. |
bun run dev:seed |
Replace only the app development profile with durable showcase data. |
bun run dev:reset |
Delete the local app, test-client, and legacy host development state. |
bun run dev:status |
Print, as JSON, every dev stack and dev app instance live on this machine: services, ports, pids, which of them belong to this worktree, and which are orphaned - a supervisor that is gone with its children still holding the ports. Each recorded process carries the state a stop command acts on: live, gone with groupLive for a survivor of a dead leader, and unverified for a pid this machine cannot date. |
bun run dev:verify |
Print a stable JSON verification plan for this worktree: ready/reasons for safe checks, setup state, changed files and affected surfaces, nearby tests, runtime state, qa.required/qa.ready/qa.reasons, the renderer QA loop, safe runnableCommands, and all suggested commands. Add --run to execute only the safe non-mutating checks in the plan. Renderer QA follows snapshot → action with --wait-for → snapshot → screenshot when appearance matters. |
bun run dev:stop |
Stop this worktree's dev stack, children included, using the pids in the registry rather than a process-name pattern. It signals only a pid whose start time still matches the record, so a recycled pid is never sent SIGTERM; anything it cannot confirm is reported, left running and kept in the registry, and the command exits non-zero. --pid=<supervisor pid> stops one other stack, --all stops every stack on the machine. |
bun run dev:forget |
Drop this worktree's stack record without signalling anything, for the one case dev:stop refuses to resolve on its own. It is also the only command that reads a dead record: nothing else deletes one, because a reader that removes what it judged can remove a record the supervisor rewrote in between. Takes the same --pid= and --all. |
bun run storybook |
Start Storybook on a port allocated through the same registry, so two worktrees never announce one port. OPENBOT_STORYBOOK_PORT moves where the search starts; --port is refused. |
bun run build-storybook |
Build static Storybook. CI sets OPENBOT_STORYBOOK_CHECK=true to skip automatic prop documentation during its build check. |
bun run dev:automation |
Drive the running dev app over CDP: instances, pages, snapshot, screenshot, click/type by accessible role. --page=<target-id|url-substring> aims at any window, including embedded browser views; --wait-for=<role>,<name> settles on an accessible target instead of polling; mutations need --allow-mutations and a named instance (this worktree's record, --instance=<id> or --port=). |
bun run dev:cpu |
Measure idle CPU on the running dev app, per process kind and per page. --duration=<ms> (default 60000), --interval=<ms> (default 5000), --label=<name>, --out=<file> (under .openbot-build/dev-automation/cpu/) and --compare=<file> for a before/after delta. Read-only. Take a baseline before a change and a second run after it: only the difference between two runs on the same machine is a result, because a dev build carries the Vite server and the source maps as well. |
bun run check |
Run Biome, both typechecks, offline tests, the browser smoke test, and the production build. |
bun run typecheck |
Check all 11 projects in parallel with a separate incremental cache for each project in this worktree. |
bun run check:ui |
Check the renderer against the design system: shared primitives, Kobalte and Lucide confined to components/ui, palette tokens instead of colour, size, radius and transition literals. Reads the whole renderer in 60 ms. |
bun run test:backend |
Run backend tests only. |
bun run test:browser |
Run the complete local embedded-browser smoke test, including cross-process persistence. Use --scenario=controls, --scenario=tool-boundary, --scenario=evaluation, or --scenario=wait-deadlines for one isolated scenario. |
bun run test:codex |
Probe the real CLI handshake and account without starting a paid turn. |
bun run package |
Build an unpacked local ARM64 application. |
bun run package:verify |
Build and verify the real ARM64 app bundle, icon, metadata, ASAR, and fuses. |
bun run package:win |
Build an unpacked local Windows x64 application on Windows. |
bun run package:win:verify |
Build and verify the Windows x64 application on Windows. |
bun run package:linux |
Build an unpacked local Linux x64 application on Linux. |
bun run package:linux:verify |
Build and verify the Linux x64 application on Linux. Run it under xvfb-run -a without a display. |
bun run release:preflight |
Verify version, Git state, and GitHub release secrets before tagging. |
bun run dist:mac |
Build unsigned local ARM64 DMG and ZIP update artifacts. |
bun run dist:win |
Build an unsigned Windows x64 NSIS installer on Windows. |
bun run dist:linux |
Build an unsigned Linux x64 AppImage on Linux. |
bun run release:patch |
Create the next patch version commit and tag. |
bun run test:filesystem |
Online/manual: run real full-access Codex and Claude filesystem turns across private and shared workspaces. |
bun run test:imagegen |
Online/manual: run a real full-access image-generation turn. |
bun run test:storage-live |
Online/manual: verify isolated Codex and Claude turns in a temporary SQLite database. |
Publishing never creates a second OpenBot instance. The host keeps its Team API on loopback. A hidden, sandboxed Electron page connects it to invited clients through WebRTC. Signal carries only connection setup messages. Team data uses direct DataChannels when possible and the project coturn service when direct ICE fails. Cloudflare stores accounts, configuration, memberships, invitations, logical session records, and public assets. It does not carry chats, files, commands, or remote desktop media.
The development runner advertises both Mobile Connect and its Signal service on the preferred private LAN interface. Restart the runner after changing networks so newly generated QR codes contain the current address.
Production mobile analytics setup and required OpenPanel credentials are documented in OpenBot Mobile.
mobile:go:tunnel exposes only the Expo development server. It does not expose the local account
API, Signal, or TURN. A phone on 5G cannot use the default LAN addresses. For a test across networks,
use a VPN that connects both devices, or provide HTTPS and WSS endpoints that forward to this dev
stack's account API and Signal ports. Set OPENBOT_MOBILE_AUTH_API_URL to the reachable account API
origin and REMOTE_SIGNAL_URL to the reachable Signal URL, including /v1/signal, before starting
bun run dev. Use the ports reported by bun run dev:status; they can differ between worktrees.
If direct WebRTC cannot connect, TURN_HOST must name a reachable coturn service and
TURN_SHARED_SECRET must match that service. An HTTP tunnel cannot forward TURN traffic.
Generate and scan a new Mobile Connect code after changing the account API address; an existing
mobile session retains its original address.
Mobile sign-out removes the local login even when the account API is unavailable. The app keeps only the credential in secure storage for revocation retries at startup, on return to the foreground, and on the next connection attempt. Remote revocation completes when the account API is reachable.
For manual team testing, bun run dev:test-client starts a complete two-client harness. The second
client uses the isolated OpenBot Dev Test Client profile and renderer port 5174. dev:reset also
removes that profile and the legacy OpenBot Dev Host profile. It does not remove the downloaded
provider CLIs, which the whole computer shares. Press Ctrl+C in the runner terminal
to stop only the processes started by that runner, or run bun run dev:stop from the worktree once
that terminal is gone. Never stop a dev stack with pkill -f electron or pkill -f bun: on a
machine running several worktrees those kill the other checkouts' work mid-write, which is what
dev:status and dev:stop exist to make unnecessary.
Set OPENBOT_DEV_ICE_TRANSPORT_POLICY=relay before this command to force Team API traffic through
coturn. This test option works only with the development renderer. Production always starts with all.
The normal check command is offline and uses a fake App Server. Manual smoke scripts may use the
signed-in subscription and must not run in CI.
Local agents run with the providers' unrestricted execution modes. Each agent starts in its own
persistent ~/OpenBot/Agents/<agent-id> workspace and also receives ~/OpenBot/Shared; routine command
and filesystem work in both locations runs without OpenBot adding another permission boundary.
Because these modes are intentionally unrestricted, they also permit host access outside those
directories when the provider and operating system allow it.
Architecture
Electron main
├── local Codex App Server process over stdio JSONL
├── local Claude Agent SDK session over stream JSON
├── SQLite command log and read projections
├── secure typed IPC handlers
└── sandboxed WebContentsView browser host
↕ typed preload bridge
SolidJS renderer
Cloudflare Workers
└── TanStack Start + Solid 2 account API
├── D1 accounts, email challenges, hashed sessions, and team tunnels
└── R2 account avatars
src/mainowns the Electron lifecycle, window security, local protocol, and IPC registration.src/backendowns provider adapters, persistence, message scheduling, transfers, and the browser host.src/preloadexposes only the typedwindow.openbotAPI.src/renderercontains the SolidJS interface.apps/auth-apicontains the TanStack Start account API, one-time email codes, rate limits, and D1 migrations.packages/contractscontains process-boundary contracts, shared limits, and pure validation.
See docs/ARCHITECTURE.md for dependency direction, state ownership, and rules for new modules.
Chat attachments
Attach MP3 audio and MOV video through the file picker or drag and drop. The limits are 100 MB per
file, 250 MB per message, and 10 files per message. OpenBot gives the agent the original file; it does
not play, decode, transcribe, or validate the recording during import. Damaged recordings can be
attached for inspection. Analysis depends on the tools available to the agent. For other audio or
video formats, export as MP3 or MOV, or attach a text transcript. Remote hosts must advertise the
media-attachments capability; update the host if this feature is unavailable.
Local data and network boundaries
~/OpenBot/Agents/<agent-id>— one working directory per agent. A profile written before the bot-to-agent rename holds them under~/OpenBot/Bots; the app moves them on first launch, and a workspace whose move could not run stays readable where it is.~/OpenBot/Shared— files intentionally shared between agents.~/OpenBot/Shared/Transfers— managed message snapshots and generated files. Each transfer has an.openbot-transfer.jsonmanifest with ownership, recipients, size, and SHA-256 metadata.~/OpenBot/Downloads— embedded-browser downloads.- Electron
userData/openbot.db— the canonical OpenBot event log and projections for agents, conversations, provider session bindings, queues, reactions, and attachment indexes. - Electron
userData/legacy-backup-v1— unchanged copies of importedbots.jsonandmailbox.jsonfiles, when these files existed before the SQLite migration. ~/Library/Application Support/OpenBot/provider-runtimes— the provider CLIs OpenBot downloads and pins. One store for the whole computer, outside any one profile, so every development profile and the packaged app read the same download.--user-data-dirkeeps the store in that directory instead, so an explicitly named profile stays self-contained.~/.codex— login and thread history managed exclusively by Codex CLI.~/.claude— login and session history managed exclusively by Claude CLI.~/.grok— login and session history managed exclusively by Grok CLI.
Deleting an agent removes its workspace, owned generated attachments, and deliveries addressed only to that agent. A transfer remains when another agent still uses the same message.
OpenBot keeps one stable local conversation when an agent changes between Codex, Grok, and Claude. Native provider session identifiers stay private and are used only to resume provider runtime state.
The Electron renderer is never exposed as a public website. It communicates with local CLI processes
over stdio. When the owner publishes OpenBot, its authenticated Team API stays on localhost. WebRTC
protocol v3 carries RPC, events, and binary files to desktop and mobile clients. Expo Go hosts the
mobile RTCPeerConnection in a hidden Expo DOM component, so mobile uses the same encrypted transport
without a custom native development build. The account flow connects to
the configured HTTPS Cloudflare API. The client stores only an encrypted OpenBot session token. One-time codes expire after
10 minutes and are stored only as hashes. A daily maintenance task removes expired or consumed
authentication records from D1. The embedded browser uses a separate sandboxed Electron session and
cannot access window.openbot or managed local attachments.
Security
Read SECURITY.md before reporting a vulnerability. Do not put credentials, private files, conversation contents, or sensitive diagnostics in a public issue.
Full local access is an explicit current product decision, not a security boundary. Reports are especially useful when remote content can reach Electron privileges, managed attachment paths can escape their roots, IPC sender validation can be bypassed, or an agent can act outside the access described above.
Releases
Releases are tag-driven. bun run release:patch, release:minor, or release:major prepares the
version and changelog. After review, commit, preflight, and tag the release; pushing the tag builds a
signed and notarized macOS ARM64 release, an unsigned Windows x64 release, and an unsigned Linux x64
AppImage in GitHub Actions.
Installed builds check GitHub Releases for updates and expose download/restart controls in the account
popover. Release signing secrets and the complete procedure are documented in
docs/RELEASING.md.
Contributing
See CONTRIBUTING.md. By contributing, you agree that your contribution is licensed under PolyForm Noncommercial 1.0.0. Community behavior is governed by the Code of Conduct.
License and attribution
Copyright 2026 Norbert Bodziony.
Licensed under the PolyForm Noncommercial License 1.0.0. You may use, modify, and distribute the code for permitted noncommercial purposes. Commercial use requires a separate license from the copyright owner. Versions up to and including 0.1.11 remain available under Apache-2.0. See NOTICE for attribution and third-party notices.
OpenBot is an independent source-available project and is not affiliated with, endorsed by, or sponsored by OpenAI. OpenAI, ChatGPT, and Codex are used only to describe compatibility with their respective products and services.