AAnvio
Getting Started

Installation

Two supported ways to install Anvio — the one-liner script for end users, or a monorepo clone for contributors.

4 min read

Purpose

This page covers both install paths in detail, what each one puts on disk, and how to verify the install worked. If you just want the fastest path to a running agent, use Quick Start instead — this page is the reference for what's actually happening under the hood.

Option A — one-liner install (end users)

curl -fsSL https://raw.githubusercontent.com/viantonugroho11/Anvio/main/scripts/install.sh | bash
source ~/.anvio/env

This downloads and runs scripts/install.sh, which:

  1. Clones the Anvio repository (default https://github.com/viantonugroho11/Anvio.git, branch main) into ~/.anvio/app.
  2. Runs pnpm install && pnpm build inside the clone (skip with --skip-build if already built).
  3. Creates a default workspace at ~/.anvio/workspace.
  4. Symlinks the built CLI binary to ~/.local/bin/anvio.
  5. Writes ~/.anvio/env with environment hints (add ~/.local/bin to PATH, etc.).

Installer options

install.sh [options]

Options:
  --workspace PATH   Workspace directory (default: ~/.anvio/workspace)
  --home PATH        Install root (default: ~/.anvio)
  --bin-dir PATH     Binary symlink dir (default: ~/.local/bin)
  --repo URL         Git repo URL (default: GitHub Anvio)
  --branch NAME      Git branch (default: main)
  --skip-build       Skip pnpm build (if already built)
  -h, --help         Show help

Relevant environment variables the installer respects: ANVIO_HOME, ANVIO_WORKSPACE, ANTHROPIC_API_KEY.

What gets installed where

PathPurpose
~/.anvio/appAnvio source clone
~/.anvio/workspaceDefault workspace
~/.local/bin/anvioCLI binary (symlink)
~/.anvio/envShell env hints — source this in your shell profile

After install:

anvio chat
anvio agents list

Option B — developer install (contributors)

Use this path if you plan to modify Anvio itself, or want the full monorepo (tests, all apps, all packages) rather than just the CLI.

git clone https://github.com/viantonugroho11/Anvio.git
cd Anvio
pnpm install && pnpm build && pnpm test
export ANVIO_WORKSPACE=./workspace
pnpm anvio chat
  • pnpm build runs turbo run build, which builds every package/app respecting the dependency graph (apps → platform → packages → core), caching outputs per package in dist/**.
  • pnpm test runs the Vitest suite (190+ tests as of the latest release).
  • pnpm anvio <args> is a convenience script (node apps/cli/dist/main.js) so you don't need the global symlink.
  • The repo ships its own workspace/ directory you can point at directly instead of scaffolding a new one with anvio init.

Useful workspace-level scripts

pnpm dev              # turbo run dev --parallel (all apps in watch mode)
pnpm lint              # turbo run lint
pnpm typecheck         # turbo run typecheck
pnpm test:integration  # phase integration suites
pnpm format            # prettier --write across ts/tsx/js/json/md/yml

Verifying the install

anvio --help
anvio workspace validate
anvio agents list

If anvio workspace validate reports structural problems, re-run anvio init <path> against a fresh directory and diff against your existing workspace, or consult Workspace layout.

Best practices

  • Prefer the one-liner install unless you intend to contribute code — it keeps your workspace and Anvio's source cleanly separated.
  • Always source ~/.anvio/env (or add it to your shell profile) after the one-liner install so anvio resolves on PATH.
  • Set ANVIO_WORKSPACE explicitly per project rather than relying on the default — this avoids accidentally writing sessions/memory into the wrong workspace when you have more than one.
  • Copy .env.example to .env at the repo root (developer install) to see the full, current list of supported environment variables in one place.

Common mistakes

  • Running anvio before sourcing ~/.anvio/env. The binary exists but isn't on PATH yet — the shell won't find it until you source the env file or open a new shell that reads your profile.
  • Mixing the one-liner install with a manual clone. If you've already run the installer, don't also git clone into the same location — pick one workflow per machine (or use --home to keep them in separate directories).
  • Skipping pnpm build in the developer path. pnpm anvio runs the compiled CLI (apps/cli/dist/main.js); without a build, dist/ won't exist and the command fails.
  • Forgetting Docker is not needed. Nothing in either install path requires Docker for Level 1 usage — if you find yourself reaching for docker compose, check Deployment instead, which is only relevant at Level 3+.

References

Edit on GitHub

Last updated on

On this page