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:03:08

    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 SDK overview

    The plugin SDK is the typed contract between plugins and core. This page is the reference for what to import and what you can register.

    note

    This page is for plugin authors using `openclaw/plugin-sdk/*` inside OpenClaw. For external apps, scripts, dashboards, CI jobs, and IDE extensions that want to run agents through the Gateway, use the [OpenClaw App SDK](/concepts/openclaw-sdk) and the `@openclaw/sdk` package instead.

    tip

    Looking for a how-to guide instead? Start with [Building plugins](/plugins/building-plugins), use [Channel plugins](/plugins/sdk-channel-plugins) for channel plugins, [Provider plugins](/plugins/sdk-provider-plugins) for provider plugins, and [Plugin hooks](/plugins/hooks) for tool or lifecycle hook plugins.

    Import convention

    Always import from a specific subpath:

    typescript
    import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry"; import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";

    Each subpath is a small, self-contained module. This keeps startup fast and prevents circular dependency issues. For channel-specific entry/build helpers, prefer

    text
    openclaw/plugin-sdk/channel-core
    ; keep
    text
    openclaw/plugin-sdk/core
    for the broader umbrella surface and shared helpers such as
    text
    buildChannelConfigSchema
    .

    For channel config, publish the channel-owned JSON Schema through

    text
    openclaw.plugin.json#channelConfigs
    . The
    text
    plugin-sdk/channel-config-schema
    subpath is for shared schema primitives and the generic builder. OpenClaw's bundled plugins use
    text
    plugin-sdk/bundled-channel-config-schema
    for retained bundled-channel schemas. Deprecated compatibility exports remain on
    text
    plugin-sdk/channel-config-schema-legacy
    ; neither bundled schema subpath is a pattern for new plugins.

    warning

    Do not import provider- or channel-branded convenience seams (for example `openclaw/plugin-sdk/slack`, `.../discord`, `.../signal`, `.../whatsapp`). Bundled plugins compose generic SDK subpaths inside their own `api.ts` / `runtime-api.ts` barrels; core consumers should either use those plugin-local barrels or add a narrow generic SDK contract when a need is truly cross-channel.

    A small set of bundled-plugin helper seams still appear in the generated export map when they have tracked owner usage. They exist for bundled-plugin maintenance only and are not recommended import paths for new third-party plugins.

    text
    openclaw/plugin-sdk/discord
    and
    text
    openclaw/plugin-sdk/telegram-account
    are also kept as deprecated compatibility facades for tracked owner usage. Do not copy those import paths into new plugins; use injected runtime helpers and generic channel SDK subpaths instead.

    Subpath reference

    The plugin SDK is exposed as a set of narrow subpaths grouped by area (plugin entry, channel, provider, auth, runtime, capability, memory, and reserved bundled-plugin helpers). For the full catalog — grouped and linked — see Plugin SDK subpaths.

    The generated list of 200+ subpaths lives in

    text
    scripts/lib/plugin-sdk-entrypoints.json
    .

    Registration API

    The

    text
    register(api)
    callback receives an
    text
    OpenClawPluginApi
    object with these methods:

    Capability registration

    MethodWhat it registers
    text
    api.registerProvider(...)
    Text inference (LLM)
    text
    api.registerAgentHarness(...)
    Experimental low-level agent executor
    text
    api.registerCliBackend(...)
    Local CLI inference backend
    text
    api.registerChannel(...)
    Messaging channel
    text
    api.registerSpeechProvider(...)
    Text-to-speech / STT synthesis
    text
    api.registerRealtimeTranscriptionProvider(...)
    Streaming realtime transcription
    text
    api.registerRealtimeVoiceProvider(...)
    Duplex realtime voice sessions
    text
    api.registerMediaUnderstandingProvider(...)
    Image/audio/video analysis
    text
    api.registerImageGenerationProvider(...)
    Image generation
    text
    api.registerMusicGenerationProvider(...)
    Music generation
    text
    api.registerVideoGenerationProvider(...)
    Video generation
    text
    api.registerWebFetchProvider(...)
    Web fetch / scrape provider
    text
    api.registerWebSearchProvider(...)
    Web search

    Tools and commands

    MethodWhat it registers
    text
    api.registerTool(tool, opts?)
    Agent tool (required or
    text
    { optional: true }
    )
    text
    api.registerCommand(def)
    Custom command (bypasses the LLM)

    Plugin commands can set

    text
    agentPromptGuidance
    when the agent needs a short, command-owned routing hint. Keep that text about the command itself; do not add provider- or plugin-specific policy to core prompt builders.

    Infrastructure

    MethodWhat it registers
    text
    api.registerHook(events, handler, opts?)
    Event hook
    text
    api.registerHttpRoute(params)
    Gateway HTTP endpoint
    text
    api.registerGatewayMethod(name, handler)
    Gateway RPC method
    text
    api.registerGatewayDiscoveryService(service)
    Local Gateway discovery advertiser
    text
    api.registerCli(registrar, opts?)
    CLI subcommand
    text
    api.registerService(service)
    Background service
    text
    api.registerInteractiveHandler(registration)
    Interactive handler
    text
    api.registerAgentToolResultMiddleware(...)
    Runtime tool-result middleware
    text
    api.registerMemoryPromptSupplement(builder)
    Additive memory-adjacent prompt section
    text
    api.registerMemoryCorpusSupplement(adapter)
    Additive memory search/read corpus

    Host hooks for workflow plugins

    Host hooks are the SDK seams for plugins that need to participate in the host lifecycle rather than only adding a provider, channel, or tool. They are generic contracts; Plan Mode can use them, but so can approval workflows, workspace policy gates, background monitors, setup wizards, and UI companion plugins.

    MethodContract it owns
    text
    api.registerSessionExtension(...)
    Plugin-owned, JSON-compatible session state projected through Gateway sessions
    text
    api.enqueueNextTurnInjection(...)
    Durable exactly-once context injected into the next agent turn for one session
    text
    api.registerTrustedToolPolicy(...)
    Bundled/trusted pre-plugin tool policy that can block or rewrite tool params
    text
    api.registerToolMetadata(...)
    Tool catalog display metadata without changing the tool implementation
    text
    api.registerCommand(...)
    Scoped plugin commands; command results can set
    text
    continueAgent: true
    text
    api.registerControlUiDescriptor(...)
    Control UI contribution descriptors for session, tool, run, or settings surfaces
    text
    api.registerRuntimeLifecycle(...)
    Cleanup callbacks for plugin-owned runtime resources on reset/delete/reload paths
    text
    api.registerAgentEventSubscription(...)
    Sanitized event subscriptions for workflow state and monitors
    text
    api.setRunContext(...)
    /
    text
    getRunContext(...)
    /
    text
    clearRunContext(...)
    Per-run plugin scratch state cleared on terminal run lifecycle
    text
    api.registerSessionSchedulerJob(...)
    Plugin-owned session scheduler job records with deterministic cleanup

    The contracts intentionally split authority:

    • External plugins can own session extensions, UI descriptors, commands, tool metadata, next-turn injections, and normal hooks.
    • Trusted tool policies run before ordinary
      text
      before_tool_call
      hooks and are bundled-only because they participate in host safety policy.
    • Reserved command ownership is bundled-only. External plugins should use their own command names or aliases.
    • text
      allowPromptInjection=false
      disables prompt-mutating hooks including
      text
      agent_turn_prepare
      ,
      text
      before_prompt_build
      ,
      text
      heartbeat_prompt_contribution
      , prompt fields from legacy
      text
      before_agent_start
      , and
      text
      enqueueNextTurnInjection
      .

    Examples of non-Plan consumers:

    Plugin archetypeHooks used
    Approval workflowSession extension, command continuation, next-turn injection, UI descriptor
    Budget/workspace policy gateTrusted tool policy, tool metadata, session projection
    Background lifecycle monitorRuntime lifecycle cleanup, agent event subscription, session scheduler ownership/cleanup, heartbeat prompt contribution, UI descriptor
    Setup or onboarding wizardSession extension, scoped commands, Control UI descriptor

    note

    Reserved core admin namespaces (`config.*`, `exec.approvals.*`, `wizard.*`, `update.*`) always stay `operator.admin`, even if a plugin tries to assign a narrower gateway method scope. Prefer plugin-specific prefixes for plugin-owned methods.

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine