Skip to main content

Overview

Secrets map names to values for an agent inside a project. Ageneral encrypts stored values and supplies them to the agent runtime when configuration updates run.

REST workflow

  1. PutPUT /v1/agents/{agent_id}/secrets/{name} with body { "value": "…" }.
  2. ListGET /v1/agents/{agent_id}/secrets returns configured names.
  3. DeleteDELETE /v1/agents/{agent_id}/secrets/{name} removes a secret.
After writes, allow a short interval before relying on new values inside OpenClaw.

Reference

See API referenceAgents for schemas and response shapes.

Next steps