Requirements
Runtime, tooling, and optional-service requirements for running Anvio at each progressive-enhancement level.
4 min read
Purpose
Know exactly what you need before installing — and just as importantly, what you don't need. Anvio's local-first design means most "requirements" you'd expect from a typical agent platform (a database server, Docker, an OAuth provider) are opt-in additions at higher progressive enhancement levels, not baseline requirements.
Baseline requirements (Level 1)
| Requirement | Version | Why |
|---|---|---|
| Node.js | >= 20 | Runtime for all apps/packages (TypeScript compiled to JS) |
| pnpm | >= 9 | Workspace package manager (pnpm-workspace.yaml defines apps/*, packages/*, tests/integration) |
| git | any recent | Cloning the repo (developer install); also used by anvio worktree for git worktree isolation |
| OS | macOS or Linux (installer targets bash) | The install script and CLI target Unix-like shells; Windows users should use WSL |
Anvio's own package.json declares engines.node: ">=20.0.0" and engines.pnpm: ">=9.0.0", and pins packageManager: pnpm@9.15.9.
Not required at Level 1
- No Docker or Docker Compose
- No PostgreSQL, Redis, or NATS
- No login, JWT, or OAuth setup
- No cloud account of any kind — a model API key is optional (mock mode works without one)
Optional: a model API key
Not required to install or run Anvio, but required for real (non-mock) completions on the local runtime. Any one of the following is enough to get started:
| Provider | Environment variable |
|---|---|
| Anthropic (recommended — also powers the learning loop) | ANTHROPIC_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
| OpenRouter (100+ models via one key) | OPENROUTER_API_KEY |
See the model catalog for the complete list of 18 supported providers and their env vars.
Optional: vendor runtime OAuth
If you want to run agents through Claude Code, Cursor, Codex, or Antigravity using a subscription instead of API billing, you'll additionally need:
- The vendor CLI installed (Claude Code, Cursor agent CLI, OpenAI Codex CLI, or Google's
agyfor Antigravity —anvio setup-token --antigravitywill auto-installagyif missing). ANVIO_CONNECTION_ENCRYPTION_KEYset, so the connection broker can encrypt stored tokens underworkspace/connections/.
See Runtime OAuth for the full setup.
Requirements by progressive-enhancement level
| Level | Additional requirement | Trigger |
|---|---|---|
| 1 | None beyond Node + pnpm | Default |
| 2 | None extra — SQLite is embedded | storage.provider: sqlite in anvio.yaml |
| 3 | PostgreSQL server, Qdrant instance, NATS server | spec.auth.enabled: true + events.provider: nats + DB-backed storage |
| 4 | Kubernetes cluster, managed database | Organization-scale deployment |
Not yet shipped
Level 4 assumes a Kubernetes Helm chart. As of this writing, the deployment docs list "Kubernetes Helm chart (optional)" under Phase 4 and the roadmap doc lists Kubernetes/multi-agent orchestration under Phase 4 — this is a target, not a shipped artifact. Similarly, Qdrant (Level 3 semantic memory) is listed as a Phase 2 item in the memory-providers design and as an ADR (0004-qdrant.md) targeting "Phase 2" — check the repo before assuming either exists as a ready-to-use integration.
Development-only requirements
Only relevant if you're cloning the monorepo to contribute:
- Turborepo (
turbo) — installed viadevDependencies, invoked asturbo run build|lint|typecheckby the rootpackage.jsonscripts. - Vitest — test runner (
pnpm test,pnpm test:integration). - TypeScript 5.8+ and ESLint 9+ — pinned in root
devDependencies. - Prettier —
pnpm format/pnpm format:checkacrossts,tsx,js,json,md,yml,yaml.
Common mistakes
- Using Node 18 or older. Anvio's
enginesfield requires Node >= 20; older versions may fail to install dependencies or run the built CLI. - Installing with npm instead of pnpm. The monorepo uses pnpm workspaces (
pnpm-workspace.yaml); npm/yarn won't resolveworkspace:*protocol dependencies correctly. - Assuming PostgreSQL/Redis/NATS are needed to try Anvio. They're Level 3 additions only — don't provision infrastructure before you've validated the Level 1 flow works.
- Running the install script on Windows without WSL. The installer is a bash script; native
cmd.exe/PowerShell isn't a supported target.
References
Last updated on