How to Use This Reference

This section is your quick-lookup companion for everything OpenClaw exposes: every config key, every CLI flag, every environment variable, and every built-in error code. Use the sections below to jump to the specific reference you need, or use your browser's find (Ctrl+F) within sub-pages for instant lookup.

All reference pages follow a consistent structure: a summary table at the top, detailed entries in alphabetical order, and annotated examples at the bottom. Where a config key, CLI flag, and environment variable overlap, the Config Schema page notes precedence rules.

At a Glance: Most-Used Config Keys

KeyTypeDefaultDescription
providerstringopenaiLLM provider: openai, anthropic, groq, ollama
modelstringgpt-4o-miniModel name passed to the provider
max_iterationsinteger20Hard cap on agent think/act cycles per run
timeoutinteger300Total run timeout in seconds
toolslist[]Built-in tool names or paths to custom tools
memory.backendstringnoneMemory backend: none, redis, sqlite, chroma
log_levelstringWARNINGLogging verbosity: DEBUG, INFO, WARNING, ERROR

Minimal Config Scaffold

# openclaw.yaml — minimal production config
provider: openai
model: gpt-4o-mini
max_iterations: 30
timeout: 600
tools:
  - web_search
  - read_file
  - write_file
memory:
  backend: redis
  url: redis://localhost:6379/0
monitoring:
  enabled: true
  log_level: INFO
  log_format: json

Sections

Common Error Codes

All OpenClaw runtime errors follow the OCE-XXXXX format. The prefix indicates the subsystem: OCE-1xxxx = agent, OCE-2xxxx = tool, OCE-3xxxx = provider/LLM, OCE-4xxxx = config, OCE-5xxxx = memory.

CodeNameProbable CauseResolution
OCE-10001MaxIterationsReachedAgent loop exceeded max_iterationsIncrease max_iterations or simplify the task
OCE-10002AgentTimeoutRun exceeded timeout secondsIncrease timeout or break task into subtasks
OCE-20001ToolNotFoundTool name not registered in the registryCheck spelling; ensure tool is listed under tools:
OCE-20002ToolInputValidationErrorArgument does not match the tool's schemaReview tool schema definition; check LLM output format
OCE-20003ToolExecutionErrorTool raised an unhandled exceptionCheck tool logs; ensure external service is reachable
OCE-30001ProviderAuthErrorInvalid or missing API keyVerify OPENAI_API_KEY / provider key is set and valid
OCE-30002ProviderRateLimitedProvider rate limit hitReduce concurrency; enable built-in retry with backoff
OCE-30003ProviderContextLengthExceededTotal tokens exceed model context windowEnable memory summarisation or reduce tool outputs
OCE-40001ConfigValidationErrorRequired field missing or invalid value typeRun openclaw config validate and check the error details
OCE-50001MemoryBackendUnreachableRedis/Chroma/Pinecone connection failedCheck backend URL and credentials; verify network access

Built-in Tool Catalog (Quick Reference)

These tools are available to all agents without any additional installation. Enable them by adding the tool name to the tools list in your config or CLI invocation.

Tool NameCategoryKey InputsReturns
web_searchWebquery, max_resultsList of result objects (title, url, snippet)
fetch_urlWeburl, extract_textPage content as plain text or HTML
read_fileFilesystempathFile contents as string
write_fileFilesystempath, contentConfirmation with bytes written
list_directoryFilesystempath, recursiveArray of file/directory entries
run_pythonCodecode, timeoutstdout, stderr, return value
run_bashCodecommand, cwdstdout, stderr, exit code
send_emailCommunicationto, subject, bodyDelivery confirmation + message ID
sql_queryDatabasequery, connectionResult rows as list of dicts
memory_storeMemorykey, valueConfirmation
memory_recallMemorykey or queryStored value or top-k similar memories

CLI Commands Quick Reference

CommandDescriptionCommon Flags
openclaw runRun an agent with a task prompt--task, --provider, --model, --tools, --max-iterations
openclaw startStart the API server in the foreground--port, --host, --reload
openclaw config validateValidate openclaw.yaml and print schema errors--config
openclaw config showPrint merged config (file + env vars)--format json|yaml
openclaw installInstall missing dependencies (LLM providers, etc.)--provider, --all
openclaw updateUpdate OpenClaw to the latest version--pre (include pre-releases)
openclaw stopGracefully stop a running API server instance--timeout
openclaw db migrateApply pending database schema migrations--dry-run