{
  "manifest_version": "1.0.0",
  "template": {
    "id": "973a6a12-e56a-4f72-aa68-0132a03798d4",
    "slug": "freellmapi-server",
    "name": "FreeLLMAPI | One OpenAI-Compatible API for Free LLM Tiers",
    "description": "Route one OpenAI-style API across your free LLM keys, with fallback.",
    "url": "https://railway.com/deploy/freellmapi-server",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/freellmapi"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "FreeLLMAPI",
      "source": {
        "repo": "https://github.com/two-workspaces/freellmapi"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/server/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "FreeLLMAPI",
      "description": "Port the API and dashboard listen on.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "FreeLLMAPI",
      "description": "Email for the dashboard login. Created on first boot only.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "TRUST_PROXY",
      "service": "FreeLLMAPI",
      "description": "Railway's proxy counts as one hop, so rate limits see each client's real address.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "FreeLLMAPI",
      "description": "Password for the dashboard login, at least 8 characters. Created on first boot only; change it in the dashboard later.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "FreeLLMAPI",
      "description": "Encrypts your stored provider keys. Don't change it after first boot: saved keys can't be read without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FREEAPI_CONFIG_JSON",
      "service": "FreeLLMAPI",
      "description": "Creates the login above before the server opens, so nobody can claim a new deploy. You can add provider keys and routing here too.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "freellmapi-server"
      }
    },
    "cli": "railway deploy --template freellmapi-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "973a6a12-e56a-4f72-aa68-0132a03798d4",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8f1317fd-4651-4fd9-9ba3-374886a071e1": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/freellmapi/main/icon.svg",
                  "name": "FreeLLMAPI",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/freellmapi",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the API and dashboard listen on.",
                      "defaultValue": "3001"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email for the dashboard login. Created on first boot only.",
                      "defaultValue": "admin@example.com"
                    },
                    "TRUST_PROXY": {
                      "isOptional": true,
                      "description": "Railway's proxy counts as one hop, so rate limits see each client's real address.",
                      "defaultValue": "1"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the dashboard login, at least 8 characters. Created on first boot only; change it in the dashboard later.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts your stored provider keys. Don't change it after first boot: saved keys can't be read without it.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "FREEAPI_CONFIG_JSON": {
                      "isOptional": false,
                      "description": "Creates the login above before the server opens, so nobody can claim a new deploy. You can add provider keys and routing here too.",
                      "defaultValue": "{\"admin\":{\"email\":\"${{ADMIN_EMAIL}}\",\"password\":\"${{ADMIN_PASSWORD}}\"}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "893259fc-5d7b-4037-83b3-8380482da033": {
                      "mountPath": "/app/server/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "FreeLLMAPI",
      "method": "GET",
      "path": "/api/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
