Advanced
OpenClaw
OpenClaw can be configured against the LinkHarbor Anthropic-compatible endpoint for Claude-style agent workflows. Use the same API key and endpoint conventions as the Anthropic-Compatible API page.
Anthropic-compatible setup
Configure OpenClaw with the LinkHarbor Anthropic-compatible base URL and an API key from your workspace. Verify the exact OpenClaw package or runtime option you use supports Anthropic-compatible settings.
Step 1 — Configure environment variables
Set the Anthropic-compatible API key and endpoint before starting your tool.
.env
Step 2 — Configure OpenClaw
Point OpenClaw at the LinkHarbor Anthropic-compatible base URL and choose a model from the LinkHarbor catalog.
openclaw.config.json
Step 3 — Test the endpoint
Before wiring it into an agent workflow, send a direct Anthropic Messages API request to verify the key, endpoint, and model name.
Terminal
Troubleshooting
If you see a 401 Unauthorized error, verify the API key and ensure Anthropic-compatible calls include x-api-key, anthropic-version: 2023-06-01, and content-type: application/json.
- Use ANTHROPIC_BASE_URL=https://api.linkharbor.ai/anthropic, not the OpenAI-compatible /v1 endpoint.
- Use a model ID from the live LinkHarbor model catalog; placeholder names such as your-model-name must be replaced.
- If your OpenClaw build only supports OpenAI-compatible settings, use the OpenAI-compatible endpoint instead or update the tool configuration.