auth
by ClowkBroker, not provider. Sign-in that stays out of your UI.
Clowk runs the OAuth dance with Google, GitHub, X and Apple, and hands your app a signed JWT. Your app keeps its own screens.
class DashboardController < ApplicationController
before_action :authenticate_clowk!
def index
@user = current_clowk
end
endInstall
bundle add clowkWhat you get
No embedded UI
Clowk runs the whole sign-in flow on its own domain. Your app redirects and gets a JWT back: no forms or iframes in your pages.
Every stack
SDKs for React, Next.js, Express, Hono and Rails. @clowk/core runs on Node.js, Bun, Deno and Workers.
Many providers
Google, GitHub, X and Apple, plus email and password, magic links and TOTP.
Security by isolation
Credentials and OAuth tokens never touch your pages. The flow runs on the Clowk domain and returns a signed JWT.
Many apps
One Clowk account, many apps. Each app has its own keys, redirect URIs and users.
No per-MAU billing
The Free plan has what you need to ship sign-in. Your user count never shows on the invoice.
Pricing
Two plans. No per-user bill.
Authentication priced by what you build, not by how many people sign in. Your user count never appears on the invoice.
Free
Everything you need to ship authentication.
- 1 app
- 1 production instance
- Google sign-in
- Email and password
- Unlimited users — no per-MAU billing
- Every SDK: React, Next.js, Express, Hono, Rails
- 1 webhook endpoint
Pro
Most teamsFor teams running more than one thing.
- Unlimited apps
- Unlimited production instances
- Google, GitHub, X and Apple sign-in
- Email and password
- Unlimited users — no per-MAU billing
- Every SDK: React, Next.js, Express, Hono, Rails
- Unlimited webhook endpoints
Questions about the plans? Write to [email protected].
Integrate in minutes
A few lines in the stack you already use
Works with your existing stack. No new abstractions to learn.
# Gemfile
gem 'clowk'
# config/initializers/clowk.rb
Clowk.configure do |config|
config.publishable_key = ENV['CLOWK_PUBLISHABLE_KEY']
config.secret_key = ENV['CLOWK_SECRET_KEY']
end
# config/routes.rb
Rails.application.routes.draw do
mount Clowk::Engine => '/clowk'
end
# app/controllers/dashboard_controller.rb
class DashboardController < ApplicationController
before_action :authenticate_clowk!
def index
@user = current_clowk
# => { id: 'usr_...', email: 'user@example.com',
# name: 'Alice', provider: 'google' }
end
endNeed more detail? Read the docs →
SDKs
One broker, every runtime
All packages depend on @clowk/core for token verification. Framework packages are thin wrappers that adapt core to each framework's conventions.
@clowk/core
Runtime-agnostic foundation. JWT verification, HTTP client, SDK resources. Works on Node.js, Bun, Deno, and Cloudflare Workers.
npm install @clowk/core@clowk/sdk
User-facing convenience package. Re-exports everything from @clowk/core under a clean import path.
npm install @clowk/sdk@clowk/react
ClowkProvider, SignInButton, SignUpButton, SignOutButton, useAuth hook. Redirect-based — no embedded UI.
npm install @clowk/react@clowk/nextjs
Server-side middleware for route protection, auth() helper for Server Components, plus React components re-exported.
npm install @clowk/nextjs@clowk/express
Express middleware. Extracts and verifies JWT from query param, cookie, or Authorization header.
npm install @clowk/express@clowk/hono
Hono middleware. Same behavior as Express, adapted for Hono's API. Works on Workers, Bun, Deno, and Node.js.
npm install @clowk/honoQuestions
How is Clowk different from Clerk or Auth0?
Clerk and Auth0 render the sign-in forms inside your app. Clowk brokers the sign-in through a redirect: your app sends the user to Clowk, the user signs in, and your app gets a signed JWT back. There is no embedded UI to keep up to date.
What does broker mean?
Your app → Clowk (runs OAuth) → your app (gets a signed JWT). OAuth redirects the user anyway, so an embedded UI only adds a step. Clowk removes it.
Which providers are supported?
Google, GitHub, X and Apple, plus email and password, magic links and TOTP.
Does Clowk work outside Rails?
Yes. @clowk/react, @clowk/nextjs, @clowk/express and @clowk/hono cover most JavaScript stacks, and @clowk/core runs on Node.js, Bun, Deno and Cloudflare Workers.
Is Clowk free?
The Free plan has what you need to ship sign-in. Pro adds more apps, instances, providers and webhook endpoints. There is no per-MAU billing.