{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dc64f3e7-1912-4b88-bcd2-d1ef4937f97e",
    "slug": "rakazo-1",
    "name": "Rakazo",
    "description": "Persistent AI teammates with memory and routines. BYO model key",
    "url": "https://railway.com/deploy/rakazo-1",
    "upstream": {
      "image": "ghcr.io/hmseeb/rakazo-railway/app:v0.1.6-r1"
    }
  },
  "services": [
    {
      "name": "Rakazo",
      "source": {
        "image": "ghcr.io/hmseeb/rakazo-railway/app:v0.1.6-r1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Rakazo",
      "description": "Pinned to the port the public domain targets. Railway injects 8080 otherwise and the healthcheck drifts off the real listener.",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "API_URL",
      "service": "Rakazo",
      "description": "Provide a value for API_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_DIR",
      "service": "Rakazo",
      "description": "Provide a value for DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "NODE_ENV",
      "service": "Rakazo",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "WEB_ORIGIN",
      "service": "Rakazo",
      "description": "Provide a value for WEB_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAKAZO_HOST",
      "service": "Rakazo",
      "description": "The web server only answers requests for this hostname (vite allowedHosts). It is the public domain and never needs changing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Rakazo",
      "description": "Wired to the Postgres service in this template.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Rakazo",
      "description": "Encrypts the provider keys and bot secrets people add inside the app. Generated for you. Changing it makes every stored key permanently unreadable, so leave it alone.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "Rakazo",
      "description": "Provide a value for BETTER_AUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SIGNUPS_ENABLED",
      "service": "Rakazo",
      "description": "The first registered user becomes the deployment owner. Set to false after registering to close the instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SANDBOX_PROVIDER",
      "service": "Rakazo",
      "description": "Where bot computers run: none, e2b, daytona or box. Docker is not possible on Railway, so the default is none: bots chat and use tools but cannot open a desktop. Pick a provider and fill in its API key below to enable computers. Safe to change later with a redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "none"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "Rakazo",
      "description": "Signs everyone's sessions. Generated for you. Changing it signs everybody out; it loses no data.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PI_DEFAULT_PROVIDER",
      "service": "Rakazo",
      "description": "Provide a value for PI_DEFAULT_PROVIDER.",
      "secret": false,
      "strategy": "default",
      "default": "openrouter"
    },
    {
      "key": "SCREEN_PROXY_SECRET",
      "service": "Rakazo",
      "description": "Guards the noVNC screen proxy used when bots have computers. Generated for you. Unused while SANDBOX_PROVIDER is none.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Where the database is initialized. A subdirectory of the mount, because a volume root is never empty and initdb refuses a non-empty directory.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Provide a value for SSL_CERT_DAYS.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rakazo-1"
      }
    },
    "cli": "railway deploy --template rakazo-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dc64f3e7-1912-4b88-bcd2-d1ef4937f97e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "61df4e4b-7582-4178-8545-92517f6b1663": {
                  "icon": "https://rakazo.com/favicon.svg",
                  "name": "Rakazo",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/auth/capabilities",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/rakazo-railway/app:v0.1.6-r1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Pinned to the port the public domain targets. Railway injects 8080 otherwise and the healthcheck drifts off the real listener.",
                      "defaultValue": "5173"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "defaultValue": "production"
                    },
                    "WEB_ORIGIN": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BOX_API_KEY": {
                      "isOptional": true,
                      "description": "Only when SANDBOX_PROVIDER is box.",
                      "defaultValue": ""
                    },
                    "E2B_API_KEY": {
                      "isOptional": true,
                      "description": "Only when SANDBOX_PROVIDER is e2b.",
                      "defaultValue": ""
                    },
                    "RAKAZO_HOST": {
                      "isOptional": false,
                      "description": "The web server only answers requests for this hostname (vite allowedHosts). It is the public domain and never needs changing.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Wired to the Postgres service in this template.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts the provider keys and bot secrets people add inside the app. Generated for you. Changing it makes every stored key permanently unreadable, so leave it alone.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DAYTONA_API_KEY": {
                      "isOptional": true,
                      "description": "Only when SANDBOX_PROVIDER is daytona.",
                      "defaultValue": ""
                    },
                    "SIGNUPS_ENABLED": {
                      "isOptional": false,
                      "description": "The first registered user becomes the deployment owner. Set to false after registering to close the instance.",
                      "defaultValue": "true"
                    },
                    "SANDBOX_PROVIDER": {
                      "isOptional": false,
                      "description": "Where bot computers run: none, e2b, daytona or box. Docker is not possible on Railway, so the default is none: bots chat and use tools but cannot open a desktop. Pick a provider and fill in its API key below to enable computers. Safe to change later with a redeploy.",
                      "defaultValue": "none"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs everyone's sessions. Generated for you. Changing it signs everybody out; it loses no data.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Deployment-wide fallback model key. Optional: a model can also be connected in the UI after signup, where the app verifies the key before storing it. Every model call is billed to the key you provide.",
                      "defaultValue": ""
                    },
                    "PI_DEFAULT_PROVIDER": {
                      "isOptional": false,
                      "defaultValue": "openrouter"
                    },
                    "SCREEN_PROXY_SECRET": {
                      "isOptional": false,
                      "description": "Guards the noVNC screen proxy used when bots have computers. Generated for you. Unused while SANDBOX_PROVIDER is none.",
                      "defaultValue": "{{SCREEN_PROXY_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5173": {
                        "port": 5173
                      }
                    }
                  },
                  "volumeMounts": {
                    "61df4e4b-7582-4178-8545-92517f6b1663": {
                      "mountPath": "/data"
                    }
                  }
                },
                "9365b9a9-72ca-4ff0-bfd3-e9e2e64d300e": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Where the database is initialized. A subdirectory of the mount, because a volume root is never empty and initdb refuses a non-empty directory.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "9365b9a9-72ca-4ff0-bfd3-e9e2e64d300e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Rakazo",
      "method": "GET",
      "path": "/api/auth/capabilities",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T10:15:32.259Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_db81757a450a4a8c8590",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 111,
    "typical_build_seconds": 0,
    "typical_start_seconds": 62,
    "slowest_service": "Rakazo"
  }
}
