{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8132670c-db90-4e2f-9731-94a941870d94",
    "slug": "gbrain-agentic-memory",
    "name": "GBrain Agentic Memory",
    "description": "Get your own self hosted gbrain agentic memory in 2 simple steps",
    "url": "https://railway.com/deploy/gbrain-agentic-memory",
    "upstream": {
      "repo_url": "https://github.com/Ntelikatos/gbrain-hosted-agentic-memory"
    }
  },
  "services": [
    {
      "name": "gbrain",
      "source": {
        "repo": "https://github.com/Ntelikatos/gbrain-hosted-agentic-memory"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "EMBEDDING_MODEL",
      "service": "gbrain",
      "description": "Which embedding model builds the search index, as provider:model. Change the provider here if you are not using OpenAI. Pick before your first ingest; changing it later means re-embedding everything.",
      "secret": false,
      "strategy": "default",
      "default": "openai:text-embedding-3-large"
    },
    {
      "key": "EMBEDDING_API_KEY",
      "service": "gbrain",
      "description": "Your API key for the provider named in EMBEDDING_MODEL. OpenAI keys start with sk-. Search cannot work without one, so the service will not start until this is set.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GBRAIN_HTTP_CORS_ORIGIN",
      "service": "gbrain",
      "description": "Browser origins allowed to complete the OAuth handshake. Needed for Claude Desktop and ChatGPT; CLI clients like Claude Code work without it. Add to the list rather than replacing it.",
      "secret": false,
      "strategy": "default",
      "default": "https://claude.ai,https://chatgpt.com"
    },
    {
      "key": "GBRAIN_ADMIN_BOOTSTRAP_TOKEN",
      "service": "gbrain",
      "description": "Password for the /admin dashboard. Generated per-deploy — read it from this variable rather than the deploy logs.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gbrain-agentic-memory"
      }
    },
    "cli": "railway deploy --template gbrain-agentic-memory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8132670c-db90-4e2f-9731-94a941870d94",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2659302d-07eb-458d-924b-7204594f5d05": {
                  "icon": "https://raw.githubusercontent.com/Ntelikatos/gbrain-hosted-agentic-memory/refs/heads/main/assets/icons/gbrain.svg",
                  "name": "gbrain",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/Ntelikatos/gbrain-hosted-agentic-memory",
                    "rootDirectory": null
                  },
                  "variables": {
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Fine-grained GitHub PAT with read/write Contents access. Only needed if BRAIN_REPO_URL points at a private repo.",
                      "defaultValue": ""
                    },
                    "BRAIN_REPO_URL": {
                      "isOptional": true,
                      "description": "Git URL of a GitHub repo to mirror your brain's markdown into, so it's readable and portable outside Railway. Empty keeps the brain repo local to the volume.",
                      "defaultValue": ""
                    },
                    "EMBEDDING_MODEL": {
                      "isOptional": false,
                      "description": "Which embedding model builds the search index, as provider:model. Change the provider here if you are not using OpenAI. Pick before your first ingest; changing it later means re-embedding everything.",
                      "defaultValue": "openai:text-embedding-3-large"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Lets gbrain think write a cited answer instead of returning search results. Memory, search, and the knowledge graph all work without it.",
                      "defaultValue": ""
                    },
                    "EMBEDDING_API_KEY": {
                      "isOptional": false,
                      "description": "Your API key for the provider named in EMBEDDING_MODEL. OpenAI keys start with sk-. Search cannot work without one, so the service will not start until this is set.",
                      "defaultValue": "{{EMBEDDING_API_KEY}}"
                    },
                    "GBRAIN_HTTP_CORS_ORIGIN": {
                      "isOptional": true,
                      "description": "Browser origins allowed to complete the OAuth handshake. Needed for Claude Desktop and ChatGPT; CLI clients like Claude Code work without it. Add to the list rather than replacing it.",
                      "defaultValue": "https://claude.ai,https://chatgpt.com"
                    },
                    "GBRAIN_ADMIN_BOOTSTRAP_TOKEN": {
                      "isOptional": false,
                      "description": "Password for the /admin dashboard. Generated per-deploy — read it from this variable rather than the deploy logs.",
                      "defaultValue": "{{GBRAIN_ADMIN_BOOTSTRAP_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "2659302d-07eb-458d-924b-7204594f5d05": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gbrain",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "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-05T06:30:11.581Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_add97cb3c6f64c05bd0c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 58,
    "typical_build_seconds": 31,
    "typical_start_seconds": 10,
    "slowest_service": "gbrain"
  }
}
