// CLI Agent
Use OpenClaw with llmrelay
The open-source Claude Code alternative with plugin support. Point it at api.llmrelay.dev and get the same models at half the price.
Recommended model
claude-opus-4-7
Route
anthropic-compatible
On llmrelay
$2.5/M · $12.5/M
Setup
- 1 npm install -g openclaw
- 2 openclaw config set anthropic.base_url https://api.llmrelay.dev
- 3 openclaw config set anthropic.api_key sk-llmrelay-...
- 4 openclaw config set model claude-opus-4-7
Config
// ~/.openclaw/config.yaml
# ~/.openclaw/config.yaml anthropic: base_url: https://api.llmrelay.dev api_key: sk-llmrelay-... model: claude-opus-4-7
Smoke test
Copy, paste, run. If you get JSON back with a message, you're good.
openclaw ask "say hi"
Gotchas
- !OpenClaw treats /v1/messages as the primary endpoint. No path suffix needed on base_url.
You need an llmrelay key first
Sign up in about 30 seconds. New accounts get $0.20 in free credit — enough to smoke-test every model.