{
  "manifest_version": "1.0.0",
  "template": {
    "id": "21058e99-9d1a-4866-91f1-e601d887de40",
    "slug": "clodds",
    "name": "Clodds",
    "description": "AI trading terminal for prediction markets & crypto, powered by Claude",
    "url": "https://railway.com/deploy/clodds",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/clodds"
    }
  },
  "services": [
    {
      "name": "clodds",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/clodds"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "clodds",
      "description": "HTTP gateway port. Must stay 18789 — it matches the Railway domain target port configured in this template.",
      "secret": false,
      "strategy": "default",
      "default": "18789"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "clodds",
      "description": "REQUIRED. Anthropic API key that powers the AI agent (sk-ant-...). Get one at https://console.anthropic.com. The app will not start without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "clodds"
      }
    },
    "cli": "railway deploy --template clodds",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "21058e99-9d1a-4866-91f1-e601d887de40",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0a8548dc-3fa9-4c4b-b981-1e43af7f7c82": {
                  "icon": null,
                  "name": "clodds",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/clodds",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP gateway port. Must stay 18789 — it matches the Railway domain target port configured in this template.",
                      "defaultValue": "18789"
                    },
                    "CLODDS_TOKEN": {
                      "isOptional": true,
                      "description": "Optional secret token for gateway API access. Recommended for public deployments. Leave empty to allow unauthenticated local API access.",
                      "defaultValue": ""
                    },
                    "WEBCHAT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional auth token required by the built-in WebChat client. Leave empty for open WebChat access.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": false,
                      "description": "REQUIRED. Anthropic API key that powers the AI agent (sk-ant-...). Get one at https://console.anthropic.com. The app will not start without it.",
                      "defaultValue": "{{ANTHROPIC_API_KEY}}"
                    },
                    "DISCORD_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Discord bot token to enable the Discord channel. Leave empty to skip.",
                      "defaultValue": ""
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Telegram bot token from @BotFather to enable the Telegram channel. Leave empty to skip (WebChat works without any channel).",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:18789": {
                        "port": 18789
                      }
                    }
                  },
                  "volumeMounts": {
                    "0a8548dc-3fa9-4c4b-b981-1e43af7f7c82": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T20:12:52.952Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_41677513a3514b0e9552",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 282,
    "typical_build_seconds": 152,
    "typical_start_seconds": 20,
    "slowest_service": "clodds"
  }
}
