Skip to main content
Pick this when you want a fully managed cloud gateway with no infra of your own.

Option 1 — One-click deploy

Click the button below. Railway prompts for env vars, provisions the service and a public domain, and the security key appears in the deploy logs on first boot. Deploy on Railway

Railway env vars

After Railway deploys

  1. Open the service in Railway → Deployments → View logs.
  2. Get the security key:
    • If you pinned COREBRAIN_GATEWAY_SECURITY_KEY, use that value.
    • Otherwise find the banner CoreBrain Gateway, security key generated and copy the gwk_... value.
  3. Copy the public domain Railway provisioned (under Settings → Networking → Public Networking).

Option 2 — CLI-driven

The wizard detects (or installs) the Railway CLI, runs railway init and railway deploy -t core-gateway, provisions a public domain, and prints the URL + security key.

Register in the CORE app

  1. Sidebar → Gateways → + New gateway.
  2. Pick Railway.
  3. Paste the Base URL (Railway public domain) and Security key.
  4. Submit.
Status should flip to Connected within a few seconds.

Rotating the security key

Change COREBRAIN_GATEWAY_SECURITY_KEY in the Railway service’s env vars and redeploy. The gateway detects the new value on boot and overwrites the persisted hash. Update the key in Sidebar → Gateways → Edit in the webapp to match.

Verify

In the CORE app, ask in any conversation: “List my gateways.” Or from your laptop with the CLI:

LLM subscription proxy

The Railway image ships the LLM proxy at /llmproxy/v1. After registering, run corebrain gateway llmproxy --login claude (or codex / antigravity / xai) from your laptop to point CORE at your Claude Max, ChatGPT Codex, Antigravity, or xAI Grok subscription.