refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -6,7 +6,7 @@ read_when:
---
# OpenResponses API (HTTP)
Clawdbots Gateway can serve an OpenResponses-compatible `POST /v1/responses` endpoint.
Moltbots Gateway can serve an OpenResponses-compatible `POST /v1/responses` endpoint.
This endpoint is **disabled by default**. Enable it in config first.
@@ -14,7 +14,7 @@ This endpoint is **disabled by default**. Enable it in config first.
- Same port as the Gateway (WS + HTTP multiplex): `http://<gateway-host>:<port>/v1/responses`
Under the hood, requests are executed as a normal Gateway agent run (same codepath as
`clawdbot agent`), so routing/permissions/config match your Gateway.
`moltbot agent`), so routing/permissions/config match your Gateway.
## Authentication
@@ -30,15 +30,15 @@ Notes:
No custom headers required: encode the agent id in the OpenResponses `model` field:
- `model: "clawdbot:<agentId>"` (example: `"clawdbot:main"`, `"clawdbot:beta"`)
- `model: "moltbot:<agentId>"` (example: `"moltbot:main"`, `"moltbot:beta"`)
- `model: "agent:<agentId>"` (alias)
Or target a specific Clawdbot agent by header:
Or target a specific Moltbot agent by header:
- `x-clawdbot-agent-id: <agentId>` (default: `main`)
- `x-moltbot-agent-id: <agentId>` (default: `main`)
Advanced:
- `x-clawdbot-session-key: <sessionKey>` to fully control session routing.
- `x-moltbot-session-key: <sessionKey>` to fully control session routing.
## Enabling the endpoint
@@ -277,9 +277,9 @@ Non-streaming:
curl -sS http://127.0.0.1:18789/v1/responses \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-H 'x-clawdbot-agent-id: main' \
-H 'x-moltbot-agent-id: main' \
-d '{
"model": "clawdbot",
"model": "moltbot",
"input": "hi"
}'
```
@@ -289,9 +289,9 @@ Streaming:
curl -N http://127.0.0.1:18789/v1/responses \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-H 'x-clawdbot-agent-id: main' \
-H 'x-moltbot-agent-id: main' \
-d '{
"model": "clawdbot",
"model": "moltbot",
"stream": true,
"input": "hi"
}'