{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d1ca0e90-f03b-44ee-81de-b8eba566ec17",
    "slug": "free-the-claw",
    "name": "free-the-claw",
    "description": "Free Openclaw via Nvidia NIM + Claude Code",
    "url": "https://railway.com/deploy/free-the-claw",
    "upstream": {
      "repo_url": "https://github.com/polats/free-the-claw"
    }
  },
  "services": [
    {
      "name": "openclaw",
      "source": {
        "repo": "https://github.com/polats/free-the-claw"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/.openclaw",
      "http": true
    },
    {
      "name": "claude-code-free",
      "source": {
        "repo": "https://github.com/polats/free-the-claw"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOME",
      "service": "openclaw",
      "description": "Home directory for the node user",
      "secret": false,
      "strategy": "default",
      "default": "/home/node"
    },
    {
      "key": "MODEL",
      "service": "openclaw",
      "description": "NVIDIA NIM model name",
      "secret": false,
      "strategy": "default",
      "default": "stepfun-ai/step-3.5-flash"
    },
    {
      "key": "PROXY_URL",
      "service": "openclaw",
      "description": "Internal URL of the claude-code-free",
      "secret": false,
      "strategy": "default",
      "default": "http://claude-code-free.railway.internal:8082"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "openclaw",
      "description": "Placeholder key (proxied through     claude-code-free)",
      "secret": true,
      "strategy": "default",
      "default": "sk-placeholder"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "openclaw",
      "description": "Access token for the gateway UI (add #token=[OPENCLAW_GATEWAY_TOKEN] to the URL)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "openclaw",
      "description": "Dockerfile to build this service",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.openclaw.railway"
    },
    {
      "key": "MODEL",
      "service": "claude-code-free",
      "description": "NVIDIA NIM model to use",
      "secret": false,
      "strategy": "default",
      "default": "nvidia_nim/qwen/qwen3.5-122b-a10b"
    },
    {
      "key": "NVIDIA_NIM_API_KEY",
      "service": "claude-code-free",
      "description": "Your NVIDIA NIM API key from https://build.nvidia.com/settings/api-keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "claude-code-free",
      "description": "Dockerfile to build this service",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.claude-code-free.railway"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "free-the-claw"
      }
    },
    "cli": "railway deploy --template free-the-claw",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d1ca0e90-f03b-44ee-81de-b8eba566ec17",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "97c747d4-2f79-449c-a5d8-00ec2e11e0f5": {
                  "icon": null,
                  "name": "openclaw",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "polats/free-the-claw",
                    "branch": "deploy",
                    "rootDirectory": null
                  },
                  "variables": {
                    "HOME": {
                      "isOptional": false,
                      "description": "Home directory for the node user",
                      "defaultValue": "/home/node"
                    },
                    "MODEL": {
                      "isOptional": false,
                      "description": "NVIDIA NIM model name",
                      "defaultValue": "stepfun-ai/step-3.5-flash"
                    },
                    "PROXY_URL": {
                      "isOptional": false,
                      "description": "Internal URL of the claude-code-free",
                      "defaultValue": "http://claude-code-free.railway.internal:8082"
                    },
                    "COMFY_UI_API_KEY": {
                      "isOptional": true,
                      "description": "Reply with gen AI content, get on cloud.comfy.org",
                      "defaultValue": ""
                    },
                    "GITHUB_PAT_TOKEN": {
                      "isOptional": true,
                      "description": "To define agent persona via github profile and allow git operations",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": false,
                      "description": "Placeholder key (proxied through     claude-code-free)",
                      "defaultValue": "sk-placeholder"
                    },
                    "TWITTER_CLIENT_ID": {
                      "isOptional": true,
                      "description": "OAuth 2.0 Client ID (used for token refresh)",
                      "defaultValue": ""
                    },
                    "TWITTER_BEARER_TOKEN": {
                      "isOptional": true,
                      "description": "OAuth 2.0 access token (used for all API calls — expires every 2 hours)",
                      "defaultValue": ""
                    },
                    "TWITTER_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "OAuth 2.0 Client Secret (used for token refresh)",
                      "defaultValue": ""
                    },
                    "TWITTER_REFRESH_TOKEN": {
                      "isOptional": true,
                      "description": "Refresh token (used to get a new bearer token when it expires)",
                      "defaultValue": ""
                    },
                    "ETH_WALLET_PRIVATE_KEY": {
                      "isOptional": true,
                      "description": "To create and interact with smart contracts. CREATE A BURNER AND DON'T USE YOUR PERSONAL KEYS",
                      "defaultValue": ""
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Access token for the gateway UI (add #token=[OPENCLAW_GATEWAY_TOKEN] to the URL)",
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile to build this service",
                      "defaultValue": "Dockerfile.openclaw.railway"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "97c747d4-2f79-449c-a5d8-00ec2e11e0f5": {
                      "mountPath": "/home/node/.openclaw"
                    }
                  }
                },
                "a95dc145-0483-4d9d-a9f0-d92f952b198b": {
                  "icon": null,
                  "name": "claude-code-free",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/polats/free-the-claw",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MODEL": {
                      "isOptional": false,
                      "description": "NVIDIA NIM model to use",
                      "defaultValue": "nvidia_nim/qwen/qwen3.5-122b-a10b"
                    },
                    "NVIDIA_NIM_API_KEY": {
                      "isOptional": false,
                      "description": "Your NVIDIA NIM API key from https://build.nvidia.com/settings/api-keys",
                      "defaultValue": "{{NVIDIA_NIM_API_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile to build this service",
                      "defaultValue": "Dockerfile.claude-code-free.railway"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T12:55:54.493Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0b149458b68c41aa9aed",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 349,
    "typical_build_seconds": 295,
    "typical_start_seconds": 26,
    "slowest_service": "openclaw"
  }
}
