openbot

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

A crew of AI bots that lives on your phone. A Chief of Staff delegates, you pick the model, and your keys stay on your own server.

README.md
Open Bot: a crew of nine bots, led by the Chief of Staff

Open Bot

A crew of AI bots that lives on your phone. A Chief of Staff leads and delegates, you pick the model, and your API keys stay on your own server.

Português · Español · Getting started · Screens · The crew · Models · Install on your phone · Status

Architecture: the app talks only to your server, which holds the keys and calls the model and GitHub

The app in your browser talks only to your server. The server holds the keys and calls the model and GitHub.

Getting started

  1. Select Node.js 24 from .nvmrc with nvm use (Node.js 24.15.0 or newer, the LTS line with the built-in SQLite module).
  2. Install dependencies and Git hooks with npm ci.
  3. Copy .env.example to .env.local and fill in one provider. You can skip this and choose a model in Settings later.
  4. Run npm run dev and open http://localhost:3000.

What it looks like

Three phone screens: the Chief of Staff empty state, a conversation where the Chief hands tasks to Engineering and Security, and the drawer with the nine bots

Desktop layout with the bot list in a sidebar and the conversation in a reading column

On a phone the bot list is a drawer and the composer sits in reach of your thumb. From tablet width up it becomes a sidebar you can collapse.

The crew

Each bot has its own conversation, prompt, avatar and skills. Switching bots switches the chat, and each history is saved on your server. Type @ to hand a message to another bot, and / to run one of your skills.

No agent comes ready-made. On first launch Open Bot opens the setup: you create the main agent and, if you want, check roles below to create with it. None comes checked, and an existing user can restore a backup from the same screen. Every role prompt asks for your explicit approval before any external change.

Bot Handles
Chief of Staff Plans, summarizes and delegates to the others.
Engineering Code, pull requests and CI
Publishing Docs and public content
Security AppSec and privacy
Inbox Triage and drafts
Career Opportunity triage
Finance Reconciliation drafts
Product Requirements and previews
Hobby Research and shortlists

You can edit any of them or create your own, from a blank form or from a template: Architect, Code Reviewer, AppSec Lead, Platform Engineer, Technical Writer or Bug Hunter.

The main bot leads

One bot is the main bot. It plays the Chief of Staff: it sits on top of the list, knows every other bot, and cannot be deleted. Any bot can take the role: open it, choose Make main, and the crew follows it. Nothing about the crew is fixed. The Chief reads the bots you have, their roles and their skills, every time you send a message.

How delegation works

How delegation works: you ask the main bot, it hands tasks to specialists, and one summary comes back

Ask the Chief for something that needs more than one specialist and it writes one @delegate line per task. Each specialist answers in turn, under its own name and avatar, then the Chief writes one summary for you.

  • At most three delegations per turn, answered one after another, so free model tiers are not flooded.
  • One hop only. A specialist never delegates again, so there are no loops.
  • Names the Chief invents, itself, and repeats are dropped. A specialist that fails does not break the turn.
  • You can still talk to any bot directly, or hand a single message over with @.

Group chats

Under Groups in the sidebar, New group puts several bots in one chat. Each answers under its own name and sees what the others said.

  • Nobody named: the group picks who answers, at most two. @name calls one bot, @all (or @todos) calls everyone, and Reply on a message sends the next one to its author.
  • Answers show up one by one as they land, with who is typing. Stop now ends the turn, and a new message from you takes over from the one still running.
  • A bot with nothing to add stays quiet. Other bots' messages reach each bot as data, never as instructions.
  • Reply in thread opens a side conversation on one answer without cluttering the group. The author of that message answers by default.
  • In a group, a bot uses its tools. When one needs approval it pauses and shows the same card as a 1:1 chat; Stop now or a new post from you cancels it.

Bots that keep working

  • A bot can message another bot on its own with the message_bot tool, after your approval. The exchange shows up in a thread, with an hourly cap and an echo guard.
  • Each bot can have a goal, with status and progress, under Goal in the editor. Only an active goal reaches the prompt.
  • When you correct a bot ("no, I prefer…", "always…"), Save as a preference? appears. Nothing reaches its memory without your click.
  • A routine can be linked to the bot's goal and gets the goal as context when it runs. Recurring routines of a bot you have not used for 14 days pause on their own, with the reason and a Resume button.

What it does today

Capability How it works
Chat with a model The server calls the provider you configured. See Choose a model.
Model per chat and bot Pick the model in the picker of a chat or in a bot's editor. Settings, under Model, only confirms the connection.
Sign in with ChatGPT Connect a ChatGPT account under Connections with OAuth instead of an API key.
Custom endpoints Add your own OpenAI-compatible endpoint under Connections, with its own key.
Usage Open Usage from the menu to see cost and calls by bot, by model or by where they ran. A bot that used two models shows its cost split by model, and bots with no use in the period sit on one line.
Themes Pick a color theme in Settings, under Model: built-in presets or your own JSON files. See Themes.
GitHub issues and PRs Ask for owner/repo or paste a GitHub link. Public repositories work without a token. For private ones, connect GitHub in Settings, under Connections, or set GITHUB_TOKEN in .env.local.
Briefing Summarizes real repository data. Without a model, it falls back to a summary built from the same data.
Delegation The main bot hands work to your other bots and brings back one summary. See How delegation works.
Failover When the router model fails, the server retries once on a fallback model, by default a free OpenRouter model, and the reply shows the switch.
Message queue Messages you send while a bot is replying wait their turn, in order.
Skills Each bot keeps its own skills. Write one when you edit the bot, or paste a SKILL.md, and run it as a /command.
Correct course While a bot replies, the newest queued message can jump ahead: the reply stops where it is and that message is answered next.
Side question Ask about the conversation in a side panel. The answer is not stored and the thread stays as it was.
Pinned conversations Pin a bot's side conversations so they stay first in the bar.
Voice Dictate a message and have a reply read aloud with the browser's own speech engine, where the browser offers it.
Bot tools With tools on, a bot can create or change a bot of the crew (create_bot, update_bot, always with approval) and read files in its own workspace folder (workspace_list, workspace_read, read only; set OPENBOT_WORKSPACE_DIR).
Chained routines A routine can run right after another routine of the same bot reports something, with that result as data.
Install links Copy a link that carries one bot in the URL fragment. Whoever opens it sees a preview card and installs only after confirming.
MCP tools Add MCP servers in Settings, Connections, Integrations: test them, switch them on or off and sign in with OAuth. OPENBOT_MCP_SERVERS still works. Every call asks first unless you allow it, and results reach the model marked as data.
Files library With OPENBOT_WORKSPACE_DIR, a bot can also write text files to its folder (workspace_write, asking first), and the bot editor lists and downloads them.
Wake-ups A bot can pause and continue later (schedule_wakeup): at a time, when one of its routines reports something, or both. The wake-up is a one-time routine in its own thread.
Folders Put bots in sidebar folders from the bot editor; Alt+1 to Alt+9 follow the order shown.
Bot as a file Export one bot to a JSON file with its name, instructions, look and skills, and fill a new bot's form from one. No chats, keys or password go in the file, and imported skills are marked as imported.
Local lock Optional password that locks the app on this device. It is a screen lock, not authentication; only a PBKDF2 hash is stored.
Three languages Brazilian Portuguese, English and Spanish, switchable at any time.

Usage dashboard in the Bot view: one bot's cost split across two models, and a line listing the bots with no use in the period

Choose a model

Provider Variables in .env.local Notes
Router ROUTER_URL, ROUTER_MODEL, optional ROUTER_API_KEY Any OpenAI-compatible endpoint, such as OpenRouter, 9Router or OmniRoute. Settings lists the free OpenRouter models your own key can use.
Local LOCAL_MODEL_URL, LOCAL_MODEL_NAME An Ollama-compatible /api/chat server that you run.
Anthropic ANTHROPIC_API_KEY, ANTHROPIC_MODEL Paid API usage.

Variables in .env.local stay on the server. Never prefix them with NEXT_PUBLIC_, which would ship them to the browser.

Each bot can also carry its own model id (in the bot's edit form, empty means the global model). The server can limit which ids are accepted:

Variable Effect
OPENBOT_ALLOWED_MODELS Optional, comma separated. When set, a bot model id outside the list gets 400 model_not_allowed. When unset, any well-formed id passes.

You can also choose the model without editing .env.local: use the picker in a chat or in a bot's editor. Settings, under Model, only checks the connection. Keys go under Connections: each service has its own key, tested before it is saved and kept on your server. That choice overrides .env.local.

Install on your phone

  1. Build and serve the production app: npm run build, then npm start. The service worker only registers in a production build.
  2. Open it on the phone over HTTPS. Browsers install apps only from HTTPS, or from localhost on the same machine.
  3. On iPhone, open it in Safari and choose Share, then Add to Home Screen. On Android, open it in Chrome and choose Install app from the menu.

npm run dev and npm start listen only on this machine (127.0.0.1), so the phone reaches the app through an HTTPS reverse proxy or tunnel running here. To let other devices connect to the server directly, set OPENBOT_ACCESS_TOKEN and run npm start -- -H 0.0.0.0.

The service worker caches the app shell only. It never caches /api calls, model replies or credentials.

By default the server has no login, which is fine on localhost. Every /api call is checked for a same-site Origin (or the x-openbot-client: 1 header), capped at 64 KB and limited to 60 requests per minute per caller (OPENBOT_RATE_LIMIT). Without a token the API only answers loopback callers (127.0.0.1, ::1); a request from any other device is refused with 403 access_token_required, so the server never stays open to your network by accident. To use it from another device or expose it beyond your machine, set OPENBOT_ACCESS_TOKEN in .env.local: every /api call then needs Authorization: Bearer <token>. In the browser, save the token once with localStorage.setItem("openbot_access_token", "<token>") in the developer console. Keep it behind HTTPS and access control you trust.

These variables tune the guard on /api. Set them in .env.local:

Variable Effect
OPENBOT_RATE_LIMIT Requests per minute per caller (default 60).
OPENBOT_TRUST_PROXY Set to 1 only behind a reverse proxy you control that always sets or appends X-Forwarded-For and is the only way in. The caller is then the last hop of that header. Unset (default), every caller shares one rate-limit bucket and one set of stream slots, because Next does not expose a peer address the caller cannot forge. Fine for one person, too tight for many users.
OPENBOT_STREAMS_PER_CLIENT Streamed replies one caller may have open at once (default 4). Over it, /api/chat/stream answers 429 too_many_streams.
OPENBOT_STREAMS_GLOBAL Streamed replies open at once on the whole server (default 20).

A single reply is also capped at 200,000 characters. Past that it is cut and the chat says so.

Status and limits

Open Bot is an early project. See the releases page for the current version.

  • Automated tests use stubbed providers. No test runs against a live model.
  • Installing on a physical iPhone or Android device has not been verified yet.
  • Bots, chats, skills and Settings are saved on your server, so devices that use the same server share them. The browser keeps a local copy for offline use. You can also export and import a backup file in Settings, with an optional passphrase (it leaves out keys, tokens and passwords).
  • The crew descriptions are still in Portuguese only, even with the English or Spanish interface.
  • Delegation has only run against a free model by hand. No automated test calls a live model.
  • No calendar integration exists yet.

The roadmap and the developer-first plan list what comes next.

Develop

npm ci installs the Husky hooks. Pre-commit formats and lints staged files. Pre-push and CI run npm run check: document checks, Prettier, ESLint, tsc, tests and the production build. Read CONTRIBUTING.md before opening a pull request.

Read For
Architecture Layers, the Dependency Rule, delivery gates and the MVP scope
Stack candidates The first spike and the UI kit decision
DESIGN.md Color, type, touch targets, motion and voice
Harness Guides, sensors and agent boundaries
Git conventions Commits, branches, pull requests and releases
Accessibility WCAG 2.1 AA target and the automated axe check
Themes Built-in color themes and how to add your own

Why Open Bot

Open Bot started with a familiar pain: Grok Bot was too expensive for a broke Brazilian who wanted a personal agent. The goal is something accessible, open to contributions, and free to run on a local model or a provider key of your choice. It draws on grok-bot-architecture for roles, boundaries and approval patterns.

What this repository does not carry

  • A hosted instance or sign-up. You run your own server, and your devices share its data.
  • Models or API keys. You bring your own.
  • Any affiliation with Grok Bot. Open Bot is an independent project.

License

Open Bot is open source under the MIT license.

Support the project

Open Bot is maintained by Tiago Vilas Boas. If you want to support its development, sponsor on GitHub. Sponsorship is optional; contributions, feedback and bug reports are also welcome.

Reviews (0)

No results found