Skip to main content

Configuration Examples

Examples below are aligned with the current config schema. For the exhaustive reference and per-field notes, see Configuration.

Quick start

Absolute minimum

Save to ~/.crocbot/crocbot.json and you can DM the bot from that chat ID.

Expanded example (major options)

JSON5 lets you use comments and trailing commas. Regular JSON works too.

Common patterns

Telegram bot setup

OAuth with API key failover

Anthropic subscription + API key, MiniMax fallback

Work bot (restricted access)

Local models only

Tips

  • If you set dmPolicy: "open", the matching allowFrom list must include "*".
  • Provider IDs differ (phone numbers, user IDs, channel IDs). Use the provider docs to confirm the format.
  • Optional sections to add later: web, browser, ui, discovery, talk.
  • See Telegram and Troubleshooting for deeper setup notes.