Skip to content
@aigateway-sh

AI Gateway

The last AI API key you'll ever need

AIgateway

One OpenAI-compatible endpoint to every frontier model — text, image, video, voice, audio, embeddings.

Website Docs Status License


What this is

A single API that gives you 150+ models across 44 labs — Anthropic, OpenAI, Google, Moonshot, Meta, Mistral, DeepSeek, Black Forest Labs, Stability, Deepgram, ElevenLabs, Runway, and more — behind one key and one OpenAI-compatible endpoint.

curl https://api.aigateway.sh/v1/chat/completions \
  -H "Authorization: Bearer sk-aig-..." \
  -d '{"model":"anthropic/claude-opus-4.7","messages":[{"role":"user","content":"hi"}]}'

No code rewrite. Drop-in for the openai SDK. Pay cost + 5% — no markup games.

Repos in this org

Repo What it is
cli aig — call any model, mint keys, run evals, tail traffic from your terminal. npm · aigateway-cli
sdk-node TypeScript SDK for async jobs, sub-accounts, evals, replays, webhooks. npm · aigateway-js
sdk-python Python SDK — same surface. PyPI · aigateway-py
examples Runnable code — chat, embeddings, image, voice, multimodal agents. One-click Vercel deploys.
mcp-server Reference Model Context Protocol server. Hosted mirror at api.aigateway.sh/mcp.
openapi Canonical OpenAPI 3.1 spec. Generate clients, import to Postman, feed to agents.
llms-txt llms.txt, llms-full.txt, agents.md — the capability map agents can self-configure against.
awesome-ai-gateway Curated list of integrations, agents, frameworks, and community projects.

30-second start

pip install aigateway-py
pnpm add aigateway-js
npm i -g aigateway-cli && aig init

Or keep the OpenAI SDK you already have — just change the base URL:

from openai import OpenAI
client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

Get a key at aigateway.sh/signin — free tier included.

For coding agents

Point your agent at our capability map and it will self-configure:

https://aigateway.sh/llms.txt        → short capability map
https://aigateway.sh/llms-full.txt   → full model catalog with pricing
https://aigateway.sh/agents.md       → agent onboarding guide
https://aigateway.sh/openapi.json    → OpenAPI 3.1 spec
https://api.aigateway.sh/mcp         → MCP (Streamable HTTP)
https://api.aigateway.sh/mcp/sse     → MCP (SSE, legacy)

Works out of the box with Claude Code, Cursor, Cline, Aider, Continue.dev, OpenClaw, Mastra, LangChain, LlamaIndex, Vercel AI SDK, n8n, LiteLLM, and Promptfoo.

Why AIgateway

  • No per-provider dance. One key replaces 10+ accounts.
  • Failover built in. If one provider dies, we route around it.
  • Sub-accounts per customer. Mint scoped keys with spend caps and tags in one API call.
  • Evals, replays, job primitives. Things the OpenAI SDK doesn't model but production needs.
  • MCP-native. Every primitive is callable from any MCP-aware agent.
  • Cost + 5%. Transparent pricing. No tier games.

Support

Follow

github.com/aigateway-sh · x.com/buildwithrakesh · linkedin.com/in/rakeshroushan1002


MIT licensed across the org. Made with care by one engineer on Cloudflare Workers in San Francisco.

Popular repositories Loading

  1. .github .github Public

    Organization profile and shared community health files.

  2. cli cli Public

    aigateway-cli — the aig command-line tool for AIgateway. One API, every model.

    TypeScript

  3. llms-txt llms-txt Public

    The canonical llms.txt + agents.md for AIgateway. Point any coding agent at this file.

  4. awesome-ai-gateway awesome-ai-gateway Public

    A curated list of patterns, evals, and integrations for AIgateway and OpenAI-compatible gateways.

  5. openapi openapi Public

    Public mirror of the live OpenAPI 3.1 spec at api.aigateway.sh/openapi.json.

  6. mcp-server mcp-server Public

    Reference MCP (Model Context Protocol) server implementation for AIgateway.

    TypeScript

Repositories

Showing 9 of 9 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…