Skip to content
Skillpedia
βœ“ Official Β· LLM Gateway (theopenco)● Free and open source☁️ RemoteπŸ”‘ Needs an API keyAI, memory and agents

LLM Gateway

Lets your AI agent chat with many LLMs, generate images, browse models and check your usage and costs.

1.7k stars on GitHubby LLM Gateway (theopenco)License NOASSERTIONUpdated 18 days ago

How to install

This MCP is remote: it runs in the cloud.

Nothing to install. Copy the address and paste it into your AI app:

Server address

https://api.llmgateway.io/mcp
  • β€ΊClaude (site or app): Settings β†’ Connectors β†’ Add custom connector.
  • β€ΊChatGPT: Settings β†’ Apps β†’ Create app (developer mode), and paste the address.
  • β€ΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.

Paste in the terminal:

claude mcp add --transport http llmgateway https://api.llmgateway.io/mcp --header "Authorization: <your value>"

What to fill in

NameWhat it isRequired
AuthorizationLLM Gateway API key as 'Bearer <api-key>'. Create one at https://llmgateway.io/dashboardYes

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Ask GPT-4o and another model the same question and compare the answers.
Show me my LLM usage and costs for this month.

What it is

LLM Gateway is an open-source gateway that sends your requests to many LLM providers through one OpenAI-compatible API. Its MCP server lets your agent chat with any model, generate images, browse the model list and see usage and costs. You can use the hosted version or run it yourself.

What it can do

  • Chat with any LLM
  • Generate images
  • Browse available models
  • Check your usage and costs
  • Underlying gateway: route requests to OpenAI, Anthropic, Google Vertex AI and others

When to use

  • β€ΊWhen you want your agent to compare answers from different models.
  • β€ΊWhen you want to see how much your LLM requests cost.
  • β€ΊWhen you want one account and API key for many providers.

What you need

An API key from llmgateway.io (hosted), or a self-hosted gateway run with Docker.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it open source?

Core functionality is under AGPLv3. Features in the ee directory need an Enterprise license.

Can I self-host it?

Yes, with Docker. The readme gives a docker run example with named volumes.

Is there a hosted version?

Yes. Create an account at llmgateway.io to get an API key.

Which providers does it support?

The readme names OpenAI, Anthropic and Google Vertex AI, among others.

Is the API compatible with OpenAI?

Yes, it uses the OpenAI API format for easier migration.

What does it track?

Requests, tokens used, response times and costs across your LLM calls.

If it does not work

  • β€ΊCheck that your LLM Gateway API key is valid and set in the server config.
  • β€ΊIf self-hosting, use Docker-managed volumes for PostgreSQL, not a host folder.
  • β€ΊRestart your AI app fully after adding the server.

5 new skills a week. 1 minute to read.