Skip to content

OpenClaw Reference: Pi Integration & Configuration Reference

Mar 28, 2026 1 min
TL;DR Pi is OpenClaw's embedded coding agent runtime; OpenClaw is Pi's Gateway shell. This configuration reference covers 16 top-level sections and 335 documents.

🌏 中文版

OpenClaw’s AI core is Pi (a coding agent runtime). OpenClaw handles channels, routing, and security, while Pi handles reasoning, tool execution, and memory. This article summarizes the relationship between the two and provides a configuration reference.

Relationship Between OpenClaw and Pi

LayerOwnerFunction
GatewayOpenClawChannel management, routing, authentication, scheduling
Agent RuntimePiReasoning, tool execution, context management
SessionCo-managedOpenClaw owns the session; Pi executes the agent loop
MemoryPiMarkdown files, vector search
CompactionPiContext window compression
SandboxCo-managedOpenClaw manages containers; Pi executes inside them

Pi’s configuration is passed through OpenClaw’s agents.defaults and agents.list[].

Complete Feature List

Core

FeatureDescription
Multi-agent routingMultiple agent routing (binding priority order)
Delegate architecture3-tier autonomous authorization
Agent loopintake → context → inference → tool → stream
Block streamingChunking (minChars/maxChars)
5 queue modessteer/followup/collect/steer-backlog/interrupt

Models

FeatureDescription
35+ providersAnthropic/OpenAI/Google + local (Ollama/vLLM)
Auth profile rotationCooldown escalation
Model failoverAuth → Model → Thinking degradation
Prompt cachingcacheRetention (none/short/long)
Token tracking10 cost source types

Session & Memory

FeatureDescription
4 DM scopesmain/per-peer/per-channel-peer/per-account-channel-peer
Identity linksCross-platform same-person linking
Memory flushAuto-write to disk before compaction
Vector searchBM25 + embedding hybrid search
Context EnginePluggable (ingest/assemble/compact/after-turn)

Security

FeatureDescription
3 sandbox backendsDocker/SSH/OpenShell
3 control layersSandbox/Tool Policy/Elevated
MITRE ATLAS threat model13 threat scenarios
TLA+ formal verification6+ security assertions
SecretRefenv/file/exec — three source types

Channels

FeatureDescription
24+ channelsRunning simultaneously
Pairing8-character code, 1-hour expiry
Broadcast GroupsMultiple agents processing concurrently
Channel routingDeterministic reply to source

Tools

FeatureDescription
BrowserManaged profile + remote CDP
Exec3 security levels + approval
Skills6-tier priority + ClawHub
Sub-agentMaximum 5 nesting levels
LobsterDeterministic workflow runtime
TTS3 providers
PDFNative + extraction

Automation

FeatureDescription
CronPrecise scheduling + isolated sessions
HeartbeatPeriodic health checks
WebhookExternal event triggers
Standing OrdersPersistent authorization programs

UI & Nodes

FeatureDescription
Control UIBrowser dashboard
TUITerminal interactive interface
Web ChatWebSocket real-time chat
iOS/Android NodeCamera/Canvas/Location/SMS
Node HostRemote exec

Configuration Structure Quick Reference

{
  agents: {           // Agent settings (defaults + list)
    defaults: {
      workspace: "",
      sandbox: {},
      heartbeat: {},
      compaction: {},
      models: {}
    },
    list: []
  },
  channels: {},       // Channel settings (per-channel)
  commands: {},       // Slash commands settings
  gateway: {          // Gateway settings
    bind: "",
    port: 0,
    auth: {},
    tailscale: {},
    controlUi: {}
  },
  hooks: {},          // Webhook settings
  mcp: {},            // MCP Server settings
  messages: {},       // Message settings (TTS, formatting)
  models: {},         // Model provider settings
  plugins: {},        // Plugin settings
  secrets: {},        // SecretRef provider settings
  session: {},        // Session settings (dmScope, maintenance)
  skills: {},         // Skills settings
  tools: {}           // Tool settings (exec, browser, web search)
}

CLI Quick Reference

Gateway

openclaw gateway              # Start Gateway
openclaw health               # Health check
openclaw doctor               # Diagnostics
openclaw doctor --fix         # Auto-fix

Configuration

openclaw config get <path>    # Read
openclaw config set <path> <value>  # Set
openclaw config validate      # Validate
openclaw onboard              # Interactive setup

Models

openclaw models status        # Auth status
openclaw models auth login    # Login
openclaw models auth setup-token  # Setup token

Channels

openclaw channels status      # Channel status
openclaw channels login       # Channel login
openclaw channels add         # Add channel
openclaw pairing list         # Pairing list
openclaw pairing approve      # Approve pairing

Automation

openclaw cron add             # Add cron
openclaw cron list            # List cron jobs
openclaw cron remove          # Remove cron

Nodes

openclaw devices list         # List devices
openclaw devices approve      # Approve device
openclaw nodes status         # Node status
openclaw node run             # Start node host

Sandbox

openclaw sandbox explain      # View settings
openclaw sandbox recreate     # Recreate sandbox
openclaw sandbox list         # List sandboxes

Plugin

openclaw plugins install      # Install
openclaw plugins list         # List
openclaw plugins status       # Status

Overall

This article serves as the reference index for the entire series. OpenClaw’s feature coverage is extensive — from 24+ channels to 35+ model providers, from sandboxing to formal verification, from a Skills marketplace to a deterministic workflow engine. Most users will only need about 20% of these features, but knowing what’s available is important.

References

This article is compiled from the following OpenClaw source documents: