Every provider block names a provider type with source. The type decides which attributes the block takes, which settings its agents take, which built-in tools they may list, which models it prices, and which driver runs them.
provider "anthropic" { source = "claude_agent_sdk" } # built in
provider "fast" {
source = "acme/acme" # a plugin, from a git repository
version = "~> 1.4"
tier = "priority"
}Three types are built into Convoy: claude_agent_sdk, openai_agents, and openai_compatible. Any other type is a plugin: one file, convoy-provider.hcl, that its inference provider maintains in a git repository, and for some types code beside it. Adding a provider no longer takes a Convoy release.
Two kinds of plugin
| Kind | What it ships | What runs its agents |
|---|---|---|
| Preset | A manifest only | A built-in driver, such as openai_compatible, configured by the manifest |
| Driver plugin | A manifest and code | The plugin’s own command, built on the Python plugin SDK |
A preset is enough when an existing driver can already reach the endpoint: the manifest declares the provider’s own attributes (a tier, a region), maps them to the built-in driver’s (base_url, headers), and lists the models with their prices. A driver plugin brings its own agent SDK; convoyd runs its command as the agent’s process, under the same runner contract as the built-in runner.
Kubernetes, not Terraform
convoyd is the runtime, so convoyd holds the provider types, resolves them, and records what each run used. The CLI downloads no provider code and keeps no state. There is no init step and no lock file.
- Resolve. When a swarm names a type, convoyd takes the highest version it holds that meets the
versionconstraint. If it holds none, it lists the repository’s tags and fetches the highest that does. Fetching is automatic. - Pin to the run. Each run records the version and digest every provider block resolved to (
convoy status --jsonshows them underproviders). That record is the only pin: an agent the run starts later, or creates withcreate_agent, uses the same version even if a newer one was pulled in the meantime. - Upgrade on purpose. An installed version that meets the constraint is always preferred to a newer one in the repository, so the version a swarm gets changes only when someone runs
convoy provider pullor changesversion. - Check before running. A driver plugin installs its own dependencies the first time its command starts. convoyd makes that first start itself, in check mode, when a run is created, so a broken plugin refuses
convoy runwith its output instead of failing every agent in the run.
Where types come from
source | Repository |
|---|---|
acme/acme | https://github.com/acme/convoy-provider-acme |
git.example.com/acme/acme | https://git.example.com/acme/convoy-provider-acme |
Versions are tags of the form v<semver>, such as v1.4.2; other tags are ignored. The git host’s own credential setup on the server gives access to a private repository. A registry that indexes the same repositories comes later; the addresses will not change.
Tags do not move. convoyd records each version’s digest, a SHA-256 over its files, when it first fetches it. If the same tag later gives different files, the fetch fails with provider_digest_mismatch and the stored version is kept.
Trust
- Secrets. A key is always the name of a variable in convoyd’s environment, never a value in the swarm. A plugin’s process gets
PATH,HOME, its agent’s token, and the variables its manifest names, and nothing else from convoyd’s environment. - Code. A swarm that names a driver plugin makes convoyd fetch it and run its command on the server’s machine as convoyd’s user. Anyone who can call the API can already run an agent with
bashthere, so this adds no new power. Run convoyd shared only with people you would let run code on it. - Presets. A preset runs no code, but it decides which variable is read and which URL receives it.
convoy provider pullprints both, so read them before your first run. - Integrity. Each run records the digest it used. There are no signatures until there is a registry to publish keys.
Next
- Using a provider type: naming one in a swarm, pinning versions, upgrading.
- Writing a provider type: the manifest, presets, driver plugins, and publishing.
convoy provider: the commands.