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:50

    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.

    Authentication

    note

    This page is the **model provider** authentication reference (API keys, OAuth, Claude CLI reuse, and Anthropic setup-token). For **gateway connection** authentication (token, password, trusted-proxy), see [Configuration](/gateway/configuration) and [Trusted Proxy Auth](/gateway/trusted-proxy-auth).

    OpenClaw supports OAuth and API keys for model providers. For always-on gateway hosts, API keys are usually the most predictable option. Subscription/OAuth flows are also supported when they match your provider account model.

    See /concepts/oauth for the full OAuth flow and storage layout. For SecretRef-based auth (

    text
    env
    /
    text
    file
    /
    text
    exec
    providers), see Secrets Management. For credential eligibility/reason-code rules used by
    text
    models status --probe
    , see Auth Credential Semantics.

    Recommended setup (API key, any provider)

    If you’re running a long-lived gateway, start with an API key for your chosen provider. For Anthropic specifically, API key auth is still the most predictable server setup, but OpenClaw also supports reusing a local Claude CLI login.

    1. Create an API key in your provider console.
    2. Put it on the gateway host (the machine running
      text
      openclaw gateway
      ).
    bash
    export <PROVIDER>_API_KEY="..." openclaw models status
    1. If the Gateway runs under systemd/launchd, prefer putting the key in
      text
      ~/.openclaw/.env
      so the daemon can read it:
    bash
    cat >> ~/.openclaw/.env <<'EOF' <PROVIDER>_API_KEY=... EOF

    Then restart the daemon (or restart your Gateway process) and re-check:

    bash
    openclaw models status openclaw doctor

    If you’d rather not manage env vars yourself, onboarding can store API keys for daemon use:

    text
    openclaw onboard
    .

    See Help for details on env inheritance (

    text
    env.shellEnv
    ,
    text
    ~/.openclaw/.env
    , systemd/launchd).

    Anthropic: Claude CLI and token compatibility

    Anthropic setup-token auth is still available in OpenClaw as a supported token path. Anthropic staff has since told us that OpenClaw-style Claude CLI usage is allowed again, so OpenClaw treats Claude CLI reuse and

    text
    claude -p
    usage as sanctioned for this integration unless Anthropic publishes a new policy. When Claude CLI reuse is available on the host, that is now the preferred path.

    For long-lived gateway hosts, an Anthropic API key is still the most predictable setup. If you want to reuse an existing Claude login on the same host, use the Anthropic Claude CLI path in onboarding/configure.

    Recommended host setup for Claude CLI reuse:

    bash
    # Run on the gateway host claude auth login claude auth status --text openclaw models auth login --provider anthropic --method cli --set-default

    This is a two-step setup:

    1. Log Claude Code itself into Anthropic on the gateway host.
    2. Tell OpenClaw to switch Anthropic model selection to the local
      text
      claude-cli
      backend and store the matching OpenClaw auth profile.

    If

    text
    claude
    is not on
    text
    PATH
    , either install Claude Code first or set
    text
    agents.defaults.cliBackends.claude-cli.command
    to the real binary path.

    Manual token entry (any provider; writes

    text
    auth-profiles.json
    + updates config):

    bash
    openclaw models auth paste-token --provider openrouter

    text
    auth-profiles.json
    stores credentials only. The canonical shape is:

    json
    { "version": 1, "profiles": { "openrouter:default": { "type": "api_key", "provider": "openrouter", "key": "OPENROUTER_API_KEY" } } }

    OpenClaw expects the canonical

    text
    version
    +
    text
    profiles
    shape at runtime. If an older install still has a flat file such as
    text
    { "openrouter": { "apiKey": "..." } }
    , run
    text
    openclaw doctor --fix
    to rewrite it as an
    text
    openrouter:default
    API-key profile; doctor keeps a
    text
    .legacy-flat.*.bak
    copy beside the original. Endpoint details such as
    text
    baseUrl
    ,
    text
    api
    , model ids, headers, and timeouts belong under
    text
    models.providers.<id>
    in
    text
    openclaw.json
    or
    text
    models.json
    , not in
    text
    auth-profiles.json
    .

    Auth profile refs are also supported for static credentials:

    • text
      api_key
      credentials can use
      text
      keyRef: { source, provider, id }
    • text
      token
      credentials can use
      text
      tokenRef: { source, provider, id }
    • OAuth-mode profiles do not support SecretRef credentials; if
      text
      auth.profiles.<id>.mode
      is set to
      text
      "oauth"
      , SecretRef-backed
      text
      keyRef
      /
      text
      tokenRef
      input for that profile is rejected.

    Automation-friendly check (exit

    text
    1
    when expired/missing,
    text
    2
    when expiring):

    bash
    openclaw models status --check

    Live auth probes:

    bash
    openclaw models status --probe

    Notes:

    • Probe rows can come from auth profiles, env credentials, or
      text
      models.json
      .
    • If explicit
      text
      auth.order.<provider>
      omits a stored profile, probe reports
      text
      excluded_by_auth_order
      for that profile instead of trying it.
    • If auth exists but OpenClaw cannot resolve a probeable model candidate for that provider, probe reports
      text
      status: no_model
      .
    • Rate-limit cooldowns can be model-scoped. A profile cooling down for one model can still be usable for a sibling model on the same provider.

    Optional ops scripts (systemd/Termux) are documented here: Auth monitoring scripts

    Anthropic note

    The Anthropic

    text
    claude-cli
    backend is supported again.

    • Anthropic staff told us this OpenClaw integration path is allowed again.
    • OpenClaw therefore treats Claude CLI reuse and
      text
      claude -p
      usage as sanctioned for Anthropic-backed runs unless Anthropic publishes a new policy.
    • Anthropic API keys remain the most predictable choice for long-lived gateway hosts and explicit server-side billing control.

    Checking model auth status

    bash
    openclaw models status openclaw doctor

    API key rotation behavior (gateway)

    Some providers support retrying a request with alternative keys when an API call hits a provider rate limit.

    • Priority order:
      • text
        OPENCLAW_LIVE_<PROVIDER>_KEY
        (single override)
      • text
        <PROVIDER>_API_KEYS
      • text
        <PROVIDER>_API_KEY
      • text
        <PROVIDER>_API_KEY_*
    • Google providers also include
      text
      GOOGLE_API_KEY
      as an additional fallback.
    • The same key list is deduplicated before use.
    • OpenClaw retries with the next key only for rate-limit errors (for example
      text
      429
      ,
      text
      rate_limit
      ,
      text
      quota
      ,
      text
      resource exhausted
      ,
      text
      Too many concurrent requests
      ,
      text
      ThrottlingException
      ,
      text
      concurrency limit reached
      , or
      text
      workers_ai ... quota limit exceeded
      ).
    • Non-rate-limit errors are not retried with alternate keys.
    • If all keys fail, the final error from the last attempt is returned.

    Controlling which credential is used

    Per-session (chat command)

    Use

    text
    /model <alias-or-id>@<profileId>
    to pin a specific provider credential for the current session (example profile ids:
    text
    anthropic:default
    ,
    text
    anthropic:work
    ).

    Use

    text
    /model
    (or
    text
    /model list
    ) for a compact picker; use
    text
    /model status
    for the full view (candidates + next auth profile, plus provider endpoint details when configured).

    Per-agent (CLI override)

    Set an explicit auth profile order override for an agent (stored in that agent’s

    text
    auth-state.json
    ):

    bash
    openclaw models auth order get --provider anthropic openclaw models auth order set --provider anthropic anthropic:default openclaw models auth order clear --provider anthropic

    Use

    text
    --agent <id>
    to target a specific agent; omit it to use the configured default agent. When you debug order issues,
    text
    openclaw models status --probe
    shows omitted stored profiles as
    text
    excluded_by_auth_order
    instead of silently skipping them. When you debug cooldown issues, remember that rate-limit cooldowns can be tied to one model id rather than the whole provider profile.

    Troubleshooting

    "No credentials found"

    If the Anthropic profile is missing, configure an Anthropic API key on the gateway host or set up the Anthropic setup-token path, then re-check:

    bash
    openclaw models status

    Token expiring/expired

    Run

    text
    openclaw models status
    to confirm which profile is expiring. If an Anthropic token profile is missing or expired, refresh that setup via setup-token or migrate to an Anthropic API key.

    Related

    • Secrets management
    • Remote access
    • Auth storage

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine