{
  "manifest_version": "1.0.0",
  "template": {
    "id": "856cdcf0-e779-49a6-b6ae-8541e43738cd",
    "slug": "trading-agents",
    "name": "TradingAgents By Tauric Research | Open Source Multi-Agent Stock Analysis",
    "description": "Self-host TradingAgents. Multi-agent stock analysis w/ OpenAI/Claude/Gemini",
    "url": "https://railway.com/deploy/trading-agents",
    "upstream": {
      "repo_url": "https://github.com/praveen-ks-2001/TradingAgents-Railway-Template"
    }
  },
  "services": [
    {
      "name": "TradingAgents",
      "source": {
        "repo": "https://github.com/praveen-ks-2001/TradingAgents-Railway-Template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "TradingAgents",
      "description": "HTTP port (Railway overrides)",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "TradingAgents",
      "description": "OpenAI key (default provider)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TRADINGAGENTS_MEMORY_LOG",
      "service": "TradingAgents",
      "description": "Persistent agent memory",
      "secret": false,
      "strategy": "default",
      "default": "/data/memory/trading_memory.md"
    },
    {
      "key": "TRADINGAGENTS_RESULTS_DIR",
      "service": "TradingAgents",
      "description": "Decision log directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/logs"
    },
    {
      "key": "TRADINGAGENTS_DATA_CACHE_DIR",
      "service": "TradingAgents",
      "description": "Market-data cache directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "trading-agents"
      }
    },
    "cli": "railway deploy --template trading-agents",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "856cdcf0-e779-49a6-b6ae-8541e43738cd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "915578a5-95ff-4dff-9523-9d76a8bb1d9f": {
                  "icon": "https://res.cloudinary.com/asset-cloudinary/image/upload/v1777574805/tradingagents_e0fxrs.png",
                  "name": "TradingAgents",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/praveen-ks-2001/TradingAgents-Railway-Template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port (Railway overrides)",
                      "defaultValue": "8000"
                    },
                    "XAI_API_KEY": {
                      "isOptional": true,
                      "description": "Grok / xAI key (optional)",
                      "defaultValue": ""
                    },
                    "GOOGLE_API_KEY": {
                      "isOptional": true,
                      "description": "Google Gemini key (optional)",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "OpenAI key (default provider)",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "DEEPSEEK_API_KEY": {
                      "isOptional": true,
                      "description": "DeepSeek key (optional)",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Anthropic Claude key (optional)",
                      "defaultValue": ""
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "OpenRouter key (optional)",
                      "defaultValue": ""
                    },
                    "ALPHA_VANTAGE_API_KEY": {
                      "isOptional": true,
                      "description": "Premium market data (optional)",
                      "defaultValue": ""
                    },
                    "TRADINGAGENTS_MEMORY_LOG": {
                      "description": "Persistent agent memory",
                      "defaultValue": "/data/memory/trading_memory.md"
                    },
                    "TRADINGAGENTS_RESULTS_DIR": {
                      "description": "Decision log directory",
                      "defaultValue": "/data/logs"
                    },
                    "TRADINGAGENTS_DATA_CACHE_DIR": {
                      "description": "Market-data cache directory",
                      "defaultValue": "/data/cache"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "915578a5-95ff-4dff-9523-9d76a8bb1d9f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T13:10:00.973Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2d025d359ea14aecaba9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 161,
    "typical_build_seconds": 97,
    "typical_start_seconds": 10,
    "slowest_service": "TradingAgents"
  }
}
