LinkHarborLinkHarbor
ModelsPricingDocsContactStudioChat
Log inStart free
⌘K

Getting Started

  • Quick Start
  • Authentication

API Reference

  • List Models
  • Chat Completions
  • Error Codes

Advanced

  • OpenClaw
  • OpenAI-Compatible
  • Anthropic-Compatible
LinkHarborLinkHarbor

Unified AI model API gateway — access the world's leading LLMs in one place

Product

  • Models
  • Pricing

Resources

  • Docs
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Future Intelligence Pte. Ltd. All rights reserved.

DocsOpenClaw
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
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_BASE_URL="https://api.linkharbor.ai/anthropic"

Step 2 — Configure OpenClaw

Point OpenClaw at the LinkHarbor Anthropic-compatible base URL and choose a model from the LinkHarbor catalog.

openclaw.config.json
{
  "provider": "anthropic",
  "baseURL": "https://api.linkharbor.ai/anthropic",
  "apiKey": "$ANTHROPIC_AUTH_TOKEN",
  "defaultModel": "your-model-name"
}

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
curl https://api.linkharbor.ai/anthropic/v1/messages \
  --header "x-api-key: $ANTHROPIC_AUTH_TOKEN" \
  --header "anthropic-version: 2023-06-01" \
  --header "content-type: application/json" \
  --data '{
    "model": "your-model-name",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

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.