AI Agent Integrations
Connect OpenClaw, ZeroClaw, Nanobot, and other Claw-family AI agents to Swan Inference
Swan Inference provides an OpenAI-compatible API that works with all Claw-family AI agent tools. This guide covers how to connect each tool to Swan Inference for decentralized AI inference.
Prerequisites
A Swan Inference API key (
sk-swan-*) — sign up hereThe Claw tool of your choice installed
Quick Start
All Claw-family tools support custom OpenAI-compatible endpoints. The core configuration is the same across all tools:
Base URL
https://api.swanchain.io/v1
API Key
sk-swan-YOUR-API-KEY
Model
Any model from inference.swanchain.io/models
Popular models available on Swan Inference:
zai-org/GLM-4.7-Flash
LLM
Reasoning, code generation
Qwen/Qwen2.5-7B-Instruct
LLM
General chat, fast responses
Sao10K/L3.3-70B-Euryale-v2.3
LLM
General purpose
Tool-Specific Setup
OpenClaw
The most popular AI assistant in the Claw family. Supports 25+ messaging platforms.
Edit your OpenClaw configuration to add Swan Inference as a provider:
ZeroClaw (Rust)
Ultra-lightweight (3.4MB binary, <10ms startup). Best for quick testing.
PicoClaw (Go)
Lightweight Go binary (<8MB). Designed for edge and ARM devices.
Nanobot
Python-native, installable via pip. Best for Python developers.
NanoClaw (TypeScript)
Container-per-session isolation. Good for multi-tenant deployments.
IronClaw (Rust)
Security-focused with TEE and encrypted vault. Built by NEAR AI.
NemoClaw (TypeScript + Python)
NVIDIA's reference stack with kernel sandbox and privacy router.
Configure the inference provider in your NemoClaw deployment:
Moltworker (TypeScript, Cloudflare Workers)
Runs on Cloudflare's edge network (330+ cities).
Or set via Cloudflare AI Gateway:
NullClaw
Ultra-minimal (678KB binary, 1MB RAM). For IoT and embedded devices.
Or in config:
Choosing the Right Tool
Quick local testing
ZeroClaw
3.4MB, boots in <10ms
Python project
Nanobot
pip install, native Python API
Multi-platform bot
OpenClaw
25+ messaging platforms
Edge / ARM device
PicoClaw
8MB Go binary, runs anywhere
IoT / embedded
NullClaw
678KB, runs on $5 hardware
Security-critical
IronClaw
TEE, encrypted vault, WASM sandbox
Multi-tenant SaaS
NanoClaw
Container-per-session isolation
Enterprise / NVIDIA
NemoClaw
Kernel sandbox, policy enforcement
Global edge deploy
Moltworker
Cloudflare Workers, 330+ cities
Playground (No API Key)
The public playground is a web UI and a bespoke endpoint (POST /v1/playground/chat), not an OpenAI-compatible base URL — agent tools cannot be pointed at it. Use it to try a model by hand, then sign up for a free sk-swan-* key; every tool on this page needs one.
Troubleshooting
Connection refused / timeout
Verify the base URL includes
/v1:https://api.swanchain.io/v1Check your API key starts with
sk-swan-
Model not found
List available models:
curl https://api.swanchain.io/v1/models -H "Authorization: Bearer sk-swan-YOUR-KEY"Model IDs are case-sensitive (e.g.,
Qwen/Qwen2.5-7B-Instruct, notqwen2.5-7b)
Rate limited (429)
Default rate limit is 200 requests/min for LLM models
Check
X-RateLimit-Remainingheader in responsesIf you are on pay-as-you-go, the per-category rate limits in the API reference apply; the $6/month Pro plan includes $24 of inference/month at list prices on free- and standard-tier models but has its own 50 requests/min limit, so it helps with cost, not burst rate
Streaming not working
Ensure your tool is configured for streaming (
stream: true)Swan Inference supports SSE streaming on
/v1/chat/completions
Learn More
See also
For Developers — create an account, add credits and copy your key before configuring a tool
API Reference — endpoints, headers, limits and errors
Last updated