Authorization notice. Freellmapi is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer who uses Codex CLI for terminal coding help and wants to test it without a paid model subscription.
The problemCodex CLI needs the Responses API surface, which most free-tier wrappers do not offer.
The outcomeCodex CLI sends its requests to the router's /v1/responses endpoint and gets answers from the free pool.
What you need first
- Node 20 or newer, or Docker for the one-liner install
- API keys from one or more free-tier providers (for example Google, Groq, Cerebras, Mistral, OpenRouter)
- A machine that can run the router on localhost:3001
Steps
- Install and start the router, then add provider keys and copy the unified key from the Keys page.
- Set Codex CLI's base URL to http://localhost:3001/v1 and use the unified key as its API key.
- Check your Codex CLI config file for the base URL and key fields and update them. (inferred, check the README)
- Run a short Codex CLI task in a test directory.
- Check the router dashboard to confirm the request was logged.
Prompt for your agent
In the freellmapi repo (tashfeenahmed/freellmapi), configure Codex CLI in <project-path> to use http://localhost:3001/v1 with the unified key from the Keys page. Expected output: Codex CLI completes a small task. Verify that the router logs a /v1/responses request.
Caveat. The README names /v1/responses as what Codex CLI needs, but the exact Codex CLI config keys are not documented here, so the config step is inferred.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for tashfeenahmed/freellmapi and "Use Codex CLI through the router's responses endpoint"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer