How to Use ToksHub with OpenClaw
Connect OpenClaw to a single API boundary so agent workflows and application traffic share the same operational surface.
Step 1: Get Your API Key
- Go to the dashboard
- Sign up or log in to your account
- Navigate to API Keys → Create New Key
- Copy the key
Step 2: Install OpenClaw
macOS / Linux / WSL2
curl -fsSL https://openclaw.ai/install.sh | bashWindows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iexVerify the installation:
openclaw --versionStep 3: Configure OpenClaw with ToksHub
Option A: Non-interactive (recommended)
Run onboarding with ToksHub as the custom provider in one command:
openclaw onboard \
--auth-choice custom-api-key \
--custom-base-url https://api.tokshub.com/v1 \
--custom-api-key sk-your-key \
--custom-compatibility openai \
--install-daemonWindows (PowerShell):
openclaw onboard --auth-choice custom-api-key --custom-base-url https://api.tokshub.com/v1 --custom-api-key sk-your-key --custom-compatibility openai --install-daemonOption B: Interactive wizard
Run the configuration wizard and select a custom provider when prompted:
openclaw config- Model/auth provider → select Custom
- Base URL →
https://api.tokshub.com/v1 - API key → paste your ToksHub key
- Compatibility →
openai
Step 4: Verify the Gateway
Check that the OpenClaw Gateway is running and connected:
openclaw gateway statusThen open the dashboard:
openclaw dashboardStep 5: Start Coding
Run OpenClaw in any project directory:
# Explain the codebase
openclaw message "Explain what this project does"
# Generate new functionality
openclaw message "Add rate limiting to the API endpoints"
# Debug issues
openclaw message "Find the source of this memory leak"Advanced: Switch Models
List available models from ToksHub:
openclaw models list --provider customSet a default model:
openclaw models set gpt-4.1Or call GET /v1/models directly for the full list:
curl https://api.tokshub.com/v1/models \
-H "Authorization: Bearer sk-your-key"Troubleshooting
- Gateway not starting — Verify
--custom-base-urlhas no trailing slash; runopenclaw gateway statusfor details - Invalid API key — Use your ToksHub key, not a direct provider key; re-run
openclaw configto update the stored credential - Outage — Check status