{
  "manifest_version": "1.0.0",
  "template": {
    "id": "326ae987-96c1-4679-a972-7b52e0803c59",
    "slug": "nanoclaw-1",
    "name": "Nanoclaw",
    "description": "Personal Claude AI assistant for Slack, Telegram, Discord, WhatsApp, Gmail",
    "url": "https://railway.com/deploy/nanoclaw-1",
    "upstream": {
      "repo_url": "https://github.com/mc9max/nanoclaw-railway"
    }
  },
  "services": [
    {
      "name": "nanoclaw",
      "source": {
        "repo": "https://github.com/mc9max/nanoclaw-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "nanoclaw",
      "description": "Timezone for message timestamps and scheduled tasks (e.g. America/Los_Angeles).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "ASSISTANT_NAME",
      "service": "nanoclaw",
      "description": "Bot display name. On first startup, a chat group with this exact name is auto-registered as the main group.",
      "secret": false,
      "strategy": "default",
      "default": "Andy"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "nanoclaw",
      "description": "API key for Claude model access from console.anthropic.com. Required — the bot cannot start without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ASSISTANT_HAS_OWN_NUMBER",
      "service": "nanoclaw",
      "description": "Set true only if the WhatsApp number is NOT a secondary number (i.e. the bot owns its only number).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nanoclaw-1"
      }
    },
    "cli": "railway deploy --template nanoclaw-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "326ae987-96c1-4679-a972-7b52e0803c59",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b62c7882-bad3-4f12-810f-bb213b8df1cc": {
                  "icon": null,
                  "name": "nanoclaw",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/nanoclaw-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for message timestamps and scheduled tasks (e.g. America/Los_Angeles).",
                      "defaultValue": "UTC"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "GitHub personal access token — only needed to install skills from private repos.",
                      "defaultValue": ""
                    },
                    "ASSISTANT_NAME": {
                      "isOptional": false,
                      "description": "Bot display name. On first startup, a chat group with this exact name is auto-registered as the main group.",
                      "defaultValue": "Andy"
                    },
                    "WHATSAPP_PHONE": {
                      "isOptional": true,
                      "description": "WhatsApp bot phone number in international format, no plus sign (e.g. 12125551234). Leave empty to skip the WhatsApp channel.",
                      "defaultValue": ""
                    },
                    "GMAIL_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Google OAuth 2.0 Client ID for the Gmail channel (Desktop app type). Leave empty to skip the Gmail channel.",
                      "defaultValue": ""
                    },
                    "SLACK_APP_TOKEN": {
                      "isOptional": true,
                      "description": "Slack App-Level Token for Socket Mode (xapp-...).",
                      "defaultValue": ""
                    },
                    "SLACK_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Slack Bot User OAuth Token (xoxb-...). Leave empty to skip the Slack channel.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": false,
                      "description": "API key for Claude model access from console.anthropic.com. Required — the bot cannot start without it.",
                      "defaultValue": "{{ANTHROPIC_API_KEY}}"
                    },
                    "DISCORD_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Discord bot token from the Discord Developer Portal (enable Message Content Intent). Leave empty to skip the Discord channel.",
                      "defaultValue": ""
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Telegram bot token from @BotFather (123456:ABC-...). Leave empty to skip the Telegram channel.",
                      "defaultValue": ""
                    },
                    "GMAIL_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Google OAuth Client Secret.",
                      "defaultValue": ""
                    },
                    "GMAIL_REFRESH_TOKEN": {
                      "isOptional": true,
                      "description": "Google OAuth refresh token (see README for the oauth playground flow).",
                      "defaultValue": ""
                    },
                    "SLACK_MAIN_CHANNEL_ID": {
                      "isOptional": true,
                      "description": "Optional Slack channel ID auto-registered as the main group on first startup.",
                      "defaultValue": ""
                    },
                    "ASSISTANT_HAS_OWN_NUMBER": {
                      "isOptional": false,
                      "description": "Set true only if the WhatsApp number is NOT a secondary number (i.e. the bot owns its only number).",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "b62c7882-bad3-4f12-810f-bb213b8df1cc": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-27T16:14:48.401Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-27T14:00:03.040Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2ed3182314f8477b9ff4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 279,
    "typical_build_seconds": 252,
    "typical_start_seconds": 10,
    "slowest_service": "nanoclaw"
  }
}
