Comparison · Self-hosted vs Self-hosted

Gate vs OAuth2 Proxy

OAuth2 Proxy is Free (open source). Gate is a self-hosted alternative at $2.99/mo. Here's when each makes sense.

Try Gate Free Gate overview
GateOAuth2 Proxy
HostingSelf-hosted, your infraSingle binary, but requires an external OAuth2 provider and a reverse proxy
Data locationYour server, your diskYour server (if self-hosted)
Free tier1 upstream, 5 usersFree
Pro pricing$2.99/moFree (open source)
DependenciesNone (single binary + SQLite)Docker, Postgres, etc.
Setup time~30 seconds15-30 minutes (self-host)
DashboardBuilt-in at /uiWeb UI
LicenseBSL 1.1Open source
When to use Gate

Pick Gate when you want simplicity and ownership.

Gate is a single Go binary with embedded SQLite. Install it with one command, and you are running in under a minute. Your data stays on your server.

curl -fsSL https://stockyard.dev/gate/install.sh | sh
Install Gate Gate docs

OAuth2 Proxy makes sense when you need more.

OAuth2 Proxy is purpose-built for OAuth2/OIDC authentication and works well in Kubernetes. If your auth is Google/GitHub/Azure AD, it is the natural choice. Gate is for teams who want API key auth, rate limiting, and IP allowlists in a single binary without an external OAuth provider.
Deciding between the two

Teams evaluating OAuth2 Proxy alongside Gate tend to split on two axes: feature depth and data residency. OAuth2 Proxy wins on feature depth — it is a mature product with integrations, mobile apps, and a dedicated support team. Gate wins on residency — your reverse proxy and auth gateway data lives on your server in a SQLite file you can inspect, back up, and migrate without asking anyone for permission.

The operational difference is significant. OAuth2 Proxy requires you to trust their infrastructure, their security practices, and their business continuity. Gate requires you to run a process and keep the data directory backed up. If your server dies, restore the binary and the SQLite file to a new server. The entire recovery procedure fits in a single paragraph because there is nothing else involved.

Both Gate and OAuth2 Proxy offer self-hosted options, but the operational requirements differ. Single binary, but requires an external OAuth2 provider and a reverse proxy Gate is a single binary with embedded SQLite — no containers, no external databases, no orchestration. The practical difference: Gate runs on a $5 VPS with no configuration. Self-hosting OAuth2 Proxy typically requires a more substantial infrastructure investment.

Migration path

Switching from OAuth2 Proxy to Gate is straightforward for most teams. Export your data from OAuth2 Proxy (most services offer CSV or JSON export), then POST each record to Gate's API. A migration script that reads the export and writes to /api/ endpoints typically takes less than 50 lines of code. The reverse migration is equally simple — Gate's SQLite database is a standard file you can query with any SQLite client.

FAQ
Is Gate an OAuth2 Proxy alternative?
They serve different auth models. OAuth2 Proxy delegates to external OAuth providers (Google, GitHub). Gate provides API key auth, rate limiting, and IP allowlists without an external provider.
Does Gate support Google/GitHub login?
Not currently. Gate focuses on API key auth and IP-based access control. For OAuth2 login, use OAuth2 Proxy or Authelia.
Related

Gate overview

Get started

Self-hosted reverse proxy and auth gateway in 30 seconds.

Single binary. Free to start. $2.99/mo for Pro.

Install Gate All 150 tools for $29/mo →
Back to Gate · Gate vs Authelia · Gate vs Authentik · Gate vs Traefik Forward Auth · Self-hosted reverse proxy and auth gateway · All 150 tools · Complete bundle