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.

Project Activity

See All Activity >

License

MIT License

Follow UsageRail SDK

UsageRail SDK Web Site

Other Useful Business Software
Cut Data Warehouse Costs by 54% Icon
Cut Data Warehouse Costs by 54%

Easily migrate from Snowflake, Redshift, or Databricks with free tools.

BigQuery delivers 54% lower TCO with exabyte scale and flexible pricing. Free migration tools handle the SQL translation automatically.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of UsageRail SDK!

Additional Project Details

Programming Language

JavaScript, Python, TypeScript

Related Categories

Python HTTP Servers, Python Libraries, JavaScript HTTP Servers, JavaScript Libraries, TypeScript HTTP Servers, TypeScript Libraries

Registered

6 hours ago