Skip to main content
POST
Deploy an Agent Pod

Headers

X-API-Key
string

Compute API key. Alternatively use a session bearer or wallet-signature headers.

Example:

"x402c_..."

Body

application/json
agent_id
string
required

Agent to deploy (see GET /pods/catalog).

Example:

"openclaw"

ai_mode
enum<string>
required

managed = we run the LLM (metered, tier-driven). byok = the agent uses your own OpenAI-compatible endpoint.

Available options:
managed,
byok
plan
string
required

Compute plan id from GET /compute/plans. DigitalOcean plans use the do: prefix.

region
string
required

Region id from GET /compute/regions.

tier
string

Required when ai_mode is managed. A tier id from GET /pods/catalog (drives the model + machine floor).

Example:

"starter"

model
string

Optional model slug. Managed: honored only if it is in the chosen tier's list, else the tier default. BYOK: any slug.

plan_ram_mb
integer

Optional. Validated against the agent's (and tier's) RAM floor.

use_credits
boolean

Pay from prepaid USD credits instead of an x402 wallet payment.

network
enum<string>

x402 payment network. MPP clients use Authorization: Payment and omit this.

Available options:
base,
solana,
megaeth,
robinhood
prepaid_hours
integer

Prepaid runtime in hours (minimum 24).

Required range: x >= 24
llm_api_key
string

Required when ai_mode is byok. Your provider API key (stored encrypted).

llm_base_url
string

BYOK only. Your OpenAI-compatible base URL. Defaults to https://openrouter.ai/api/v1.

llm_api
string

BYOK only. Provider API type (e.g. openai-completions).

channels
object

Optional channel tokens, keyed by channel id (e.g. { "telegram": "<bot-token>" }). Must be supported by the agent.

memory
object

BYOK memory options.

ssh_public_key
string

Optional. Rarely needed — pods are headless.

Response

Pod deployed. Returns the provision result (including order) merged with a pod object. For managed pods, pod.managed_ai_key is shown ONCE.

order
object

The underlying compute order (from /compute/provision).

pod
object