---
title: "Save credentials for a built-in runtime"
method: PUT
path: "/api/agent-runtimes/{runtime}/credentials"
tags: ["Runtimes"]
---

# Save credentials for a built-in runtime

`PUT /api/agent-runtimes/{runtime}/credentials`

## Path parameters

- `runtime` 'claude_managed_agents' | 'cursor' | 'gemini_antigravity' | 'elastic_agent_builder', required

## Request body

- SaveRuntimeCredentialRequest
  - `api_key` string, required
  - `api_base` string — Optional. Defaults to the runtime's built-in base URL when omitted.

## Response `200`

Credential saved

- AgentRuntimesResponse
  - `runtimes` AgentRuntime[]
    - `id` 'claude_managed_agents' | 'cursor' | 'gemini_antigravity' | 'elastic_agent_builder'
    - `name` string
    - `default_api_base` string
    - `credential_provider_id` string
    - `credential_provider_name` string
    - `tools` object[]
    - `connected` boolean
    - `api_base` string, nullable
    - `masked_api_key` string, nullable

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/litellm-agent-platform/apis/litellm-agent-platform-api.md) · [All operations](https://skmtc.dev/litellm-agent-platform/apis/litellm-agent-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litellm-agent-platform/litellm-agent-platform-api/revisions/92039c29a228/schema)
