avp-cli
avp is the local AVP CLI; this package (avp-cli) provides it. The fastest way
to build, run, and iterate on AVP Commissions, where an eval is a JSON
config file, not code. You author commissions (one agent configuration each:
a prompt, a tool surface, skills, a model, an output schema) as portable files in
your library, write a short eval that references them by id, run them over a
dataset against a real agent (Goose or Claude Code), and get a ranked board:
accuracy, pass-rate, $/run, turns/run. The trajectories are real AVP, and the
config is the same artifact that rides pctx to the cloud.
avp eval · capitals-extraction · 3 items · agent=goose
┏━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┓
┃ # ┃ commission┃ accuracy ┃ pass_rate ┃ $/run ┃ turns/run ┃
┡━━━╇━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━┩
│ 1 │ few-shot │ 100% │ 100% │ $0.0008 │ 2.0 │
│ 2 │ terse │ 83% │ 67% │ $0.0006 │ 1.7 │
│ 3 │ baseline │ 50% │ 33% │ $0.0004 │ 1.3 │
└───┴───────────┴──────────┴───────────┴─────────┴───────────┘
Notice rank 2: 83% accuracy but only 67% pass_rate. Accuracy is the mean per-item score (partial credit); pass_rate is the share of items that fully cleared the bar. They measure different things, and a good benchmark reports both.
Quickstart
uv tool install avp-cli # installs the `avp` command (or: pipx install avp-cli)
avp agent install --all # every built-in agent, at this CLI's versions
export ANTHROPIC_API_KEY="<your-api-key>"
avp init capitals --agent claude-code
avp eval run capitals.eval.json # paid model calls; prints the ranked board
avp eval share # upload the most recent run, print a short link
Contributors working in the repo: make sync && source .venv/bin/activate
(then use avp …).
Docker is the one prerequisite. Every agent run executes inside an
OpenSandbox container; the
CLI manages the rest itself (a local control-plane server under
~/.avp/opensandbox/, derived images, egress policy). Have Docker Desktop,
OrbStack, or colima running and you're set; the first run pulls/builds images
and is slower, every later run reuses them. avp sandbox status shows the
stack's health.
Credentials. Without a vault credential, the CLI forwards only the selected
provider's API key and endpoint variables (<PROVIDER>_API_KEY, _HOST, and
_BASE_URL; see PATTERNS for how they differ). The Commission's provider (or its model origin when omitted)
selects credentials and Goose routing; host or manifest GOOSE_PROVIDER values
do not override that selection. Anthropic runs also accept
CLAUDE_CODE_OAUTH_TOKEN for claude-code subscriptions; Google/Gemini runs accept
either provider's API-key variable. Other settings must be explicit in the agent
manifest. With a vault credential, the model-provider secret stays in the host
broker and the agent receives only a random per-run authentication token. MCP
vault routes use the same token through their request headers. The broker rejects
missing or invalid tokens. It remains reachable through the host's Docker bridge.
MCP servers with OAuth. Run avp env secret login <handle> --url <mcp-url>
once to sign in through your browser, then set "auth": {"vault": "<handle>"}
on the server in the Commission. The login is stored on the host in
~/.avp/oauth/ and the broker refreshes the token during runs, so the agent
never sees it. Servers without dynamic client registration need
--client-id (and --client-secret) for a client you registered yourself.
The optional libkrun runtime supports offline runs only. Networked runs fail
closed until filtered egress is supported; use the default opensandbox runtime
when a Commission or environment requires network access.
Where things live
Two kinds of artifact, two homes:
- The eval file is authored in place, in your project (
avp initwrites<key>.eval.jsonto the current directory). It's short, you edit it, you commit it. It says what to compare over what, scored how — and references commissions by id. - Commissions are portable artifacts in your library at
~/.avp/commissions/<id>.json(override the root withAVP_HOME). Each file is a raw AVP wireCommissionand nothing else — no tool-specific fields — so the same artifact the CLI runs is what the cloud consumes. The id is the filename; the eval engine fills{input}and assignsrun_id/supervisorper run.avp cm listshows them all. Run outputs live under~/.avp/runs/(delete one withavp eval delete <id>, or all withavp eval delete --all).
The eval config (no code)
An eval is one JSON file that references commissions by id. avp init scaffolds
it; you edit it; the CLI runs it. The format is pinned by
eval.schema.json plus the normative rules in
EVAL-FORMAT.md (templating, identity vs locator keys,
run stamping) — the contract a cloud runner reproduces.
{
"name": "capitals-extraction",
"dataset": {
"source": "inline",
"items": [
{ "id": "paris", "prompt": "Paris is the capital of France; ~2M people.",
"expected": { "city": "Paris", "country": "France", "population_millions": 2 } }
]
},
"scorer": { "name": "structural-match", "threshold": 1.0 },
"commissions": ["baseline", "terse", "few-shot"]
}
A commission file (~/.avp/commissions/terse.json) is a raw AVP wire
Commission — the same shape an agent runs:
{
"schema_version": "0.1",
"run_id": "terse",
"model": "anthropic/claude-haiku-4-5",
"prompt": "Return ONLY JSON {city,country,population_millions}: {input}",
"output_schema": { "type": "object", "properties": { "city": { "type": "string" } } }
}
commissions(in the eval) — a list of ids (filenames in your library). To A/B one change, copy a commission to a new id, change just that field, and add the id here, so the board isolates its effect.- a commission file — a wire
Commission(avp.commission.Commission): real fields only (prompt,system_prompt,model,enabled_builtin_tools,skills,mcp_servers,output_schema,tags, …). The id is the filename, not a field.{input}inpromptis a plain string the eval fills per case;run_id/supervisorare assigned per run.avp cm describe <id>prints the full Commission (nulls included) so you learn the real wire shape. scorer— built into the CLI, chosen by name + params:exact-match— answer text equalsexpected(normalized).structural-match— fraction ofexpecteddict keys the JSON answer got right;thresholddecides pass.structural-fidelity— directional HTML fidelity vs a reference (ParseBench-style); needs theparsebenchextra.
dataset.source— referenced, never loaded by your code:inline—items: [{id, prompt, expected}].file—pathto a.jsonl/.json; either rows already{id,prompt,expected}, or aninputtemplate +expected_fieldmapping.huggingface—id+split, aninputtemplate over row fields,expected_field,id_field; needs thehuggingfaceextra.
avp init — the catalog
avp init opens a picker; avp init <key> scaffolds directly. Each entry writes
an eval file in place and installs its commissions into your library (an id you
already have is left untouched):
capitals— the tiny capitals extraction above (the default off a non-interactive terminal). Inline data, no extra deps, runs for pennies.parsebench— PDF pages → HTML over the realllamaindex/ParseBenchdataset, scored on structural fidelity. Needsuv sync --extra parsebench.custom— a minimal real eval you fill in with your own task and commissions.
Commands
| Command | Does |
|---|---|
avp |
getting-started + agent routing |
avp init [key] [--dir D] |
scaffold an eval (in place) + its commissions (to the library) |
avp eval run CONFIG |
run a config, print the ranked board |
avp eval list |
list recent eval runs by voyage id (newest first) |
avp eval share [ID] |
upload an eval and print a short agentvoyagerproject.com link that lasts 30 days (default: most recent run) |
avp eval unshare [ID] |
take a shared eval's link down |
avp eval delete ID [--all] |
delete one recorded run by id (or --all for every run, ~/.avp/runs) |
avp cm create ID --agent A |
generate a complete commission (full tool/skill surface + version pin); edit the JSON |
avp cm list |
list your portable commission library (~/.avp/commissions) |
avp cm describe ID |
render the Commission a library commission yields |
avp cm check ID|FILE |
check a library commission by id (or a wire Commission JSON file) |
avp cm delete ID |
remove a commission from your library |
avp agent list |
the agents you can run against: whether each is installed and ready |
avp agent install --all |
install every built-in agent from its avp release |
avp agent install NAME [--manifest PATH | --as NAME --wheel/--binary/--package ...] |
install one built-in agent, your own agent from its manifest, or a local build under its own name |
avp agent describe NAME |
one agent's capabilities: tools, models, skills, MCP (--json for raw) |
avp agent uninstall NAME |
remove an installed agent from ~/.avp/agents |
avp run "TASK" --agent A [--env E] [--commission ID] |
commission an agent to do a task in a sandbox; --commission runs a library Commission with the task as its {input} |
avp env create NAME |
create an environment (--image/--apt/--pip/--path/--file/--setup/--net/--cpu/--memory) |
avp env list |
list your environments (~/.avp/environments) |
avp env show NAME|PATH |
what an environment's sandbox world contains |
avp env run NAME -- CMD |
run a command inside an environment's sandbox |
avp env delete NAME |
remove an environment |
avp sandbox status |
Docker + managed-server health, live sandbox count |
avp sandbox stop |
stop the managed sandbox server |
Eval-run flags (eval run): --agent goose,claude-code (compare agents),
--model <id> (override every commission's model), --env <name\|path> (run agents inside an
environment), --json out.json (machine-readable board + per-run trajectory pointers),
--threshold T, --max-items N, --quiet.
Live progress. In a terminal, each run animates on one line as it sails: a
growing voyage of brand-colored glyphs (● model turns, ◆ tool calls) with a
live turn count, current tool, and running cost; finished runs collapse to a
one-line summary, so scrollback stays one line per run, not one per event.
Press Ctrl-C to stop the matrix early; you still get a board of the runs that
finished (marked stopped-early). --quiet or a non-terminal (piped / CI) falls
back to plain one-line-per-run logging.
Comparing agents. Pass --agent goose,claude-code and the run goes
task-major: both agents run each item back-to-back, a ⚖ head-to-head prints
the moment they both finish a task, and at the end you get one board per agent
plus a head-to-head table (commissions × agents, each agent's mean accuracy and
$/run in the caption). Cheap way to see, e.g., that one agent matches another's
accuracy at a fraction of the cost.
Agents: install + local dev
A run uses an installed agent, by name. Start with every built-in agent:
avp agent install --all # skips ones already installed; --force reinstalls
avp agent list # each agent, where it came from, and readiness
avp agent list shows where each agent's code came from:
- avp release: a built-in agent (
claude-code,codex,openai-agents,goose,pi,gemini-cli,deep-agents,pydantic-ai,opencode) from a GitHub release, at the version this CLI pins.avp agent install <name>installs one, and--versionpicks another release. These names are reserved for the built-in agents. - manifest: your own agent, installed by name from its
avp-conformance.json. The manifest needs acontainerblock ({"install": ["<Dockerfile RUN step>", ...], "command": ["<argv>", ...]}), because runs execute in a Linux sandbox. - local build: a built-in agent built from your checkout, installed under its own name so a board never mistakes it for the release.
avp agent install my-agent --manifest ~/work/my-agent/avp-conformance.json
avp run --agent my-agent "..."
A binary agent (goose) installs a prebuilt executable; a Python agent
(claude-code, codex, openai-agents, deep-agents, pydantic-ai) installs into a managed venv (needs uv); a
Node agent (pi, gemini-cli, opencode) extracts its package archive and runs with the host's node. Release downloads go over
plain HTTPS, so a public repo needs no auth; set GH_TOKEN only for a private
fork or to avoid API rate limits. The host install serves avp agent describe
(the free pre-flight view); actual runs install the agent's Linux build into
the sandbox image, so run-time dependencies (e.g. the claude-code agent's
Node + claude CLI) live in the image, not on your machine. Set
AVP_AGENT_REPO to install releases from a fork; the host install and the
sandbox image both come from it.
Testing your own build of a built-in agent (no release needed). Build the
artifacts and install them under a -dev name:
make build-agents # builds into dist/agents and prints the install commands
avp agent install claude-code --as claude-code-dev \
--wheel dist/agents/agent_voyager_project-*.whl \
--wheel dist/agents/avp_conformance-*.whl \
--wheel dist/agents/avp_claude_agent_sdk-*.whl
avp agent install pi --as pi-dev --package dist/agents/avp-pi.tar.gz
The artifacts are copied into the sandbox image, so --agent claude-code-dev
runs your build, and boards and run manifests label it as a local build.
--binary (goose) and the opencode archive must be Linux builds, since that's
what the sandbox runs. A custom agent needs no build step at all: install its
manifest, or pass a manifest path to --agent for a one-off run.
Environments + avp run
An environment is a CLI-side asset (the AVP spec never sees it) describing
the container world an agent runs in: a base image, packages, seeded
files/dirs, setup commands, an egress allowlist, and resource caps. Nothing
comes from the host machine; everything the agent sees is declared. It lives at
~/.avp/environments/<name>.json.
avp env create datasci \
--image python:3.12-slim --pip pandas \
--path ./my-repo \ # copy a real codebase in (skips .git/node_modules/caches)
--file TASK.md=@./task.md # seed a file inline, or from a local path with @
avp env show datasci
avp env run datasci -- python -c "import pandas; print(pandas.__version__)" # a command
avp run --agent goose --env datasci "Do the task described in TASK.md" # an agent
avp run compiles the env + the agent's container recipe into a derived image
(avp-env:<content-hash>, built once, then cached), seeds the workspace on the
host, boots a sandbox with the workspace bind-mounted, runs setup, then
commissions the agent. The trajectory streams live; the workspace persists
under ~/.avp/runs/<id>/workspace so you can inspect what changed. The
container is the write boundary, and the network is a default-deny egress
allowlist (model-provider APIs + GitHub + the env's net).
Block fields: image (default python:3.12-slim), packages
({apt: [...], pip: [...]}, baked into the image), paths (dirs/files copied
into the workspace fresh each run), files (inline or @local), setup
(commands run in the sandbox workspace before the agent; network access needs
net), net (extra egress domains), resources ({cpu, memory}).
avp eval run --env <name> runs a whole eval inside the same environment (one
workspace shared across cells, one fresh sandbox per cell).
Outputs
Every avp eval run ends with a voyage id (e.g. swift-harbor) and writes
the eval's data. The CLI produces the data; the site renders it. A benchmark post
is: run the eval → share it → write.
- the voyage id — a short, memorable handle for the run, printed when it
finishes.
avp eval share <id>uploads it and prints a short link;avp eval listshows recent ids. (Bareavp eval shareshares the latest.) Sharing uploads the run's prompts, replies, and tool inputs and outputs; links expire after 30 days, andavp eval unshare <id>takes one down sooner. trajectories.json— the whole eval in theby_commissionshape agentvoyagerproject.com renders (keyed by commission, each carrying every run's full AVP trajectory, plus acommissionsblock of each one's config).avp eval shareuploads it. One file per agent when you compare several.
How it works
avp eval drives any conforming AVP agent through the same contract the
conformance harness uses: <agent> run --commission <file> --out <ndjson>,
declared in the agent's avp-conformance.json — executed inside an OpenSandbox
container built from the env's derived image. For each commission/item it
composes a Commission, boots a fresh sandbox (workspace + io dirs
bind-mounted), runs the agent, reduces the trajectory, extracts the final
answer, scores it by the named scorer, and ranks a Board.
Layout:
src/avp_cli/
cli.py # the `avp` umbrella: init / eval / cm / agent / run / env / sandbox
paths.py # the ~/.avp asset root (AVP_HOME): commissions/ + runs/ + agents/
library.py # the portable commission library (~/.avp/commissions/<id>.json)
config.py # load an eval JSON config -> internal engine (the config-not-code boundary)
commission.py # inspect a Commission a library commission yields (show / validate)
console.py # rich Console + stdout(results)/stderr(progress) discipline
brand.py # the AVP ship logo + palette for the terminal
viz.py # trajectories -> agentvoyagerproject.com payload + share API (avp eval share)
osb.py # the managed OpenSandbox control plane (config, spawn, egress policy)
images.py # env + agent recipe -> cached derived image (avp-env:<hash>)
environment.py # the env spec (image/packages/paths/files/setup/net/resources) + seeding
agent.py # run_agent: the run contract executed inside a sandbox
agents.py # built-in agents + resolution of installed agents + container recipes
agent_install.py # `avp agent install`: avp releases, custom manifests, local builds
observability.py # summarize: reduce a trajectory to per-run facts
onboarding.py # the WELCOME / agent-routing text
state.py # recent-run history under ~/.avp/runs (eval list / view / clear)
catalog/ # avp init catalog: {eval, commissions} docs (parsebench / demo / custom)
eval/ # the engine (internal)
setup.py # Setup: one commission (id + Commission template; internal type)
dataset.py # Dataset / Item
scoring.py # scorers + FinalOutput / Score
engine.py # run_eval, extract_final_output, RunResult, Board
report.py # board_table (rich) + dump_json
The CLI is its own example: avp init capitals scaffolds the bundled
capitals eval and avp eval run capitals.eval.json runs it end-to-end
against a real agent. For agent-side integration examples (the drop-in
AVPClaudeSDKClient), see agents/avp-claude-agent-sdk/python/.
Metadata
Release files for avp-cli 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avp_cli-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / avp_cli-0.3.1-py3-none-any.whl
| Download URL | avp_cli-0.3.1-py3-none-any.whl |
|---|---|
| Size | 277.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f77339dc7a61c4781e7e2c7541766b06b7f38678a06c220f3f406a59565a1226
|
|
BLAKE2b-256 checksum How to use checksums |
89151efae668f8918478a90cb4b6f7948f4bf3c8d17297a7c239d6a43d4172e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for avp-cli 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 1 file in this release has been uploaded with provenance metadata.
Attestation for avp_cli-0.3.1-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.