{
  "manifest_version": "1.0.0",
  "template": {
    "id": "798c79af-164f-4fd2-9c68-faa0060c24b4",
    "slug": "cliproxyapi",
    "name": "CLIProxyAPI | (Just Updated) Your Subscription as an API, Key-Locked From Boot",
    "description": "OpenAI-compatible proxy for your CLI plans, API key enforced from boot",
    "url": "https://railway.com/deploy/cliproxyapi",
    "upstream": {
      "image": "eceasy/cli-proxy-api@sha256:7145258f0bec00e12d6fa19488baaa15768c0e234538ce80528d0da9bc6aef2b"
    }
  },
  "services": [
    {
      "name": "cliproxyapi",
      "source": {
        "image": "eceasy/cli-proxy-api@sha256:7145258f0bec00e12d6fa19488baaa15768c0e234538ce80528d0da9bc6aef2b"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "API_KEY",
      "service": "cliproxyapi",
      "description": "Provide a value for API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MANAGEMENT_PASSWORD",
      "service": "cliproxyapi",
      "description": "Provide a value for MANAGEMENT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cliproxyapi"
      }
    },
    "cli": "railway deploy --template cliproxyapi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "798c79af-164f-4fd2-9c68-faa0060c24b4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0de1b0c9-cb30-4345-9402-2fcd9664775c": {
                  "icon": null,
                  "name": "cliproxyapi",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /data/auths; if [ ! -f /data/config.yaml ]; then echo cG9ydDogUE9SVE5VTQpyZW1vdGUtbWFuYWdlbWVudDoKICBhbGxvdy1yZW1vdGU6IHRydWUKICBzZWNyZXQta2V5OiBNR01US0VZCmF1dGgtZGlyOiAvZGF0YS9hdXRocwphcGkta2V5czoKICAtIEFQSUtFWVZBTApkZWJ1ZzogZmFsc2UK | base64 -d > /data/config.yaml; fi; sed -i s/PORTNUM/${PORT:-8317}/ /data/config.yaml; sed -i s/MGMTKEY/$MANAGEMENT_PASSWORD/ /data/config.yaml; sed -i s/APIKEYVAL/$API_KEY/ /data/config.yaml; exec /CLIProxyAPI/CLIProxyAPI --config /data/config.yaml\"",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "eceasy/cli-proxy-api@sha256:7145258f0bec00e12d6fa19488baaa15768c0e234538ce80528d0da9bc6aef2b"
                  },
                  "variables": {
                    "API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{API_KEY}}"
                    },
                    "MANAGEMENT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MANAGEMENT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "0de1b0c9-cb30-4345-9402-2fcd9664775c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "cliproxyapi",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T04:14:34.944Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:17:32.036Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5070da83d58b4550a040",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 22,
    "typical_build_seconds": 0,
    "typical_start_seconds": 8,
    "slowest_service": "cliproxyapi"
  }
}
