CLI / MVP

Overview

The convoy CLI is a stateless Go binary. Each command reads the current folder or calls the convoyd API. This page lists the commands, global flags, environment, exit codes, and convoyd's own flags.

View .md

convoy is a single Go binary. It never holds state. Every command either works on the .cvy files in a folder or makes one or more calls to the convoyd HTTP API. Close the terminal and nothing changes: the swarm lives on the server.

Only one command calls a model directly, convoy goal, and it needs no server.

Commands

CommandReadsCallsWhat it does
convoy goalgoal texta model providerWrites main.cvy and prompts/*.md from a goal, validating and retrying. Starts nothing.
convoy validatethe folderPOST /v1/providers:resolve, only for types that are not built inParses and checks every rule.
convoy runthe folderPUT /v1/swarms/{name}Validates, sends the bundle, starts a new run, exits.
convoy statusGET /v1/swarms/{name}, GET .../agentsPrints run status, spend, and one row per agent.
convoy watchGET /v1/swarms/{name}/watchLive agent table above a tail of board messages.
convoy sayPOST .../topics/{topic}/messagesPublishes a message as human.
convoy stopPOST /v1/swarms/{name}:stopStops a run or one agent.
convoy uiGET /Opens the Web UI in a browser.
convoy providera package folder, for some subcommands/v1/providersLists, fetches, pushes, removes, checks, and documents provider types.

Global flags and environment

These apply to every command.

FlagEnvironmentDefaultMeaning
--dir.Folder that holds the .cvy files
--serverCONVOY_URLhttp://localhost:7070convoyd base URL
--tokenCONVOY_TOKENemptyBearer token for the server. Not needed when the server is on localhost
--jsonoffMachine-readable output on stdout. Diagnostics and progress go to stderr
--no-colorNO_COLORautoDisable ANSI color

Color and terminal width are detected once at startup. Diagnostics wrap at the terminal width, capped at 120 columns.

Provider API keys are not CLI configuration. The CLI never reads or sends them for a swarm: convoyd reads them from its own environment. The one exception is convoy goal, which reads ANTHROPIC_API_KEY or OPENAI_API_KEY from your shell to call the model that writes the swarm.

Exit codes

CodeMeaning
0Success
1Runtime error: network failure, a server error, a refused request such as swarm_active
2Usage error: a missing or unknown flag, a missing required argument
3Validation errors in the .cvy files, or a server-side 422 with diagnostics

Which run

Every swarm is keyed by name, and each convoy run starts a new numbered run. Commands that read or act on a swarm use the latest run. status and watch accept --run N to read an earlier one. say and stop always act on the latest run.

convoyd flags

convoyd is the server. Each flag has an environment fallback.

FlagEnvironmentDefaultMeaning
--portCONVOYD_PORT7070Listen port
--dbCONVOYD_DB./convoy.dbSQLite file
--work-dirCONVOYD_WORK./.convoy/workRoot of agent workspaces
--runnerCONVOYD_RUNNERthe runner built into convoyd, started with uvA runner executable of your own to use instead
--tokenCONVOYD_TOKENemptyThe CLI token. Empty means loopback requests need none
--public-urlCONVOYD_PUBLIC_URLhttp://127.0.0.1:PORTAddress runners use to reach convoyd. Required when runner processes live on another host
--max-processesCONVOYD_MAX_PROCESSES50Most runner processes alive at once across all runs, overseers included. Agents beyond it wait in Pending
--no-uiCONVOYD_NO_UIoffDo not serve the Web UI at /. 1 or true in the environment
--provider-dirCONVOYD_PROVIDER_DIR./.convoy/providersWhere driver plugin packages are kept, as <source>/<version>/
--provider-timeout5mHow long a request waits for a provider fetch or check
--stuck-after20mHow long a running agent may show no progress before it is marked Stuck
--debounce5sBoard wake debounce
--overseer-providernoneBuilt-in provider type for the server-wide default overseer: claude_agent_sdk, openai_agents, or openai_compatible
--overseer-modelnoneModel for the default overseer
--overseer-base-urlnoneThe type’s base_url, for openai_compatible
--overseer-api-key-envnoneThe type’s api_key: the name of the environment variable that holds its key
--overseer-can-spawntruecan_spawn for the default overseer

The overseer flags are optional. A swarm’s own overseer attribute wins over them, and a run with neither is refused with overseer_missing. See The overseer.

A full session

Terminal
$ export ANTHROPIC_API_KEY=sk-ant-...
$ convoyd --port 7070 --db ./convoy.db --max-processes 50 \
    --overseer-provider claude_agent_sdk --overseer-model claude-sonnet-5 &

$ convoy goal --provider anthropic --model claude-opus-5 \
    "Write a sourced 10-page market report on edge inference chips"
  wrote ./main.cvy
  wrote ./prompts/research.md
  wrote ./prompts/writer.md
  wrote ./prompts/critic.md
  validate: ok

  agents   researcher[nvidia, groq, cerebras, tenstorrent] -> writer <-> critic
  topics   findings, drafts, review, human

  review the files, then: convoy run

$ convoy validate
validate: ok (6 agents, 4 topics)

$ convoy run
swarm "edge_chips" run 1 accepted: 7 agents pending

AGENT                    STATUS   PROVIDER   MODEL
critic                   pending  anthropic  claude-opus-5
overseer                 pending  anthropic  claude-sonnet-5
researcher[cerebras]     pending  anthropic  claude-sonnet-5
researcher[groq]         pending  anthropic  claude-sonnet-5
researcher[nvidia]       pending  anthropic  claude-sonnet-5
researcher[tenstorrent]  pending  anthropic  claude-sonnet-5
writer                   pending  openai     gpt-6.1-sol

watch with: convoy watch edge_chips

$ convoy watch edge_chips
$ convoy say edge_chips human "Skip Tenstorrent, focus on the other three"
published seq 41
$ convoy status edge_chips
$ convoy stop edge_chips

Next

Last updated 2026-11-05
esc
    ↑↓ to move · ↵ to open
    Menu
    Get started
    IntroductionInstallQuickstartYour first swarm
    Concepts
    Swarms and runsAgents and turnsTopics and the boardThe overseerSpawning agentsBudgets and limits
    DSL
    Language rulesswarmprovidertopicagentReferences and functionsValidation rules
    Providers
    Provider typesUsing a provider typeWriting a provider type
    CLI
    Overviewconvoy goalconvoy validateconvoy runconvoy statusconvoy watchconvoy sayconvoy stopconvoy uiconvoy provider
    Runtime
    convoydControllerMessage boardRunnerSwarm tools (MCP)Web UIDurability
    Architecture
    OverviewRepository layoutSeams and contractsHTTP API
    Examples
    OverviewWriter and criticResearch teamCode teamPaperBench replicationCommit0 libraryVending-BenchSWE-Lancer bountyτ²-bench loop
    Inspiration
    What we borrowedThe harness landscape