Deploy SiftGate
Self-hosted AI gateway with scoped keys, budgets and audit
siftgate
Just deployed
/app/data
Deploy and Host self hosted SiftGate (AI/ML) on Railway
This template deploys SiftGate, an MIT-licensed self-hosted AI gateway, as one public Railway service with a persistent volume. It is independent community packaging of seanbabalala/SiftGate v2.14.0 (Copyright 2025 SiftGate Contributors), not affiliated with or endorsed by SiftGate.
About Hosting SiftGate open-source software on Railway (self hosted SiftGate template)
SiftGate is an MIT-licensed AI gateway you run yourself, so provider keys, gateway keys, the SQLite database and the gateway config stay on a volume you control.
Railway runs the container, mounts the volume at /app/data, handles TLS on the public domain and restarts the service if the /live health check fails. Readiness is also available at /ready. Zero inputs are required at deploy: the dashboard password and session secret are generated for you.
Why Deploy SiftGate, the self-hosted AI gateway for scoped keys, budgets and audit on Railway
Calling AI providers with shared keys is quick to start but hard to govern, since one leaked key exposes everything.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying SiftGate on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for SiftGate self hosting
Self-hosting SiftGate means choosing where the gateway, its volume and its public domain live.
| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | One service with a public domain, a volume at /app/data and the /live health check set up. | A droplet you size, patch and secure, with Docker and the volume configured by hand. |
| AWS | A template deploy with generated dashboard secrets and no networking setup for a first boot. | Broad control over networking and storage, with more services to wire up before /live responds. |
| Hetzner | A public URL without managing the host operating system. | Low-cost bare servers where you handle the OS, Docker, TLS and backups yourself. |
Common Use Cases for hosted SiftGate
- Issuing scoped keys to each app: Create a separate gateway key per internal app or teammate in the Dashboard, so provider keys never leave the gateway and each key can be revoked on its own.
- Routing OpenAI-compatible and Anthropic-compatible traffic: Point existing SDK clients at https://DOMAIN/v1 and let SiftGate forward requests to the providers you have added as service variables.
- Capping spend per team or key: Set token and cost budgets in the Dashboard so over-budget requests are rejected instead of quietly running up a shared bill.
- Limiting request rates and applying policy: Use rate limits and policy rules to control which models and endpoints each key can reach.
- Reviewing usage with metadata-only audit logs: Check who called what, when, and at what cost, without prompts or responses being stored by default.
Dependencies for SiftGate Docker hosted on Railway
This template runs one service, siftgate, built from upstream SiftGate v2.14.0 with a small startup script added.
Deployment Dependencies for Managed SiftGate Service
The siftgate service is public on port 8080, mounts a volume at /app/data for the SQLite database and gateway config, and uses health check /live with a 300 second timeout and restart Always. Keep one replica, because the volume holds local state.
Implementation Details for SiftGate
ghcr.io/onepush-dev/siftgate:v2.14.0 is built from the upstream seanbabalala/SiftGate Dockerfile at tag v2.14.0, with the application unmodified, plus railway/start.sh, because upstream publishes no image. On first boot the start script writes /app/data/gateway.config.yaml with port 8080, trust_proxy true, SQLite at /app/data/gateway.db, and the dashboard password from the generated SIFTGATE_DASHBOARD_PASSWORD, which SiftGate then stores as a bcrypt hash. SIFTGATE_DASHBOARD_SESSION_SECRET is also generated and must be kept stable. Provider keys are optional: add OPENAI_API_KEY or ANTHROPIC_API_KEY later, or edit nodes in the Dashboard. After you create client gateway keys, point apps at /v1 on your domain.
How does SiftGate compare against other tools
SiftGate vs Calling AI Providers Directly with Shared Keys (Direct Provider Alternative)
- Key handling: Direct calls often mean provider keys copied into apps, editors and agents. SiftGate keeps provider keys on your server and issues scoped gateway keys to each app or person.
- Revocation: Revoking a shared key breaks every client using it. A gateway key can be revoked alone.
- Where direct calls win: For one developer and one app, calling the provider directly is simpler and needs no extra service.
SiftGate vs a Hosted AI Gateway Service (Hosted Gateway Alternative)
- Data location: A hosted gateway routes your requests through a third party. SiftGate runs in your own infrastructure and stores metadata only by default.
- Control: Budgets, policy namespaces and the audit log live on your volume, so you control retention and access.
- Where hosted services win: A managed service removes the work of running, upgrading and backing up the gateway.
SiftGate with Docker vs Railway (Docker and Railway Alternative)
- Setup: Docker on a VPS means you manage the host, TLS, the volume and restarts. This template deploys the same image on Railway with one service and one volume.
- Persistence: SQLite and the config live on /app/data, so keep one replica.
- Where Docker on a VPS wins: You get full host control and costs that do not depend on usage.
How to use SiftGate on Railway?
- Open the public Railway domain for the siftgate service in your browser.
- Sign in to the Dashboard with the value of SIFTGATE_DASHBOARD_PASSWORD. Changing that variable later has no effect, so change the password inside the Dashboard instead.
- Optionally add OPENAI_API_KEY or ANTHROPIC_API_KEY as service variables, which the preconfigured nodes read on the next deploy.
- Create client gateway keys in the Dashboard, then point your apps at https://your-domain/v1.
- Keep the service at one replica, because local SQLite state on the volume cannot be shared across instances. Railway checks health at /live.
How to self host SiftGate on other VPS Services (SiftGate self hosting guide)
Clone the Repository
Clone the upstream repository and check out the v2.14.0 tag so you build the exact release the template uses.
git clone https://github.com/seanbabalala/SiftGate.git
cd SiftGate
git checkout v2.14.0
Install Dependencies
You can build the upstream container with Docker, so you do not need a local Node toolchain for a server deploy. Make sure Docker is installed on your VPS first.
Configure Environment Variables
Set a dashboard password and session secret, and keep the data directory on a persistent path. Replace the placeholder values with your own.
export SIFTGATE_DASHBOARD_PASSWORD=your-dashboard-password
export SIFTGATE_DASHBOARD_SESSION_SECRET=your-session-secret
mkdir -p /srv/siftgate-data
Start the SiftGate Application
Upstream: build and run the documented SiftGate container from the v2.14.0 tag with a persistent data directory; see the upstream repository. Railway handles the build, the volume, health checks and restarts for you.
Pricing and License of SiftGate (SiftGate pricing)
SiftGate is open-source software released under the MIT license, so you can self-host it without paying a license fee.
SiftGate hosted vs self hosted comparison (Pricing, features, costs, and more)
This template packages the MIT-licensed SiftGate software, and no hosted AI-gateway plan prices are quoted here. Your costs are the infrastructure you run it on, plus any model or mail provider you add.
Monthly cost of self hosting SiftGate on Railway
Railway bills on usage, so the monthly cost depends on the RAM and CPU the siftgate service uses, the size of the /app/data volume, and any other services you attach.
System Requirements for Hosting SiftGate on a VPS
SiftGate runs as one container that keeps its SQLite database and config on a single volume at /app/data, so a VPS needs Docker, persistent disk and a public port 8080 behind your own TLS proxy.
Frequently Asked Questions (FAQs)
How do I sign in to the SiftGate Dashboard?
Open the public Railway domain and sign in to the Dashboard with the password held in SIFTGATE_DASHBOARD_PASSWORD. The password is generated at deploy and applied on first boot.
Do I need provider keys before SiftGate will boot?
No, the gateway starts without them. The example config already includes OpenAI and Anthropic nodes that read OPENAI_API_KEY and ANTHROPIC_API_KEY from the environment, so add those as service variables later when you are ready to route real traffic, or edit nodes in the Dashboard.
Can I change the Dashboard password by editing the variable?
No, editing SIFTGATE_DASHBOARD_PASSWORD after the first boot has no effect. Change the password inside the Dashboard instead.
What should I back up?
Back up the /app/data volume, which holds the SQLite database at /app/data/gateway.db and the config at /app/data/gateway.config.yaml, and keep a copy of SIFTGATE_DASHBOARD_SESSION_SECRET so sessions stay valid after a restore.
Is this affiliated with or endorsed by SiftGate?
No. This is independent community packaging of seanbabalala/SiftGate v2.14.0 (MIT, Copyright 2025 SiftGate Contributors), not affiliated with or endorsed by SiftGate.
Template Content

