Skip to content
agents · plugin

Give your agent every model.

One install. 312 models at list price, on one key. Every prompt buys back a token you pick.

312models, one MCP server
11AI clients, one command each
161image, video and audio models
1sign-in, then a monthly cap
Every agent, one key, every modelClaude Code, Codex, Cursor, Gemini CLI, OpenCode and 6 more AI clients send their calls down one wire each into a single junction: one key, one MCP server. From it a fan reaches the 312 models of 49 makers, OpenAI, Google, MiniMax, Alibaba and more.Claude Code> chat DecisionsCodex> chat Gemini 2.5 FlashCursor> chat MiniMax M2.7Gemini CLI> chat Qwen 3 MaxOpenCode> chat Claude Fable 5OpenAIGoogleMiniMaxAlibabaAnthropicMetaxAIRecraftByteDance+ 40 more makers+ 6 more clients1 KEYmcp · /v1
select your agent

One command. Every model.

Pick your client, paste one line. The plugin is open source on GitHub.

Paste this in your terminal.

terminal
claude plugin marketplace add xavadao/xinf-plugin && claude plugin install xinf@xinf --config base_url=https://xavainf.com && claude mcp login plugin:xinf:xinf

Then sign in: The command ends by opening your browser: sign in, pick a monthly cap, Allow. Done. If Claude Code ever says the server needs authentication: /mcp, pick plugin:xinf:xinf, Authenticate.

More setup for Claude Code →

your agent, our models

Use Claude Code with your key.

Set your API key, base URL and model to run the agent from your balance. No plugin needed.

terminal · replace with your dashboard key
export XINF_API_KEY="xk_live_REPLACE_WITH_YOUR_KEY"

Claude Code

terminal (or your shell profile)
export ANTHROPIC_BASE_URL="https://xavainf.com"
export ANTHROPIC_AUTH_TOKEN="$XINF_API_KEY"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-4-5"
claude --model claude-sonnet-5

Set XINF_API_KEY to your dashboard key first. Use the site origin without /v1: Claude Code adds /v1/messages. ANTHROPIC_AUTH_TOKEN sends your key as a bearer token; ANTHROPIC_API_KEY is an alternative for x-api-key authentication. Use one credential variable, clearing a conflicting one if needed. The example pins Sonnet and background Haiku; select models available in this site's catalog. Run /status to check the base URL and credential source.

Codex

~/.codex/xinf.config.toml
model = "openai/gpt-5.4-mini"
model_provider = "xinf"
web_search = "disabled"

[model_providers.xinf]
name = "Xava Inference"
base_url = "https://xavainf.com/v1"
env_key = "XINF_API_KEY"
wire_api = "responses"
requires_openai_auth = false

# then, in the terminal with your key exported:
# codex --profile xinf

Create this separate file alongside ~/.codex/config.toml, then run codex --profile xinf in the terminal where XINF_API_KEY is exported. Current Codex uses top-level profile settings, not a [profiles.xinf] table in config.toml. Include /v1 in base_url; Codex adds /responses. env_key is the variable's name, not the secret. Choose an available OpenAI text model; bare ids such as gpt-5.4-mini also work. Web search is disabled because hosted search tools are not supported by this API.

Gemini CLI

terminal (or your shell profile)
export GOOGLE_GEMINI_BASE_URL=https://xavainf.com
export GEMINI_API_KEY=$XINF_API_KEY
gemini -m gemini-2.5-flash

Choose "Use Gemini API key" when Gemini CLI asks how to sign in. Gemini model ids map to our catalog; any other chat model works by its full id. Token counts are estimates; cached content and the file API are not supported.

No key yet? Create one, or run the device login from your agent's setup above: it saves one to ~/.xinf/credentials. Details: agent docs.

agentic apps

Build agentic apps with one key.

Your own code, any OpenAI-compatible SDK.

python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://xavainf.com/v1",
    api_key=os.environ["XINF_API_KEY"],
)

r = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)
faq

Short answers.

What does the plugin do?
It lets your AI agent use every model we offer: it can write, make images, video and audio, check prices and see your balance, all from inside the agent you already use. Details are in the agent docs.
Do I need an account?
Yes, and it takes one click: sign in once from your agent. It opens your browser, you sign in (a free account is created the first time), pick a monthly spending cap and click Allow. No key to copy, and nothing secret is stored on your computer by us.
Can my agent overspend?
No. A signed-in agent can spend at most the monthly cap you picked when you allowed it.
Do I need to create a wallet or keep a private key on my computer?
No, never. Our plugin does not create, read or store private keys. Sign in instead: your agent spends your account balance within your monthly cap.
Which agents are supported?
Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, OpenCode, Kimi, Pi, Cline, Windsurf, Any OpenAI SDK. Any other MCP client works too; see the MCP docs.
Where does my key live?
With browser sign-in there is no key to handle: your agent keeps its own token, and you can see and revoke every connected app in your dashboard under API keys. If you use a key or the device login instead, it lives in the XINF_API_KEY environment variable or ~/.xinf/credentials on your computer, never in a file you share.
Can a connected app spend my whole balance?
Only up to the monthly cap you picked when you allowed it (default $50 a month). Change the cap or disconnect the app any time in your dashboard under API keys, Connected apps.
Do you keep my prompts?
No. We never store your prompts or replies; we keep billing details only: model, amount and time. Zero data retention end to end on models marked ZDR supported; uploaded references and generated files auto-delete after 24 hours. On a model marked ZDR supported, neither we nor the model provider store your prompts or outputs; on other models the model provider's own retention policy applies.
docs

The rest is in the docs.