# convoy provider

> List, show, pull, push, remove, validate, document, and test provider types. Everything that touches installed types is an API call to convoyd; validate and docs work on a local package folder.

```text
convoy provider list
convoy provider show <source>[@<version>]
convoy provider pull <source>[@<constraint>]
convoy provider push [dir] --source <address> [--version <v>]
convoy provider rm <source>@<version>
convoy provider validate [dir]
convoy provider docs [dir]
convoy provider test <source>[@<version>] --model <id> [--set <attr>=<value>]...
```

[Provider types](/docs/providers/) live on convoyd. The CLI downloads no provider code and keeps no state: `list`, `show`, `pull`, `push`, `rm`, and `test` are API calls. `validate` and `docs` read a package folder on your machine and need no server; they are for authors.

## list

Every type the server holds: the built-in ones, then installed versions by source, newest first.

```console
$ convoy provider list
SOURCE             VERSION    KIND     ORIGIN
claude_agent_sdk   -          builtin  built in
openai_agents      -          builtin  built in
openai_compatible  -          builtin  built in
acme/acme          1.5.0      preset   git https://github.com/acme/convoy-provider-acme 3c1f9e2
acme/acme          1.4.2      preset   git https://github.com/acme/convoy-provider-acme 9a07b11
acme/agents        0.0.0-dev  driver   push
```

## show

A type's attributes, settings, tools, and models with their prices, rendered like the [language reference](/docs/dsl/reference/#provider-types). Without `@<version>`, the newest installed version. A built-in type needs no server.

```console
$ convoy provider show acme/acme
acme/acme 1.5.0 (preset)
digest sha256:9f2c3a71…, origin git https://github.com/acme/convoy-provider-acme 3c1f9e2

# `acme`

Acme Inference, Chat Completions API. A preset: the built-in `openai_compatible` driver runs its agents.

| Attribute | Type | Required | Default | Meaning |
...
```

## pull

Asks the repository for the highest version that meets the constraint, fetches it unless the server already holds it, and checks a driver plugin. This is how a server moves to a newer version: swarms keep the version they resolved until someone pulls. It prints what you are trusting: the variables the type reads by default, and for a preset the URL and headers its `driver_config` sends them to, or for a driver plugin its command and the result of its check.

```console
$ convoy provider pull acme/agents@~> 1.0
acme/agents 1.0.3 sha256:51d0e8… (driver)
reads from convoyd's environment by default: api_key = ACME_API_KEY
command: uv run --project {package} --frozen --no-dev convoy-provider-acme-agents
check: ok (contracts [2], runner 0.2.0)
```

## push

Sends a package folder's files to convoyd, which installs them like a fetch (origin `push`) and checks a driver plugin. It is how an author tries a type before tagging it, and how a server that cannot reach a repository gets one. The version defaults to `0.0.0-dev`; pushing the same version again replaces it. `.git`, `.venv`, `__pycache__`, `node_modules`, and tool caches are skipped, files must be text, and the upload is limited to 32 MiB.

```console
$ convoy provider push ./convoy-provider-acme --source acme/acme
acme/acme 0.0.0-dev sha256:4b1e0c… (preset)
```

A version that came from git cannot be replaced by a push (`provider_exists`), and one an active run uses cannot be replaced or removed (`provider_in_use`).

## rm

Removes an installed version and its package folder.

```console
$ convoy provider rm acme/acme@1.4.2
removed acme/acme 1.4.2
```

## validate

Parses `convoy-provider.hcl` in the folder (default `.`) and prints its diagnostics with their [manifest codes](/docs/providers/writing/#manifest-codes). No server. Exit 3 on errors; `--json` prints `{"valid", "diagnostics"}`.

```console
$ convoy provider validate
provider validate: ok (acme, a preset over openai_compatible: 3 attributes, 1 settings, 4 tools, 2 models)
```

## docs

Prints the folder's type reference as Markdown, with the renderer that writes Convoy's own language reference.

## test

Runs a swarm with one agent, and the overseer, on the type under test, waits for it (`--timeout`, default 10m), and checks the result: the run ends `done`, the agent's transcript has a `tool_call` for `list_topics`, its first turn reports input and output tokens, and it reports a session id. These are the checks of Convoy's own driver tests. It spends real tokens.

| Flag | Meaning |
| --- | --- |
| `--model` | The model to run. Required |
| `--set` | A provider attribute, `<attribute>=<value>`. Repeatable |
| `--timeout` | How long to wait for the run before stopping it |

The swarm is named `provider_test_<source>`, so `convoy status provider_test_acme_acme` shows it afterwards.

## Exit codes

| Code | Cause |
| --- | --- |
| `0` | Success |
| `1` | A server error, such as `provider_not_found`, `provider_in_use`, or a failed `test` check |
| `2` | Usage error |
| `3` | A manifest with errors, or a 422 from the server: `provider_manifest_invalid`, `provider_incompatible`, `provider_check_failed`, `provider_version_not_found` |

## API endpoints

`GET /v1/providers`, `POST /v1/providers:resolve`, `POST /v1/providers:pull`, `POST /v1/providers:push`, `POST /v1/providers:remove`. See [HTTP API](/docs/architecture/api/#provider-types).

## Related

- [Provider types](/docs/providers/)
- [Using a provider type](/docs/providers/using/)
- [Writing a provider type](/docs/providers/writing/)
