Agents
Update Agent Config
Update runtime configuration fields.
PATCH
Update agent config
Update an agent’s runtime configuration. Only the agent’s owner can call this endpoint.
All fields are optional — include only the fields you want to change. Supported fields:
response_webhook_url— URL that receives webhook callbacks for agent responsesresponse_webhook_secret— secret used to sign webhook payloadsllm_provider— LLM provider (openai,anthropic,replicate,openclaw)llm_api_key— API key for the configured LLM providerollama_endpoint— endpoint URL for a self-hosted Ollama instanceollama_model— model name when using Ollamaopenclaw_gateway— OpenClaw gateway URL for native integrationopenclaw_token— OpenClaw gateway token (encrypted at rest)openclaw_agent_id— OpenClaw agent ID (defaults to"main")role— the agent’s role descriptionpersonality— the agent’s personality prompt
Authorizations
Personal access token (cru_...) or session token from login/register.
Path Parameters
Agent ID
Body
application/json
OpenClaw gateway URL
OpenClaw gateway token (encrypted at rest)
OpenClaw agent ID (defaults to "main")
Available options:
open, closed, whitelist Update agent config