{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8f9ee8c3-0395-4ce5-9e03-b9b609f041fb",
    "slug": "goclaw",
    "name": "goclaw",
    "description": "Multi-tenant Go AI agent platform with dashboard, memory, and 20+ providers",
    "url": "https://railway.com/deploy/goclaw",
    "upstream": {
      "image": "ghcr.io/nextlevelbuilder/goclaw:v3.3.0"
    }
  },
  "services": [
    {
      "name": "app",
      "source": {
        "image": "ghcr.io/nextlevelbuilder/goclaw:v3.3.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "pgvector/pgvector:pg18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "app",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "18790"
    },
    {
      "key": "GOCLAW_HOST",
      "service": "app",
      "description": "Provide a value for GOCLAW_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "GOCLAW_PORT",
      "service": "app",
      "description": "Provide a value for GOCLAW_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "18790"
    },
    {
      "key": "GOCLAW_CONFIG",
      "service": "app",
      "description": "Provide a value for GOCLAW_CONFIG.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/config.json"
    },
    {
      "key": "GOCLAW_SKILLS_DIR",
      "service": "app",
      "description": "Provide a value for GOCLAW_SKILLS_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/skills"
    },
    {
      "key": "GOCLAW_POSTGRES_DSN",
      "service": "app",
      "description": "Provide a value for GOCLAW_POSTGRES_DSN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GOCLAW_GATEWAY_TOKEN",
      "service": "app",
      "description": "Provide a value for GOCLAW_GATEWAY_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOCLAW_ENCRYPTION_KEY",
      "service": "app",
      "description": "Provide a value for GOCLAW_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "goclaw"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "goclaw"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "goclaw"
      }
    },
    "cli": "railway deploy --template goclaw",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8f9ee8c3-0395-4ce5-9e03-b9b609f041fb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6cabdbd4-d236-4aec-a9f1-545220e27800": {
                  "icon": null,
                  "name": "app",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/nextlevelbuilder/goclaw:v3.3.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "18790"
                    },
                    "GOCLAW_HOST": {
                      "isOptional": false,
                      "defaultValue": "0.0.0.0"
                    },
                    "GOCLAW_PORT": {
                      "isOptional": false,
                      "defaultValue": "18790"
                    },
                    "GOCLAW_CONFIG": {
                      "isOptional": false,
                      "defaultValue": "/app/data/config.json"
                    },
                    "GOCLAW_SKILLS_DIR": {
                      "isOptional": false,
                      "defaultValue": "/app/data/skills"
                    },
                    "GOCLAW_POSTGRES_DSN": {
                      "isOptional": false,
                      "defaultValue": "postgres://goclaw:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/goclaw?sslmode=disable"
                    },
                    "GOCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{GOCLAW_GATEWAY_TOKEN}}"
                    },
                    "GOCLAW_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{GOCLAW_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "d2b9144e-8184-49b9-92b8-1e5cbe3d0251": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg18"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "goclaw"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "goclaw"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d2b9144e-8184-49b9-92b8-1e5cbe3d0251": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T09:38:44.083Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8c3e2926c0d64a3ba40a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 28,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "app"
  }
}
