Skip to content

OpenClaw

OpenClaw is a local-first personal AI agent / gateway. To route it through PrimeRouter, the recommended path is the one-line installer — run it, pick the Anthropic (Claude) or OpenAI (Codex) channel, and every request uses your PrimeRouter token, balance, and call logs.

Two channels, pick one

ChannelBase URLExample model
Anthropic (Claude)https://primerouter.aiclaude-opus-4-8
OpenAI (Codex)https://primerouter.ai/v1gpt-5.5

The Claude / Anthropic endpoint must not include /v1; the OpenAI / Codex endpoint must include /v1.

Run it, pick a channel, paste your API key, and choose a model from the gateway's live list — the script installs OpenClaw and writes the config.

bash
curl -fsSL https://primerouter.ai/install/openclaw.sh | bash
powershell
irm https://primerouter.ai/install/openclaw.ps1 | iex

💡 The script prompts for your API key. Grab one for the right group at Console → Tokens first, then paste it when asked.

Send a first message to verify (one-shot messages must target an agent with --agent main, or you'll get No target session selected):

bash
openclaw agent --agent main --message "Hello, introduce yourself"

Interactive mode:

bash
openclaw

Fallback: manual install and configuration

Expand if you want to review the commands, or the installer isn't available

Step 1: Install OpenClaw

OpenClaw requires Node.js v22.19+:

bash
npm install -g openclaw@latest

Step 2: Pick a channel

Replace YOUR_API_KEY with your PrimeRouter token, then run the command for your channel:

bash
openclaw onboard --auth-choice custom-api-key \
  --custom-base-url https://primerouter.ai \
  --custom-api-key YOUR_API_KEY \
  --custom-compatibility anthropic \
  --custom-model-id claude-opus-4-8
bash
openclaw onboard --auth-choice custom-api-key \
  --custom-base-url https://primerouter.ai/v1 \
  --custom-api-key YOUR_API_KEY \
  --custom-compatibility openai \
  --custom-model-id gpt-5.5

The Anthropic (Claude) channel uses the root URL — no /v1; the OpenAI (Codex) channel uses the /v1 URL. Other models are listed under Available models.

Step 3: Start using it

One-shot sanity check (one-shot messages must target an agent with --agent main):

bash
openclaw agent --agent main --message "Hello, introduce yourself"

Interactive mode:

bash
openclaw

The full walkthrough — per-platform gateway daemon, Control UI, chat-channel onboarding, and security notes — lives in Coding Tools → OpenClaw.

Built for transparent, auditable, crypto-native AI inference. About · Terms · Privacy