Agent tools
Use AIGateway from mainstream AI coding assistants and agent frameworks.
Claude Code
export ANTHROPIC_BASE_URL="https://api.aigateway.ltd/anthropic"
export ANTHROPIC_AUTH_TOKEN="${AIGATEWAY_API_KEY}"
export ANTHROPIC_MODEL="auto"
claudeCursor / OpenCode / Copilot
- Cursor: Settings → Models → enable OpenAI API key, set Base URL to https://api.aigateway.ltd/v1
- OpenCode: configure a provider of type openai-compatible with the same baseURL
- GitHub Copilot: add an OpenAI-compatible endpoint under custom models
LangChain / LlamaIndex
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="https://api.aigateway.ltd/v1",
api_key="sk-...",
model="auto",
)