Agent & CLI Guide

Connecting Claude Code CLI & OpenClaw

Native compatibility for both Anthropic /v1/messages and OpenAI /v1/responses streaming tool calls.

Claude Code CLI Environment Variables (macOS / Linux / PowerShell)
export ANTHROPIC_BASE_URL="https://relaystack-ai.vercel.app"
export ANTHROPIC_AUTH_TOKEN="sk-rs-YOUR_API_KEY"
export ANTHROPIC_MODEL="anthropic/claude-3.7-sonnet"

# Launch Claude Code CLI directly against RelayStack
claude
OpenClaw Provider Config
{
  "provider": "openai-responses",
  "baseUrl": "https://relaystack-ai.vercel.app/v1",
  "apiKey": "sk-rs-YOUR_API_KEY",
  "model": "openai/gpt-4o"
}
Create Key for Agents