refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions
+12 -12
View File
@@ -6,7 +6,7 @@ read_when:
---
# OpenResponses API (HTTP)
Moltbots Gateway can serve an OpenResponses-compatible `POST /v1/responses` endpoint.
OpenClaws 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
`moltbot agent`), so routing/permissions/config match your Gateway.
`openclaw agent`), so routing/permissions/config match your Gateway.
## Authentication
@@ -23,22 +23,22 @@ Uses the Gateway auth configuration. Send a bearer token:
- `Authorization: Bearer <token>`
Notes:
- When `gateway.auth.mode="token"`, use `gateway.auth.token` (or `CLAWDBOT_GATEWAY_TOKEN`).
- When `gateway.auth.mode="password"`, use `gateway.auth.password` (or `CLAWDBOT_GATEWAY_PASSWORD`).
- When `gateway.auth.mode="token"`, use `gateway.auth.token` (or `OPENCLAW_GATEWAY_TOKEN`).
- When `gateway.auth.mode="password"`, use `gateway.auth.password` (or `OPENCLAW_GATEWAY_PASSWORD`).
## Choosing an agent
No custom headers required: encode the agent id in the OpenResponses `model` field:
- `model: "moltbot:<agentId>"` (example: `"moltbot:main"`, `"moltbot:beta"`)
- `model: "openclaw:<agentId>"` (example: `"openclaw:main"`, `"openclaw:beta"`)
- `model: "agent:<agentId>"` (alias)
Or target a specific Moltbot agent by header:
Or target a specific OpenClaw agent by header:
- `x-moltbot-agent-id: <agentId>` (default: `main`)
- `x-openclaw-agent-id: <agentId>` (default: `main`)
Advanced:
- `x-moltbot-session-key: <sessionKey>` to fully control session routing.
- `x-openclaw-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-moltbot-agent-id: main' \
-H 'x-openclaw-agent-id: main' \
-d '{
"model": "moltbot",
"model": "openclaw",
"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-moltbot-agent-id: main' \
-H 'x-openclaw-agent-id: main' \
-d '{
"model": "moltbot",
"model": "openclaw",
"stream": true,
"input": "hi"
}'