API Keys
LiberClaw provides two types of API keys for programmatic access: per-agent API keys for direct agent communication, and management API keys for the LiberClaw API itself.
Per-agent API keys
Section titled “Per-agent API keys”Per-agent API keys let you call an agent’s chat endpoint directly, bypassing the LiberClaw web interface. This is useful for integrating agents into your own applications.
Creating a key
Section titled “Creating a key”- Navigate to your agent’s detail page
- Scroll to the API Access section (visible only for running agents)
- Click Create API Key
- Copy the key immediately — it is shown only once and cannot be retrieved later
The key is displayed in a highlighted banner with a copy button. Click Done to dismiss the banner.
Using a key
Section titled “Using a key”Send requests directly to the agent’s chat endpoint with the key in the Authorization header:
curl -X POST https://api.liberclaw.ai/api/v1/chat/{agent_id} \ -H "Authorization: Bearer {your_api_key}" \ -H "Content-Type: application/json" \ -d '{"message": "Hello!", "chat_id": "my-session"}'The response is an SSE stream with the same event format as the web chat interface.
Managing keys
Section titled “Managing keys”The API Access section on the agent detail page lists all active keys, showing:
- Key prefix (first few characters)
- Label
- Creation time
Click the delete icon next to a key to revoke it immediately.
Management API keys
Section titled “Management API keys”Management API keys provide full access to the LiberClaw API on your behalf. They can be used to manage agents, send chat messages, and access all API endpoints that your account has access to.
Creating a management key
Section titled “Creating a management key”- Go to the Settings / Account Overview page
- Scroll to the API Keys section
- Click Create Management Key
- Copy the key immediately — it is shown only once
Using a management key
Section titled “Using a management key”Include the key in the Authorization header for any LiberClaw API request:
curl https://api.liberclaw.ai/api/v1/agents \ -H "Authorization: Bearer {your_management_key}"Managing keys
Section titled “Managing keys”The API Keys section on the Settings page lists all management keys with:
- Key prefix
- Label
- Last used time
- Creation date
Click the delete icon to revoke a key. A confirmation dialog appears before deletion.
Key security
Section titled “Key security”- API keys are shown in full only at creation time and cannot be retrieved afterward
- Keys are stored as hashed values in the database
- Revoking a key takes effect immediately
- If you suspect a key has been compromised, delete it and create a new one