FAQ
Common questions about installing, running, and contributing to Anvio.
7 min read
Do I need Docker to try Anvio?
No. Level 1 runs entirely on the filesystem — sessions are JSONL under workspace/sessions/, memory is JSON under workspace/memory/, and there's no platform login. pnpm install && pnpm build && anvio chat (or the one-line installer) gets you a working agent with no Docker and no database. Docker only matters if you want Level 3 (PostgreSQL, Redis, NATS, Qdrant) or want to run the API/worker/gateway apps as separate containerized services. See Local Development.
Do I need a model API key to start?
No. Without any API key set, Anvio runs in mock mode — it echoes your message back so you can verify the CLI, workspace, and agent wiring end to end. Set ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, OPENROUTER_API_KEY, or any of the other 18 supported provider keys to get real completions and enable the LLM-powered learning loop (session summaries, skill drafts).
What's the difference between a model API key and runtime OAuth?
These are two independent authentication layers and mixing them up is the most common setup mistake:
- Model API key — powers the
localruntime, Anvio's own built-in multi-turn tool loop. You setANTHROPIC_API_KEY(or another provider's env var) and Anvio calls that provider's API directly. - Runtime OAuth — powers vendor CLIs (Claude Code, Cursor, Codex, Antigravity) via
anvio setup-token --claude|--cursor|--codex|--antigravity. This authenticates against your subscription (Claude Pro/Max, ChatGPT/Codex, Cursor, Google Sign-In), not a metered API key, and tokens are stored encrypted underworkspace/connections/.
Do not set ANTHROPIC_API_KEY in the same environment as runtime.provider: claude-code — the API key shadows OAuth and silently bills API credits instead of your subscription quota. See Runtime OAuth and ADR 0009 in the source repo for the full rationale.
Which deployment level should I start with?
Start at Level 1 (filesystem storage, no auth, in-process events) — it's the default and needs nothing beyond Node and pnpm. Move to Level 2 (SQLite state.db + FTS5 search, vendor OAuth, channel connections) when you want persistent full-text session search or you're wiring up a channel like Telegram or Slack. Reach for Level 3 (PostgreSQL + Qdrant, JWT + OAuth, NATS JetStream) only for multi-user production deployments. Each step is a config flip in workspace/anvio.yaml (e.g. storage.provider: sqlite), not a rewrite.
Not yet shipped
Level 4 (Kubernetes + managed database, full RBAC, distributed events) is a documented target state, not implemented today — there is no Helm chart in the repository yet. Treat Level 4 as a roadmap item, not a currently available deployment path.
Is Kubernetes supported?
Not yet shipped
Not yet. Kubernetes/Helm-chart deployment is listed as a Phase 4 target in the roadmap and progressive-enhancement model (Level 4), but no Helm chart or K8s manifests ship in the repository today. The Kubernetes deployment page is a placeholder pending that work. If you need production orchestration today, run the Level 3 Docker Compose stack (docker/docker-compose.yml) behind your own orchestrator.
How do I add a new channel adapter?
Channel adapters live under packages/channels/ and plug into the ChannelHub + harness layer. At a high level: implement the adapter against the channel port defined in @anvio/core, register it in @anvio/platform's composition factory so it's wired up when enabled in workspace/anvio.yaml under spec.channels.<name>, and add a harness profile under harness/ if the channel needs custom formatting, engagement, or approval behavior. Anvio ships 14 channel adapters today (Telegram, Discord, Slack, WhatsApp, Mattermost, Teams, Matrix, Email, Signal, Google Chat, Feishu, SMS, Web Chat, CLI/REST) as reference implementations — the closest existing adapter to what you're building is usually the best starting point. See Channels and Channel Harness in the docs for the harness contract.
What's the difference between the local runtime and vendor runtimes like Claude Code or Cursor?
The local runtime is Anvio's own agent loop: it calls a model provider's API directly (via a model API key) and drives tool calls through Anvio's 73-tool gateway itself. Vendor runtimes (claude-code, cursor, codex, antigravity) instead delegate execution to an external CLI/SDK — Claude Code's Agent SDK, Cursor's agent, the OpenAI Codex CLI, or Google's Antigravity CLI (agy) — authenticated via that vendor's own subscription OAuth. You bind a runtime per agent in its frontmatter (spec.runtime.provider) and can configure a fallback chain (fallbacks: [cursor, codex, local]) so a run retries the next runtime on auth failure.
Can I run multiple agents with different models or runtimes?
Yes. Each agent definition under workspace/agents/*.md has its own model and runtime frontmatter, so one agent can run on claude-code OAuth while another uses local with a DeepSeek API key, and a third routes through providers/routing.yaml for automatic fallback (e.g. Anthropic primary, DeepSeek fallback) based on task classification.
Do agents get better over time?
Yes, through the learning loop. At session end, Anvio generates a memory nudge, an LLM session summary (if a model API key is configured; falls back to rule-based summaries otherwise), and a skill draft. On tool-use success, a pattern analyzer proposes skill drafts too. Whether a draft auto-promotes to a real skill or lands in workspace/skills/_drafts/ for manual review depends on the agent's soul (evolution.allowAutoUpdate and requireApproval in SOUL.md) — this is the "soul-gated" self-improvement Anvio advertises.
What are "souls" and do I need them?
A soul is a persistent agent identity (workspace/souls/*/SOUL.md) that outlives a single session — it's how an agent's evolution (auto-promoted skills, learned behavior) is scoped and gated. You don't need one to use Anvio: agents work fine with just a persona and skills. Souls matter once you want an agent's learning loop to actually mutate its own skill set over time, with policy control over whether that happens automatically or requires approval.
How do I add a custom agent?
Create a Markdown file under workspace/agents/, e.g. workspace/agents/reviewer.md, with YAML frontmatter for persona, skills, model, and optionally soul, followed by a Markdown body describing the agent's role. Legacy YAML-only agent definitions still load, but .md with frontmatter is the preferred, file-first format. Run anvio agents list to confirm it's picked up and anvio chat --agent reviewer to talk to it.
Why Markdown for agents/skills/souls but YAML for infra?
This is a deliberate design principle, not an inconsistency: agent-authored, human-edited configuration (personas, skills, souls, workflows) is Markdown with frontmatter because it's readable, diffable, and easy for an LLM or a person to hand-edit. Infrastructure configuration (anvio.yaml, tools/gateway.yaml, providers/routing.yaml, mcp/servers.yaml) stays YAML because it's structural, machine-validated config rather than prose. See Overview for the full principle list.
Where does everything live, and can I back it up or move it?
Everything Anvio needs at runtime lives under a single portable workspace/ directory — agents, personas, skills, souls, goals, workflows, tool gateway config, harness profiles, provider routing, MCP registry, credentials, connections, sessions, and memory. There's no database migration step at Level 1: you can git commit the whole directory (excluding the gitignored runtime data like sessions/, memory/, inbox/, .gateway/) or copy it to another machine and it works.
How do I run something in the background instead of chatting interactively?
Use anvio run <agent> "<task>" --detach to start a detached run, then anvio sessions list, anvio status <sessionId>, and anvio logs <sessionId> to monitor it. Detached runs are processed by the worker — either the unified gateway (anvio gateway start) or, in a split legacy dev setup, pnpm --filter @anvio/worker dev directly.
What's the fastest way to get from zero to a running agent?
curl -fsSL https://raw.githubusercontent.com/viantonugroho11/Anvio/main/scripts/install.sh | bash
source ~/.anvio/env
anvio init ~/my-agents
export ANVIO_WORKSPACE=~/my-agents
anvio agents list
anvio chat --agent architectNo model key gets you mock mode immediately; add ANTHROPIC_API_KEY (or another provider key) for real completions. See the Quick Start guide for the full walkthrough.
Last updated on