{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4ec1c33c-db52-4e1e-b22b-a904582d81e7",
    "slug": "ministers-template",
    "name": "Ministers Template",
    "description": "Ministers T is a ready-to-run AI Chief of Staff",
    "url": "https://railway.com/deploy/ministers-template",
    "upstream": {
      "repo_url": "https://github.com/Cojackhq/dizerclaw-railway-template"
    }
  },
  "services": [
    {
      "name": "dizerclaw-railway-template",
      "source": {
        "repo": "https://github.com/Cojackhq/dizerclaw-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed based on your region, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "Asia/Riyadh"
    },
    {
      "key": "PORT",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NODE_ENV",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "ENABLE_WEB_TUI",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "dizerclaw-railway-template",
      "description": "Admin secret password make it strong",
      "secret": true,
      "strategy": "default",
      "default": "Strong password"
    },
    {
      "key": "TELEGRAM_TOKEN",
      "service": "dizerclaw-railway-template",
      "description": "Create a bot in 60 seconds at https://t.me/BotFather  \" # Your Telegram bot token from @BotFather (t.me/BotFather)     ",
      "secret": true,
      "strategy": "default",
      "default": "Your Telegram bot token from @BotFather"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "dizerclaw-railway-template",
      "description": "Agent workspace and memory directory. Leave as default. Workspace. can be changed to Ian but will create a loop",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "dizerclaw-railway-template",
      "description": "API key from openrouter.io — access to Claude, GPT-4, and more. Free tier available.",
      "secret": true,
      "strategy": "default",
      "default": "If open router is used, this is where ypu point at"
    },
    {
      "key": "ANTHROPIC_BASE_URL",
      "service": "dizerclaw-railway-template",
      "description": "only when using antrhoptic under open router.",
      "secret": false,
      "strategy": "default",
      "default": "https://openrouter.ai/api/v1"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENROUTER_API_KEY",
      "service": "dizerclaw-railway-template",
      "description": "API key from openrouter.io — access to Claude, GPT-4, and more. Free tier available.",
      "secret": true,
      "strategy": "default",
      "default": "OpenRouter key (or swap for ANTHROPIC_API_KEY"
    },
    {
      "key": "TELEGRAM_BOT_TOKEN",
      "service": "dizerclaw-railway-template",
      "description": "Create a bot in 60 seconds at https://t.me/BotFather  \" # Your Telegram bot token from @BotFather (t.me/BotFather)     ",
      "secret": true,
      "strategy": "default",
      "default": "Your Telegram bot token from @BotFather"
    },
    {
      "key": "OPENCLAW_GATEWAY_BIND",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "lan"
    },
    {
      "key": "OPENCLAW_ALLOWED_USERS",
      "service": "dizerclaw-railway-template",
      "description": "Create a bot in 10 seconds from provider",
      "secret": false,
      "strategy": "default",
      "default": "Telegram, discord or whatsap user ID"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "dizerclaw-railway-template",
      "description": "Admin secret token for the OpenClaw gateway. Auto-generated.",
      "secret": true,
      "strategy": "default",
      "default": "Your secret admin token. Generate with: openssl rand -hex 32 — keep it safe, this protects your agent"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "dizerclaw-railway-template",
      "description": "# OpenClaw state and config directory. Leave as default: /data/.openclaw  ",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    },
    {
      "key": "OPENCLAW_TRUSTED_PROXIES",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10"
    },
    {
      "key": "OPENCLAW_TELEGRAM_ALLOWED_USERS",
      "service": "dizerclaw-railway-template",
      "description": "Create a bot in 10 seconds from telegram",
      "secret": false,
      "strategy": "default",
      "default": "Telegram user id from telegram"
    },
    {
      "key": "OPENCLAW_CONTROL_UI_ALLOWED_ORIGINS",
      "service": "dizerclaw-railway-template",
      "description": "Can be changed, preferably to use as its",
      "secret": false,
      "strategy": "default",
      "default": "*"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ministers-template"
      }
    },
    "cli": "railway deploy --template ministers-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4ec1c33c-db52-4e1e-b22b-a904582d81e7",
            "serializedConfig": {
              "services": {
                "65b4d3e5-ac2c-4fba-adde-dafa91ddf356": {
                  "icon": "https://raw.githubusercontent.com/Cojackhq/dizerclaw-railway-template/main/zuril-icon.jpg",
                  "name": "dizerclaw-railway-template",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "Cojackhq/dizerclaw-railway-template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "description": "Can be changed based on your region, preferably to use as its",
                      "defaultValue": "Asia/Riyadh"
                    },
                    "PORT": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "8080"
                    },
                    "NODE_ENV": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "production"
                    },
                    "ENABLE_WEB_TUI": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "true"
                    },
                    "SETUP_PASSWORD": {
                      "description": "Admin secret password make it strong",
                      "defaultValue": "Strong password"
                    },
                    "TELEGRAM_TOKEN": {
                      "description": "Create a bot in 60 seconds at https://t.me/BotFather  \" # Your Telegram bot token from @BotFather (t.me/BotFather)     ",
                      "defaultValue": "Your Telegram bot token from @BotFather"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Agent workspace and memory directory. Leave as default. Workspace. can be changed to Ian but will create a loop",
                      "defaultValue": "0"
                    },
                    "ANTHROPIC_API_KEY": {
                      "description": "API key from openrouter.io — access to Claude, GPT-4, and more. Free tier available.",
                      "defaultValue": "If open router is used, this is where ypu point at"
                    },
                    "ANTHROPIC_BASE_URL": {
                      "description": "only when using antrhoptic under open router.",
                      "defaultValue": "https://openrouter.ai/api/v1"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": false,
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": false,
                      "description": "API key from openrouter.io — access to Claude, GPT-4, and more. Free tier available.",
                      "defaultValue": "OpenRouter key (or swap for ANTHROPIC_API_KEY"
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Create a bot in 60 seconds at https://t.me/BotFather  \" # Your Telegram bot token from @BotFather (t.me/BotFather)     ",
                      "defaultValue": "Your Telegram bot token from @BotFather"
                    },
                    "OPENCLAW_GATEWAY_BIND": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "lan"
                    },
                    "OPENCLAW_ALLOWED_USERS": {
                      "description": "Create a bot in 10 seconds from provider",
                      "defaultValue": "Telegram, discord or whatsap user ID"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Admin secret token for the OpenClaw gateway. Auto-generated.",
                      "defaultValue": "Your secret admin token. Generate with: openssl rand -hex 32 — keep it safe, this protects your agent"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": false,
                      "description": "# OpenClaw state and config directory. Leave as default: /data/.openclaw  ",
                      "defaultValue": "/data/workspace"
                    },
                    "OPENCLAW_TRUSTED_PROXIES": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "100.64.0.0/10"
                    },
                    "OPENCLAW_TELEGRAM_ALLOWED_USERS": {
                      "description": "Create a bot in 10 seconds from telegram",
                      "defaultValue": "Telegram user id from telegram"
                    },
                    "OPENCLAW_CONTROL_UI_ALLOWED_ORIGINS": {
                      "description": "Can be changed, preferably to use as its",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "65b4d3e5-ac2c-4fba-adde-dafa91ddf356": {
                      "mountPath": "/data",
                      "backupSchedules": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dizerclaw-railway-template",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T12:28:45.937Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_d0198809d5894e828dd8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
