{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a627a63a-1712-4671-b6fc-a18e1a1e9e5a",
    "slug": "nofx-trading",
    "name": "NOFX | Self-Hosted AI Trading Agent for Crypto & Stocks",
    "description": "NOFX AI trading agent: LLM strategies on Binance, Hyperliquid & more",
    "url": "https://railway.com/deploy/nofx-trading",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/nofx"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "NOFX",
      "source": {
        "repo": "https://github.com/two-workspaces/nofx"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "NOFX",
      "description": "Time zone for logs and trade history, e.g. Europe/Berlin",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "NOFX",
      "description": "Port the web UI listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "JWT_SECRET",
      "service": "NOFX",
      "description": "Signs login tokens - auto-generated",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NOFX_ADMIN_EMAIL",
      "service": "NOFX",
      "description": "Login email for the single NOFX account, created on first boot so nobody else can register first",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATA_ENCRYPTION_KEY",
      "service": "NOFX",
      "description": "Encrypts the exchange and AI keys you save - auto-generated; never change it or saved keys stop decrypting",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NOFX_ADMIN_PASSWORD",
      "service": "NOFX",
      "description": "Login password, set on first boot only - copy it from here to log in",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CORS_ALLOWED_ORIGINS",
      "service": "NOFX",
      "description": "Origins allowed to call the API - add your custom domain here if you set one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRANSPORT_ENCRYPTION",
      "service": "NOFX",
      "description": "Browser encrypts API keys before sending them (needs HTTPS, which Railway provides)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EXPERIENCE_IMPROVEMENT",
      "service": "NOFX",
      "description": "Anonymous usage stats to the NOFX team - set true to opt in",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nofx-trading"
      }
    },
    "cli": "railway deploy --template nofx-trading",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a627a63a-1712-4671-b6fc-a18e1a1e9e5a",
            "serializedConfig": {
              "services": {
                "41a8a4fe-17f1-4b29-8067-5e6ad7b2a153": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/nofx/main/icon.png",
                  "name": "NOFX",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/nofx",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone for logs and trade history, e.g. Europe/Berlin",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the web UI listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs login tokens - auto-generated",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "NOFX_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Login email for the single NOFX account, created on first boot so nobody else can register first",
                      "defaultValue": "admin@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATA_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts the exchange and AI keys you save - auto-generated; never change it or saved keys stop decrypting",
                      "defaultValue": "{{DATA_ENCRYPTION_KEY}}"
                    },
                    "NOFX_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Login password, set on first boot only - copy it from here to log in",
                      "defaultValue": "{{NOFX_ADMIN_PASSWORD}}"
                    },
                    "CORS_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Origins allowed to call the API - add your custom domain here if you set one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRANSPORT_ENCRYPTION": {
                      "isOptional": false,
                      "description": "Browser encrypts API keys before sending them (needs HTTPS, which Railway provides)",
                      "defaultValue": "true"
                    },
                    "EXPERIENCE_IMPROVEMENT": {
                      "isOptional": false,
                      "description": "Anonymous usage stats to the NOFX team - set true to opt in",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "4c159d34-5c9e-4127-9c4d-a22cf189583f": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "NOFX",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
