Open-source SDKs for teams that sell access to an API. The SDK runs inside your API server. It checks API keys, applies each customer's rate limits and quotas, and meters their usage, then sends usage totals to UsageRail in the background. If you bill for usage, UsageRail sends each period's totals to your own Stripe account, and Stripe adds the charges to your customers' renewal invoices. It needs no gateway or proxy, and your API requests never pass through UsageRail.
Node.js 22+: Express, Hono, Fastify and Next.js (npm install @usagerail/node).
Python 3.10+: FastAPI, Starlette, Flask and Django (pip install usagerail).
Neither SDK has runtime dependencies of its own. Source code, issues and releases are on GitHub. MIT licensed.
UsageRail SDK
Node.js and Python SDKs for API keys, rate limits and usage metering
Brought to you by:
jackmally
Downloads:
0 This Week
Windows
Mac
Linux
BSD
ChromeOS