TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:01:51

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

    Use this file to discover all available pages before exploring further.

    Plugin entry points

    Every plugin exports a default entry object. The SDK provides three helpers for creating them.

    For installed plugins,

    text
    package.json
    should point runtime loading at built JavaScript when available:

    json
    { "openclaw": { "extensions": ["./src/index.ts"], "runtimeExtensions": ["./dist/index.js"], "setupEntry": "./src/setup-entry.ts", "runtimeSetupEntry": "./dist/setup-entry.js" } }

    text
    extensions
    and
    text
    setupEntry
    remain valid source entries for workspace and git checkout development.
    text
    runtimeExtensions
    and
    text
    runtimeSetupEntry
    are preferred when OpenClaw loads an installed package and let npm packages avoid runtime TypeScript compilation. If an installed package only declares a TypeScript source entry, OpenClaw will use a matching built
    text
    dist/*.js
    peer when one exists, then fall back to the TypeScript source.

    All entry paths must stay inside the plugin package directory. Runtime entries and inferred built JavaScript peers do not make an escaping

    text
    extensions
    or
    text
    setupEntry
    source path valid.

    tip

    **Looking for a walkthrough?** See [Channel Plugins](/plugins/sdk-channel-plugins) or [Provider Plugins](/plugins/sdk-provider-plugins) for step-by-step guides.

    text
    definePluginEntry

    Import:

    text
    openclaw/plugin-sdk/plugin-entry

    For provider plugins, tool plugins, hook plugins, and anything that is not a messaging channel.

    typescript
    import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry"; export default definePluginEntry({ id: "my-plugin", name: "My Plugin", description: "Short summary", register(api) { api.registerProvider({ /* ... */ }); api.registerTool({ /* ... */ }); }, });
    FieldTypeRequiredDefault
    text
    id
    text
    string
    Yes—
    text
    name
    text
    string
    Yes—
    text
    description
    text
    string
    Yes—
    text
    kind
    text
    string
    No—
    text
    configSchema
    text
    OpenClawPluginConfigSchema | () => OpenClawPluginConfigSchema
    NoEmpty object schema
    text
    register
    text
    (api: OpenClawPluginApi) => void
    Yes—
    • text
      id
      must match your
      text
      openclaw.plugin.json
      manifest.
    • text
      kind
      is for exclusive slots:
      text
      "memory"
      or
      text
      "context-engine"
      .
    • text
      configSchema
      can be a function for lazy evaluation.
    • OpenClaw resolves and memoizes that schema on first access, so expensive schema builders only run once.

    text
    defineChannelPluginEntry

    Import:

    text
    openclaw/plugin-sdk/channel-core

    Wraps

    text
    definePluginEntry
    with channel-specific wiring. Automatically calls
    text
    api.registerChannel({ plugin })
    , exposes an optional root-help CLI metadata seam, and gates
    text
    registerFull
    on registration mode.

    typescript
    import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core"; export default defineChannelPluginEntry({ id: "my-channel", name: "My Channel", description: "Short summary", plugin: myChannelPlugin, setRuntime: setMyRuntime, registerCliMetadata(api) { api.registerCli(/* ... */); }, registerFull(api) { api.registerGatewayMethod(/* ... */); }, });
    FieldTypeRequiredDefault
    text
    id
    text
    string
    Yes—
    text
    name
    text
    string
    Yes—
    text
    description
    text
    string
    Yes—
    text
    plugin
    text
    ChannelPlugin
    Yes—
    text
    configSchema
    text
    OpenClawPluginConfigSchema | () => OpenClawPluginConfigSchema
    NoEmpty object schema
    text
    setRuntime
    text
    (runtime: PluginRuntime) => void
    No—
    text
    registerCliMetadata
    text
    (api: OpenClawPluginApi) => void
    No—
    text
    registerFull
    text
    (api: OpenClawPluginApi) => void
    No—
    • text
      setRuntime
      is called during registration so you can store the runtime reference (typically via
      text
      createPluginRuntimeStore
      ). It is skipped during CLI metadata capture.
    • text
      registerCliMetadata
      runs during
      text
      api.registrationMode === "cli-metadata"
      ,
      text
      api.registrationMode === "discovery"
      , and
      text
      api.registrationMode === "full"
      . Use it as the canonical place for channel-owned CLI descriptors so root help stays non-activating, discovery snapshots include static command metadata, and normal CLI command registration remains compatible with full plugin loads.
    • Discovery registration is non-activating, not import-free. OpenClaw may evaluate the trusted plugin entry and channel plugin module to build the snapshot, so keep top-level imports side-effect-free and put sockets, clients, workers, and services behind
      text
      "full"
      -only paths.
    • text
      registerFull
      only runs when
      text
      api.registrationMode === "full"
      . It is skipped during setup-only loading.
    • Like
      text
      definePluginEntry
      ,
      text
      configSchema
      can be a lazy factory and OpenClaw memoizes the resolved schema on first access.
    • For plugin-owned root CLI commands, prefer
      text
      api.registerCli(..., { descriptors: [...] })
      when you want the command to stay lazy-loaded without disappearing from the root CLI parse tree. For channel plugins, prefer registering those descriptors from
      text
      registerCliMetadata(...)
      and keep
      text
      registerFull(...)
      focused on runtime-only work.
    • If
      text
      registerFull(...)
      also registers gateway RPC methods, keep them on a plugin-specific prefix. Reserved core admin namespaces (
      text
      config.*
      ,
      text
      exec.approvals.*
      ,
      text
      wizard.*
      ,
      text
      update.*
      ) are always coerced to
      text
      operator.admin
      .

    text
    defineSetupPluginEntry

    Import:

    text
    openclaw/plugin-sdk/channel-core

    For the lightweight

    text
    setup-entry.ts
    file. Returns just
    text
    { plugin }
    with no runtime or CLI wiring.

    typescript
    import { defineSetupPluginEntry } from "openclaw/plugin-sdk/channel-core"; export default defineSetupPluginEntry(myChannelPlugin);

    OpenClaw loads this instead of the full entry when a channel is disabled, unconfigured, or when deferred loading is enabled. See Setup and Config for when this matters.

    In practice, pair

    text
    defineSetupPluginEntry(...)
    with the narrow setup helper families:

    • text
      openclaw/plugin-sdk/setup-runtime
      for runtime-safe setup helpers such as import-safe setup patch adapters, lookup-note output,
      text
      promptResolvedAllowFrom
      ,
      text
      splitSetupEntries
      , and delegated setup proxies
    • text
      openclaw/plugin-sdk/channel-setup
      for optional-install setup surfaces
    • text
      openclaw/plugin-sdk/setup-tools
      for setup/install CLI/archive/docs helpers

    Keep heavy SDKs, CLI registration, and long-lived runtime services in the full entry.

    Bundled workspace channels that split setup and runtime surfaces can use

    text
    defineBundledChannelSetupEntry(...)
    from
    text
    openclaw/plugin-sdk/channel-entry-contract
    instead. That contract lets the setup entry keep setup-safe plugin/secrets exports while still exposing a runtime setter:

    typescript
    import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract"; export default defineBundledChannelSetupEntry({ importMetaUrl: import.meta.url, plugin: { specifier: "./channel-plugin-api.js", exportName: "myChannelPlugin", }, runtime: { specifier: "./runtime-api.js", exportName: "setMyChannelRuntime", }, });

    Use that bundled contract only when setup flows truly need a lightweight runtime setter before the full channel entry loads.

    Registration mode

    text
    api.registrationMode
    tells your plugin how it was loaded:

    ModeWhenWhat to register
    text
    "full"
    Normal gateway startupEverything
    text
    "discovery"
    Read-only capability discoveryChannel registration plus static CLI descriptors; entry code may load, but skip sockets, workers, clients, and services
    text
    "setup-only"
    Disabled/unconfigured channelChannel registration only
    text
    "setup-runtime"
    Setup flow with runtime availableChannel registration plus only the lightweight runtime needed before the full entry loads
    text
    "cli-metadata"
    Root help / CLI metadata captureCLI descriptors only

    text
    defineChannelPluginEntry
    handles this split automatically. If you use
    text
    definePluginEntry
    directly for a channel, check mode yourself:

    typescript
    register(api) { if ( api.registrationMode === "cli-metadata" || api.registrationMode === "discovery" || api.registrationMode === "full" ) { api.registerCli(/* ... */); if (api.registrationMode === "cli-metadata") return; } api.registerChannel({ plugin: myPlugin }); if (api.registrationMode !== "full") return; // Heavy runtime-only registrations api.registerService(/* ... */); }

    Discovery mode builds a non-activating registry snapshot. It may still evaluate the plugin entry and the channel plugin object so OpenClaw can register channel capabilities and static CLI descriptors. Treat module evaluation in discovery as trusted but lightweight: no network clients, subprocesses, listeners, database connections, background workers, credential reads, or other live runtime side effects at top level.

    Treat

    text
    "setup-runtime"
    as the window where setup-only startup surfaces must exist without re-entering the full bundled channel runtime. Good fits are channel registration, setup-safe HTTP routes, setup-safe gateway methods, and delegated setup helpers. Heavy background services, CLI registrars, and provider/client SDK bootstraps still belong in
    text
    "full"
    .

    For CLI registrars specifically:

    • use
      text
      descriptors
      when the registrar owns one or more root commands and you want OpenClaw to lazy-load the real CLI module on first invocation
    • make sure those descriptors cover every top-level command root exposed by the registrar
    • keep descriptor command names to letters, numbers, hyphen, and underscore, starting with a letter or number; OpenClaw rejects descriptor names outside that shape and strips terminal control sequences from descriptions before rendering help
    • use
      text
      commands
      alone only for eager compatibility paths

    Plugin shapes

    OpenClaw classifies loaded plugins by their registration behavior:

    ShapeDescription
    plain-capabilityOne capability type (e.g. provider-only)
    hybrid-capabilityMultiple capability types (e.g. provider + speech)
    hook-onlyOnly hooks, no capabilities
    non-capabilityTools/commands/services but no capabilities

    Use

    text
    openclaw plugins inspect <id>
    to see a plugin's shape.

    Related

    • SDK Overview — registration API and subpath reference
    • Runtime Helpers —
      text
      api.runtime
      and
      text
      createPluginRuntimeStore
    • Setup and Config — manifest, setup entry, deferred loading
    • Channel Plugins — building the
      text
      ChannelPlugin
      object
    • Provider Plugins — provider registration and hooks

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine