# OpenLLM: One key for all your AI.

Your AI subscriptions, local models and API keys become one OpenLLM key. Use it in any agent, app or tool that takes an API key.

Free to start. Inference included, no card.

Paste this into your agent:

```text
Read https://www.openllm.sh/llms.txt and set up OpenLLM on this machine.
```

## Setup facts

- **Install:** `curl -fsSL https://www.openllm.sh/install | bash`. Headless or agent run: pipe to bash -s -- --non-interactive instead.
- **Sign in:** `openllm login --non-interactive`. Prints a link and a code. The user approves in the browser; no key to paste.
- **Hosted base URL:** `https://www.openllm.sh/v1`. API keys and included inference.
- **Local base URL:** `http://127.0.0.1:8787/v1`. Subscriptions and local models, through the daemon on this machine.
- **Key:** `OPENLLM_API_KEY`. An sk-llm key from sign-in. Never print it.
- **Models:** `GET /v1/models`. Send the key. Use the IDs it returns.
- **Formats:** `OpenAI Chat Completions, OpenAI Responses, Anthropic Messages`. Point any client that speaks one of them at a base URL above.
- **MCP:** `openllm mcp`. A stdio MCP server for memory, auth and gateway tools.

## Agents

- [Claude Code](https://www.openllm.sh/works-with/claude-code): starts with `openllm claude`.
- [Codex](https://www.openllm.sh/works-with/codex): starts with `openllm codex`.
- [OpenCode](https://www.openllm.sh/works-with/opencode): starts with `openllm opencode`.
- [Hermes Agent](https://www.openllm.sh/works-with/hermes-agent): starts with `openllm hermes`.
- OpenClaw: set its OpenAI or Anthropic base URL to https://www.openllm.sh/v1 and its key to your OpenLLM key.
- Goose: set its OpenAI or Anthropic base URL to https://www.openllm.sh/v1 and its key to your OpenLLM key.
- n8n: set its OpenAI or Anthropic base URL to https://www.openllm.sh/v1 and its key to your OpenLLM key.
- [Grok Build](https://www.openllm.sh/works-with/grok-build): starts with `openllm grok`.
- [Raycast](https://www.openllm.sh/works-with/raycast): starts with `openllm raycast`.

## Plans and keys

Claude, ChatGPT, Cursor, Kimi, Grok, OpenCode Go, Ollama, LM Studio, plus API keys from the major providers.

## Links

- [Agent guide](https://www.openllm.sh/llms.txt): the full onboarding guide for agents.
- [Docs](https://docs.openllm.sh): guides and reference.
- [Pricing](https://www.openllm.sh/pricing): free to start, inference included.
- [Developers](https://www.openllm.sh/developers): add Connect with OpenLLM to your app.
