OpenBot
Self-hosted platform where named AI bots with tools and long-term memory share threads, hand work to each other with @mentions, and pause for human approval.
- Source repo
- regnull/openbot
- Stars
- ★ 47
- Last updated
- 6d ago
- FARS reviewed
- Oct 01, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 60/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code · OpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A solo developer who wants a Chief of Staff → Engineer → Reviewer → QA team on their own machine to take one request through to a PR merged with the gh CLI.
- Not a fit if
- Teams that need multi-user accounts or privilege separation — there is no login.
- Anyone letting bots process untrusted input with run_shell enabled — it is not sandboxed.
- Users who want a hosted SaaS instead of maintaining Python, uv and Node locally.
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-18
- Source review
- 60/100 · Some gaps
What does this agent do, and when should you use it?
OpenBot is a self-hosted Python/FastAPI backend with a React frontend (optionally wrapped in an Electron desktop shell) for running a team of named AI bots. Every participant — bots, the human @you, and registered external systems — is an actor with a persistent inbox: a message posted to a thread becomes inbox items, the addressed bot's worker wakes up, runs a LangGraph agent loop with tools and LangMem long-term memory, and replies with @mentions that deliver the next item. Bot-to-bot delegation is bounded by a hop counter (MAX_BOT_HOPS, default 20), and sensitive steps can block on ask_human or per-tool approval flags. Tools come from a built-in registry (run_shell, read_file, write_file, list_files, search_code, http_request, fetch_url, todo_write), a TOOLS_DIR of @tool plugin modules, and MCP servers over remote HTTPS with OAuth or stdio commands. State lives in any SQLAlchemy async database — SQLite by default, Postgres by changing DATABASE_URL — with Alembic migrations at startup, while the Inbox/Threads/Bots/Settings UI updates over SSE. External systems join either through HMAC-SHA256-signed webhooks or by polling /api/v1/actors/{handle}/inbox.
When a run starts, OpenBot takes the queued messages for a thread, builds a prompt from thread history inside a token budget, and drives a LangGraph agent loop that repeatedly calls a model (OpenRouter, OpenAI, Anthropic, xAI, Ollama, or a claude-code CLI adapter) and executes whichever tools that bot was granted: file reads/writes confined to the thread working directory, bash -lc via run_shell, outbound http_request/fetch_url, a per-thread todo_write list, and MCP tools loaded on demand through load_tools. Memory is read and written in the LangGraph store and refreshed by a background reflection step after each run; token usage, model calls and cache reads are recorded on the run and shown on the run card. Interrupts turn into question inbox items that pause the run until /api/v1/runs/{id}/resume is posted. Every delivery, queueing, slot wait, run status change and settlement is written to activity_log and exposed through /api/v1/activity, mirrored at DEBUG into a rotating file log, while /api/v1/events streams message.created, run.updated, run.event and inbox.updated to the browser.
- A solo developer who wants a Chief of Staff → Engineer → Reviewer → QA team on their own machine to take one request through to a PR merged with the gh CLI.
- Teams wiring Linear, GitHub or Slack MCP servers into specific bots and gating the write-capable tools behind approvals.
- Operators who want every destructive step (merge, shell command, outbound request) to stop and wait for a human answer.
- Engineers comparing providers per bot — Claude for coding, a cheap OpenRouter model for summarising, Ollama for offline work.
- An existing CI or internal system that needs to raise an incident into the same conversation as an actor, via a signed webhook or inbox polling.
- Someone already logged into Claude Code who wants a bot powered by that CLI instead of a separate API key.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
docker compose up --build # backend on 127.0.0.1:8000
- Ports
5173·8000- Environment variables
OPENBOT_API_KEY- Config files
.env.example.env- Runtime
- Python 3.12+ · Node.js 24+
- Install notes cover
- Windows · macOS · Linux · Docker
How do you install or deploy this agent?
Prerequisites: Python 3.12+ with uv, Node 24+ with pnpm 10, and an LLM provider — an OpenRouter API key is recommended, or OpenAI, Anthropic, xAI, or a local Ollama server.
From the repository root:
make setup # uv sync (backend), pnpm install (frontend + Electron), copy .env.example -> .env
make dev # backend on :8000, frontend dev server on :5173Open http://localhost:5173. The first load shows a setup wizard: pick a chat provider (paste a key or point at Ollama) and choose how memory search should work (embeddings via OpenRouter, OpenAI or Ollama, or none). Both are stored encrypted in OpenBot's database and can be changed later under Settings; nothing goes into .env. Completing the wizard seeds the human actor @you and four demo bots: chief_of_staff, engineer, reviewer and qa.
For a single-process production-style run that serves the built frontend from FastAPI on port 8000:
make run # builds frontend/dist, then serves it from the FastAPI app on :8000Backend in Docker, with the UI on the host:
echo "OPENBOT_API_KEY=$(openssl rand -hex 24)" >> .env # required, see the design note
docker compose up --build # backend on 127.0.0.1:8000A packaged desktop build can be downloaded from the latest release: macOS arm64/x64 as .dmg or .zip, and Linux x64 as an .AppImage; there is no Windows build published yet. The app needs uv installed on the machine, and the first launch takes longer while it builds a Python environment. Builds are unsigned, so follow the release notes for the first open.
How do you use this agent?
Create a thread in the UI (its default bot is @chief_of_staff) and send a request; a user message without an explicit bot mention goes to the thread default bot: “Add a --version flag to the CLI and open a PR.” Watch the hand-off in the thread view: Chief of Staff delegates to @engineer, which opens a PR and mentions @reviewer; the reviewer hands off to @qa, which asks you for approval in the Inbox before merging.
External systems join as actors over the REST API (base /api/v1; when OPENBOT_API_KEY is set, every route except /health needs an X-API-Key header):
curl -s -X POST localhost:8000/api/v1/actors \
-H 'Content-Type: application/json' \
-d '{"handle": "ci", "name": "CI Bot", "webhook_url": "https://example.com/hook", "webhook_secret": "s3cret"}'
curl -s -X POST localhost:8000/api/v1/actors/engineer/messages \
-H 'Content-Type: application/json' \
-d '{"content": "The nightly build failed on main.", "from": "ci"}'Create a bot backed by the Claude Code CLI with read-only access:
curl -X POST http://127.0.0.1:8000/api/v1/bots -H 'Content-Type: application/json' -d '{
"handle": "coder", "name": "Coder", "provider": "claude-code",
"model": "sonnet", "model_settings": {"permission": "read-only"}}'Answer a bot's question and let the paused run continue:
curl -X POST http://127.0.0.1:8000/api/v1/runs/<run_id>/resume \
-H 'Content-Type: application/json' \
-d '{"answer": "yes"}'When a thread stops progressing, query the activity log:
curl -s 'localhost:8000/api/v1/activity?thread_id=<id>'
curl -s 'localhost:8000/api/v1/activity?level=warning'Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- One uniform actor model: bots, @you and external systems share inboxes and threads, with a hop counter plus handoff-held logic that explicitly stops bot-to-bot loops.
- Provider portability: bots default to auto and can be pinned per bot to OpenRouter, OpenAI, Anthropic, xAI or a local Ollama server without code changes.
- MCP handled properly: remote HTTPS with OAuth, Fernet-encrypted tokens and refresh, stdio commands,
${VAR}expansion from the environment, and deferred tool loading via load_tools to keep prompts small. - Human-in-the-loop is a first-class primitive: ask_human and approval_tools turn a run into waiting_human, so merges and other destructive steps need an answer.
- Auditable by design: activity_log records delivery, queueing, slot waits, run status and failures, filterable by thread, bot, run or level, mirrored into a rotating DEBUG file log.
- Zero-ops default storage: SQLite with automatic Alembic migrations at startup, and a postgresql+asyncpg:// URL as the intended upgrade route.
- run_shell executes bash -lc as the server user with no container, chroot, seccomp or allowlist; the README states that granting it is equivalent to giving the bot's conversation partner a shell on the host, and prompt injection therefore becomes RCE.
- No login, accounts or privilege separation — it assumes a single trusted operator, and the ?api_key= SSE fallback leaks the key into proxy logs and browser history.
- No Windows build is published in the releases yet, so Windows users must run from source; desktop artifacts are unsigned and not notarized.
- Setup needs Python 3.12+, uv, Node 24+, pnpm 10 and make, plus a model key or Ollama; the packaged app also rebuilds a Python environment on first launch.
- Postgres is documented as untested in v1, and Docker sandboxing for tools is still roadmap work (issue #145).
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| OpenBot This agent | 60 · Some gaps | Web appFree + model costs | ★ 47 | 6d ago | Python | Claude Code · OpenAI API · Claude API |
| Synapse AI — Multi-Agent Orchestration Platform | 58 · Major gaps | CLIFree + model costs | ★ 343 | today | Python | OpenAI API · Claude API |
| Enterprise AI Agent Platform | 57 · Major gaps | Self-hosted service | ★ 165 | 1d ago | Python | — |
| Email Agents From Scratch | 46 · Major gaps | Library / SDKFree + model costs | ★ 2.5k | 3mo ago | Jupyter Notebook | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README's Trust model section is unusually candid: run_shell is unsandboxed, executes bash -lc as the server user, and can read the database and secret.key; http_request/fetch_url are unrestricted and can reach localhost and private ranges; the ?api_key= query-string fallback leaks into logs. Disclosure is commendable, but disclosure is not mitigation: default permissions are excessive (least_privilege=1), with only file tools path-confined. User confirmation exists via ask_human and per-tool approval flags that pause the run for a human answer, usable but not enforced (user_confirmation=2). Data-flow transparency: keys are encrypted at rest, MCP tokens Fernet-encrypted, UI masks secrets, but the README does not enumerate what content leaves to which LLM provider (data_flow_transparency=2). Sensitive data handling: secret.key generation, encrypted storage, and Docker shell-user isolation are present, but the query-string key and shell inheriting the server environment are explicit weaknesses (sensitive_data_handling=2). Dependency security: CI runs uv sync and pnpm install --frozen-lockfile, but there is no dependency audit, SBOM, or pinning policy described (dependency_security=1). External effects: webhook retries, hop limits, and a concurrency cap exist, but no global kill switch or blast-radius documentation (external_effects=1). Rollback: no transactional rollback or state-snapshot mechanism is described, and memory is never purged (rollback=1). Source attribution: MIT license and copyright line are clear, but publisher identity is unverified and releases are unsigned (source_attribution=1).
Self-consistency: README and conftest.py agree on the actor model, hop limit, and concurrency cap; the test fixture explicitly handles .env leakage and event-loop teardown, showing attention to edge cases (self_consistency=2). Dependency availability: requires Python 3.12+, Node 24+, pnpm 10, and uv, and the packaged app still needs uv installed by the user; the dependency chain is heavy with no offline/mirror guidance (dependency_availability=1). Failure messages: README notes a clear error when Git for Windows is missing, a status page when the backend is unreachable, and tool load errors exposed via API (failure_messages=2).
Audience and scenarios: aimed at a single trusted self-hosting operator, with a demo PR workflow; clear but narrow (audience_and_scenarios=2). Capability boundaries: a dedicated section enumerates unsandboxed run_shell, path-confined file tools, unrestricted HTTP, and prompt-injection risk; unusually thorough (capability_boundaries=3). Trigger precision: @mention wake-up, only the first mention counts, hop limit, and default-bot routing are explicit (trigger_precision=2). Environment fit: source runs on macOS/Linux/Windows, plus Docker, Electron, SQLite/Postgres, and local Ollama, but no Windows package and no signing (environment_fit=2).
Information architecture: README has anchor navigation, a concepts table, and architecture doc links; well structured (information_architecture=2). Install notes: Quick start, desktop app, Docker, production run, and release process all have concrete commands and prerequisites; very detailed (install_notes=3). Naming stability: the major.minor.build version scheme is explicit, but no stability commitment for API or config keys (naming_stability=2). Examples and FAQ: demo walkthrough, example tool code, and a mermaid diagram exist, but no formal FAQ (examples_and_faq=2). Known limitations: the Trust model and Troubleshooting sections candidly list limitations; the strongest part of the docs (known_limitations=3). License: full MIT text present (license=3). Versioning and changelog: a VERSION file and version-computation script exist, but no CHANGELOG (versioning_changelog=2). Maintenance responsibility: publisher unverified, no maintainer, support channel, or SLA stated (maintenance_responsibility=1).
Output usability: the UI provides Inbox/Threads/Bots/Settings with SSE updates; outputs are readable and actionable (output_usability=2). Marginal value: multi-bot collaboration, long-term memory, MCP tools, and external actors form a differentiated combination for self-hosted open source, though the space is crowded (marginal_value=2). Cost-benefit: requires your own LLM key, runtime cost depends on provider, and the security-configuration burden is high (isolate, set API key, low-privilege user) with no cost estimate provided (cost_benefit=1).
Claim traceability: the README claims CI passes and tests exist, but provides no coverage or concrete verification results; claims are largely self-reported (claim_traceability=1). Cross-source corroboration: the CI config and conftest.py corroborate that tests exist, but there is no third-party evaluation or independent reproduction record (cross_source_corroboration=1). Fact-inference separation: the README distinguishes shipped features from roadmap items (e.g., per-tool sandboxing still on the roadmap), keeping the boundary between disclosure and claim reasonably clear (fact_inference_separation=2).
- run_shell is unsandboxed by default, equivalent to handing a host shell to anyone who can talk to that bot; restrict tool sets, bind to 127.0.0.1, and run as a low-privilege user or in a container before deploying.
- The ?api_key= query-string fallback for OPENBOT_API_KEY leaks into reverse-proxy logs, browser history, and Referer headers; treat it as a low-assurance secret and rotate it.
- http_request/fetch_url can reach localhost and private ranges, and the API is unauthenticated unless a key is set, so a bot could self-approve or impersonate other actors.
- Prompt injection is a live path to all of the above; do not enable run_shell against untrusted repositories or URLs.
- Publisher identity is unverified and release builds are unsigned; local make electron-release bundles untracked files, so do not distribute local builds.
- The dependency chain is heavy (Python 3.12+, Node 24+, pnpm 10, uv), the packaged app still requires the user to install uv, and no dependency audit or SBOM is evident.
FAQ
What does it actually cost to run?
What happens when a bot asks a question?
Can I expose it on a network?
Do I need Postgres or Docker?
Does every bot need a provider API key?
Is OpenBot open source?
Is OpenBot safe to use?
Is OpenBot still maintained?
Who makes OpenBot?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.