Overview
What Anvio is, how it's organized, and why it's local-first, file-first, and CLI-first.
6 min read
Anvio is a local-first AI Agent Operating System. You configure agents in Markdown (Hermes-style personas and skills), infra in YAML, and you drive everything from a CLI. There is no mandatory database, no mandatory login, and no mandatory Docker — the whole platform runs from a laptop with a single build step.
Purpose
This page orients you before you install anything. Read it if you want to understand why Anvio is built the way it is before jumping into Quick Start.
Core principles
Anvio's design is captured in its vision doc as a small set of non-negotiable principles:
- Configuration driven — agents, personas, skills, and souls are Markdown/YAML files. No TypeScript changes needed to add or modify an agent.
- Local first — works fully offline; no cloud service is mandatory to run an agent.
- File first — filesystem is the default storage backend; configs are human-readable and diffable.
- CLI first — priority order is CLI > API > Web UI. The CLI is a complete product on its own.
- Progressive enhancement — start with files only, add SQLite, then PostgreSQL/NATS/Kubernetes, without rewrites.
- Optional auth — authentication is disabled by default and only turned on when you actually need it (multi-user API, OAuth-gated MCP tools).
- Plugin architecture — storage, memory, auth, and MCP integrations are all pluggable ports with swappable providers.
- Portable workspace — everything lives under a single
workspace/directory you can back up,git commit, or copy to another machine with no migration scripts.
Anvio's explicit non-goals: mandatory login/registration, mandatory PostgreSQL or Docker for basic usage, enterprise SaaS assumptions, and copying Hermes/Slaude wholesale or coupling to Slack.
What "local-first" means in practice
At the default level (Level 1), a fresh Anvio install has:
| Component | Default |
|---|---|
| Auth | Disabled |
| Storage | Filesystem (workspace/sessions/ as JSONL) |
| Memory | JSON files under workspace/memory/ |
| Events | In-process (no NATS) |
| Entry point | CLI (anvio chat) |
Agents run immediately after install — no setup wizard, no OAuth screen, no database migration. You can add a model API key for real completions, or skip it entirely and use mock mode, which echoes your message back so you can validate the wiring end to end.
The four capability layers
Anvio's system map groups functionality into layers that build on each other:
| Layer | What it does | Key paths / commands |
|---|---|---|
| Agents | Persona + skills + model + soul | agents/*.md, anvio chat --agent NAME |
| Tool gateway | 73 built-in tools, multi-turn loop | tools/gateway.yaml, anvio tools list |
| Learning loop | Memory nudge, session summary, skill drafts | anvio learning drafts |
| Advanced Agent OS | Souls, goals, kanban, batch, subagent delegation | anvio soul, anvio goal, anvio kanban |
| Automation | Cron, blueprints, workflow DAGs, event hooks | anvio automation, anvio workflow |
| Harness | Channel formatting, engagement, OAuth connections | harness/, anvio connect |
| Runtimes | Local loop or vendor OAuth (Claude Code, Cursor, Codex, Antigravity) | anvio setup-token, anvio runtime |
| Platform | Credential pools, routing, MCP, ACP, remote runtimes | anvio routing, anvio mcp, anvio runtime |
| Models | Anthropic, OpenAI, DeepSeek, Groq, Gemini, OpenRouter, Ollama, and more | providers/routing.yaml |
| Channels | CLI, REST, Web Chat, Telegram, Discord, Slack, and more | anvio channels status |
Two auth layers, don't mix them up
Anvio distinguishes between two independent authentication concerns:
- Model API key — powers the
localruntime (Anvio's built-in multi-turn tool loop). SetANTHROPIC_API_KEY,DEEPSEEK_API_KEY, etc. - Runtime OAuth — powers vendor CLIs (Claude Code Pro/Max, Cursor, Codex, Antigravity) via
anvio setup-token. Tokens are stored encrypted underworkspace/connections/.
Do not set ANTHROPIC_API_KEY when running the claude-code runtime — it shadows OAuth and bills your API credits instead of your subscription quota. See Runtime OAuth and ADR 0009 for the full rationale.
Monorepo shape
Anvio is a pnpm + Turborepo monorepo with a strict dependency rule: apps → platform → packages → core. Domain logic never lives in app-level controllers.
Anvio/
├── apps/
│ ├── cli/ Primary interface
│ ├── api/ Optional REST (NestJS)
│ ├── worker/ Background job consumer
│ ├── gateway/ WebSocket gateway
│ └── desktop/ Desktop shell scaffold
├── packages/ ~35 packages: core, platform, workspace, agents,
│ learning, tools, harness, models, memory, channels,
│ voice, knowledge, runtimes, acp, souls, goals,
│ automation, blueprints, kanban, credentials, and more
├── configs/ Bundled skills, blueprints, observability
├── workspace/ Default workspace (your copy)
└── docs/ Architecture & phase guidesSee Components for what each app and package is responsible for, and High-Level Architecture for how they fit together.
Progressive enhancement levels
Anvio scales from a solo laptop setup to an organization-scale deployment without rewriting configuration — only flipping settings in workspace/anvio.yaml.
| Level | Storage | Auth | Events | Best for |
|---|---|---|---|---|
| 1 | Filesystem (sessions/ JSONL) | Model API key or mock; no platform login | In-process | Solo dev, first run in 5 minutes |
| 2 | SQLite (state.db + FTS5) | + vendor OAuth (setup-token) + channel connections | Local / NATS | Small team + gateway/API |
| 3 | PostgreSQL + Qdrant | JWT + OAuth | NATS JetStream | Multi-user production |
| 4 | Kubernetes + managed DB | Full RBAC | Distributed | Organization scale |
Not yet shipped
Level 3 (Qdrant semantic memory) and Level 4 (Kubernetes/Helm charts) are documented target states, not implemented today. Qdrant is called out as a Phase 2 item in the memory-providers design, and the Kubernetes Helm chart is listed under Phase 4 in the deployment doc. Both remain roadmap items — don't assume qdrant or a Helm chart exists in the repo yet.
Where to go next
Quick Start
Install, configure a workspace, and chat with an agent in about 5 minutes.
Installation
Both install paths in detail: one-liner script vs. cloning the monorepo.
Requirements
Node, pnpm, and OS prerequisites, plus what's optional.
High-Level Architecture
How the CLI, runtime, tool gateway, and storage layers connect.
Last updated on