nightly-labs/openbot
A local-first desktop workspace for persistent AI teammates. Run Codex, Claude, and Grok with dedicated workspaces, task queues, file sharing, browser control, and agent-to-agent collaboration.
About nightly-labs/openbot
nightly-labs/openbot is an open-source project on GitHub, mainly written in TypeScript. A local-first desktop workspace for persistent AI teammates. Run Codex, Claude, and Grok with dedicated workspaces, task queues, file sharing, browser control It currently holds 3,585 stars and 338 forks with 328 open issues, and was last pushed on 2026-10-29 (repository created 2026-08-12).
Project Overview
Git Homed tracks it on the Today's Trending board, currently at rank #17 with 709 new stars today.
GitHub Repository Details
README
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, OpenCode, Gemini, Cursor CLI, and Cline 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-access and
approvalPolicy: 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, OpenCode, Gemini, Cursor, or Cline sessions and local workspaces.
- Custom OpenAI-compatible endpoints and custom ACP agents, with detection of local model servers (Ollama, LM Studio) and installed agents.
- 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 on macOS, Windows and Linux through the
cua-driverbinary in the release, which OpenBot starts as its own child process and gives to every provider. - 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.
Install
OpenBot supports macOS 13 or newer on Apple silicon or Intel, Windows 10 or newer on x64 systems, and x64 or arm64 Linux as an AppImage.
macOS
1. Download the latest OpenBot--arm64.dmg (or OpenBot--x64.dmg on an Intel Mac) from GitHub Releases.
2. Drag OpenBot to Applications and open it.
Windows
1. Download the latest OpenBot-*-x64.exe from GitHub Releases.
2. Run the installer and open OpenBot.
Linux
1. Download the latest OpenBot--x86_64.AppImage (or OpenBot--arm64.AppImage on arm64) from GitHub Releases.
2. Make it executable with chmod +x OpenBot-*.AppImage, then run it.
The AppImage does not need libfuse2, so it also runs on Arch Linux and Omarchy. It mounts itself
with fusermount3 from the fuse3 package.
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:// link - an invitation, or
a plugin listing - open the app and gives the launcher an icon that stays after the app exits. Delete the two files to undo it.
Remote desktop works on Linux x64 in an X11 session, such as Xorg or Xvfb. It does not work under Wayland, and the arm64 AppImage does not include it.
For Gemini sign-in, install a desktop browser and xdg-utils. Open the sign-in page in a
desktop session on the same host or VM. Google sends the callback to that host through
127.0.0.1; a server with no desktop cannot complete this sign-in. See
Gemini setup.
Linux server with no screen
To run OpenBot as an always-on server of your account on a VPS or home server (Ubuntu 24.04 or 26.04 with systemd), install it from a terminal and sign in with an email code:
curl -fsSL https://raw.githubusercontent.com/nightly-labs/openbot/main/scripts/install-server.sh | sudo bash
sudo openbot login
Then use it from the desktop app, the iPhone app or openbot.run/app. See
self-hosted servers for the options and the openbot commands.
Docker
The same server runs as a container (linux/amd64 and linux/arm64). The seccomp profile lets the
Electron sandbox stay on:
curl -fsSLO https://raw.githubusercontent.com/nightly-labs/openbot/main/docker/seccomp.json
docker run -d --name openbot --restart unless-stopped \
--security-opt seccomp=seccomp.json --security-opt no-new-privileges:true \
--shm-size 1g --stop-timeout 60 -v openbot-data:/data \
ghcr.io/nightly-labs/openbot:latest
docker exec -it openbot openbot login
See Docker for Compose, the data volume, upgrades and the security limits. For Amazon ECS, see AWS ECS.
Nix
The flake installs the desktop app from the latest release on x64 or arm64 Linux and on Apple silicon:
nix run github:nightly-labs/openbot
nix profile install github:nightly-labs/openbot
overlays.default adds pkgs.openbot. OpenBot is not free software, so your nixpkgs must allow it,
for example with nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "openbot";.
Nix installs OpenBot updates. OpenBot does not update itself from the Nix store. On Linux, the Nix
package does not include the remote desktop runtime, because nixpkgs does not have a library that it
needs.
[!IMPORTANT]
Windows releases are signed by SYNTHETIFY LABS SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ. Older
releases are not code-signed. SmartScreen can still warn about a new release. 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. OpenBot checks for a newer provider CLI
release at startup and every hour, and Check for updates in a provider's actions menu checks at
once. Updates install the latest upstream release without changing the user’s system CLI; the
version in native-runtime.lock.json is only the first-install fallback.
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 Go models, click Sign in on the OpenCode row and
paste a Go key from opencode.ai/auth. OpenBot encrypts the key on this
computer and gives it only to the local CLI. OpenBot supports OpenCode Go only: the Zen models a
Go key does not buy stay out of the picker. Models with the Free label in the model picker need no
sign-in. Other models need a sign-in with their provider: a Go key for the opencode-go/ models, or
opencode auth login in a terminal for OpenCode Zen and third-party providers. Without it, the turn
fails with an error that names the provider. 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.
Gemini uses a Google AI Pro or Ultra plan. OpenBot downloads Google's Antigravity ACP server on
this computer when you select Download on the Gemini row, because Google's license does not let
OpenBot include it. Sign in opens Google's sign-in page in your browser. OpenBot never uses an
antigravity command on your search path, because the Antigravity editor installs a command with
that name. Set OPENBOT_ANTIGRAVITY_PATH to select a server executable yourself. Put it in a
bin/ folder, and put an antigravity-package.json file with its version in the folder above
bin/. Keep localharness_external beside the server. When that path is set, OpenBot uses
only it. Connect remains available in the host's local Settings > Providers screen. Remote
settings cannot perform Google sign-in; use a browser on the host. See
Gemini setup and download recovery for the required
layout, the reported IPv6 download failure, and checks that do not change host networking.
Cursor uses a Cursor plan or a Cursor API key. OpenBot downloads and pins the Cursor CLI
(cursor-agent) when you select Download on the Cursor row in More providers, and starts it with
cursor-agent acp. Sign in opens Cursor's sign-in page in your browser. You can also set
CURSOR_API_KEY in the environment used to launch OpenBot. If you installed cursor-agent
yourself, OpenBot uses it until a download exists. OpenBot never uses the cursor command, which
starts the Cursor editor. Set OPENBOT_CURSOR_PATH to select an executable yourself. Cursor
agents stay on this computer: team members do not see them.
Cline uses a Cline account, which has free models with limits for each model. The provider of a
free model can use your prompts to train models. OpenBot downloads and pins the Cline CLI (cline) when you
select Download on the Cline row in More providers, and starts it with cline --acp. Sign in opens
Cline's sign-in page in your browser. You can also set CLINE_API_KEY in the environment used to
launch OpenBot. If you installed cline 3.0.68 or newer yourself, OpenBot uses it until a download
exists. Set OPENBOT_CLINE_PATH to select an executable yourself. Cline agents stay on this
computer: team members do not see them.
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. Optional Computer Use works on macOS, Windows and Linux, and the release carries the driver, so there is nothing to install. Only macOS asks for a permission for it: Screen Recording and Accessibility.
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. Each provider's terms
apply to your sign-in. See provider terms for Claude subscriptions.
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.2, 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.2"
Install it on Windows in PowerShell:
iex "& {$(irm https://bun.com/install.ps1)} -Version 1.4.2"
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, and ChatGPT login without starting a
model turn. bun run cua-driver:doctor reports the Computer Use driver separately.
In a new git worktree, run bun run dev:bootstrap. It copies the files that .worktreeinclude
lists from the main checkout when they are missing, installs dependencies, migrates the local API,
and seeds the isolated profile. Set it as the worktree setup command of your agent harness.
On macOS, a worktree's node_modules uses almost no new disk space. Bun clones packages from its
cache, and the root postinstall clones Electron from ~/Library/Caches/OpenBot/electron-dist.
du still shows the full size of each clone.
The first install of an Electron version extracts it once and saves it there. Delete the directory
to clear the cache; an entry that nobody used for 30 days is removed by the next save.
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 prints each profile before it deletes it, and it
deletes nothing while a dev app has one of them open. It does not change the production profile,
the worktree profiles that bun run dev opens (OpenBot Dev wt-), agent workspaces,
~/.codex, or ~/.claude.
bun run dev seeds a development profile it creates, so a first start already shows this data.
bun run dev:seed replaces the shared OpenBot Dev profile. To use it, quit the dev app, then run:
bun run dev:seed
bun run dev --shared
The seeded agents run on opencode-go/muse-spark-1.3-contributor at medium effort while this
computer's OpenCode CLI lists it, and on gpt-6-luna at low effort otherwise. A dev build starts a
new agent on the same pair, so a seeded agent and one you create agree; a packaged build always uses
gpt-6-luna.
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.
dev:seed, dev:reset, dev:verify, dev:bench, and dev:automation print their usage for
--help and change nothing. They stop with exit code 2 on an option that they do not know.
Marketplace launch catalog
Seed the approved OpenBot team catalog locally with bun run marketplace:seed:local, then start or reuse bun run dev. Search OpenBot 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. 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.
Import agents from Grok Bot
Open Server settings → Import on this computer, or on a joined server in the desktop app or the browser client. Every member of a server can import, not only an owner or admin. Add the OpenBot export agent to Grok Bot and say "Export my agents for OpenBot". It saves one .zip file to Downloads. Choose that file in OpenBot, select the agents, and import them.
The import adds each agent's name, instructions, avatar, skills, routines, and memories. Workspace files are copied to imported/ in the agent's workspace if you included them. Chat history is not copied: the export agent keeps the important facts as memories. For this computer, the file is read here and is not uploaded. For a joined server, the file (at most 100 MB) goes to the computer that runs that server through the encrypted host connection. A member's import uses a skill that the server already has instead of changing it. The export skill and its format are in resources/agent-import/grok-bot/SKILL.md.
Commands
The browser client is served at /app by the public web app. For local development, run
bun run dev:api and open /app on the API URL printed by the supervisor. Use
bun run dev when a desktop host is also needed.
Use bun run storybook and Web → Workspace → Connected for shared UI test data.
See web client delivery for the release gate and focused checks.
| 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. Each worktree opens a profile of its own, keyed to its path; --shared opens the shared OpenBot Dev profile instead. --isolated is still accepted and changes nothing. A profile that you used before stays on disk unchanged. --hosting=test signs the app in to the test account Worker, on a profile that all worktrees share, so that a hosted server is a real VM; see docs/hosted-servers.md. A profile that does not exist yet is seeded with the showcase data of bun run dev:seed before the client starts, so a first start never opens an empty app; an existing profile is left as it is. An isolated profile still shares the computer's provider CLI store, so it does not download the pinned CLIs again. Before it starts, it runs bun install --frozen-lockfile and bun run api:migrate:local only when bun.lock, a workspace package.json, a patch, or a migration changed since their last successful run. The stamps are in node_modules and apps/auth-api/.wrangler/state/v3/d1, and each bun install writes the install stamp too; delete one to run its step 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 dev:mobile | Start or reuse this worktree's bun run dev stack, build and launch the iOS simulator app, and pair them without a QR scan. The desktop issues a Mobile Connect ticket over CDP, and simctl openurl opens the link in the development build, which accepts only loopback or private-network account services. Other arguments go to bun mobile:ios. --pair-only pairs an app that already runs; --simulator= chooses one of several booted simulators. It stops when the Metro port is already in use, because another worktree's Metro would serve the same app id; pass --port= then. |
| 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 dev:apns-key -- <AuthKey_ID.p8> [KEY_ID] | Save an Apple Push Notification service key in ignored development state, so the local Auth API sends iPhone Live Activity updates. The local server forwards them to Apple over HTTP/2. Restart bun run dev after it. |
| 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. It sets the Stripe, boat, claim and OpenPanel secret sets that are in the production environment. A set that is not there keeps the value that the Worker has. |
| bun run api:stripe:bootstrap | Create or update the Stripe plan catalog and the Customer Portal settings from STRIPE_SECRET_KEY in the encrypted apps/auth-api/.env.dev (shell values replace it). It refuses a live key unless you add --live. For local webhooks, run stripe listen --forward-to localhost:/v1/stripe/webhook and set the signing secret in STRIPE_WEBHOOK_SECRET. See Billing. |
| bun run hosting:setup --target=production\|test | Set up the Stripe catalog, t