Agents

Install, change, or clear the agent's model key.

Call right after creating an agent — without a key it accepts messages and answers nothing. Send key: null to clear it. This rebuilds the pod (about a minute); poll liveness again afterward.

patch/agents/{id}/llm-key

Request

  • Base URL: https://agentspodium.com/api
  • URL: https://agentspodium.com/api/agents/{id}/llm-key
  • Auth: HTTP bearer

Path parameters

idstring required

Agent id (agt_…).

Request body

keystring nullable required

The provider's API key; null clears it.

provider'openai' | 'anthropic' | 'openrouter' | 'google' | 'gemini' | 'groq' | 'mistral' | 'deepseek' | 'xai' | 'nous'

Required together with a non-null key; a key for one vendor and a model from another is a dead pod.

modelstring nullable

Response

Saved — status is "provisioning" while the pod rebuilds.

Example response

{
  "agent": {
    "id": "agt_…",
    "app": {
      "repo": "https://github.com/owner/project",
      "buildCommand": "npm ci && npm run build",
      "outputDir": "dist",
      "startCommand": "node server.js",
      "rootDir": "app"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.