An AI agent daemon that runs on hardware you own.
pip install oara-prometheus==0.9.9 Copy PIP instructions
A fire you own doesn't go out. Not a local model. A local agent.
Prometheus is an AI agent that runs as a daemon on hardware you own, and keeps working after you close the laptop. It keeps its own schedule, runs background work and can message you on Telegram when a task finishes, remembers you in files you can read, and checks the file edits it claims against the disk. It talks to the inference servers you already run (llama.cpp, Ollama, LM Studio, vLLM), or to a cloud model on your own key.
If Prometheus is useful to you, or any of this code helps your own project, a ⭐ on the repo helps other people find it.
The counters in this screenshot are one rig's, not a benchmark. SENTINEL shows as active because that rig turned it on; it ships off.
Prometheus is two pieces that pair with a 6-digit code:
pip install 'oara-prometheus[full]' # Python 3.11+ # or, on Apple Silicon Macs only: brew install oaralabs/tap/oara oara setup # auto-detects llama.cpp / Ollama / LM Studio / vLLM oara # chat in the CLI oara daemon # always-on: web API + gateways + cron + background layer Use the full names. pip install oara installs a 0.0.0 placeholder that only reserves the name, and a bare brew install oara fails — the tap prefix is required.
To read, change, or test the code, install from a checkout instead:
git clone https://github.com/OAraLabs/Prometheus.git && cd Prometheus pip install -e '.[full]' (prometheus … still works as an alias for now; only the command name changed — the package and its paths did not.)
Running the tests from a uv-managed venv? Sync it with the same extras CI uses first:
uv sync --extra web --extra mcp --group dev That is the environment the CI test job runs in, so a local run exercises the same tests (pip install -e '.[full]' above already covers everything).
oara setup probes for a running local inference server, generates your agent's identity, writes a working config with the web API enabled, and smoke-tests the loop. In a hurry? oara setup --fast (or --noninteractive) is the three-question version. On first daemon start a web API token is minted and printed once — oara token show re-prints it. If anything misbehaves: oara doctor.
oara-prometheus has been on PyPI since 0.9.0. Every way to install, uv tool / pipx from Git included, is under Install.
Status: Active development. Expect rough edges. Fixes land weekly. Feedback welcome.
Deeper docs — the guide pages under docs/guide/: Install & first flight · Feature reference · Beacon desktop · Coding Mode & Loop Manager · Record a Skill · Memory & knowledge · Models & providers · HTTP & WebSocket API
A passing test proves the code runs. It does not prove anything calls it. Every guard below exists because a feature was built, tested, green — and never wired; each one is a test that fails the build rather than a convention someone has to remember.
The last one is there because its absence shipped: a control suite whose every case asked "does disabling this let something bad through?" and none asked "does this let the permitted things through?" went green while the document surface silently degraded to PDF-only — 19 of 20 advertised types refused, including two the allowlist explicitly permitted. Over-refusal looks exactly like the control working.
Open models are getting good at conversation. They're still uneven at doing things. Ask one to call a tool and it may invent the tool name. Ask for JSON and it may wrap it in markdown. Ask it to chain three tool calls and it may drop a required parameter on the second one.
Prometheus handles this with a Model Adapter Layer that sits between your agent loop and whatever LLM you're running. Every tool call gets validated before execution, common errors get auto-repaired (fuzzy name matching, JSON extraction from markdown fences, type coercion), and when something still fails, the model gets specific error feedback with the actual schema — not a generic "try again." On llama.cpp, when the server isn't parsing a model's tool calls natively, Prometheus supplies a GBNF grammar, so tool calls are constrained while the model is still generating rather than validated after the fact.
The design philosophy behind it: The model is the agent. The harness is the vehicle.
The result: open models that reliably call tools, chain multi-step tasks, and run autonomously — without you babysitting every interaction.
Prometheus isn't a wrapper around ollama.chat(). These are the systems built around the loop:
Lossless Context Management keeps the originals. Every message is persisted to SQLite. Older turns are summarized in the live window; the originals stay in SQLite, and the stored summaries (a DAG the agent can walk with lcm_expand) expand back to them on demand, until you purge the session. Full-text search covers your entire conversation history. And memory isn't just storage: extracted facts ride back into each turn via passive recall, matched against what you just said.
SENTINEL makes the agent proactive (opt-in; it ships off). Most agents sit idle until you talk to them. Prometheus has a background intelligence layer that watches tool performance patterns, consolidates memory, lints its own knowledge base, and discovers cross-entity insights — all while you're away. Three of four phases use zero LLM calls. The fourth is budget-capped at 2,000 tokens. It nudges you via Telegram when it finds something interesting but never acts without permission.
The Model Adapter Layer is what makes local models work in a tool loop. Four cascading extraction strategies handle whatever mess the model produces. A retry engine feeds specific schema errors back to the model. On llama.cpp, when the server isn't parsing a model's tool calls natively, Prometheus supplies a GBNF grammar, so tool calls are constrained while the model is still generating. Telemetry tracks success rates per model per tool so you know exactly where your model struggles. It is tier-selected: strictness: NONE switches it off for cloud APIs that already emit clean tool calls, so the repair path is exercised exactly where it is needed.
A compounding knowledge base inspired by Karpathy's LLM Wiki concept. Every 30 minutes, a Memory Extractor pulls structured facts from your conversations, and the wiki recompiles the affected entity pages automatically — extraction and compilation are one loop, not a manual step. The wiki then maintains itself: SENTINEL's zero-LLM linter patrols for orphans, broken links, and stale pages; dedup gates keep repeated insights from piling up; and passive recall feeds the accumulated facts back into every turn. Point Obsidian at the markdown files and the graph view lights up.
Infrastructure self-awareness via the AnatomyScanner. At startup, Prometheus scans your hardware (CPU, RAM, GPU VRAM), detects the loaded model and its quantization, maps your Tailscale network peers, checks disk usage, and generates ANATOMY.md with Mermaid architecture diagrams of your entire setup. The agent knows exactly what machine it's running on, what model is loaded, and what resources are available.
An evaluation framework with a local LLM judge. Most agent evals require API calls to GPT-4. Prometheus uses constrained-decoding on your local model to judge task completion, tool usage accuracy, and hallucination — zero API cost. Failure classification (model vs harness vs unclear) and trend tracking across models and runs. The shipped config points the judge at a separate endpoint and pins the model that grades (judge_base_url + evals.judge_model); blank judge_base_url and the judge falls back to the endpoint under test, which means the model grades itself. Every score records which judge produced it either way.
LSP integration for compiler-grade code intelligence. Instead of grepping for function names, the agent queries language servers for real symbol definitions, type errors, and references. After every file edit, a diagnostics hook automatically checks for type errors and feeds them back to the model in the same turn. Off by default — one config flag turns it on.
Prometheus is built for local inference. That's the whole point — sovereignty, privacy, no subscriptions. But it's not religious about it. If you want to use cloud models, the same daemon works with:
Switch any single chat with a slash command — /claude, /gpt, /gemini, /xai, /deepseek, /kimi, /glm, /mimo — and /local to come home. Keys are managed from Beacon's Models tab (paste once, live immediately, no restart) or the env file. The adapter layer adjusts its strictness automatically: full validation for open models, passthrough for APIs that already handle tool calling well.
The architecture doesn't care where the tokens come from. It cares that the tools get called correctly.
The feature reference covers everything below in depth — including which subsystems are on by default and which are opt-in.
Three commitments run through everything below:
Refuses to lie to you. Untrusted input — cron payloads, task output, file contents — carries provenance and is fenced off as data, not instructions, before the model sees it. A file-mutation verifier stat-checks every claimed edit and tells the model "CLAIMED but NO CHANGE ON DISK" when nothing actually changed. Telemetry keeps honest denominators (a failing test run is not a failed tool call), the daemon self-reports when it's running stale code, every swallowed exception lands in a queryable silent-failure ledger, "I'll let you know when it's done" must be backed by a real registered task, and a coding run's "done" is a verdict — the acceptance command re-run — not a claim.
Survives you, restarts, and itself. Sessions, background tasks, and message ids are durable contracts that outlive daemon restarts. The memory store heals itself — search-index rebuilds, snapshot backups before every migration, writes that either commit or raise. Signals persist before they broadcast, so a crash can never have told you something the disk doesn't know.
Guards in code, not in policy. Keys are stripped from the agent's shell environment, and the key file is on a hard deny list for file tools. The audit log redacts secrets before writing, outbound fetches resolve-and-block private address space, cron passes the same security gate at creation and at execution and fails closed, self-modification is gated behind a dangerous-code scanner, and agent deliverables are served by content id rather than by path.
bash, read_file, write_file, edit_file, grep, glob, web_search, web_fetch, youtube_transcript, download_file, browser (Playwright), image_generate, video_generate, tts, message, dashboard, notebook_edit, cron_create/delete/list, task_create/get/list/update/stop/output, todo_write, skill, agent (subagent spawning), ask_user, sessions_list/send/spawn, lcm_grep/expand/describe/expand_query, wiki_compile/query/lint, sentinel_status, audit_query, anatomy, lsp (7 actions; when enabled), plus dynamic MCP tools (mcp__{server}__{tool}).
Opt-in. coding.enabled ships false: until you set it to true, oara code exits non-zero and POST /api/code returns 403. Coding runs execute model-authored commands against a clone of your repo, so you turn them on deliberately.
Point the agent at a repo, a task, and an acceptance command. It clones the repo into a sandbox (cwd jail, env-scrubbed so your provider keys never reach the subprocess), works in rounds until the acceptance command exits 0, and leaves a reviewable branch. "Done" is a verdict, not a claim — the session re-runs your acceptance command itself and rejects no-evidence turns. Mid-run supervision (pause / inject / resume) rides a control channel the run polls between episodes (experimental — not yet working reliably). Rounds stream live to Beacon.
Beacon's Loop Manager turns this into a PM cockpit: register repos, keep a TASKS.md board, edit the LOOP.md run contract, and fire — Autonomous, Composed, or Supervised (the Beacon UI doesn't call pause/inject/resume yet). Kanban stories can be dispatched straight into coding runs. See the Coding Mode guide.
The agent writes skills for itself: the SkillCreator turns successful multi-step traces into markdown skill files, the SkillRefiner updates them when better executions come along, and a weekly Curator pass consolidates and prunes (pinned skills are protected; nothing is hard-deleted). Four core skills ship in the package (commit, debug, plan, and beacon-plate, the default look for any HTML page, report or PDF the agent makes), and the repo carries a 102-file skill library in skills/ you can drop into ~/.prometheus/skills/ selectively — it's deliberately not auto-loaded, to keep prompts lean.
Show the agent a workflow instead of describing it. Two capture paths, two trust levels:
Ground-truth DOM traces earn autonomy; lossy vision output stays human-reviewed. What ships in this repo is the daemon side — the DOM-trace pipeline, its upload endpoint, and video ingestion (off by default). The browser recorder extension that captures a live DOM trace is not distributed yet. Full walkthrough: Record a Skill guide.
Why this only works here: a screen recording of you doing your job is among the most revealing data you own, and every frame of it stays on your disk. A hosted product can't offer the same feature, because shipping your screen to someone else's server is the feature — and the problem.
Telemetry that stays home. Local-first people rightly refuse telemetry — because it usually means someone else's server. Prometheus inverts it: every tool call, repair, token count, and failure is recorded to SQLite on your own disk and sent nowhere — the telemetry module contains no network code at all, and the optional tracing exporter is off by default and points at localhost. It exists so you hold the data the big labs keep for themselves: the per-model success rates that tune the adapter, the golden traces a fine-tuning loop would learn from (capture and export exist; training is not built), and the receipts for what your model actually did. And it's neither slow nor bloated — WAL-mode appends cost sub-milliseconds next to tool calls that take seconds, and months of heavy daily use produce a database around 11 MB. Don't want it anyway? infrastructure.telemetry_enabled: false turns it off (from v0.9.7), and prometheus --reset-telemetry wipes the slate whenever you like.
Chat, tools, adapter, memory + LCM + passive recall, security gate, telemetry, and the web API are on out of the box. Coding Mode and the chat gateways ship off (oara setup turns a gateway on when you add its token). The bigger autonomous subsystems — SENTINEL dreaming, the router's autonomous half (task classification and fallback chains — its per-chat /claude-style overrides ship on), LSP, GEPA, escalation-to-teacher, SYMBIOTE (GitHub research → license gate → AST scan → safe graft → blue-green hot swap with auto-rollback; experimental), the Paperclip gateway, and Record-a-Skill's video ingestion — ship off by default and are one config flag away when you want them. The feature reference marks every subsystem's default.
On an Apple silicon Mac the app is the easiest start; everywhere else, pick one of the four terminal routes. All of them install the same daemon.
The Mac app (no terminal) — a signed, notarized Prometheus.app for Apple silicon on macOS 13 or later, with its own Python 3.12. Download Prometheus-mac-arm64.zip from the latest release, unzip, drag to Applications, open it. It installs the daemon as a login item, listens on this Mac only until you say otherwise, and starts in the cautious permission mode. Up to 0.9.8 it ships without PyMuPDF (AGPL), so PDF text extraction and image downscaling aren't available in the app; from 0.9.9 they use pypdfium2 and Pillow, which the app carries. Details: the install guide.
One command, from Git — an isolated install of the oara command straight from the main branch, with uv or pipx:
uv tool install 'oara-prometheus[full] @ git+https://github.com/OAraLabs/Prometheus' # or: pipx install 'oara-prometheus[full] @ git+https://github.com/OAraLabs/Prometheus' From source — clone and install editable. Best if you want to read or change the code, or run the test suite:
pip install 'oara-prometheus[full]' A plain install, with no extras, runs oara daemon and pairs with Beacon: the web API is part of the base package. [full] adds the Slack and Discord gateways, MCP, the browser tool, the Anthropic provider and voice output.
With Homebrew — Apple Silicon Macs (M1 and later) only; Intel Macs aren't verified yet:
brew install oaralabs/tap/oara Use the full name: a bare brew install oara fails because the tap isn't trusted. The install takes a few minutes, since every Homebrew dependency comes prebuilt, and like a plain pip install it runs oara daemon and pairs with Beacon.
oara setup The setup wizard generates your personalized identity, detects your inference server (llama.cpp:8080, Ollama:11434, LM Studio:1234, vLLM:8000), writes the config with the web API enabled, and runs a smoke test. No server running? The wizard offers a remote URL, a cloud provider, or copy-paste install instructions — it never writes a config it knows is broken.
oara setup --fast # quick path: probe → yaml → env, 3 questions oara setup --noninteractive # zero questions (first detected server, CLI gateway) oara setup --gateway-only # add/change Telegram, Slack, or Discord later oara setup --provider anthropic --api-key-env ANTHROPIC_API_KEY --model claude-sonnet-5 # no local GPU yet: start on a cloud model, switch later Prefer doing setup from a couch? Skip oara setup, run oara daemon bare, and it boots in setup mode — a pairing-only API that prints a one-time 6-digit code. Beacon's wizard takes it from there (detects backends, names the agent, configures gateways) and the daemon wakes fully configured:
prometheus # interactive CLI oara --once "List the Python files here" # one-shot oara daemon # always-on On the first daemon start, Prometheus mints a secure PROMETHEUS_API_TOKEN, saves it to ~/.config/prometheus/env, and prints it once:
oara token show # re-print the token oara token rotate # invalidate + mint a new one curl -H "Authorization: Bearer $(oara token show | head -1)" http://localhost:8005/api/status Run as a service (Linux and macOS) oara install-service # Linux: writes ~/.config/systemd/user/prometheus.service systemctl --user start prometheus journalctl --user -u prometheus -f On macOS the same command writes a LaunchAgent (~/Library/LaunchAgents/com.oaralabs.prometheus.daemon.plist) instead; add --now to load it immediately, otherwise launchd loads it at your next login. It exits non-zero when it could not install or enable the service (a differing file refused without --force, another supervisor already owning the job, or systemctl / launchctl missing). The install guide has the details.
Exit code is nonzero when anything is broken, so it also works in scripts.
Beacon — free to use, closed source, in beta. Builds — macOS dmg, Linux AppImage/deb — are published when Beacon leaves beta, and until then early users get draft builds (oara.ai/beacon). Beacon for iOS: private beta — request access at support@oara.ai with the subject "Beacon iOS" (oara.ai/beacon-ios). First launch walks you through pairing — the full flow with screenshots is in the install guide, and the app tour is in the Beacon guide.
Secrets never go in the yaml — they live in the env file ~/.config/prometheus/env, which both oara daemon and the systemd unit load.
Run the agent on one machine, point it at a GPU machine for inference:
model: provider: "llama_cpp" base_url: "http://gpu-machine:8080" fallback: - provider: "ollama" base_url: "http://gpu-machine:11434" - provider: "anthropic" api_key_env: "ANTHROPIC_API_KEY" model: "claude-haiku-4-5-20251001" Connect via Tailscale, WireGuard, or any network — Beacon pairs over the same address. Prometheus talks HTTP; localhost or remote, it doesn't care.
16GB VRAM runs Gemma 2 9B or Qwen 2.5 14B (Q4 quantized). Set strictness: STRICT — the adapter compensates with more validation and retries. No GPU at all? Use a cloud provider and you still get the whole daemon: memory, wiki, SENTINEL, security, profiles, all of it.
┌──────────────────────────────────────────────────────────┐ │ INTERFACE LAYER │ │ Telegram │ Slack │ Discord │ CLI │ Beacon desktop │ iOS │ │ (REST :8005 + WebSocket :8010, token-authed; /v1 OpenAI) │ └────────────────────────┬─────────────────────────────────┘ │ ┌────────────────────────┴─────────────────────────────────┐ │ ALWAYS-ON LAYER │ │ Heartbeat │ Cron │ SENTINEL │ Memory Extractor │ Tasks │ └────────────────────────┬─────────────────────────────────┘ │ ┌────────────────────────┴─────────────────────────────────┐ │ ORCHESTRATION LAYER │ │ Agent Loop → Model Adapter → Tool Dispatch │ │ ┌──────────────────────────────────────────────────┐ │ │ │ MODEL ADAPTER LAYER │ │ │ │ Validator │ Formatter │ Enforcer │ Retry │ Telem │ │ │ └──────────────────────────────────────────────────┘ │ │ Model Router │ Coding Mode │ LSP │ MCP │ Subagents │ └────────────────────────┬─────────────────────────────────┘ │ ┌────────────────────────┴─────────────────────────────────┐ │ IDENTITY & KNOWLEDGE LAYER │ │ SOUL.md │ AGENTS.md │ ANATOMY.md │ Profiles │ │ LCM (DAG compression) │ Wiki │ MEMORY.md │ Passive recall│ └────────────────────────┬─────────────────────────────────┘ │ ┌────────────────────────┴─────────────────────────────────┐ │ MODEL PROVIDER LAYER │ │ llama.cpp │ Ollama │ OpenAI │ Anthropic │ Gemini │ xAI │ │ DeepSeek │ Kimi (Moonshot) │ GLM (Z.ai) │ MiMo (Xiaomi) │ │ (xAI: API key or SuperGrok subscription OAuth) │ └──────────────────────────────────────────────────────────┘ Identity, and what does not phone home At first run Prometheus generates a node keypair under ~/.prometheus/node/ (Ed25519; the private key is mode 0600 and never leaves the machine). This is an identity, nothing more:
model: provider: "llama_cpp" # or ollama, openai, anthropic, gemini, xai, # deepseek, kimi, glm, mimo base_url: "http://localhost:8080" # model auto-detected from llama.cpp on startup context: effective_limit: 24000 compression_trigger: 0.75 security: permission_mode: "default" workspace_root: "~/.prometheus/workspace" # or a list of roots # A path outside every root makes write_file/edit_file ask first; it does # not make the write impossible (see Security). A conversation can override # this with /workspace — the gate, project instructions and per-turn # file checkpoints all follow the conversation. gateway: telegram_enabled: true # default: false — setup enables it when you add a token # token via env: PROMETHEUS_TELEGRAM_TOKEN memory: recall: enabled: true # passive recall — stored facts ride each turn sentinel: enabled: false # opt-in: idle-time dreaming, wiki lint, synthesis dream_budget_tokens: 2000 wiki: root: ~/.prometheus/wiki # the wiki is relocatable — every consumer # resolves through this one key heartbeat: maintenance_db: "" # path to a SQLite file with a maintenance(until_ts) row. # While the window is open, the "merged-but-dark" drift # nudge is suppressed — the merge-to-restart gap is # exactly when drift is expected. Empty = off; fails OPEN. profile: active: "full" # full | coder | research | assistant | minimal Several GPU boxes? Name them once and every surface gets them — slash commands, the model picker, the fallback chain, /api/status:
backends: # the primary in `model:` is registered automatically as `local` 4090: provider: llama_cpp base_url: http://gpu-box:8080 mini: provider: ollama base_url: http://localhost:11434 model: qwen2.5:14b-instruct # what this box serves for you models: [qwen2.5:14b-instruct, qwen2.5:7b-instruct] # vetted choices (ollama swaps per request) backend_probe: ttl_s: 60 # a read older than this re-probes; /backends refresh forces it timeout_s: 5.0 # per box — a dead box costs one timeout, never a hang /mini points a chat at that box after a live probe (a down box is a named refusal, not a failed turn); the chat is budgeted at the window the box reported, the choice survives a restart, and /local brings it home. model.fallback.backend: mini makes the same entry the fallback target, so the switcher and the fallback chain cannot disagree about what mini is.
Telegram, plus Slack and Discord gateways on the same command layer (not yet run in production). All off until a token is added: every onboarding surface (oara setup, the fast path, the remote setup API, and Beacon's wizard) can enable any subset, and oara doctor reports each one's state.
Tokens live in the env file, never in the yaml. The easiest way to configure any of them is oara setup --gateway-only.
The full 40+ command surface is in the feature reference; the daily drivers:
Cloud slash-commands are configurable per command (provider, key env, model) in prometheus.yaml — see the providers guide.
Measured results — per-model task success with 95% intervals, and what each adapter tier adds or costs on the same model — are in docs/MODEL-LADDER.md, with every rung pinned by revision and SHA-256 and the per-rung reports committed under gym/results/ladder/.
All evaluation runs locally — the LLM judge uses constrained decoding on your own hardware. The shipped config gives the judge its own endpoint and pins the grading model (judge_base_url + evals.judge_model); leave judge_base_url blank and the judge falls back to the endpoint under test, i.e. the model grades itself. Each score carries its judge's provenance, so two runs can be compared — or refused comparison.
If you build something with Prometheus, we'd love to hear about it. And if it helped, a star goes a long way.
Built by OAra Labs, starting with early scaffolding from OpenHarness. Design informed by Andrej Karpathy's LLM Wiki concept, Lossless-Claw, and Sigrid Jin's analysis of Claude Code's agent-loop patterns. Full lineage and upstream licenses: NOTICE.
anthropic browser computer dev discord discovery evals full mcp push skills slack voice web
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




