{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9eee3067-62da-4891-a404-080b1ac72cdb",
    "slug": "nextchat-on-bifrost-self-hosted-chatgpt-",
    "name": "NextChat on Bifrost: Self Hosted ChatGPT UI for Any Model",
    "description": "",
    "url": "https://railway.com/deploy/nextchat-on-bifrost-self-hosted-chatgpt-",
    "upstream": {
      "image": "yidadaa/chatgpt-next-web:latest"
    }
  },
  "services": [
    {
      "name": "NextChats",
      "source": {
        "image": "yidadaa/chatgpt-next-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Bifrost",
      "source": {
        "image": "maximhq/bifrost:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CODE",
      "service": "NextChats",
      "description": "Provide a value for CODE.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BASE_URL",
      "service": "NextChats",
      "description": "Provide a value for BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "http://bifrost.railway.internal:8080"
    },
    {
      "key": "CUSTOM_MODELS",
      "service": "NextChats",
      "description": "Provide a value for CUSTOM_MODELS.",
      "secret": false,
      "strategy": "default",
      "default": "-all,+gpt-4o"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "NextChats",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "default",
      "default": "sk-bifrost"
    },
    {
      "key": "HIDE_USER_API_KEY",
      "service": "NextChats",
      "description": "Provide a value for HIDE_USER_API_KEY.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "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": "8080"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nextchat-on-bifrost-self-hosted-chatgpt-"
      }
    },
    "cli": "railway deploy --template nextchat-on-bifrost-self-hosted-chatgpt-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9eee3067-62da-4891-a404-080b1ac72cdb",
            "serializedConfig": {
              "services": {
                "5162daf3-5012-4099-b897-c4fc52180755": {
                  "icon": "https://avatars.githubusercontent.com/u/153288546?s=48&v=4",
                  "name": "NextChats",
                  "source": {
                    "image": "yidadaa/chatgpt-next-web:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "CODE": {
                      "defaultValue": "{{CODE}}"
                    },
                    "BASE_URL": {
                      "defaultValue": "http://bifrost.railway.internal:8080"
                    },
                    "CUSTOM_MODELS": {
                      "defaultValue": "-all,+gpt-4o"
                    },
                    "OPENAI_API_KEY": {
                      "defaultValue": "sk-bifrost"
                    },
                    "HIDE_USER_API_KEY": {
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "d6411b3d-0388-407b-88bf-1325458b4ac1": {
                  "icon": "https://framerusercontent.com/images/k49dViw06yckDjJt5uERdfTSjU.png",
                  "name": "Bifrost",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "maximhq/bifrost:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "APP_HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "APP_PORT": {
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "LOG_STYLE": {
                      "defaultValue": "json"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "d6411b3d-0388-407b-88bf-1325458b4ac1": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Bifrost",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T09:05:22.478Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_550092b1f9a541d694f8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Bifrost"
  }
}
