Update your OpenClaw endpoint
- Set OpenClaw’s base URL to your Astrolabe host.
- Keep using OpenAI-compatible
chat/completionsrequests. - Set OpenClaw’s API key to the same value as
ASTROLABE_API_KEY.
Base URL examples
- Before:
https://openrouter.ai/api/v1 - Local Astrolabe:
http://localhost:3000/v1 - Railway Astrolabe:
https://your-app-name.up.railway.app/v1
Compatibility notes
- Endpoint:
POST /v1/chat/completions - Request body: OpenAI-compatible chat completion payload
- Response body: OpenRouter passthrough shape (
id,choices,usage, etc.) - Streaming: enabled by default unless you send
stream: false
Set
ASTROLABE_API_KEY in production. If it is empty, your public endpoint is unauthenticated.