{
  "manifest_version": "1.0.0",
  "template": {
    "id": "16d169e2-006e-451c-bf7f-7909ad52b18a",
    "slug": "bifrost-llm-gateway",
    "name": "Bifrost",
    "description": "High-performance AI gateway for 12+ LLM providers via one OpenAI API",
    "url": "https://railway.com/deploy/bifrost-llm-gateway",
    "upstream": {
      "image": "maximhq/bifrost:latest"
    }
  },
  "services": [
    {
      "name": "bifrost",
      "source": {
        "image": "maximhq/bifrost:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "bifrost",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "APP_HOST",
      "service": "bifrost",
      "description": "Provide a value for APP_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "APP_PORT",
      "service": "bifrost",
      "description": "Provide a value for APP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "LOG_LEVEL",
      "service": "bifrost",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LOG_STYLE",
      "service": "bifrost",
      "description": "Provide a value for LOG_STYLE.",
      "secret": false,
      "strategy": "default",
      "default": "json"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "bifrost",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BIFROST_ENCRYPTION_KEY",
      "service": "bifrost",
      "description": "Provide a value for BIFROST_ENCRYPTION_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bifrost-llm-gateway"
      }
    },
    "cli": "railway deploy --template bifrost-llm-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "16d169e2-006e-451c-bf7f-7909ad52b18a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "32e3db1e-eeab-4a23-b457-c14377f08663": {
                  "icon": "https://imgur.com/LWWS9hp.png",
                  "name": "bifrost",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "maximhq/bifrost:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8081"
                    },
                    "APP_HOST": {
                      "isOptional": false,
                      "defaultValue": "0.0.0.0"
                    },
                    "APP_PORT": {
                      "isOptional": false,
                      "defaultValue": "8081"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "defaultValue": "info"
                    },
                    "LOG_STYLE": {
                      "isOptional": false,
                      "defaultValue": "json"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "BIFROST_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{BIFROST_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8081": {
                        "port": 8081
                      }
                    }
                  },
                  "volumeMounts": {
                    "32e3db1e-eeab-4a23-b457-c14377f08663": {
                      "mountPath": "/data",
                      "backupSchedules": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T02:55:48.465Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_64cbff4271e9447daa51",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 31,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "bifrost"
  }
}
