Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nearai/ironclaw/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Overview
IronClaw’s configuration is loaded with the following priority:- Setup Wizard (Recommended)
- Environment Variables
- TOML Config File
The easiest way to configure IronClaw is via the interactive wizard:The wizard saves settings to the database and writes bootstrap variables to
~/.ironclaw/.env.Database Configuration
IronClaw supports PostgreSQL and libSQL backends.PostgreSQL
Database backend to use (
postgres or libsql)PostgreSQL connection URLExamples:
- Local:
postgres://localhost/ironclaw - Neon:
postgres://user:pass@ep-cool-darkness-123456.us-east-2.aws.neon.tech/ironclaw?sslmode=require - Supabase:
postgres://postgres:pass@db.projectid.supabase.co:5432/postgres
Maximum number of database connections in the pool
SSL/TLS mode for PostgreSQL connections
disable— No TLS (local development only)prefer— Try TLS, fall back to plaintext (default)require— Require TLS or fail
libSQL (Embedded SQLite)
Path to the local libSQL database file
Turso cloud URL for remote replica sync (optional)
Turso authentication token (required if
LIBSQL_URL is set)libSQL is perfect for local development and single-user deployments. No external database server required.
LLM Provider Configuration
NEAR AI (Default)
NEAR AI provides multi-model access via a single account.Set to
nearai to use NEAR AIModel to use for inferencePopular options:
zai-org/GLM-latest— Fast, defaultanthropic::claude-sonnet-4-20250514— Best qualityopenai::gpt-5.3-codex— Flagship coding model
NEAR AI API base URL
NEAR AI authentication URL
Session token from browser OAuth (auto-generated by setup wizard)Stored in
~/.ironclaw/session.json by default.API key from cloud.near.ai (alternative to session token)If set, the base URL defaults to
https://cloud-api.near.ai.Anthropic (Claude)
Set to
anthropic to use Anthropic’s APIYour Anthropic API keyGet one from: https://console.anthropic.com/settings/keys
Claude model to useOptions:
claude-sonnet-4-20250514— Latest Sonnet (recommended)claude-opus-4-20250514— Most capableclaude-3-5-sonnet-20241022— Previous generation
OpenAI
Set to
openai to use OpenAI’s APIYour OpenAI API keyGet one from: https://platform.openai.com/api-keys
OpenAI model to useOptions:
gpt-5.3-codex— Latest flagshipgpt-5.2— General purposegpt-4o— Multimodalgpt-4-turbo— Fast and capable
Ollama (Local Models)
Set to
ollama to use local Ollama modelsOllama server URL
Ollama model to useMust be pulled first:
ollama pull llama3.2Ollama runs models locally on your machine. No API key required. See ollama.ai for installation.
OpenRouter (200+ Models)
Set to
openai_compatible for OpenRouterSet to
https://openrouter.ai/api/v1Your OpenRouter API keyGet one from: https://openrouter.ai/settings/keys
Model ID from OpenRouterExamples:
anthropic/claude-sonnet-4openai/gpt-5.3-codexgoogle/gemini-pro-1.5meta-llama/llama-3.3-70b-instruct
Custom HTTP headers (comma-separated key:value pairs)
OpenAI-Compatible (vLLM, LiteLLM, Together, Fireworks)
Set to
openai_compatibleBase URL of the OpenAI-compatible endpointExamples:
- vLLM:
http://localhost:8000/v1 - LM Studio:
http://localhost:1234/v1 - Together AI:
https://api.together.xyz/v1 - Fireworks AI:
https://api.fireworks.ai/inference/v1
API key (optional for local servers)
Model identifierExamples:
meta-llama/Llama-3.3-70B-Instruct-Turbo(Together AI)accounts/fireworks/models/llama4-maverick-instruct-basic(Fireworks)llama-3.2-3b-instruct-q4_K_M(LM Studio)
Full LLM provider examples
Full LLM provider examples
Embeddings Configuration
Embeddings enable semantic search across your workspace.Enable vector embeddings for semantic search
Embeddings provider (
nearai, openai, or same as LLM_BACKEND)Model to use for embeddings
- NEAR AI:
text-embedding-3-small(default) - OpenAI:
text-embedding-3-small,text-embedding-3-large
Embeddings require PostgreSQL with pgvector or libSQL with vector support.
Secrets Configuration
Secrets (API keys, tokens) are encrypted with a master key.Master encryption key (256-bit hex string)Generated by the setup wizard and stored in OS keychain or environment.
- OS Keychain (Recommended)
- Environment Variable
The setup wizard stores the key in your system keychain:
- macOS: Keychain Access
- Linux: GNOME Keyring or KWallet
Agent Configuration
Agent display name
Maximum number of concurrent jobs
Job timeout in seconds (default: 1 hour)
Time before marking a job as stuck (default: 5 minutes)
Enable planning phase before tool executionWhen enabled, the agent plans its approach before executing tools, improving accuracy.
Channel Configuration
HTTP Webhook Server
Host to bind the HTTP server to
Port for the HTTP webhook server
Secret for authenticating webhook requests
Telegram Bot
Telegram bot token from @BotFather
/start to your bot in Telegram to pair.
Signal Messaging
signal-cli daemon HTTP URL
Your Signal phone number (e.g.,
+1234567890)Comma-separated list of allowed senders (
* for all)DM policy:
open, allowlist, or pairingSignal requires a running
signal-cli daemon. See Signal Setup.Slack Bot (WASM Channel)
Slack bot token (
xoxb-...)Slack app-level token (
xapp-...)Slack request signing secret
Safety Configuration
Maximum tool output length (characters)
Enable prompt injection detection
Heartbeat Configuration
The heartbeat system runs background tasks on a schedule.Enable background heartbeat tasks
Heartbeat interval in seconds (default: 30 minutes)
Channel to send heartbeat notifications to
User ID to notify
Memory Hygiene Configuration
Automatic cleanup of stale workspace documents.Enable automatic cleanup of old daily notes
Delete daily/ documents older than this many days
Minimum hours between cleanup passes
Identity files (
IDENTITY.md, SOUL.md) are never deleted.Docker Sandbox Configuration
Docker sandbox mode:
disabled, enabledDocker image for sandbox execution
Sandbox execution timeout (default: 5 minutes)
Logging Configuration
Logging level and filtersExamples:
Configuration Files Reference
~/.ironclaw/.env
Bootstrap environment variables (database URL, LLM backend)Written by the setup wizard. Loaded on startup.
~/.ironclaw/config.toml
Structured TOML configuration (optional)Overrides database settings, overridden by environment variables.
~/.ironclaw/session.json
NEAR AI session token (auto-generated)Created during OAuth flow. Do not edit manually.
Database settings table
Persistent settings stored in the databaseLowest priority. Managed via the wizard or API.
Next Steps
Tools & Extensions
Explore built-in tools and install extensions
Channels
Configure Telegram, HTTP webhooks, and more
CLI Reference
Explore all available commands
Development
Build custom tools and contribute to IronClaw