{ "title": "Configuration Examples", "content": "Examples below are aligned with the current config schema. For the exhaustive reference and per-field notes, see [Configuration](/gateway/configuration).\n\nSave to `~/.openclaw/openclaw.json` and you can DM the bot from that number.\n\n### Recommended starter\n\n## Expanded example (major options)\n\n> JSON5 lets you use comments and trailing commas. Regular JSON works too.\n\n### Multi-platform setup\n\n### Secure DM mode (shared inbox / multi-user DMs)\n\nIf more than one person can DM your bot (multiple entries in `allowFrom`, pairing approvals for multiple people, or `dmPolicy: \"open\"`), enable **secure DM mode** so DMs from different senders don’t share one context by default:\n\n### OAuth with API key failover\n\n### Anthropic subscription + API key, MiniMax fallback\n\n### Work bot (restricted access)\n\n### Local models only\n\n* If you set `dmPolicy: \"open\"`, the matching `allowFrom` list must include `\"*\"`.\n* Provider IDs differ (phone numbers, user IDs, channel IDs). Use the provider docs to confirm the format.\n* Optional sections to add later: `web`, `browser`, `ui`, `discovery`, `canvasHost`, `talk`, `signal`, `imessage`.\n* See [Providers](/channels/whatsapp) and [Troubleshooting](/gateway/troubleshooting) for deeper setup notes.", "code_samples": [ { "code": "Save to `~/.openclaw/openclaw.json` and you can DM the bot from that number.\n\n### Recommended starter", "language": "unknown" }, { "code": "## Expanded example (major options)\n\n> JSON5 lets you use comments and trailing commas. Regular JSON works too.", "language": "unknown" }, { "code": "## Common patterns\n\n### Multi-platform setup", "language": "unknown" }, { "code": "### Secure DM mode (shared inbox / multi-user DMs)\n\nIf more than one person can DM your bot (multiple entries in `allowFrom`, pairing approvals for multiple people, or `dmPolicy: \"open\"`), enable **secure DM mode** so DMs from different senders don’t share one context by default:", "language": "unknown" }, { "code": "### OAuth with API key failover", "language": "unknown" }, { "code": "### Anthropic subscription + API key, MiniMax fallback", "language": "unknown" }, { "code": "### Work bot (restricted access)", "language": "unknown" }, { "code": "### Local models only", "language": "unknown" } ], "headings": [ { "level": "h2", "text": "Quick start", "id": "quick-start" }, { "level": "h3", "text": "Absolute minimum", "id": "absolute-minimum" }, { "level": "h3", "text": "Recommended starter", "id": "recommended-starter" }, { "level": "h2", "text": "Expanded example (major options)", "id": "expanded-example-(major-options)" }, { "level": "h2", "text": "Common patterns", "id": "common-patterns" }, { "level": "h3", "text": "Multi-platform setup", "id": "multi-platform-setup" }, { "level": "h3", "text": "Secure DM mode (shared inbox / multi-user DMs)", "id": "secure-dm-mode-(shared-inbox-/-multi-user-dms)" }, { "level": "h3", "text": "OAuth with API key failover", "id": "oauth-with-api-key-failover" }, { "level": "h3", "text": "Anthropic subscription + API key, MiniMax fallback", "id": "anthropic-subscription-+-api-key,-minimax-fallback" }, { "level": "h3", "text": "Work bot (restricted access)", "id": "work-bot-(restricted-access)" }, { "level": "h3", "text": "Local models only", "id": "local-models-only" }, { "level": "h2", "text": "Tips", "id": "tips" } ], "url": "llms-txt#configuration-examples", "links": [] }