{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3e783b10-3671-422a-881b-8da24ef920b2",
    "slug": "tencentdb-agent-memory",
    "name": "TencentDB Agent Memory",
    "description": "TencentDB Agent Memory is a team-level memory hub for AI Agents.",
    "url": "https://railway.com/deploy/tencentdb-agent-memory",
    "upstream": {
      "repo_url": "https://github.com/cmgeezy/TencentDB-Agent-Memory"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "memory-hub",
      "source": {
        "repo": "https://github.com/cmgeezy/TencentDB-Agent-Memory"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "memory-core",
      "source": {
        "repo": "https://github.com/cmgeezy/TencentDB-Agent-Memory"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/tdai-memory",
      "http": false
    },
    {
      "name": "memory-proxy",
      "source": {
        "repo": "https://github.com/cmgeezy/TencentDB-Agent-Memory"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "memory-hub",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8125"
    },
    {
      "key": "MEMORY_LLM_MODEL",
      "service": "memory-hub",
      "description": "Mirror of memory-core's LLM model. Keep the reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMORY_LLM_API_KEY",
      "service": "memory-hub",
      "description": "Mirror of memory-core's LLM key. Keep the reference.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMORY_LLM_BASE_URL",
      "service": "memory-hub",
      "description": "Mirror of memory-core's LLM endpoint for the hub's Panel/Knowledge features. Keep the reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEMORY_LLM_PROTOCOL",
      "service": "memory-hub",
      "description": "Mirror of memory-core's LLM protocol. Keep the reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REMOTE_INSTANCE_KEY",
      "service": "memory-hub",
      "description": "Key the hub uses to authenticate its calls to memory-core. Keep the default reference.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REMOTE_INSTANCE_PROXY_URL",
      "service": "memory-hub",
      "description": "Public URL of memory-proxy; powers the Panel's copy-paste client-access card. Keep the default reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "memory-core",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8420"
    },
    {
      "key": "ADMIN_USERNAME",
      "service": "memory-core",
      "description": "Panel admin username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ADMIN_USER_KEY",
      "service": "memory-core",
      "description": "Admin login key for the Panel. Created on first boot and persisted in the volume — changing this variable later does NOT rotate it. Create per-person keys in the Panel instead.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEMORY_LLM_MODEL",
      "service": "memory-core",
      "description": "Model used for memory work. Get this from your API docs eg OpenRouter has it under title on their model pages. Cheap and fast beats big and smart here.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MEMORY_LLM_API_KEY",
      "service": "memory-core",
      "description": "API key for the memory LLM endpoint. A cheap model's key is fine here. OpenRouter gives you all model options.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEMORY_PROMPT_MODE",
      "service": "memory-core",
      "description": "Memory extraction flavor: chat or code.",
      "secret": false,
      "strategy": "default",
      "default": "chat"
    },
    {
      "key": "MEMORY_LLM_BASE_URL",
      "service": "memory-core",
      "description": "OpenAI-compatible LLM endpoint without functional extensions. Used for memory work (extraction, summaries, wiki ingest). e.g. https://openrouter.ai/api/v1 or https://api.deepseek.com/v1",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MEMORY_LLM_PROTOCOL",
      "service": "memory-core",
      "description": "Protocol the endpoint speaks: openai or anthropic.",
      "secret": false,
      "strategy": "default",
      "default": "openai"
    },
    {
      "key": "PORT",
      "service": "memory-proxy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8096"
    },
    {
      "key": "PROXY_UPSTREAM_URL",
      "service": "memory-proxy",
      "description": "LLM endpoint your coding-agent chats are forwarded to. Defaults to the memory group; override to use a stronger model for coding.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROXY_UPSTREAM_MODEL",
      "service": "memory-proxy",
      "description": "Model name clients pass (e.g. claude --model <this>). Defaults to the memory-group model.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROXY_UPSTREAM_API_KEY",
      "service": "memory-proxy",
      "description": "API key for the upstream endpoint. Defaults to the memory-group key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tencentdb-agent-memory"
      }
    },
    "cli": "railway deploy --template tencentdb-agent-memory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3e783b10-3671-422a-881b-8da24ef920b2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "35e31fb9-3741-4b5e-acee-d8b14b17a7a4": {
                  "icon": "https://devicons.railway.app/ui",
                  "name": "memory-hub",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "cmgeezy/TencentDB-Agent-Memory",
                    "rootDirectory": "/services/memory-hub"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8125"
                    },
                    "MEMORY_LLM_MODEL": {
                      "isOptional": false,
                      "description": "Mirror of memory-core's LLM model. Keep the reference.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_MODEL}}"
                    },
                    "MEMORY_LLM_API_KEY": {
                      "isOptional": false,
                      "description": "Mirror of memory-core's LLM key. Keep the reference.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_API_KEY}}"
                    },
                    "MEMORY_LLM_BASE_URL": {
                      "isOptional": false,
                      "description": "Mirror of memory-core's LLM endpoint for the hub's Panel/Knowledge features. Keep the reference.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_BASE_URL}}"
                    },
                    "MEMORY_LLM_PROTOCOL": {
                      "isOptional": true,
                      "description": "Mirror of memory-core's LLM protocol. Keep the reference.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_PROTOCOL}}"
                    },
                    "REMOTE_INSTANCE_KEY": {
                      "isOptional": false,
                      "description": "Key the hub uses to authenticate its calls to memory-core. Keep the default reference.",
                      "defaultValue": "${{memory-core.ADMIN_USER_KEY}}"
                    },
                    "REMOTE_INSTANCE_PROXY_URL": {
                      "isOptional": false,
                      "description": "Public URL of memory-proxy; powers the Panel's copy-paste client-access card. Keep the default reference.",
                      "defaultValue": "https://${{memory-proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8125": {
                        "port": 8125
                      },
                      "<hasDomain>:8424": {
                        "port": 8424
                      }
                    }
                  },
                  "volumeMounts": {
                    "35e31fb9-3741-4b5e-acee-d8b14b17a7a4": {
                      "mountPath": "/data"
                    }
                  }
                },
                "4c7dbf1c-91c6-4e5c-8646-aa466d10853d": {
                  "icon": "https://devicons.railway.app/fire",
                  "name": "memory-core",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "cmgeezy/TencentDB-Agent-Memory",
                    "rootDirectory": "/services/memory-core"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8420"
                    },
                    "ADMIN_USERNAME": {
                      "isOptional": true,
                      "description": "Panel admin username.",
                      "defaultValue": "admin"
                    },
                    "ADMIN_USER_KEY": {
                      "isOptional": false,
                      "description": "Admin login key for the Panel. Created on first boot and persisted in the volume — changing this variable later does NOT rotate it. Create per-person keys in the Panel instead.",
                      "defaultValue": "{{ADMIN_USER_KEY}}"
                    },
                    "MEMORY_LLM_MODEL": {
                      "isOptional": false,
                      "description": "Model used for memory work. Get this from your API docs eg OpenRouter has it under title on their model pages. Cheap and fast beats big and smart here.",
                      "defaultValue": "{{MEMORY_LLM_MODEL}}"
                    },
                    "MEMORY_LLM_API_KEY": {
                      "isOptional": false,
                      "description": "API key for the memory LLM endpoint. A cheap model's key is fine here. OpenRouter gives you all model options.",
                      "defaultValue": "{{MEMORY_LLM_API_KEY}}"
                    },
                    "MEMORY_PROMPT_MODE": {
                      "isOptional": true,
                      "description": "Memory extraction flavor: chat or code.",
                      "defaultValue": "chat"
                    },
                    "MEMORY_LLM_BASE_URL": {
                      "isOptional": false,
                      "description": "OpenAI-compatible LLM endpoint without functional extensions. Used for memory work (extraction, summaries, wiki ingest). e.g. https://openrouter.ai/api/v1 or https://api.deepseek.com/v1",
                      "defaultValue": "{{MEMORY_LLM_BASE_URL}}"
                    },
                    "MEMORY_LLM_PROTOCOL": {
                      "isOptional": true,
                      "description": "Protocol the endpoint speaks: openai or anthropic.",
                      "defaultValue": "openai"
                    }
                  },
                  "volumeMounts": {
                    "4c7dbf1c-91c6-4e5c-8646-aa466d10853d": {
                      "mountPath": "/data/tdai-memory"
                    }
                  }
                },
                "c8e9edb5-6ba8-432e-839c-12ee8c438685": {
                  "icon": "https://devicons.railway.app/br",
                  "name": "memory-proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "cmgeezy/TencentDB-Agent-Memory",
                    "rootDirectory": "/services/memory-proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8096"
                    },
                    "PROXY_UPSTREAM_URL": {
                      "isOptional": false,
                      "description": "LLM endpoint your coding-agent chats are forwarded to. Defaults to the memory group; override to use a stronger model for coding.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_BASE_URL}}"
                    },
                    "PROXY_UPSTREAM_MODEL": {
                      "isOptional": false,
                      "description": "Model name clients pass (e.g. claude --model <this>). Defaults to the memory-group model.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_MODEL}}"
                    },
                    "PROXY_UPSTREAM_API_KEY": {
                      "isOptional": false,
                      "description": "API key for the upstream endpoint. Defaults to the memory-group key.",
                      "defaultValue": "${{memory-core.MEMORY_LLM_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8096": {
                        "port": 8096
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "memory-hub",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
