About UsefulKey

UsefulKey is a self-hosted toolkit for API keys, scopes, usage limits, and rate limiting — designed to be simple to adopt and easy to extend.

What is UsefulKey?

UsefulKey provides the building blocks for managing API access in your apps and services. It comes with storage adapters, middleware-friendly helpers, and pluggable features so you can choose only what you need.

  • Issue and verify API keys with optional expiration and metadata.
  • Apply global or token bucket rate limits backed by persistent stores.
  • Enable scopes, usage caps, and IP access control via plugins.
  • Use your preferred backend: Postgres, Redis, SQLite, Cloudflare, or HTTP.

Open Source

MIT licensed, transparent, and community‑driven.

View repository →

Self‑hosted

Bring your own database and infrastructure.

Configure →

Adapters

Redis, Postgres, SQLite, Cloudflare D1 & KV, and HTTP.

See adapters →

Plugins

Scopes, usage limits per key, IP access control, and more.

Explore plugins →

Rate Limiting

Global and token bucket strategies with persistent stores.

Learn more →

Examples

Next.js and Hono templates to get started quickly.

Browse examples →