Overview
IronClaw defaults to NEAR AI for model access, but supports any OpenAI-compatible endpoint as well as direct Anthropic, OpenAI, and Ollama integrations.Supported Providers
NEAR AI (Default)
No additional configuration required. On first run,ironclaw onboard opens a browser for OAuth authentication.
Session Token Auth (Default)
Best for: Local development, personal use~/.ironclaw/session.json.
Environment variables:
API Key Auth
Best for: CI/CD, hosting providers, VPS without browser accessNEARAI_API_KEY is set, IronClaw automatically uses the Chat Completions API at cloud-api.near.ai instead of session-based auth.
Popular Models
Anthropic (Claude)
Direct access to Claude models via Anthropic API.Popular Models
Optional Base URL Override
OpenAI (GPT)
Direct access to OpenAI models.Popular Models
Optional Base URL Override
Ollama (Local)
Run models locally with Ollama.Installation
- Install Ollama from ollama.com
- Pull a model:
- Configure IronClaw:
Popular Models
See all models at ollama.com/library.
OpenAI-Compatible Providers
All providers below useLLM_BACKEND=openai_compatible. Set LLM_BASE_URL to the provider’s endpoint and LLM_API_KEY if required.
OpenRouter
OpenRouter routes to 300+ models from a single API key.Popular OpenRouter Models
Browse all models at openrouter.ai/models.
Optional HTTP Headers
OpenRouter supports custom headers for attribution:Together AI
Together AI provides fast inference for open-source models.Popular Together AI Models
Fireworks AI
Fireworks AI offers fast inference with compound AI system support.vLLM / LiteLLM (Self-Hosted)
For self-hosted inference servers:LM Studio (Local GUI)
Start LM Studio’s local server, then:Extra HTTP Headers
For OpenAI-compatible providers that require custom headers:Key:Value pairs. Values can contain colons (e.g., URLs).
Using the Setup Wizard
Instead of editing.env manually, run:
Advanced Configuration
Fallback Models
For NEAR AI, configure automatic failover:Circuit Breaker
Prevent cascading failures:Response Caching
Cache LLM responses in memory (saves tokens on repeated prompts):Retries
Embeddings Providers
For semantic search in workspace memory:text-embedding-3-small.