{
  "manifest_version": "1.0.0",
  "template": {
    "id": "27e5f545-ba63-4fe6-835b-6443027a3e54",
    "slug": "ubuntu-ssh-claude",
    "name": "Ubuntu SSH + Claude",
    "description": "ARA TM —SSH server with root access + Claude Code pre-installed.",
    "url": "https://railway.com/deploy/ubuntu-ssh-claude",
    "upstream": {
      "repo_url": "https://github.com/parham7991/railway-ubuntu-ssh-claude"
    }
  },
  "services": [
    {
      "name": "ubuntu(ssh+claude)",
      "source": {
        "repo": "https://github.com/parham7991/railway-ubuntu-ssh-claude"
      },
      "needs_volume": false,
      "tcp_ports": [
        22
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "APP_LANG",
      "service": "ubuntu(ssh+claude)",
      "description": "Runtime message language: en or fa. / زبان پیام‌ها: en یا fa.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "ROOT_PASSWORD",
      "service": "ubuntu(ssh+claude)",
      "description": "Password for the root user. Mandatory — the container will not start without it. / رمز کاربر root. الزامی — بدون آن کانتینر اجرا نمی‌شود.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-ssh-claude"
      }
    },
    "cli": "railway deploy --template ubuntu-ssh-claude",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "27e5f545-ba63-4fe6-835b-6443027a3e54",
            "serializedConfig": {
              "services": {
                "cd7bf39e-9509-4592-b35b-e7154398cec6": {
                  "icon": "https://www.svgrepo.com/show/354481/ubuntu.svg",
                  "name": "ubuntu(ssh+claude)",
                  "source": {
                    "repo": "parham7991/railway-ubuntu-ssh-claude",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "APP_LANG": {
                      "isOptional": true,
                      "description": "Runtime message language: en or fa. / زبان پیام‌ها: en یا fa.",
                      "defaultValue": "en"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "GitHub token (repo scope). When set, /root/src is auto-backed up to a private repo ara-tm-src-<id> and restored on every redeploy — your files survive container rebuilds. / توکن GitHub (scope: repo). وقتی ست شود، پوشه src به صورت خودکار در مخزنی خصوصی پشتیبان‌گیری و روی هر بازسازی بازیابی می‌شود.",
                      "defaultValue": ""
                    },
                    "SSH_PASSWORD": {
                      "isOptional": true,
                      "description": "Password for the optional user. / رمز کاربر اختیاری.",
                      "defaultValue": ""
                    },
                    "SSH_USERNAME": {
                      "isOptional": true,
                      "description": "Optional secondary sudo user. Must be set together with SSH_PASSWORD. / کاربر sudo ثانویه اختیاری. باید با SSH_PASSWORD ست شود.",
                      "defaultValue": ""
                    },
                    "ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the root user. Mandatory — the container will not start without it. / رمز کاربر root. الزامی — بدون آن کانتینر اجرا نمی‌شود.",
                      "defaultValue": "{{ROOT_PASSWORD}}"
                    },
                    "AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "SSH public key(s) for root key-based auth (password login stays on). / کلید(های) عمومی SSH برای root.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_AUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Token for Claude Code (OpenRouter / Anthropic). Applied on every deploy. / توکن Claude Code. روی هر دیپلوی اعمال می‌شود.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:30:18.491Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f4eeffffdbca4ead9139",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 335,
    "typical_build_seconds": 283,
    "typical_start_seconds": 22,
    "slowest_service": "ubuntu(ssh+claude)"
  }
}
