Every vapi command, its options and its exit codes. Install the CLI with npm i -g vapi-network, or prefix a command with npx vapi-network.
The code installer and Claude Code/Codex launchers below are available since 0.12.0. Tasks V2 is live on Base mainnet (chain 8453). Solidproof signed off the audit on 23 November 2026. The platform fee is 0% at launch; the owner Safe may raise it to at most 20%. Each task and each pool budget is capped at 5,000 USDC. Disputes cost 10% of the milestone, with a 20 USDC minimum and 500 USDC maximum. See Tasks for Guardian requirements and deployment pins.
Most commands accept --json and write one success or error value to stdout.
The Claude Code and Codex launchers are interactive and reject that flag.
Task watch and a partially completed scope-signing flow can emit newline-delimited
JSON; delivery emits one result after chain success. See Task commands. Exit codes are
0 for success, 1 for an operational failure, and 2 for invalid usage or
an announced preview-only command.
Solana listings remain searchable. Inspecting or paying one returns
unsupported_network (CLI exit 1); vault payments on Solana arrive in a later release.
Inspect shows the registry’s last observed quote; pay fetches a fresh quote before signing.
Hosted search hides listings in outage unless --include-outage is set.
API hits can include health and cheaper or healthier alternatives; inspect can
include response schemas and an example request. Search, inspect and pay JSON
results include zero to four next-action hints.
Protected-vault access and legacy secret-store commands are documented in the wallet guide.
Every wallet command takes --account <name>, falls back to VAPI_WALLET, then the default from vapi accounts use; --wallet <name> is deprecated and still accepted.
Task exit codes are 0 ok, 1 error or invalid usage, 2 policy refusal, and 3 approval needed in non-interactive mode. Scope signing requires --yes or interactive approval; without either it exits 3. A policy refusal at exit 2 has JSON ok:false with reason: "policy.perTask" or reason: "policy.perDay". Invalid usage exits 1 with {ok:false,error:{code:"usage_error",message}}. Run vapi task --help for details. V2 chain operations use the verified Base mainnet pins without overrides. Other chains, including Base Sepolia, need an explicit complete V2 deployment override. The client verifies factory, clone and resolver state through the trusted RPC before signing. It records pending operations under VAPI_HOME for recovery. Funding and dispute fees apply local per-task and daily caps before signing; --yes grants approval without bypassing caps. Legacy V1 scope flows retain their local scope binding and counterparty checks. See task security and recovery.
Posting without --fund moves no money. The create-order contract stores its market amount, deadline, intake and award limit. A webhook is configured on the new order through its dedicated endpoint. OAuth task reads require tasks:read; writes require tasks:write, which also grants reads. See Task commands.
| Command | Options | What it does |
|---|---|---|
vapi init |
--networks <base,arc>, --no-link |
Creates ~/.vapi, the wallet main and the config. Says so if one exists. |
vapi setup |
--no-cloud-backup, --accounts <n>, --json |
Creates or restores the vault, links the first account, and can offer cloud backup. Safe to rerun. |
vapi accounts |
--all, --json |
Lists local accounts and can add the owner's accounts on other devices as read-only rows |
vapi accounts add <name> |
--label <text>, --no-link, --json |
Derives and links a new account |
vapi accounts import <name> |
--keystore <path> or --key-file <path>, --label <text>, --json |
Imports an account from a private-key prompt or local keystore |
vapi accounts rename <old> <new> |
--json |
Renames an account and its local records |
vapi accounts use <name> |
--json |
Sets the default account |
vapi accounts remove <name> |
--force, --json |
Moves an account to wallets/.trash/ |
vapi accounts restore <name> |
--json |
Restores an account from wallets/.trash/ |
vapi accounts caps <name> |
--per-call <usd>, --per-day <usd>, --ceiling <usd|off>, --max-per-task <usd>, --approve-above <usd>, --yes, --json |
Shows or sets the account's spend caps, Base USDC ceiling and task limits; raising a task limit needs a person at a terminal |
vapi accounts distribute <amount> |
--from <account>, --to <a,b,c>, --network <base|arc>, --json |
Splits USDC across linked local accounts and records resumable legs |
vapi accounts distribute --resume <id> |
--replace-expired-restored, --bind-legacy-addresses, --json |
Continues an unfinished distribution; unsafe restored or legacy address replacement requires its terminal-only review flag |
vapi accounts distribute --cancel <id> |
--replace-expired-restored, --json |
Cancels eligible legs without signing; restored legs require terminal-only review and signed legs require proven expiry |
vapi swarm create <name> |
--agents/--roles, --fund/--from, --strategy/--targets, --caps/--treasury-caps, --network, --model, --no-wait, --json |
Creates or resumes a treasury, member accounts, profiles and owner links |
vapi swarm add <name> <role> |
--json |
Adds or resumes one member |
vapi swarm remove <name> <member> |
--json |
Sweeps a member to the treasury and removes it from the swarm |
vapi swarm fund <name> <usd> |
--from <account>, --json |
Prints owner funding instructions or funds the treasury from a local account |
vapi swarm rebalance <name> |
--targets <role=usd,...>, --json |
Moves funds between the treasury and linked members under local caps |
vapi swarm status <name> |
--json |
Reports balances, links, allocation history and unfinished movements |
vapi swarm dissolve <name> |
--json |
Sweeps the swarm back to the owner and removes its local swarm record |
vapi swarm run <name> "<task>" |
--mode <lead|each>, --lead <member>, --budget <usd>, --draw <usd>, --detach, --runtime <local|railway>, --result-file <path>, --json |
Runs the lead or each member under run budgets |
vapi swarm run <name> "<task>" --mode each --runtime railway |
--checkpoint <name>, --allow-remote-key, --budget <usd>, --keep-sandbox, --json |
Runs dedicated members in experimental Railway sandboxes; see the swarm guide |
vapi swarm runs <name> |
--json |
Lists stored runs and their runtime status |
vapi swarm stop <name> [<runId>] |
--all, --confirm-worker-stopped, --json |
Stops local or Railway runs; Railway requires destroy exit zero; confirmation clears a verified stale start |
vapi swarm forget-run <name> <runId> |
--confirm-destroyed, --json |
Confirms destruction of an unknown/orphaned Railway sandbox, or a terminal run with an orphaned sidecar and id; retains the record |
vapi send <amount> |
--from <account>, --to <account|owner|0x…>, --network <base|arc>, --resume <nonce>, --json |
Sends USDC to the owner or another active account; vAPI pays gas |
vapi wallet list |
- | Name, address, default marker, caps in USD, unlocked, label |
vapi wallet create <name> |
--label <text>, --no-link |
Deprecated alias for accounts add; derives an account in the device vault |
vapi wallet use <name> |
- | Makes it the default for every later command |
vapi wallet rename <old> <new> |
- | Deprecated alias for accounts rename; renames the account and local records |
vapi wallet remove <name> |
--force |
Deprecated alias for accounts remove; moves the account to wallets/.trash/ |
vapi wallet restore <name> |
- | Deprecated alias for accounts restore; restores the removed account |
vapi wallet caps <name> |
--per-call <usd>, --per-day <usd> |
Sets that wallet's spend caps, in US dollars |
vapi fund |
--amount <usd>, --account <name> |
Prints and opens the hosted funding page. Makes no network call. |
vapi docs "<question>" |
--json |
Prints an answer and sources, or the closest documentation sections when the site has no assistant; no wallet or payment |
vapi docs search "<query>" |
--json |
Searches the vAPI documentation and prints matching excerpts; no wallet or payment |
vapi docs read <url-or-path> |
--json |
Reads one vAPI documentation page as Markdown; no wallet or payment |
vapi accounts |
--enable <arc>, --account <name> |
Legacy form: one deposit account per configured network, with balances and guidance |
vapi search [query] |
--kind <kind> (repeatable), --network <caip2>, --limit <n>, --cursor <cursor>, --include-unverified, --include-outage |
Registry discovery with group, tier, health and alternatives |
vapi inspect <id> |
--endpoint <name> |
Health, verification, request and response contracts, example request and the registry's last observed quote |
vapi pay <id-or-url> |
--method, --endpoint, --body <json>, --content-type, --network <caip2>, --expected-pay-to, --max <usd>, --timeout <seconds>, --account <name> |
Pays locally, includes hints in JSON, and names the limit blocking a payment |
vapi pay --resume <receipt-id> |
- | Checks settlement, shows its payment id, and never pays |
vapi check <url> |
--method <method> |
Grades its 402, extensions and same-origin discovery. Never pays |
vapi balance |
--account <name> |
The wallet's address and USDC balances |
vapi receipts |
--limit <n>, --account <name>, --all-wallets |
The local append-only call ledger, newest last |
vapi receipts export |
--format <json|csv>, --range <24h|7d|30d>, --account <name>, --all-wallets |
Raw receipts for a spreadsheet or dashboard |
vapi stats |
--range <24h|7d|30d>, --account <name>, --all-wallets |
Spend, outcomes, latency percentiles and top services |
vapi sweep [<address>] |
--asset usdc|eth, --network <caip2>, --account <name> |
Moves USDC or ETH to an address, or to the linked owner when omitted; open movement legs block it |
vapi agent create <name> |
--model <id>, --instructions <file>, --call-budget <usd>, --max-per-call <usd>, --router-budget <usd>, --approve-above <usd>, --max-per-task <usd>, --auto-release-below <usd>, --include-unverified, --max-steps <n>, --yes |
Creates a capped local agent wallet, profile and owner link; --yes skips task policy prompts |
vapi agent run <name> "<task>" |
--budget <usd>, --detach, --runtime local, --result-file <path>, --json |
Runs the named agent with an optional hard budget across Call and Router top-ups; can detach locally |
vapi agent run --bundle-env <VAR> |
"<task>" or --task-base64url <text>, --budget <usd>, --result-file <path>, --json |
Runs from an exported member bundle in the experimental remote runtime; see the swarm guide |
vapi agent list |
None | Lists profiles, links and today's Call and Router budgets |
vapi agent show <name> |
None | Prints the agent's spend policy, caps and tools |
vapi agent pause <name> |
None | Stops future runs until the agent is resumed |
vapi agent resume <name> |
None | Allows a paused agent to run again |
vapi agent revoke <name> |
None | Revokes the link and removes the profile, but keeps its wallet |
vapi dashboard |
--account <name>, --no-browser, --no-link |
Opens My agents on your vAPI dashboard and offers to link an unlinked wallet. |
vapi login |
--account <name>, --label <name>, --publish, --no-browser |
Links the local agent wallet to your vAPI account |
vapi logout |
--account <name> |
Removes the selected wallet's agent link and stored credentials |
vapi whoami |
--account <name> |
Shows the chosen wallet's owner link and permissions, whether the link is live, and its ERC-8004 agent identity. |
vapi code install |
--yes, --no-alias, --account <name>, --json |
Unreleased (next version). Configures detected coding tools for vAPI Compute and optional shell aliases |
vapi code uninstall |
--json |
Unreleased (next version). Removes the vAPI provider, profile and marked shell aliases |
vapi claude [args...] |
--vapi, --own, --use-balance, --model <m>, --account <name> |
Unreleased (next version). Starts Claude Code on Compute or the tool's own login; interactive, no JSON |
vapi codex [args...] |
--vapi, --own, --use-balance, --model <id>, --account <name> |
Unreleased (next version). Starts Codex on Compute or the tool's own login; interactive, no JSON |
vapi router models |
--account <name> |
Lists the vAPI Router model ids |
vapi router usage |
--account <name> |
Shows the agent's Compute allowance and Router balance |
vapi router chat --model <id> "<prompt>" |
--system <text>, --max-tokens <n>, --account <name> |
Sends one chat request through vAPI Router |
vapi router clear-pending |
--confirm-unpaid or --confirm-settled, --account <name>, --json |
Checks unpaid evidence, or explicitly retires a settled purchase after saving its receipt (CLI only) |
vapi router key |
--rotate, --account <name> |
Prints a gated Router key or rotates it without printing it |
vapi router buy <1|5|20|50> |
--account <name>, --json |
Buys vAPI Router balance with USDC from your wallet |
vapi router buy --auto <tier> --below <usd> |
--account <name>, or use --auto off |
Sets or clears automatic vAPI Router balance refill |
vapi stake status |
--account <name> |
Shows the linked owner's stake and Compute today |
vapi stake open |
--account <name>, --no-browser |
Prints and optionally opens the staking page |
vapi task search |
[--open] [--min <usd>] [--tab trending|new|closing|paid] [--limit <n>] [--json] |
Browse public tasks; offer discovery is not supported. |
vapi task show <id> |
[--account <name>] [--json] |
Show lifecycle, milestones, next action and receipts. |
vapi task pending |
[--account <name>] [--json] |
List the acting wallet’s pending actions. |
vapi task checkin <id> |
--status on-track|blocked|need-input [--note <text>] [--link <url>] [--account <name>] [--json] |
Record a worker check-in. |
vapi task post |
--title <text> --brief <file|-> --deadline <duration|ISO> [--shape task|bounty|pool] [--amount <usd>] [--milestone "amount|acceptance|deadline"...] [--proof <preset>[:mustContain]...] [--checkin none|6h|24h|72h|7d] [--winners <n> --reward-per-winner <usd> --choice-window <sec>] [--reward-per-claim <usd> --budget <usd> --gate open|proven --verifier poster|vapi --open-check allowlist|invite|vapi-id] [--fund] [--yes] [--no-wait] [--timeout 120s] [--intake proposals|submissions] [--max-awards <k>] [--webhook <https-url>] [--account <name>] [--json] |
Post a task, bounty or pool; --fund uses the local wallet. |
vapi task profile |
[--name <text> --bio <file|-> --skill <text>...] [--language <name>...] [--location <text>] [--photo <path>|--remove-photo] [--account <name>] [--json] |
Show or update your provider profile and see its verification status. Creation requires a name, a bio and at least one skill. |
vapi task offer [<offerId>] |
[--title <text>] [--description <file|->] [--package <tier>:<usd>:<time>:<summary>...] [--category general-digital|software-api|research-data|design-content] [--skill <tag>...] [--pause|--resume] [--account <name>] [--json] |
List, publish, change or pause your services; moves no money. |
vapi task propose <id> |
--price <usd> --duration <duration> --note <text> [--account <name>] [--json] |
Sign proposed terms locally. |
vapi task submit <id> |
[--proof <https-url>...] [--file <path>...] [--withdraw] [--proposal-id <id>] [--account <name>] [--json] |
Store or withdraw a bounty entry; onchain commitments are not supported. |
vapi task milestone <id> |
--index N submit|approve|reject|finalize|close-rejected [--proof <https-url>...] [--file <path>...] [--proof-json <file>] [--note <text>] [--reason <text>] [--json] |
Submit, approve, reject, finalize or close a rejected V2 milestone. |
vapi task cancel <id> |
offer|remainder|expire|pool [--json] |
Cancel an offer or remainder, expire a bounty, or close a pool. |
vapi task claim <id> |
--claimant <addr> [--json] |
Pay an existing pool claim as verifier. |
vapi task pool-claims <id> |
[--account <name>] [--json] |
Read a pool's claims as its poster or verifier. |
vapi task award <id> |
[<proposalId>|--worker <addr>|--winners a,b,c] [--account <name>] [--json] |
Award a proposal, worker or bounty winners. |
vapi task sign <id> |
[--action award-consent|split-consent|bump-consent-nonce --index N --to-worker <base-units> --new-nonce N] [--yes] [--no-wait] [--timeout 120s] [--counterparty <0x…>] [--account <name>] [--json] |
Sign scope or V2 consent, or revoke consent nonces. |
vapi task fund <id> |
[--yes] [--no-wait] [--timeout 120s] [--counterparty <0x…>] [--account <name>] [--json] |
Lock USDC in escrow under spend policy. |
vapi task deliver <id> |
--files <path...> --note <text> [--no-wait] [--timeout 120s] [--counterparty <0x…>] [--account <name>] [--json] |
Submit delivery proof. |
vapi task release <id> |
[--no-wait] [--timeout 120s] [--counterparty <0x…>] [--account <name>] [--json] |
Approve or finalize a delivery payout. |
vapi task refund <id> |
[--counterparty <0x…>] [--account <name>] [--json] |
Refund eligible escrow to the poster. |
vapi task dispute <id> |
[--evidence-hash <0x + 64 hex>|--index N --evidence <text>] [--action raise|resolve-unmatched|split --to-worker <base-units>] [--yes] [--counterparty <0x…>] [--account <name>] [--json] |
Raise, resolve an unmatched dispute or settle a split. |
vapi task counter-evidence <id> |
[--evidence-hash <0x + 64 hex>|--index N --evidence <text>] [--yes] [--counterparty <0x…>] [--account <name>] [--json] |
Match a dispute with evidence and the verified fee. |
vapi task resolve-unmatched <id> |
[--index N] [--counterparty <0x…>] [--account <name>] [--json] |
Resolve an unanswered dispute after the deadline. |
vapi task close-rejected <id> |
--index N [--account <name>] [--json] |
Close a rejected milestone after its late window. |
vapi task bump-consent-nonce <id> |
--new-nonce N [--account <name>] [--json] |
Revoke older award and split consents. |
vapi task prune-reviewer <id> |
--reviewer <address> [--account <name>] [--json] |
Prune one ineligible seat using a verified task binding. |
vapi task prune-reviewers <id> |
--reviewers a,b,c [--account <name>] [--json] |
Prune ineligible seats using a verified task binding. |
vapi task jury <id> |
--index N --step open|draw|rearm|resolve [--account <name>] [--json] |
Open, draw, rearm or resolve a matched jury. |
vapi task vote <id> |
--index N (--commit worker|poster|split [--to-worker <base-units>] | --reveal) [--account <name>] [--json] |
Commit a sealed ballot or reveal it from this machine. |
vapi task approve-bond <id> |
[--yes] [--account <name>] [--json] |
Approve the verified worker bond. |
vapi task claim-owed <id> |
[--to <0x…>] [--account <name>] [--json] |
Pull an owed escrow payout to self or another address. |
vapi task reviewer-status |
[--address <0x…>] [--account <name>] [--json] |
Read Guardian readiness from the chain. |
vapi task message <id> |
<text> [--account <name>] [--json] |
Send a participant message. |
vapi task thread <id> |
[--after <cursor>] [--account <name>] [--json] |
Read participant messages. |
vapi task questions <id> |
[--account <name>] [--json] |
Read public questions, answers and replies without sign-in. |
vapi task ask <id> <text> |
[--question-id <uuid>] [--account <name>] [--json] |
Ask a public question. Reuse the question ID and text on retry. |
vapi task answer <id> <questionId> <text> |
[--account <name>] [--json] |
Answer as the task poster. |
vapi task reply <id> <questionId> <text> |
[--parent <replyId>] [--account <name>] [--json] |
Reply to a question or another reply. A reply limit includes retryAfter in JSON when the server sends it. |
vapi task watch <id> |
[--until <state>] [--auto-release] [--timeout 7d] [--interval 5s] [--counterparty <0x…>] [--account <name>] [--json] |
Poll task events; auto-release requires local policy. |
vapi task status <id> |
[--operation <uuid> --step <v2-step> --recover|--abandon] [--account <name>] [--json] |
Read state or recover/abandon a V2 operation. |
vapi export-key |
--network <caip2>, --account <name> |
Prints the private key. Terminal only, never for an agent. |
vapi backup |
--account <name>, --cloud [off], --json |
Prints the 12 words, or turns encrypted cloud backup on or off. |
vapi restore |
--accounts <n>, --from-owner [--owner <0x…>], --json |
Rebuilds the vault from a recovery phrase typed at the prompt or piped on stdin, or restores an owner-approved cloud backup. |
vapi import |
--phrase or --key, --account <name>, --networks <base,arc>, --replace, --force |
Restores a wallet from a prompt, never from argv |
vapi passphrase |
--account <name> |
Changes a legacy keystore passphrase; vault accounts use vapi vault protect |
vapi vault protect |
--json |
Adds a password to the device vault |
vapi vault unprotect |
--json |
Removes the password from the device vault |
vapi vault lock |
--json |
Closes the protected vault on this device |
vapi vault unlock |
--json |
Opens a protected vault session for eight hours |
vapi unlock |
--account <name>, --json |
Deprecated alias for vapi vault unlock for vault accounts |
vapi vault status |
--json |
Shows whether the device vault is protected and open |
vapi lock |
--account <name>, --all |
Deprecated alias for vapi vault lock for vault accounts |
vapi report "<what>" |
--include-addresses, --send |
Writes a privacy-preserving local bug report |
vapi auth set-key |
- | Types the registry API key on a prompt into the OS secret store |
vapi auth status |
- | Whether this machine has a key and where it comes from, masked |
vapi auth clear |
- | Takes the stored key back out |
vapi publish <url> |
--method, --mode <origin|endpoint|openapi>, --name <text>, --description <text>, --category <ai|data|crypto|compute|search>, --select <names>, --account <name>, --yes, --resume |
Probes your API, lists the endpoints you pick, signs the payout wallet |
vapi publish activate <slug> |
- | Takes a listing live once every endpoint pays the signed payout wallet |
vapi publish verify-request <slug> |
- | Asks vAPI to review the listing |
vapi publish list |
- | Every listing this API key owns |
vapi claim <origin> |
--well-known, --account <name> |
Takes over the listings vAPI indexed from your API, signed by their payee, or with --well-known by /.well-known/vapi.json on the origin |
vapi mcp |
--account <name> |
Serves the MCP tools over stdio |
vapi mcp install <app> |
claude-code, claude-desktop, cursor, codex; --home <dir>, --registry <url>, --no-link, --json |
Registers vAPI through Claude Code's CLI or writes the client's MCP config |
vapi serve |
- | Preview only; exits 2 with a message |
vapi version |
- | The client version, also as --version or -v |
vapi help |
- | Lists commands and flags, also as --help or -h; bare vapi shows status |
Every Railway destroy requires exit zero, including launch-failure, signal, persistence-rollback, terminal-status and direct-stop cleanup, even when failure text says “not found.” Stderr warnings on exit zero are harmless. Failed launch cleanup retains an identified orphaned sidecar; failed terminal-status cleanup stays running and retries on refresh. A failed starting or running stop becomes unknown and keeps blocking dissolution. Verify destruction in the original Railway project/environment, then use vapi swarm forget-run <name> <runId> --confirm-destroyed if a successful destroy is unavailable.
Sent ETH by mistake? The wallet keeps the ETH you sent on Base. Send it back minus the Base network fee; a tiny amount may stay behind.
vapi sweep <your-address> --asset ethPhrase recovery checks Base USDC balances until five consecutive addresses are empty and reports the number scanned. vapi restore --accounts <n> (or vapi setup --accounts <n> when restoring) derives a fixed count without balance queries.