max setup walks you through configuring Max. Run it once before max start, or re-run it any time to update your settings.
~/.max/ if it does not exist, loads any existing values, and writes the final configuration to ~/.max/.env.
What it configures
| Setting | Required | Description |
|---|---|---|
| Telegram bot token | No | Connects Max to a Telegram bot you own |
| Authorized user ID | No (but required if Telegram enabled) | Locks the bot to your Telegram user ID |
| Google services | No | Guides gog CLI setup for Gmail, Calendar, and Drive |
| Default model | Yes | The Copilot model Max uses by default |
Wizard walkthrough
Introduction
The wizard prints an overview of Max’s capabilities — coding sessions, skills, and the two ways to talk to Max (TUI and Telegram). Press Enter to continue.
Telegram setup (optional)
You are asked whether to set up Telegram. If you answer yes, the wizard guides you through three sub-steps:
- Create a bot — open
@BotFatheron Telegram, send/newbot, and paste the bot token. - Lock it down — find your numeric Telegram user ID via
@userinfobotand enter it. Only this user ID will be able to send commands to Max. - Disable group joins (recommended) — use
@BotFather→Bot Settings→Allow Groups?→ Disable.
max setup.Google services setup (optional)
Max includes a
gogcli skill for Gmail, Calendar, and Drive. The wizard guides you through:- Install the
gogCLI —brew install steipete/tap/gogcli - Create OAuth credentials in Google Cloud Console and run
gog auth credentials <path-to-json>. - Authenticate with
gog auth add [email protected].
Select a default model
The wizard queries the Copilot SDK for available models and presents a numbered list. Use the arrow keys or enter a number to pick one. Press Enter to accept the highlighted default.If the Copilot CLI is not yet authenticated, a curated fallback list is shown instead:
claude-sonnet-4.6— Fast, great for most tasksgpt-5.1— OpenAI’s fast modelgpt-4.1— Free included model
/model <name>, or just by telling Max in plain English.Config file
All settings are stored in~/.max/.env as plain KEY=VALUE pairs:
| Variable | Description |
|---|---|
TELEGRAM_BOT_TOKEN | Bot token from @BotFather. Omitted if Telegram was skipped. |
AUTHORIZED_USER_ID | Your Telegram user ID. Omitted if Telegram was skipped. |
API_PORT | Port the HTTP API listens on. Defaults to 7777. |
COPILOT_MODEL | Model ID used by the orchestrator. Defaults to claude-sonnet-4.6. |
You can edit
~/.max/.env directly at any time. Changes take effect on the next max start.