# Free API Health Gateway

> A 429-proof, self-probing gateway for pools of free LLM tiers, with OpenAI + Anthropic front doors and a daily health report.

Free API Health Gateway is a paid AI agent skill on Agensi by Jace Reid, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Jace Reid](https://www.agensi.io/creators/wu-san)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/free-api-health-gateway
- Tags: llm-ops, api, llm, gateway, failover, rate-limits, health-check, openai

## What it does

- Fails a request over to the next working free API channel when one hits a rate limit, error or timeout
- Checks every channel's health on a schedule so dead keys stop getting your traffic
- Benches rate-limited channels with exponential backoff instead of hammering them
- Puts one stable local endpoint in front of OpenAI clients and Claude Code
- Writes a daily report of uptime, 429s, latency and which key to drop

## Who it's for

- **Founders using free AI tools:** Stop your AI apps from breaking when you hit free daily limits. Try: "Set up a gateway to rotate my free API keys from Groq and OpenRouter."
- **Developers using Claude Code or OpenCode:** Use free provider keys while your coding tool thinks it is talking to the official API. Try: "Point my coding agent at the local gateway to use free model tiers."
- **Small shop owners automating with AI:** Run your daily AI tasks at zero cost by combining several free accounts. Try: "Show me the daily report for my AI channel health."

## About this skill

If you use free AI accounts, you know the frustration. Your AI agent stops mid-task because you hit a "429" rate limit or a daily quota. This skill creates a single, stable bridge between your AI tools and a pool of free keys. When one key hits its limit, your AI agent does not crash. Instead, this skill silently switches to the next working key.

### How it works
1. You put your free API keys from different providers into a configuration file.
2. You start the skill, which begins checking which keys are healthy and which are out of quota.
3. You tell your AI agent or coding tool to talk to this local bridge instead of the main provider.
4. When you send a request, the skill picks the best working key, translates the message format if needed, and gets the answer.
5. If a key fails, the skill puts it on a "time out" and tries another one immediately without you seeing an error.

### Frameworks & tools
This skill uses a single Node.js script. It works with configuration files in JSON format and writes health reports in plain Markdown.

### Why this beats prompting it yourself
An AI agent cannot fix its own connection when an API key dies, it just stops working. This skill acts as a smart traffic controller that lives outside the chat. It remembers which keys are "on a break" even if you restart your agent, so you never waste time retrying dead accounts.

### Use cases
- Keep a coding agent running all day by cycling through multiple free model providers.
- Route simple chat tasks to basic models while saving your best "reasoning" keys for hard problems.
- Get a daily Markdown report showing which free providers are actually reliable.
- Use tools built for Claude with free keys from other providers that use the OpenAI format.

### Known limitations
You must provide your own working API keys. This skill only understands OpenAI and Anthropic message formats. It does not have built-in password protection for the local connection.

## Requires

- Node.js 20+

## Technical details

Built with Node.js (v20+), this is a zero-dependency gateway. It handles OpenAI (v1/chat/completions) and Anthropic (v1/messages) wire protocols including streaming and tool calls. It implements a circuit breaker and exponential backoff for 429 and 5xx errors. Configuration is handled via JSON, and state is persisted to a local file to track cooldowns across restarts. Includes a CLI for probing, serving, and generating Markdown health reports.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Free API Health Gateway skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What happens if one of my free AI accounts runs out of uses for the day?

This skill acts as a bridge between your AI agent and multiple free AI accounts. When one account stops working because you hit a limit, the skill automatically switches to a working one so your task keeps running without errors.

### Do I need to sign up for anything to use this?

You must have your own API keys from providers like OpenAI or Anthropic. You will also need a configuration file where you list these keys and a way to run a Node.js script on your machine.

### What kind of reports or files does this skill produce?

It creates a local web address for your AI tools to talk to instead of talking to providers directly. It also generates a daily report in Markdown format that shows you which accounts were the most reliable and how many times it saved a request from failing.

### How do I tell my AI agent to start using this bridge?

Tell your AI agent or coding tool to use http://127.0.0.1:8787 as its base URL and use the word "local" as the API key. This redirects its requests through the gateway instead of sending them straight to the main provider.

### Are there any types of AI accounts or security features it does not support?

This skill only works with OpenAI and Anthropic message formats. It does not come with its own API keys, and it does not have password protection for the local connection it creates.

### How does the skill decide which of my keys to use first?

The skill uses a rating system you set to decide which key to use first. It can also automatically send coding tasks to a coding model and general chat to a basic model to help you save your best keys for hard problems.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
