llms.txt
What AgentKeyRoute is, the gateway URL, authentication and copy-paste setup for every common tool.
Set up with your AI agent
Claude Code, Codex, Cursor and other coding agents can read AgentKeyRoute's machine-readable docs and connect your project themselves. Paste one prompt, add your key, and every LLM call goes through one governed gateway.
Step 1 · Paste this into your coding agent
Create a free key first, then put it in the AGENTKEYROUTE_API_KEY environment variable. The agent never needs to see it.
Set up AgentKeyRoute for this project. Read https://agentkeyroute.com/llms.txt and follow its "Instructions for AI coding agents": route this project's LLM calls (and your own, if you are Claude Code, Codex or Cursor) through https://gateway.agentkeyroute.com, read the key from the AGENTKEYROUTE_API_KEY environment variable, never hard-code it, then make one test call to GET /v1/models and show me the result.
Prefer to do it yourself
The gateway is OpenAI- and Anthropic-compatible, so existing code and tools keep working.
export ANTHROPIC_BASE_URL="https://gateway.agentkeyroute.com" export ANTHROPIC_AUTH_TOKEN="$AGENTKEYROUTE_API_KEY" claude
model_provider = "agentkeyroute" [model_providers.agentkeyroute] name = "AgentKeyRoute gateway" base_url = "https://gateway.agentkeyroute.com/v1" env_key = "AGENTKEYROUTE_API_KEY" wire_api = "responses"
OpenAI API Key: <your AgentKeyRoute key> Override OpenAI Base URL: https://gateway.agentkeyroute.com/v1 Add custom model: <a model your key may use>
import os
from openai import OpenAI
client = OpenAI(base_url="https://gateway.agentkeyroute.com/v1",
api_key=os.environ["AGENTKEYROUTE_API_KEY"])import os, anthropic
client = anthropic.Anthropic(base_url="https://gateway.agentkeyroute.com",
api_key=os.environ["AGENTKEYROUTE_API_KEY"])Using something else? Setup guides for 80+ tools, from Aider and Cline to LangChain, n8n and voice agents.
For AI agents and LLM tools
What AgentKeyRoute is, the gateway URL, authentication and copy-paste setup for every common tool.
Every documentation page in one plain-text file, from quickstart to API errors.
Add .md to any page, or send Accept: text/markdown, and you get clean Markdown instead of HTML.
See also AgentKeyRoute for startups and how it compares.
Free for small teams. One base URL change.