# liter-llm

liter-llm is a Claude Code MCP server that unifies 174 LLM providers into a single toolset. Agents switch between cloud models and local backends without code rewrites.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 267 repo stars
- Author: xberg-io
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/xberg-io/liter-llm
- Updated: 2026-11-24
- Security check: automated, 2026-11-24 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/liter-llm

## What it does

The server provides tools for completions, embeddings, document OCR, and web search across 174 AI vendors. Supported platforms include Anthropic, OpenAI, AWS Bedrock, Groq, and self-hosted runtimes such as Ollama, llama.cpp, or vLLM. Switching targets only requires altering the model name string.

A Rust-based engine drives execution through a Node.js CLI launcher. The system handles fallback routing according to latency or pricing, budget enforcement, and caching backed by OpenDAL. Custom settings and private providers are configured inside `liter-llm.toml`.

Calls to commercial cloud endpoints depend on valid API keys, and running via npx requires Node.js.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add liter-llm -- npx -y @xberg-io/liter-llm-cli
```

### Codex

**Platform CLI**
```bash
codex mcp add liter-llm -- npx -y @xberg-io/liter-llm-cli
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "liter-llm": {
            "command": "npx",
            "args": [
                "-y",
                "@xberg-io/liter-llm-cli"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "liter-llm": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@xberg-io/liter-llm-cli"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add liter-llm npx -y @xberg-io/liter-llm-cli
```

## When to use it
- access 170+ LLM providers
- switch model backends without rewrites
- connect local models from Ollama and vLLM
- route traffic and handle provider failover
- enforce token budgets and cache completions

## Example prompts
- Send this prompt to DeepSeek using liter-llm and return the output
- Generate embeddings using the local Ollama instance
- Search the web using liter-llm search tools

## Similar
- [openclaude-multi-llm](https://affpapa.org/en/nevibecode/skills/openclaude-multi-llm.md) — skill · 725 installs
- [llm-cli](https://affpapa.org/en/nevibecode/skills/llm-cli.md) — skill · 235 installs
- [llm-integration](https://affpapa.org/en/nevibecode/skills/orchestkit-llm-integration.md) — skill · 218 installs
- [caveman-setup](https://affpapa.org/en/nevibecode/skills/caveman-setup.md) — skill · 127300 installs
- [llm-application-dev](https://affpapa.org/en/nevibecode/skills/llm-application-dev.md) — skill · 467 installs
- [local-llm-ops](https://affpapa.org/en/nevibecode/skills/local-llm-ops.md) — skill · 478 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
