Skip to main content
POST
/
api
/
runtime-harnesses
Register a runtime harness
curl --request POST \
  --url https://litellm-rust.onrender.com/api/runtime-harnesses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "api_base": "http://opencode:8080",
  "api_key": "local-opencode-key"
}
'
{
  "harnesses": [
    {
      "alias": "local-opencode",
      "api_spec": "claude_managed_agents",
      "display_name": "local-opencode",
      "api_base": "http://opencode:8080",
      "is_default": true,
      "connected": true,
      "masked_api_key": "<string>",
      "tools": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Your LITELLM_MASTER_KEY. Default for local Docker Compose: sk-local

Body

application/json
api_base
string
Example:

"http://opencode:8080"

api_key
string
Example:

"local-opencode-key"

Response

Runtime registered

harnesses
object[]