Rekey is MIT licensed and free to self-host. The SDKs are live on npm under the @rekey.dev scope, and every REST endpoint is documented in the interactive API reference. Need a hand? Talk to the team.

Explore the API reference
Installv2.0.1 · live on npm
# server SDK
pnpm add @rekey.dev/node

# next.js + react helpers
pnpm add @rekey.dev/nextjs @rekey.dev/react

# cli + mcp server
pnpm add -g @rekey.dev/cli @rekey.dev/mcp

Run the whole stack, then point an app at it

API, Postgres, Redis, the operator panel and the customer portal, on your machine. Nothing to sign up for.

docker compose --profile full up

SDKs

All published on npm under the @rekey.dev scope. Written in TypeScript, shipped as ESM, typed end-to-end.

  • @rekey.dev/nodeServer SDK, typed and zero-any. Errors carry fix: lines.
  • @rekey.dev/reactReact hooks + drop-in <SignIn /> / <SignUp /> components.
  • @rekey.dev/nextjsNext.js adapters for App Router middleware and route handlers.
  • @rekey.dev/cliNon-interactive CLI. --json everywhere, money as integers.
  • @rekey.dev/mcpLocal stdio MCP server for Claude / Cursor / Claude Code. Eight read tools plus `mint_api_key`; it takes a super-admin key, so treat it as privileged.
  • @rekey.dev/shared-typesZod schemas shared between API and SDKs.
Full SDK method reference

Building with an AI agent?

Point your coding agent at the integration spec: the model rules (org vs user billing, secret vs public keys, server-side entitlements, webhook registration) that prevent the common first mistakes. Also served as plain text at /docs/prompt/raw.

AI agent integration guide
Have a question? Ask the team.
Documentation: API, SDKs, auth & billing | Rekey