{
  "manifest_version": "1.0.0",
  "template": {
    "id": "adcb27cf-f04a-41a2-b7c1-73f908c59a10",
    "slug": "ironclaw-multi",
    "name": "ironclaw-multi",
    "description": "Deploy and host ironclaw with multi LLM provider and Model Tiering",
    "url": "https://railway.com/deploy/ironclaw-multi"
  },
  "services": [
    {
      "name": "ironclaw",
      "source": {
        "repo": "https://github.com/algorytma/ironclaw-custom-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg16-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ironclaw",
      "description": "Github Webhook gibi dış sinyallerin sessizce (arka planda) dinlendiği iç arka kapı portu.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "HTTP_HOST",
      "service": "ironclaw",
      "description": "Ana uygulamanın internete açılacağı Public Port numarası.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "HTTP_PORT",
      "service": "ironclaw",
      "description": "Provide a value for HTTP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "LLM_BACKEND",
      "service": "ironclaw",
      "description": "OpenAI standartlarını Nvidia NIM sunucularına tünelleyecek hedef adres.",
      "secret": false,
      "strategy": "default",
      "default": "openai"
    },
    {
      "key": "DATABASE_URL",
      "service": "ironclaw",
      "description": "IronClaw'ın vektör belleği (memory), işleri (jobs) ve oturum verileri için kullanacağı PostgreSQL veritabanı adresi.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "ironclaw",
      "description": "Nvidia çökerse veya hata verirse paniğe kapılmadan otomatik geçilecek alternatif altyapı.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENAI_API_BASE",
      "service": "ironclaw",
      "description": "Kullanmak istediğimiz ana modelin tam adı.",
      "secret": false,
      "strategy": "default",
      "default": "https://integrate.api.nvidia.com/v1"
    },
    {
      "key": "OPENAI_MODEL_ID",
      "service": "ironclaw",
      "description": "Nvidia hesabından alınacak gerçek API anahtarın. ${{ secret() }} Railway ekranında elle doldurulacak boş bir kutu bırakır.",
      "secret": false,
      "strategy": "default",
      "default": "minimaxai/minimax-m2.5"
    },
    {
      "key": "SANDBOX_ENABLED",
      "service": "ironclaw",
      "description": "Caddy proxy'nin ve Webhook'un dinleyeceği temel Cihaz IP'si (0.0.0.0 tüm dış dünya trafiklerine açık demektir)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ONBOARD_COMPLETED",
      "service": "ironclaw",
      "description": "Asistanın konuşurken ve düşünürken kullanacağı dil modeli altyapı katmanı.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GATEWAY_AUTH_TOKEN",
      "service": "ironclaw",
      "description": "Veritabanına kaydettiğin diğer API key ve şifreleri güvende tutan \"Şifre Çözücü Master Kasa Anahtarı\". (64 karakter önerilir)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SECRETS_MASTER_KEY",
      "service": "ironclaw",
      "description": "Github, Jira, Slack gibi dış uygulamalardan asistanı tetiklemek için yollanan sinyallerin güvenliğini doğrulayan gizli imza.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HTTP_WEBHOOK_SECRET",
      "service": "ironclaw",
      "description": "Python, Bash gibi scriptler çalıştırılacağı zaman sistem güvenliğini Docker izolasyonuna alıp almayacağını belirler. (Kaynak tüketmesin diye Railway'de false bırakılabilir)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLM_FAILOVER_API_KEY",
      "service": "ironclaw",
      "description": "Web arayüzüne (UI) girerken yazacağın panel giriş şifresi.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLM_FAILOVER_BACKEND",
      "service": "ironclaw",
      "description": "Yedek platformun (OpenRouter vb.) API şifresi.",
      "secret": false,
      "strategy": "default",
      "default": "openai"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "DATA path",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "DB Name",
      "secret": false,
      "strategy": "default",
      "default": "ironclaw"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "DB User",
      "secret": false,
      "strategy": "default",
      "default": "ironclaw"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "DB Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ironclaw-multi"
      }
    },
    "cli": "railway deploy --template ironclaw-multi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "adcb27cf-f04a-41a2-b7c1-73f908c59a10",
            "serializedConfig": {
              "services": {
                "6737b5be-46f0-4aaa-be0b-4ce07c5625b2": {
                  "icon": "https://devicons.railway.com/i/rust-light.svg",
                  "name": "ironclaw",
                  "source": {
                    "repo": "algorytma/ironclaw-custom-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Github Webhook gibi dış sinyallerin sessizce (arka planda) dinlendiği iç arka kapı portu.",
                      "defaultValue": "8080"
                    },
                    "HTTP_HOST": {
                      "description": "Ana uygulamanın internete açılacağı Public Port numarası.",
                      "defaultValue": "0.0.0.0"
                    },
                    "HTTP_PORT": {
                      "defaultValue": "8081"
                    },
                    "LLM_BACKEND": {
                      "description": "OpenAI standartlarını Nvidia NIM sunucularına tünelleyecek hedef adres.",
                      "defaultValue": "openai"
                    },
                    "DATABASE_URL": {
                      "description": "IronClaw'ın vektör belleği (memory), işleri (jobs) ve oturum verileri için kullanacağı PostgreSQL veritabanı adresi.",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@Postgres.railway.internal:5432/${{Postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "OPENAI_API_KEY": {
                      "description": "Nvidia çökerse veya hata verirse paniğe kapılmadan otomatik geçilecek alternatif altyapı.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "OPENAI_API_BASE": {
                      "description": "Kullanmak istediğimiz ana modelin tam adı.",
                      "defaultValue": "https://integrate.api.nvidia.com/v1"
                    },
                    "OPENAI_MODEL_ID": {
                      "description": "Nvidia hesabından alınacak gerçek API anahtarın. ${{ secret() }} Railway ekranında elle doldurulacak boş bir kutu bırakır.",
                      "defaultValue": "minimaxai/minimax-m2.5"
                    },
                    "SANDBOX_ENABLED": {
                      "description": "Caddy proxy'nin ve Webhook'un dinleyeceği temel Cihaz IP'si (0.0.0.0 tüm dış dünya trafiklerine açık demektir)",
                      "defaultValue": "false"
                    },
                    "ONBOARD_COMPLETED": {
                      "description": "Asistanın konuşurken ve düşünürken kullanacağı dil modeli altyapı katmanı.",
                      "defaultValue": "true"
                    },
                    "GATEWAY_AUTH_TOKEN": {
                      "description": "Veritabanına kaydettiğin diğer API key ve şifreleri güvende tutan \"Şifre Çözücü Master Kasa Anahtarı\". (64 karakter önerilir)",
                      "defaultValue": "{{GATEWAY_AUTH_TOKEN}}"
                    },
                    "SECRETS_MASTER_KEY": {
                      "description": "Github, Jira, Slack gibi dış uygulamalardan asistanı tetiklemek için yollanan sinyallerin güvenliğini doğrulayan gizli imza.",
                      "defaultValue": "{{SECRETS_MASTER_KEY}}"
                    },
                    "HTTP_WEBHOOK_SECRET": {
                      "description": "Python, Bash gibi scriptler çalıştırılacağı zaman sistem güvenliğini Docker izolasyonuna alıp almayacağını belirler. (Kaynak tüketmesin diye Railway'de false bırakılabilir)",
                      "defaultValue": "{{HTTP_WEBHOOK_SECRET}}"
                    },
                    "LLM_FAILOVER_API_KEY": {
                      "description": "Web arayüzüne (UI) girerken yazacağın panel giriş şifresi.",
                      "defaultValue": "{{LLM_FAILOVER_API_KEY}}"
                    },
                    "LLM_FAILOVER_BACKEND": {
                      "description": "Yedek platformun (OpenRouter vb.) API şifresi.",
                      "defaultValue": "openai"
                    }
                  }
                },
                "efb096ca-8ed7-49d5-b37f-480360205515": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "pgvector/pgvector:pg16-trixie"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "DATA path",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "DB Name",
                      "defaultValue": "ironclaw"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "DB User",
                      "defaultValue": "ironclaw"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "DB Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "efb096ca-8ed7-49d5-b37f-480360205515": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T16:12:10.782Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5702278f8b5d4c03bce9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 427,
    "typical_build_seconds": 362,
    "typical_start_seconds": 10,
    "slowest_service": "ironclaw"
  }
}
