{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e70e48fc-1e47-4c8f-999b-b1e7da7d12ca",
    "slug": "snapclaw",
    "name": "snapclaw",
    "description": "Your own AI agent with Telegram. One-click deploy, browser setup",
    "url": "https://railway.com/deploy/snapclaw",
    "upstream": {
      "repo_url": "https://github.com/balukov/snapclaw"
    }
  },
  "services": [
    {
      "name": "snapclaw",
      "source": {
        "repo": "https://github.com/balukov/snapclaw"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SETUP_PASSWORD",
      "service": "snapclaw",
      "description": "Provide a value for SETUP_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENCLAW_GIT_REF",
      "service": "snapclaw",
      "description": "Provide a value for OPENCLAW_GIT_REF.",
      "secret": false,
      "strategy": "default",
      "default": "v2026.4.2"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "snapclaw",
      "description": "Provide a value for OPENCLAW_STATE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "snapclaw",
      "description": "Generate a random secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "snapclaw",
      "description": "Provide a value for OPENCLAW_WORKSPACE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "snapclaw"
      }
    },
    "cli": "railway deploy --template snapclaw",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e70e48fc-1e47-4c8f-999b-b1e7da7d12ca",
            "serializedConfig": {
              "services": {
                "fc9ba268-0b9e-4a16-8373-6bbc5fb6db12": {
                  "name": "snapclaw",
                  "deploy": {
                    "healthcheckPath": "/setup/healthz"
                  },
                  "source": {
                    "repo": "balukov/snapclaw",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "SETUP_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "OPENCLAW_GIT_REF": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "v2026.4.2"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Generate a random secret",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data/workspace"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "fc9ba268-0b9e-4a16-8373-6bbc5fb6db12": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "snapclaw",
      "method": "GET",
      "path": "/setup/healthz",
      "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-18T07:27:36.403Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_8cb7d8c6ac1e46fc84ac",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ]
  }
}
