Skip to content
Projects

About

Meet OpenBot. OS for Agents

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+1
in 15 days
+3
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

OpenBot Logo

OpenBot

npm version license

OpenBot is a local-first harness for running AI agents. It exposes a small event API, local file storage, and a Melony-powered runtime.

What it does

  • Runs a local agent server on port 4132 by default.
  • Stores channels, threads, agents, plugins, and config under ~/.openbot.
  • Ships with a built-in system agent (LLM runtime + storage tools).
  • Ships with a built-in state agent for deterministic storage reads (no LLM).
  • Loads custom agents from ~/.openbot/agents/<agent-id>/AGENT.md.
  • Streams events to clients with Server-Sent Events.

Quick start

Requires Node.js >=20.12.0.

npm i -g openbot
openbot start

Local development:

npm install
npm run dev

Set an API key before starting (example for OpenAI):

export OPENAI_API_KEY=sk-...
openbot start

API

  • GET /api/events — SSE stream for a channel or thread.
  • POST /api/publish — publish an event (defaults to the system agent).
  • GET /api/state — run an event and return resulting events (defaults to the state agent).

Example:

curl -X POST http://localhost:4132/api/publish \
  -H "content-type: application/json" \
  -d '{"type":"agent:invoke","data":{"role":"user","content":"hello"}}'

Context headers/fields: channelId, threadId, agentId, runId.

Built-in plugins (this edition)

Plugin Role
openbot LLM agent runtime with storage tools
storage Channel/thread persistence
ui Interactive UI widgets

Custom agents

Create ~/.openbot/agents/<agent-id>/AGENT.md:

---
name: Assistant
description: A helpful local assistant.
plugins:
  - id: openbot
    config:
      model: openai/gpt-4o-mini
  - id: storage
---

You are a careful assistant. Be concise and clear.

License

MIT — applies to this repository through release v0.5.3. Code released under MIT before this archive remains MIT; newer work is not published here.

Explore related projects

Loading…