diff --git a/docs/platforms/fly.md b/docs/platforms/fly.md index 6391a02e9..5d9a3827f 100644 --- a/docs/platforms/fly.md +++ b/docs/platforms/fly.md @@ -32,7 +32,7 @@ cd clawdbot fly apps create my-clawdbot # Create a persistent volume (1GB is usually enough) -fly volumes create clawdbot_data --size 1 --region lhr +fly volumes create clawdbot_data --size 1 --region iad ``` **Tip:** Choose a region close to you. Common options: `lhr` (London), `iad` (Virginia), `sjc` (San Jose). @@ -43,7 +43,7 @@ Edit `fly.toml` to match your app name and requirements: ```toml app = "my-clawdbot" # Your app name -primary_region = "lhr" +primary_region = "iad" [build] dockerfile = "Dockerfile" @@ -134,14 +134,14 @@ fly ssh console Create the config directory and file: ```bash -mkdir -p /data/.clawdbot -cat > /data/.clawdbot/clawdbot.json << 'EOF' +mkdir -p /data +cat > /data/clawdbot.json << 'EOF' { "agents": { "defaults": { "model": { "primary": "anthropic/claude-opus-4-5", - "failover": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"] + "fallbacks": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"] }, "maxConcurrent": 4 }, @@ -187,6 +187,8 @@ cat > /data/.clawdbot/clawdbot.json << 'EOF' EOF ``` +**Note:** With `CLAWDBOT_STATE_DIR=/data`, the config path is `/data/clawdbot.json`. + **Note:** The Discord token can come from either: - Environment variable: `DISCORD_BOT_TOKEN` (recommended for secrets) - Config file: `channels.discord.token` diff --git a/fly.toml b/fly.toml index e8cc594d8..452672aa3 100644 --- a/fly.toml +++ b/fly.toml @@ -15,7 +15,7 @@ primary_region = "iad" # change to your closest region NODE_OPTIONS = "--max-old-space-size=1536" [processes] - app = "node dist/index.js gateway --port 3000 --bind lan" + app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan" [http_service] internal_port = 3000