{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0fe2d643-7c4b-42c2-84b7-a7ce9161de6e",
    "slug": "ferro-labs-ai-sqlite-storage",
    "name": "Ferro Labs AI - SQLite storage",
    "description": "Unified AI Gateway - All your traffic. One gateway - SQLite storage.",
    "url": "https://railway.com/deploy/ferro-labs-ai-sqlite-storage",
    "upstream": {
      "repo_url": "https://github.com/ferro-labs/ai-gateway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Ferro Labs AI Gateway",
      "source": {
        "repo": "https://github.com/ferro-labs/ai-gateway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MASTER_KEY",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for MASTER_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "CONFIG_STORE_DSN",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for CONFIG_STORE_DSN.",
      "secret": false,
      "strategy": "default",
      "default": "/data/config.db"
    },
    {
      "key": "API_KEY_STORE_DSN",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for API_KEY_STORE_DSN.",
      "secret": true,
      "strategy": "default",
      "default": "/data/keys.db"
    },
    {
      "key": "CONFIG_STORE_BACKEND",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for CONFIG_STORE_BACKEND.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "API_KEY_STORE_BACKEND",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for API_KEY_STORE_BACKEND.",
      "secret": true,
      "strategy": "default",
      "default": "sqlite"
    },
    {
      "key": "REQUEST_LOG_STORE_DSN",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for REQUEST_LOG_STORE_DSN.",
      "secret": false,
      "strategy": "default",
      "default": "/data/logs.db"
    },
    {
      "key": "REQUEST_LOG_STORE_BACKEND",
      "service": "Ferro Labs AI Gateway",
      "description": "Provide a value for REQUEST_LOG_STORE_BACKEND.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ferro-labs-ai-sqlite-storage"
      }
    },
    "cli": "railway deploy --template ferro-labs-ai-sqlite-storage",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0fe2d643-7c4b-42c2-84b7-a7ce9161de6e",
            "serializedConfig": {
              "services": {
                "2342eae9-6b9b-42fd-88ee-87e9df450dee": {
                  "icon": "https://raw.githubusercontent.com/ferro-labs/ai-gateway/refs/heads/main/web/logo.png",
                  "name": "Ferro Labs AI Gateway",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "ferro-labs/ai-gateway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "MASTER_KEY": {
                      "defaultValue": "{{MASTER_KEY}}"
                    },
                    "OLLAMA_HOST": {
                      "isOptional": true,
                      "description": "http://localhost:11434",
                      "defaultValue": ""
                    },
                    "XAI_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "e.g http://xyz.com",
                      "defaultValue": ""
                    },
                    "GROQ_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "OLLAMA_MODELS": {
                      "isOptional": true,
                      "description": "llama3,codellama",
                      "defaultValue": ""
                    },
                    "COHERE_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "GATEWAY_CONFIG": {
                      "isOptional": true,
                      "description": "e.g /etc/config.yaml",
                      "defaultValue": ""
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "MISTRAL_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "CONFIG_STORE_DSN": {
                      "defaultValue": "/data/config.db"
                    },
                    "DEEPSEEK_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "TOGETHER_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "API_KEY_STORE_DSN": {
                      "defaultValue": "/data/keys.db"
                    },
                    "CONFIG_STORE_BACKEND": {
                      "defaultValue": "sqlite"
                    },
                    "API_KEY_STORE_BACKEND": {
                      "defaultValue": "sqlite"
                    },
                    "REQUEST_LOG_STORE_DSN": {
                      "defaultValue": "/data/logs.db"
                    },
                    "REQUEST_LOG_STORE_BACKEND": {
                      "defaultValue": "sqlite"
                    }
                  },
                  "volumeMounts": {
                    "2342eae9-6b9b-42fd-88ee-87e9df450dee": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T05:54:15.658Z",
  "generator_version": "0.1.0"
}
