Auth for
Cloudflare Workers.
The authentication framework built specifically for Cloudflare Workers and the edge.
npx @gately/auth-cli init Install in seconds.
Add Gately Auth to your project with your favourite package manager.
npm i @gately/auth-core https://mcp.auth.usegately.com/mcp Three files.
That's it.
Create your auth instance, mount the handler. Every route is live immediately.
Everything built in.
All the tools you need. No fluff.
Authentication
Databases
User Management
Adapters
Security
MCP / AI
Plugins
Every route, out of the box.
RESTful API endpoints ready to use. Mount on /auth/* and everything is live.
Official packages.
Modular, lightweight, tree-shakeable.
@gately/auth-core
Core auth engine
Worker handler, D1/KV adapters, all auth providers and plugins
v0.1.0@gately/auth-client
Browser client SDK
React hooks, Vue composables, Svelte stores and components
v0.1.0@gately/auth-cli
CLI tool
Scaffold, login, auto-provision D1/KV, migrate and deploy
v0.1.0@gately/auth-mcp
AI editor integration
Live doc access for Cursor, Claude, Kiro and any MCP client
v0.1.0Official plugins.
Drop-in plugins that extend schema, routes, and email — without forking the core.
Gately Email
Plug-and-play transactional email. Handles password reset, magic links, OTP, and verification automatically.
Admin Plugin
Protected /auth/admin/* endpoints for user listing, banning, session revocation, and deletion.
Username Plugin
Adds a unique username field to sign-up with validation, uniqueness check, and a public availability endpoint.
Google One Tap
Exchange a Google ID token for a session — no redirect flow. Works with the One Tap JS snippet.
Every OAuth provider.
Pre-built integrations with 20+ providers.
Documentation.
Everything you need to ship fast.
Built for AI agents.
Connect Cursor, Claude Code, Kiro, or any MCP client directly to the gately-auth docs.
How to connect
~/.cursor/mcp.jsonclaude mcp add.kiro/settings/mcp.jsonhttps://mcp.auth.usegately.com/mcp mcp.json
{
"gately-auth": {
"url": "https://mcp.auth.usegately.com/mcp"
}
} What's coming.
We're building the future of auth.
WebAuthn / Passkeys
Passwordless sign-in using device biometrics. FIDO2 compliant, works on all platforms.
Organisations
Multi-tenant auth with organisations, teams, invitations, and role-based access control.
Auth Logs
Tamper-evident audit log of every auth event. Replay, filter, and export.
Admin Panel
Drop-in user management UI. Search, ban, impersonate, and manage sessions.
Three steps to production.
From zero to auth in under 5 minutes.
01
Install
Add the package to your project. npm install @gately/auth-core
02
Configure
Set up your providers and D1/KV bindings. One function call, fully typed.
03
Ship
You're ready to authenticate users. npx wrangler deploy