AAnvio
Getting Started

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:

  1. Configuration driven — agents, personas, skills, and souls are Markdown/YAML files. No TypeScript changes needed to add or modify an agent.
  2. Local first — works fully offline; no cloud service is mandatory to run an agent.
  3. File first — filesystem is the default storage backend; configs are human-readable and diffable.
  4. CLI first — priority order is CLI > API > Web UI. The CLI is a complete product on its own.
  5. Progressive enhancement — start with files only, add SQLite, then PostgreSQL/NATS/Kubernetes, without rewrites.
  6. Optional auth — authentication is disabled by default and only turned on when you actually need it (multi-user API, OAuth-gated MCP tools).
  7. Plugin architecture — storage, memory, auth, and MCP integrations are all pluggable ports with swappable providers.
  8. 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:

ComponentDefault
AuthDisabled
StorageFilesystem (workspace/sessions/ as JSONL)
MemoryJSON files under workspace/memory/
EventsIn-process (no NATS)
Entry pointCLI (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:

Rendering diagram…
LayerWhat it doesKey paths / commands
AgentsPersona + skills + model + soulagents/*.md, anvio chat --agent NAME
Tool gateway73 built-in tools, multi-turn looptools/gateway.yaml, anvio tools list
Learning loopMemory nudge, session summary, skill draftsanvio learning drafts
Advanced Agent OSSouls, goals, kanban, batch, subagent delegationanvio soul, anvio goal, anvio kanban
AutomationCron, blueprints, workflow DAGs, event hooksanvio automation, anvio workflow
HarnessChannel formatting, engagement, OAuth connectionsharness/, anvio connect
RuntimesLocal loop or vendor OAuth (Claude Code, Cursor, Codex, Antigravity)anvio setup-token, anvio runtime
PlatformCredential pools, routing, MCP, ACP, remote runtimesanvio routing, anvio mcp, anvio runtime
ModelsAnthropic, OpenAI, DeepSeek, Groq, Gemini, OpenRouter, Ollama, and moreproviders/routing.yaml
ChannelsCLI, REST, Web Chat, Telegram, Discord, Slack, and moreanvio channels status

Two auth layers, don't mix them up

Anvio distinguishes between two independent authentication concerns:

  1. Model API key — powers the local runtime (Anvio's built-in multi-turn tool loop). Set ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, etc.
  2. Runtime OAuth — powers vendor CLIs (Claude Code Pro/Max, Cursor, Codex, Antigravity) via anvio setup-token. Tokens are stored encrypted under workspace/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 guides

See 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.

LevelStorageAuthEventsBest for
1Filesystem (sessions/ JSONL)Model API key or mock; no platform loginIn-processSolo dev, first run in 5 minutes
2SQLite (state.db + FTS5)+ vendor OAuth (setup-token) + channel connectionsLocal / NATSSmall team + gateway/API
3PostgreSQL + QdrantJWT + OAuthNATS JetStreamMulti-user production
4Kubernetes + managed DBFull RBACDistributedOrganization 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

Edit on GitHub

Last updated on

On this page