Onboarding (CLI)
This doc describes the current first-run onboarding flow. The goal is a smooth “day 0” experience: configure the Gateway, connect auth, run the wizard, and let the agent bootstrap itself.Onboarding flow
Run the onboarding wizard:- Gateway configuration - Set up the gateway bind, port, and token
- Auth setup - Configure Anthropic OAuth or API keys
- Telegram bot setup - Configure your Telegram bot token
- Service installation - Install the gateway as a launchd/systemd user service
Auth setup
Anthropic OAuth (Claude Pro/Max)
The CLI supports Anthropic OAuth (PKCE flow):~/.crocbot/credentials/oauth.json.
API Keys
Alternatively, configure API keys via environment variables or config:Telegram bot configuration
Configure your Telegram bot token:Agent bootstrap ritual
On the first agent run, crocbot bootstraps a workspace (default~/croc):
- Seeds
AGENTS.md,BOOTSTRAP.md,IDENTITY.md,USER.md - Runs a short Q&A ritual (one question at a time)
- Writes identity + preferences to
IDENTITY.md,USER.md,SOUL.md - Removes
BOOTSTRAP.mdwhen finished so it only runs once
Remote mode notes
When the Gateway runs on another machine, credentials and workspace files live on that host. Create:~/.crocbot/credentials/oauth.json~/.crocbot/agents/<agentId>/agent/auth-profiles.json
