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:04:27

    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.

    QQ bot

    QQ Bot connects to OpenClaw via the official QQ Bot API (WebSocket gateway). The plugin supports C2C private chat, group @messages, and guild channel messages with rich media (images, voice, video, files).

    Status: bundled plugin. Direct messages, group chats, guild channels, and media are supported. Reactions and threads are not supported.

    Bundled plugin

    Current OpenClaw releases bundle QQ Bot, so normal packaged builds do not need a separate

    text
    openclaw plugins install
    step.

    Setup

    1. Go to the QQ Open Platform and scan the QR code with your phone QQ to register / log in.
    2. Click Create Bot to create a new QQ bot.
    3. Find AppID and AppSecret on the bot's settings page and copy them.

    AppSecret is not stored in plaintext — if you leave the page without saving it, you'll have to regenerate a new one.

    1. Add the channel:
    bash
    openclaw channels add --channel qqbot --token "AppID:AppSecret"
    1. Restart the Gateway.

    Interactive setup paths:

    bash
    openclaw channels add openclaw configure --section channels

    Configure

    Minimal config:

    json5
    { channels: { qqbot: { enabled: true, appId: "YOUR_APP_ID", clientSecret: "YOUR_APP_SECRET", }, }, }

    Default-account env vars:

    • text
      QQBOT_APP_ID
    • text
      QQBOT_CLIENT_SECRET

    File-backed AppSecret:

    json5
    { channels: { qqbot: { enabled: true, appId: "YOUR_APP_ID", clientSecretFile: "/path/to/qqbot-secret.txt", }, }, }

    Notes:

    • Env fallback applies to the default QQ Bot account only.
    • text
      openclaw channels add --channel qqbot --token-file ...
      provides the AppSecret only; the AppID must already be set in config or
      text
      QQBOT_APP_ID
      .
    • text
      clientSecret
      also accepts SecretRef input, not just a plaintext string.

    Multi-account setup

    Run multiple QQ bots under a single OpenClaw instance:

    json5
    { channels: { qqbot: { enabled: true, appId: "111111111", clientSecret: "secret-of-bot-1", accounts: { bot2: { enabled: true, appId: "222222222", clientSecret: "secret-of-bot-2", }, }, }, }, }

    Each account launches its own WebSocket connection and maintains an independent token cache (isolated by

    text
    appId
    ).

    Add a second bot via CLI:

    bash
    openclaw channels add --channel qqbot --account bot2 --token "222222222:secret-of-bot-2"

    Group chats

    QQ Bot group chat support uses QQ group OpenIDs, not display names. Add the bot to a group, then mention it or configure the group to run without a mention.

    json5
    { channels: { qqbot: { groupPolicy: "allowlist", groupAllowFrom: ["member_openid"], groups: { "*": { requireMention: true, historyLimit: 50, toolPolicy: "restricted", }, GROUP_OPENID: { name: "Release room", requireMention: false, ignoreOtherMentions: true, historyLimit: 20, prompt: "Keep replies short and operational.", }, }, }, }, }

    text
    groups["*"]
    sets defaults for every group, and a concrete
    text
    groups.GROUP_OPENID
    entry overrides those defaults for one group. Group settings include:

    • text
      requireMention
      : require an @mention before the bot replies. Default:
      text
      true
      .
    • text
      ignoreOtherMentions
      : drop messages that mention someone else but not the bot.
    • text
      historyLimit
      : keep recent non-mention group messages as context for the next mentioned turn. Set
      text
      0
      to disable.
    • text
      toolPolicy
      :
      text
      full
      ,
      text
      restricted
      , or
      text
      none
      for group-scoped tools.
    • text
      name
      : friendly label used in logs and group context.
    • text
      prompt
      : per-group behavior prompt appended to the agent context.

    Activation modes are

    text
    mention
    and
    text
    always
    .
    text
    requireMention: true
    maps to
    text
    mention
    ;
    text
    requireMention: false
    maps to
    text
    always
    . A session-level activation override, when present, wins over config.

    The inbound queue is per peer. Group peers get a larger queue cap, keep human messages ahead of bot-authored chatter when full, and merge bursts of normal group messages into one attributed turn. Slash commands still run one by one.

    Voice (STT / TTS)

    STT and TTS support two-level configuration with priority fallback:

    SettingPlugin-specificFramework fallback
    STT
    text
    channels.qqbot.stt
    text
    tools.media.audio.models[0]
    TTS
    text
    channels.qqbot.tts
    ,
    text
    channels.qqbot.accounts.<id>.tts
    text
    messages.tts
    json5
    { channels: { qqbot: { stt: { provider: "your-provider", model: "your-stt-model", }, tts: { provider: "your-provider", model: "your-tts-model", voice: "your-voice", }, accounts: { qq-main: { tts: { providers: { openai: { voice: "shimmer" }, }, }, }, }, }, }, }

    Set

    text
    enabled: false
    on either to disable. Account-level TTS overrides use the same shape as
    text
    messages.tts
    and deep-merge over the channel/global TTS config.

    Inbound QQ voice attachments are exposed to agents as audio media metadata while keeping raw voice files out of generic

    text
    MediaPaths
    .
    text
    [[audio_as_voice]]
    plain text replies synthesize TTS and send a native QQ voice message when TTS is configured.

    Outbound audio upload/transcode behavior can also be tuned with

    text
    channels.qqbot.audioFormatPolicy
    :

    • text
      sttDirectFormats
    • text
      uploadDirectFormats
    • text
      transcodeEnabled

    Target formats

    FormatDescription
    text
    qqbot:c2c:OPENID
    Private chat (C2C)
    text
    qqbot:group:GROUP_OPENID
    Group chat
    text
    qqbot:channel:CHANNEL_ID
    Guild channel

    Each bot has its own set of user OpenIDs. An OpenID received by Bot A cannot be used to send messages via Bot B.

    Slash commands

    Built-in commands intercepted before the AI queue:

    CommandDescription
    text
    /bot-ping
    Latency test
    text
    /bot-version
    Show the OpenClaw framework version
    text
    /bot-help
    List all commands
    text
    /bot-me
    Show the sender's QQ user ID (openid) for
    text
    allowFrom
    /
    text
    groupAllowFrom
    setup
    text
    /bot-upgrade
    Show the QQBot upgrade guide link
    text
    /bot-logs
    Export recent gateway logs as a file
    text
    /bot-approve
    Approve a pending QQ Bot action (for example, confirming a C2C or group upload) through the native flow.

    Append

    text
    ?
    to any command for usage help (for example
    text
    /bot-upgrade ?
    ).

    Admin commands (

    text
    /bot-me
    ,
    text
    /bot-upgrade
    ,
    text
    /bot-logs
    ,
    text
    /bot-clear-storage
    ,
    text
    /bot-streaming
    ,
    text
    /bot-approve
    ) are direct-message-only and require the sender's openid in an explicit non-wildcard
    text
    allowFrom
    list. A wildcard
    text
    allowFrom: ["*"]
    permits chat but does not grant admin command access. Group messages match against
    text
    groupAllowFrom
    first and fall back to
    text
    allowFrom
    . Running an admin command in a group returns a hint rather than silently dropping.

    Engine architecture

    QQ Bot ships as a self-contained engine inside the plugin:

    • Each account owns an isolated resource stack (WebSocket connection, API client, token cache, media storage root) keyed by
      text
      appId
      . Accounts never share inbound/outbound state.
    • The multi-account logger tags log lines with the owning account so diagnostics stay separable when you run several bots under one gateway.
    • Inbound, outbound, and gateway bridge paths share a single media payload root under
      text
      ~/.openclaw/media
      , so uploads, downloads, and transcode caches land under one guarded directory instead of a per-subsystem tree.
    • Rich media delivery goes through one
      text
      sendMedia
      path for C2C and group targets. Local files and buffers above the large-file threshold use QQ's chunked upload endpoints, while smaller payloads use the one-shot media API.
    • Credentials can be backed up and restored as part of standard OpenClaw credential snapshots; the engine re-attaches each account's resource stack on restore without requiring a fresh QR-code pair.

    QR-code onboarding

    As an alternative to pasting

    text
    AppID:AppSecret
    manually, the engine supports a QR-code onboarding flow for linking a QQ Bot to OpenClaw:

    1. Run the QQ Bot setup path (for example
      text
      openclaw channels add --channel qqbot
      ) and pick the QR-code flow when prompted.
    2. Scan the generated QR code with the phone app tied to the target QQ Bot.
    3. Approve the pairing on the phone. OpenClaw persists the returned credentials into
      text
      credentials/
      under the right account scope.

    Approval prompts generated by the bot itself (for example, "allow this action?" flows exposed by the QQ Bot API) surface as native OpenClaw prompts that you can accept with

    text
    /bot-approve
    rather than replying through the raw QQ client.

    Troubleshooting

    • Bot replies "gone to Mars": credentials not configured or Gateway not started.
    • No inbound messages: verify
      text
      appId
      and
      text
      clientSecret
      are correct, and the bot is enabled on the QQ Open Platform.
    • Repeated self-replies: OpenClaw records QQ outbound ref indexes as bot-authored and ignores inbound events whose current
      text
      msgIdx
      matches that same bot account. This prevents platform echo loops while still allowing users to quote or reply to previous bot messages.
    • Setup with
      text
      --token-file
      still shows unconfigured:
      text
      --token-file
      only sets the AppSecret. You still need
      text
      appId
      in config or
      text
      QQBOT_APP_ID
      .
    • Proactive messages not arriving: QQ may intercept bot-initiated messages if the user hasn't interacted recently.
    • Voice not transcribed: ensure STT is configured and the provider is reachable.

    Related

    • Pairing
    • Groups
    • Channel troubleshooting

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine