cmliussss2024/workersai2api — explained in plain English
Analysis updated 2026-05-18
Connect OpenAI-compatible chat clients like Cursor or LobeChat to Cloudflare's free AI models
Spread AI requests across multiple Cloudflare accounts to avoid hitting free-tier limits
Manage AI API keys and usage through a visual admin dashboard
| cmliussss2024/workersai2api | kris77z/web-experience-cloner | thetalhachy/frame-puzzle | |
|---|---|---|---|
| Stars | 42 | 42 | 42 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | moderate | moderate | — |
| Complexity | 3/5 | 3/5 | — |
| Audience | developer | developer | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Requires a Cloudflare account, a KV namespace binding, and an admin password before it will serve requests.
WorkersAI2API is a JavaScript project that turns Cloudflare's free Workers AI service into an API that looks and behaves like OpenAI's own API. This matters because many popular AI chat tools, such as Cursor, LobeChat, and NextChat, already know how to talk to an OpenAI style API, so once this project is deployed, those same tools can be pointed at it and start using Cloudflare's free AI models without any special integration work. Beyond plain chat, it also supports embeddings and an Anthropic compatible messages format, so it covers more than one style of AI request. A useful feature for anyone relying on the free tier is built in load balancing across multiple Cloudflare accounts: you can register several accounts, and the project spreads requests across them, automatically switching to another account if one runs out of its free quota or has a problem. The project includes a visual admin panel where you log in with a password to view usage, manage which Cloudflare accounts and API keys are connected, and customize how model names are mapped to Cloudflare's actual model identifiers. Authentication is optional: if you set an API key, the service requires it, and if you do not, it stays open to anyone who can reach it. Deployment is designed to be simple and happens entirely on Cloudflare's own infrastructure. The recommended path is dragging a single worker file into Cloudflare Pages and connecting a storage namespace called KV, along with setting a required admin password. There is also a command line path using Cloudflare's wrangler tool for developers who prefer deploying through Workers directly. After deployment, you log in, add your Cloudflare account credentials, generate a key, and then point any OpenAI compatible client at the new address to start using it.
Turns Cloudflare's free Workers AI into an OpenAI-compatible API with a visual admin panel and multi-account load balancing.
Mainly JavaScript. The stack also includes JavaScript, Cloudflare Workers, Cloudflare Pages.
No license information is given in the README.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.