{"id":121,"date":"2026-03-21T22:47:18","date_gmt":"2026-03-21T14:47:18","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/gateway-configuration-examples\/"},"modified":"2026-03-21T23:29:03","modified_gmt":"2026-03-21T15:29:03","slug":"gateway-configuration-examples","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/gateway-configuration-examples\/","title":{"rendered":"\u914d\u7f6e\u793a\u4f8b"},"content":{"rendered":"<h1>\u914d\u7f6e\u793a\u4f8b<\/h1>\n<p>\u4ee5\u4e0b\u793a\u4f8b\u4e0e\u5f53\u524d\u914d\u7f6e\u6a21\u5f0f\u4e00\u81f4\u3002\u6709\u5173\u8be6\u5c3d\u7684\u53c2\u8003\u548c\u6bcf\u4e2a\u5b57\u6bb5\u7684\u8bf4\u660e\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/pa.yingzhi8.cn\/?p=120\">\u914d\u7f6e<\/a>\u3002<\/p>\n<h2>\u5feb\u901f\u5f00\u59cb<\/h2>\n<h3>\u7edd\u5bf9\u6700\u5c0f\u914d\u7f6e<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  agent: { workspace: &#8220;~\/.openclaw\/workspace&#8221; },<br \/>\n  \u6e20\u9053s: { whatsapp: { allowFrom: [&#8220;+15555550123&#8221;] } },<br \/>\n}<\/p>\n<pre><code>\n\u4fdd\u5b58\u5230 `~\/.openclaw\/openclaw.json`\uff0c\u4f60\u5c31\u53ef\u4ee5\u4ece\u8be5\u53f7\u7801\u79c1\u4fe1\u673a\u5668\u4eba\u4e86\u3002\n\n### \u63a8\u8350\u7684\u5165\u95e8\u914d\u7f6e\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  identity: {\n    name: &quot;Clawd&quot;,\n    theme: &quot;helpful assistant&quot;,\n    emoji: &quot;\ud83e\udd9e&quot;,\n  },\n  agent: {\n    workspace: &quot;~\/.openclaw\/workspace&quot;,\n    model: { primary: &quot;anthropic\/claude-sonnet-4-5&quot; },\n  },\n  channels: {\n    whatsapp: {\n      allowFrom: [&quot;+15555550123&quot;],\n      groups: { &quot;*&quot;: { requireMention: true } },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u6269\u5c55\u793a\u4f8b\uff08\u4e3b\u8981\u9009\u9879\uff09<\/h2>\n<blockquote>\n<p>JSON5 \u5141\u8bb8\u4f60\u4f7f\u7528\u6ce8\u91ca\u548c\u5c3e\u968f\u9017\u53f7\u3002\u666e\u901a JSON \u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<\/blockquote>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  \/\/ \u73af\u5883 + shell<br \/>\n  env: {<br \/>\n    OPENROUTER_API_KEY: &#8220;sk-or-&#8230;&#8221;,<br \/>\n    vars: {<br \/>\n      GROQ_API_KEY: &#8220;gsk-&#8230;&#8221;,<br \/>\n    },<br \/>\n    shellEnv: {<br \/>\n      enabled: true,<br \/>\n      timeoutMs: 15000,<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u8ba4\u8bc1\u914d\u7f6e\u6587\u4ef6\u5143\u6570\u636e\uff08\u5bc6\u94a5\u5b58\u50a8\u5728 auth-profiles.json \u4e2d\uff09<br \/>\n  auth: {<br \/>\n    profiles: {<br \/>\n      &#8220;anthropic:me@example.com&#8221;: { provider: &#8220;anthropic&#8221;, mode: &#8220;oauth&#8221;, email: &#8220;me@example.com&#8221; },<br \/>\n      &#8220;anthropic:work&#8221;: { provider: &#8220;anthropic&#8221;, mode: &#8220;api_key&#8221; },<br \/>\n      &#8220;openai:default&#8221;: { provider: &#8220;openai&#8221;, mode: &#8220;api_key&#8221; },<br \/>\n      &#8220;openai-codex:default&#8221;: { provider: &#8220;openai-codex&#8221;, mode: &#8220;oauth&#8221; },<br \/>\n    },<br \/>\n    order: {<br \/>\n      anthropic: [&#8220;anthropic:me@example.com&#8221;, &#8220;anthropic:work&#8221;],<br \/>\n      openai: [&#8220;openai:default&#8221;],<br \/>\n      &#8220;openai-codex&#8221;: [&#8220;openai-codex:default&#8221;],<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u8eab\u4efd<br \/>\n  identity: {<br \/>\n    name: &#8220;Samantha&#8221;,<br \/>\n    theme: &#8220;helpful sloth&#8221;,<br \/>\n    emoji: &#8220;\ud83e\udda5&#8221;,<br \/>\n  },<\/p>\n<p>\/\/ \u65e5\u5fd7<br \/>\n  logging: {<br \/>\n    level: &#8220;info&#8221;,<br \/>\n    file: &#8220;\/tmp\/openclaw\/openclaw.log&#8221;,<br \/>\n    consoleLevel: &#8220;info&#8221;,<br \/>\n    consoleStyle: &#8220;pretty&#8221;,<br \/>\n    redactSensitive: &#8220;tools&#8221;,<br \/>\n  },<\/p>\n<p>\/\/ \u6d88\u606f\u683c\u5f0f<br \/>\n  messages: {<br \/>\n    messagePrefix: &#8220;[openclaw]&#8221;,<br \/>\n    responsePrefix: &#8220;&gt;&#8221;,<br \/>\n    ackReaction: &#8220;\ud83d\udc40&#8221;,<br \/>\n    ackReactionScope: &#8220;group-mentions&#8221;,<br \/>\n  },<\/p>\n<p>\/\/ \u8def\u7531 + \u961f\u5217<br \/>\n  routing: {<br \/>\n    groupChat: {<br \/>\n      mentionPatterns: [&#8220;@openclaw&#8221;, &#8220;openclaw&#8221;],<br \/>\n      historyLimit: 50,<br \/>\n    },<br \/>\n    queue: {<br \/>\n      mode: &#8220;collect&#8221;,<br \/>\n      debounceMs: 1000,<br \/>\n      cap: 20,<br \/>\n      drop: &#8220;summarize&#8221;,<br \/>\n      byChannel: {<br \/>\n        whatsapp: &#8220;collect&#8221;,<br \/>\n        telegram: &#8220;collect&#8221;,<br \/>\n        discord: &#8220;collect&#8221;,<br \/>\n        slack: &#8220;collect&#8221;,<br \/>\n        signal: &#8220;collect&#8221;,<br \/>\n        imessage: &#8220;collect&#8221;,<br \/>\n        webchat: &#8220;collect&#8221;,<br \/>\n      },<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u5de5\u5177<br \/>\n  tools: {<br \/>\n    media: {<br \/>\n      audio: {<br \/>\n        enabled: true,<br \/>\n        maxBytes: 20971520,<br \/>\n        models: [<br \/>\n          { provider: &#8220;openai&#8221;, model: &#8220;gpt-4o-mini-transcribe&#8221; },<br \/>\n          \/\/ \u53ef\u9009\u7684 CLI \u56de\u9000\uff08Whisper \u4e8c\u8fdb\u5236\uff09\uff1a<br \/>\n          \/\/ { type: &#8220;cli&#8221;, command: &#8220;whisper&#8221;, args: [&#8220;&#8211;model&#8221;, &#8220;base&#8221;, &#8220;{{MediaPath}}&#8221;] }<br \/>\n        ],<br \/>\n        timeoutSeconds: 120,<br \/>\n      },<br \/>\n      video: {<br \/>\n        enabled: true,<br \/>\n        maxBytes: 52428800,<br \/>\n        models: [{ provider: &#8220;google&#8221;, model: &#8220;gemini-3-flash-preview&#8221; }],<br \/>\n      },<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u4f1a\u8bdd\u884c\u4e3a<br \/>\n  session: {<br \/>\n    scope: &#8220;per-sender&#8221;,<br \/>\n    reset: {<br \/>\n      mode: &#8220;daily&#8221;,<br \/>\n      atHour: 4,<br \/>\n      idleMinutes: 60,<br \/>\n    },<br \/>\n    resetByChannel: {<br \/>\n      discord: { mode: &#8220;idle&#8221;, idleMinutes: 10080 },<br \/>\n    },<br \/>\n    resetTriggers: [&#8220;\/new&#8221;, &#8220;\/reset&#8221;],<br \/>\n    store: &#8220;~\/.openclaw\/agents\/default\/sessions\/sessions.json&#8221;,<br \/>\n    typingIntervalSeconds: 5,<br \/>\n    sendPolicy: {<br \/>\n      default: &#8220;allow&#8221;,<br \/>\n      rules: [{ action: &#8220;deny&#8221;, match: { \u6e20\u9053: &#8220;discord&#8221;, chatType: &#8220;group&#8221; } }],<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u6e20\u9053<br \/>\n  \u6e20\u9053s: {<br \/>\n    whatsapp: {<br \/>\n      dmPolicy: &#8220;pairing&#8221;,<br \/>\n      allowFrom: [&#8220;+15555550123&#8221;],<br \/>\n      groupPolicy: &#8220;allowlist&#8221;,<br \/>\n      groupAllowFrom: [&#8220;+15555550123&#8221;],<br \/>\n      groups: { &#8220;*&#8221;: { requireMention: true } },<br \/>\n    },<\/p>\n<pre><code>telegram: {\n  enabled: true,\n  botToken: \"YOUR_TELEGRAM_BOT_TOKEN\",\n  allowFrom: [\"123456789\"],\n  groupPolicy: \"allowlist\",\n  groupAllowFrom: [\"123456789\"],\n  groups: { \"*\": { requireMention: true } },\n},\n\ndiscord: {\n  enabled: true,\n  token: \"YOUR_DISCORD_BOT_TOKEN\",\n  dm: { enabled: true, allowFrom: [\"steipete\"] },\n  guilds: {\n    \"123456789012345678\": {\n      slug: \"friends-of-openclaw\",\n      requireMention: false,\n      channels: {\n        general: { allow: true },\n        help: { allow: true, requireMention: true },\n      },\n    },\n  },\n},\n\nslack: {\n  enabled: true,\n  botToken: \"xoxb-REPLACE_ME\",\n  appToken: \"xapp-REPLACE_ME\",\n  channels: {\n    \"#general\": { allow: true, requireMention: true },\n  },\n  dm: { enabled: true, allowFrom: [\"U123\"] },\n  slashCommand: {\n    enabled: true,\n    name: \"openclaw\",\n    sessionPrefix: \"slack:slash\",\n    ephemeral: true,\n  },\n},\n<\/code><\/pre>\n<p>},<\/p>\n<p>\/\/ \u667a\u80fd\u4f53\u8fd0\u884c\u65f6<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      workspace: &#8220;~\/.openclaw\/workspace&#8221;,<br \/>\n      userTimezone: &#8220;America\/Chicago&#8221;,<br \/>\n      model: {<br \/>\n        primary: &#8220;anthropic\/claude-sonnet-4-5&#8221;,<br \/>\n        fallbacks: [&#8220;anthropic\/claude-opus-4-5&#8221;, &#8220;openai\/gpt-5.2&#8221;],<br \/>\n      },<br \/>\n      imageModel: {<br \/>\n        primary: &#8220;openrouter\/anthropic\/claude-sonnet-4-5&#8221;,<br \/>\n      },<br \/>\n      models: {<br \/>\n        &#8220;anthropic\/claude-opus-4-5&#8221;: { alias: &#8220;opus&#8221; },<br \/>\n        &#8220;anthropic\/claude-sonnet-4-5&#8221;: { alias: &#8220;sonnet&#8221; },<br \/>\n        &#8220;openai\/gpt-5.2&#8221;: { alias: &#8220;gpt&#8221; },<br \/>\n      },<br \/>\n      thinkingDefault: &#8220;low&#8221;,<br \/>\n      verboseDefault: &#8220;off&#8221;,<br \/>\n      elevatedDefault: &#8220;on&#8221;,<br \/>\n      blockStreamingDefault: &#8220;off&#8221;,<br \/>\n      blockStreamingBreak: &#8220;text_end&#8221;,<br \/>\n      blockStreamingChunk: {<br \/>\n        minChars: 800,<br \/>\n        maxChars: 1200,<br \/>\n        breakPreference: &#8220;paragraph&#8221;,<br \/>\n      },<br \/>\n      blockStreamingCoalesce: {<br \/>\n        idleMs: 1000,<br \/>\n      },<br \/>\n      humanDelay: {<br \/>\n        mode: &#8220;natural&#8221;,<br \/>\n      },<br \/>\n      timeoutSeconds: 600,<br \/>\n      mediaMaxMb: 5,<br \/>\n      typingIntervalSeconds: 5,<br \/>\n      maxConcurrent: 3,<br \/>\n      heartbeat: {<br \/>\n        every: &#8220;30m&#8221;,<br \/>\n        model: &#8220;anthropic\/claude-sonnet-4-5&#8221;,<br \/>\n        target: &#8220;last&#8221;,<br \/>\n        to: &#8220;+15555550123&#8221;,<br \/>\n        prompt: &#8220;HEARTBEAT&#8221;,<br \/>\n        ackMaxChars: 300,<br \/>\n      },<br \/>\n      memorySearch: {<br \/>\n        provider: &#8220;gemini&#8221;,<br \/>\n        model: &#8220;gemini-embedding-001&#8221;,<br \/>\n        remote: {<br \/>\n          apiKey: &#8220;${GEMINI_API_KEY}&#8221;,<br \/>\n        },<br \/>\n        extraPaths: [&#8220;..\/team-docs&#8221;, &#8220;\/srv\/shared-notes&#8221;],<br \/>\n      },<br \/>\n      sandbox: {<br \/>\n        mode: &#8220;non-main&#8221;,<br \/>\n        perSession: true,<br \/>\n        workspaceRoot: &#8220;~\/.openclaw\/sandboxes&#8221;,<br \/>\n        docker: {<br \/>\n          image: &#8220;openclaw-sandbox:bookworm-slim&#8221;,<br \/>\n          workdir: &#8220;\/workspace&#8221;,<br \/>\n          readOnlyRoot: true,<br \/>\n          tmpfs: [&#8220;\/tmp&#8221;, &#8220;\/var\/tmp&#8221;, &#8220;\/run&#8221;],<br \/>\n          network: &#8220;none&#8221;,<br \/>\n          user: &#8220;1000:1000&#8221;,<br \/>\n        },<br \/>\n        browser: {<br \/>\n          enabled: false,<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<\/p>\n<p>tools: {<br \/>\n    allow: [&#8220;exec&#8221;, &#8220;process&#8221;, &#8220;read&#8221;, &#8220;write&#8221;, &#8220;edit&#8221;, &#8220;apply_patch&#8221;],<br \/>\n    deny: [&#8220;browser&#8221;, &#8220;canvas&#8221;],<br \/>\n    exec: {<br \/>\n      backgroundMs: 10000,<br \/>\n      timeoutSec: 1800,<br \/>\n      cleanupMs: 1800000,<br \/>\n    },<br \/>\n    elevated: {<br \/>\n      enabled: true,<br \/>\n      allowFrom: {<br \/>\n        whatsapp: [&#8220;+15555550123&#8221;],<br \/>\n        telegram: [&#8220;123456789&#8221;],<br \/>\n        discord: [&#8220;steipete&#8221;],<br \/>\n        slack: [&#8220;U123&#8221;],<br \/>\n        signal: [&#8220;+15555550123&#8221;],<br \/>\n        imessage: [&#8220;user@example.com&#8221;],<br \/>\n        webchat: [&#8220;session:demo&#8221;],<br \/>\n      },<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ \u81ea\u5b9a\u4e49\u6a21\u578b\u63d0\u4f9b\u5546<br \/>\n  models: {<br \/>\n    mode: &#8220;merge&#8221;,<br \/>\n    providers: {<br \/>\n      &#8220;custom-proxy&#8221;: {<br \/>\n        baseUrl: &#8220;http:\/\/localhost:4000\/v1&#8221;,<br \/>\n        apiKey: &#8220;LITELLM_KEY&#8221;,<br \/>\n        api: &#8220;openai-responses&#8221;,<br \/>\n        authHeader: true,<br \/>\n        headers: { &#8220;X-Proxy-Region&#8221;: &#8220;us-west&#8221; },<br \/>\n        models: [<br \/>\n          {<br \/>\n            id: &#8220;llama-3.1-8b&#8221;,<br \/>\n            name: &#8220;Llama 3.1 8B&#8221;,<br \/>\n            api: &#8220;openai-responses&#8221;,<br \/>\n            reasoning: false,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 128000,<br \/>\n            maxTokens: 32000,<br \/>\n          },<br \/>\n        ],<br \/>\n      },<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ Cron \u4f5c\u4e1a<br \/>\n  cron: {<br \/>\n    enabled: true,<br \/>\n    store: &#8220;~\/.openclaw\/cron\/cron.json&#8221;,<br \/>\n    maxConcurrentRuns: 2,<br \/>\n  },<\/p>\n<p>\/\/ Webhooks<br \/>\n  hooks: {<br \/>\n    enabled: true,<br \/>\n    path: &#8220;\/hooks&#8221;,<br \/>\n    token: &#8220;shared-secret&#8221;,<br \/>\n    presets: [&#8220;gmail&#8221;],<br \/>\n    transformsDir: &#8220;~\/.openclaw\/hooks&#8221;,<br \/>\n    mappings: [<br \/>\n      {<br \/>\n        id: &#8220;gmail-hook&#8221;,<br \/>\n        match: { path: &#8220;gmail&#8221; },<br \/>\n        action: &#8220;agent&#8221;,<br \/>\n        wakeMode: &#8220;now&#8221;,<br \/>\n        name: &#8220;Gmail&#8221;,<br \/>\n        sessionKey: &#8220;hook:gmail:{{messages[0].id}}&#8221;,<br \/>\n        messageTemplate: &#8220;From: {{messages[0].from}}nSubject: {{messages[0].subject}}&#8221;,<br \/>\n        textTemplate: &#8220;{{messages[0].snippet}}&#8221;,<br \/>\n        deliver: true,<br \/>\n        \u6e20\u9053: &#8220;last&#8221;,<br \/>\n        to: &#8220;+15555550123&#8221;,<br \/>\n        thinking: &#8220;low&#8221;,<br \/>\n        timeoutSeconds: 300,<br \/>\n        transform: { module: &#8220;.\/transforms\/gmail.js&#8221;, export: &#8220;transformGmail&#8221; },<br \/>\n      },<br \/>\n    ],<br \/>\n    gmail: {<br \/>\n      account: &#8220;openclaw@gmail.com&#8221;,<br \/>\n      label: &#8220;INBOX&#8221;,<br \/>\n      topic: &#8220;projects\/\/topics\/gog-gmail-watch&#8221;,<br \/>\n      subscription: &#8220;gog-gmail-watch-push&#8221;,<br \/>\n      pushToken: &#8220;shared-push-token&#8221;,<br \/>\n      hookUrl: &#8220;http:\/\/127.0.0.1:18789\/hooks\/gmail&#8221;,<br \/>\n      includeBody: true,<br \/>\n      maxBytes: 20000,<br \/>\n      renewEveryMinutes: 720,<br \/>\n      serve: { bind: &#8220;127.0.0.1&#8221;, port: 8788, path: &#8220;\/&#8221; },<br \/>\n      tailscale: { mode: &#8220;funnel&#8221;, path: &#8220;\/gmail-pubsub&#8221; },<br \/>\n    },<br \/>\n  },<\/p>\n<p>\/\/ Gateway \u7f51\u5173 \u7f51\u5173 + \u7f51\u7edc<br \/>\n  \u7f51\u5173: {<br \/>\n    mode: &#8220;local&#8221;,<br \/>\n    port: 18789,<br \/>\n    bind: &#8220;loopback&#8221;,<br \/>\n    controlUi: { enabled: true, basePath: &#8220;\/openclaw&#8221; },<br \/>\n    auth: {<br \/>\n      mode: &#8220;token&#8221;,<br \/>\n      token: &#8220;\u7f51\u5173-token&#8221;,<br \/>\n      allowTailscale: true,<br \/>\n    },<br \/>\n    tailscale: { mode: &#8220;serve&#8221;, resetOnExit: false },<br \/>\n    remote: { url: &#8220;ws:\/\/\u7f51\u5173.tailnet:18789&#8221;, token: &#8220;remote-token&#8221; },<br \/>\n    reload: { mode: &#8220;hybrid&#8221;, debounceMs: 300 },<br \/>\n  },<\/p>\n<p>skills: {<br \/>\n    allowBundled: [&#8220;gemini&#8221;, &#8220;peekaboo&#8221;],<br \/>\n    load: {<br \/>\n      extraDirs: [&#8220;~\/Projects\/agent-scripts\/skills&#8221;],<br \/>\n    },<br \/>\n    install: {<br \/>\n      preferBrew: true,<br \/>\n      nodeManager: &#8220;npm&#8221;,<br \/>\n    },<br \/>\n    entries: {<br \/>\n      &#8220;nano-banana-pro&#8221;: {<br \/>\n        enabled: true,<br \/>\n        apiKey: &#8220;GEMINI_KEY_HERE&#8221;,<br \/>\n        env: { GEMINI_API_KEY: &#8220;GEMINI_KEY_HERE&#8221; },<br \/>\n      },<br \/>\n      peekaboo: { enabled: true },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u5e38\u89c1\u6a21\u5f0f\n\n### \u591a\u5e73\u53f0\u8bbe\u7f6e\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  agent: { workspace: &quot;~\/.openclaw\/workspace&quot; },\n  channels: {\n    whatsapp: { allowFrom: [&quot;+15555550123&quot;] },\n    telegram: {\n      enabled: true,\n      botToken: &quot;YOUR_TOKEN&quot;,\n      allowFrom: [&quot;123456789&quot;],\n    },\n    discord: {\n      enabled: true,\n      token: &quot;YOUR_TOKEN&quot;,\n      dm: { allowFrom: [&quot;yourname&quot;] },\n    },\n  },\n}\n<\/code><\/pre>\n<h3>OAuth \u5e26 API \u5bc6\u94a5\u56de\u9000<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  auth: {<br \/>\n    profiles: {<br \/>\n      &#8220;anthropic:subscription&#8221;: {<br \/>\n        provider: &#8220;anthropic&#8221;,<br \/>\n        mode: &#8220;oauth&#8221;,<br \/>\n        email: &#8220;me@example.com&#8221;,<br \/>\n      },<br \/>\n      &#8220;anthropic:api&#8221;: {<br \/>\n        provider: &#8220;anthropic&#8221;,<br \/>\n        mode: &#8220;api_key&#8221;,<br \/>\n      },<br \/>\n    },<br \/>\n    order: {<br \/>\n      anthropic: [&#8220;anthropic:subscription&#8221;, &#8220;anthropic:api&#8221;],<br \/>\n    },<br \/>\n  },<br \/>\n  agent: {<br \/>\n    workspace: &#8220;~\/.openclaw\/workspace&#8221;,<br \/>\n    model: {<br \/>\n      primary: &#8220;anthropic\/claude-sonnet-4-5&#8221;,<br \/>\n      fallbacks: [&#8220;anthropic\/claude-opus-4-5&#8221;],<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### Anthropic \u8ba2\u9605 + API \u5bc6\u94a5\uff0cMiniMax \u56de\u9000\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  auth: {\n    profiles: {\n      &quot;anthropic:subscription&quot;: {\n        provider: &quot;anthropic&quot;,\n        mode: &quot;oauth&quot;,\n        email: &quot;user@example.com&quot;,\n      },\n      &quot;anthropic:api&quot;: {\n        provider: &quot;anthropic&quot;,\n        mode: &quot;api_key&quot;,\n      },\n    },\n    order: {\n      anthropic: [&quot;anthropic:subscription&quot;, &quot;anthropic:api&quot;],\n    },\n  },\n  models: {\n    providers: {\n      minimax: {\n        baseUrl: &quot;https:\/\/api.minimax.io\/anthropic&quot;,\n        api: &quot;anthropic-messages&quot;,\n        apiKey: &quot;${MINIMAX_API_KEY}&quot;,\n      },\n    },\n  },\n  agent: {\n    workspace: &quot;~\/.openclaw\/workspace&quot;,\n    model: {\n      primary: &quot;anthropic\/claude-opus-4-5&quot;,\n      fallbacks: [&quot;minimax\/MiniMax-M2.1&quot;],\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u5de5\u4f5c\u673a\u5668\u4eba\uff08\u53d7\u9650\u8bbf\u95ee\uff09<\/h3>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  identity: {<br \/>\n    name: &#8220;WorkBot&#8221;,<br \/>\n    theme: &#8220;professional assistant&#8221;,<br \/>\n  },<br \/>\n  agent: {<br \/>\n    workspace: &#8220;~\/work-openclaw&#8221;,<br \/>\n    elevated: { enabled: false },<br \/>\n  },<br \/>\n  \u6e20\u9053s: {<br \/>\n    slack: {<br \/>\n      enabled: true,<br \/>\n      botToken: &#8220;xoxb-&#8230;&#8221;,<br \/>\n      \u6e20\u9053s: {<br \/>\n        &#8220;#engineering&#8221;: { allow: true, requireMention: true },<br \/>\n        &#8220;#general&#8221;: { allow: true, requireMention: true },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### \u4ec5\u672c\u5730\u6a21\u578b\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  agent: {\n    workspace: &quot;~\/.openclaw\/workspace&quot;,\n    model: { primary: &quot;lmstudio\/minimax-m2.1-gs32&quot; },\n  },\n  models: {\n    mode: &quot;merge&quot;,\n    providers: {\n      lmstudio: {\n        baseUrl: &quot;http:\/\/127.0.0.1:1234\/v1&quot;,\n        apiKey: &quot;lmstudio&quot;,\n        api: &quot;openai-responses&quot;,\n        models: [\n          {\n            id: &quot;minimax-m2.1-gs32&quot;,\n            name: &quot;MiniMax M2.1 GS32&quot;,\n            reasoning: false,\n            input: [&quot;text&quot;],\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n            contextWindow: 196608,\n            maxTokens: 8192,\n          },\n        ],\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u63d0\u793a<\/h2>\n<ul>\n<li>\u5982\u679c\u4f60\u8bbe\u7f6e <code>dmPolicy: \"open\"<\/code>\uff0c\u5339\u914d\u7684 <code>allowFrom<\/code> \u5217\u8868\u5fc5\u987b\u5305\u542b <code>\"*\"<\/code>\u3002<\/li>\n<li>\u63d0\u4f9b\u5546 ID \u5404\u4e0d\u76f8\u540c\uff08\u7535\u8bdd\u53f7\u7801\u3001\u7528\u6237 ID\u3001\u9891\u9053 ID\uff09\u3002\u4f7f\u7528\u63d0\u4f9b\u5546\u6587\u6863\u786e\u8ba4\u683c\u5f0f\u3002<\/li>\n<li>\u7a0d\u540e\u6dfb\u52a0\u7684\u53ef\u9009\u90e8\u5206\uff1a<code>web<\/code>\u3001<code>browser<\/code>\u3001<code>ui<\/code>\u3001<code>discovery<\/code>\u3001<code>canvasHost<\/code>\u3001<code>talk<\/code>\u3001<code>signal<\/code>\u3001<code>imessage<\/code>\u3002<\/li>\n<li>\u53c2\u9605<a href=\"https:\/\/pa.yingzhi8.cn\/?p=41\">\u63d0\u4f9b\u5546<\/a>\u548c<a href=\"https:\/\/pa.yingzhi8.cn\/?p=144\">\u6545\u969c\u6392\u9664<\/a>\u4e86\u89e3\u66f4\u6df1\u5165\u7684\u8bbe\u7f6e\u8bf4\u660e\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e\u793a\u4f8b \u4ee5\u4e0b\u793a\u4f8b\u4e0e\u5f53\u524d\u914d\u7f6e\u6a21\u5f0f\u4e00\u81f4\u3002\u6709\u5173\u8be6\u5c3d\u7684\u53c2\u8003\u548c\u6bcf\u4e2a\u5b57\u6bb5\u7684\u8bf4\u660e\uff0c\u8bf7\u53c2\u9605\u914d\u7f6e\u3002 \u5feb\u901f\u5f00\u59cb \u7edd\u5bf9\u6700\u5c0f\u914d\u7f6e &#038; [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/121\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}