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/envThis downloads and runs scripts/install.sh, which:
- Clones the Anvio repository (default
https://github.com/viantonugroho11/Anvio.git, branchmain) into~/.anvio/app. - Runs
pnpm install && pnpm buildinside the clone (skip with--skip-buildif already built). - Creates a default workspace at
~/.anvio/workspace. - Symlinks the built CLI binary to
~/.local/bin/anvio. - Writes
~/.anvio/envwith environment hints (add~/.local/bintoPATH, 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 helpRelevant environment variables the installer respects: ANVIO_HOME, ANVIO_WORKSPACE, ANTHROPIC_API_KEY.
What gets installed where
| Path | Purpose |
|---|---|
~/.anvio/app | Anvio source clone |
~/.anvio/workspace | Default workspace |
~/.local/bin/anvio | CLI binary (symlink) |
~/.anvio/env | Shell env hints — source this in your shell profile |
After install:
anvio chat
anvio agents listOption 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 chatpnpm buildrunsturbo run build, which builds every package/app respecting the dependency graph (apps → platform → packages → core), caching outputs per package indist/**.pnpm testruns 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 withanvio 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/ymlVerifying the install
anvio --help
anvio workspace validate
anvio agents listIf 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 soanvioresolves onPATH. - Set
ANVIO_WORKSPACEexplicitly 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.exampleto.envat the repo root (developer install) to see the full, current list of supported environment variables in one place.
Common mistakes
- Running
anviobefore sourcing~/.anvio/env. The binary exists but isn't onPATHyet — 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 cloneinto the same location — pick one workflow per machine (or use--hometo keep them in separate directories). - Skipping
pnpm buildin the developer path.pnpm anvioruns 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
Last updated on