AAnvio
Getting Started

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)

RequirementVersionWhy
Node.js>= 20Runtime for all apps/packages (TypeScript compiled to JS)
pnpm>= 9Workspace package manager (pnpm-workspace.yaml defines apps/*, packages/*, tests/integration)
gitany recentCloning the repo (developer install); also used by anvio worktree for git worktree isolation
OSmacOS 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:

ProviderEnvironment variable
Anthropic (recommended — also powers the learning loop)ANTHROPIC_API_KEY
DeepSeekDEEPSEEK_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 agy for Antigravity — anvio setup-token --antigravity will auto-install agy if missing).
  • ANVIO_CONNECTION_ENCRYPTION_KEY set, so the connection broker can encrypt stored tokens under workspace/connections/.

See Runtime OAuth for the full setup.

Requirements by progressive-enhancement level

LevelAdditional requirementTrigger
1None beyond Node + pnpmDefault
2None extra — SQLite is embeddedstorage.provider: sqlite in anvio.yaml
3PostgreSQL server, Qdrant instance, NATS serverspec.auth.enabled: true + events.provider: nats + DB-backed storage
4Kubernetes cluster, managed databaseOrganization-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 via devDependencies, invoked as turbo run build|lint|typecheck by the root package.json scripts.
  • Vitest — test runner (pnpm test, pnpm test:integration).
  • TypeScript 5.8+ and ESLint 9+ — pinned in root devDependencies.
  • Prettier — pnpm format / pnpm format:check across ts,tsx,js,json,md,yml,yaml.

Common mistakes

  • Using Node 18 or older. Anvio's engines field 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 resolve workspace:* 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

Edit on GitHub

Last updated on

On this page