Plugins
Add model discovery, inference and account tools to your agent. Choose your client, install the integration and sign in.
On this page
Install the integration for your client below, then follow its sign-in step. Approve a monthly spending cap in the browser and ask the agent to check your balance or list models. The plugin source is github.com/xavadao/xinf-plugin.
Plugins add tools to your agent. To change the models powering Codex or Claude Code itself, follow coding-agent setup.
What is included
| part | name | what it does |
|---|---|---|
| skill | using-xinf | pick a model, OpenAI-compatible base URL, keys, balance, errors |
| skill | xinf-media | generate images, video and audio through the tools or /v1, and return the URLs |
| skill | xinf-models-and-pricing | list prices and cost-effective choices |
| skill | xinf-buybacks | how an account's buyback token works, Reward Status, and $INFX |
| commands | /xinf:login /xinf:setup /xinf:models /xinf:balance /xinf:usage /xinf:generate-image | slash commands (Claude Code, Cursor, Kimi) |
| subagent | model-picker | recommends a model for a task by price and capability; read-only |
Spending limits
A signed-in agent spends your balance up to the monthly cap you picked on the consent screen (default $50 a month); past it, requests are refused with 402 spending_cap_reached before anything runs. Change the cap or revoke the app in your dashboard under API keys, Connected apps. The device login (xinf-login) stores an API key for your account with the same cap in ~/.xinf/credentials, readable only by you; it is an account key you can revoke there, never a wallet key.
The plugin never asks you to create a wallet or keep a private key on your computer.
Claude Code
Installs the plugin (the MCP server, five skills, /xinf commands and a model-picker subagent), then signs you in.
claude plugin marketplace add xavadao/xinf-plugin && claude plugin install xinf@xinf --config base_url=https://xavainf.com && claude mcp login plugin:xinf:xinf
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.
or only the MCP server (the second command opens the browser sign-in)
claude mcp add --transport http xinf https://xavainf.com/mcp/account && claude mcp login xinf
or with an API key instead of signing in
claude mcp add --transport http xinf https://xavainf.com/mcp \ --header "Authorization: Bearer $XINF_API_KEY"
Claude Desktop
Claude Desktop, claude.ai and the Claude mobile apps: add a custom connector with this URL.
https://xavainf.com/mcp/account
Sign in: Click Connect: sign in in the browser, pick a monthly cap, Allow. Team and Enterprise plans: an owner adds it under Organization settings > Connectors.
Codex
Installs the plugin in Codex (skills and the MCP server), then signs you in.
codex plugin marketplace add xavadao/xinf-plugin && codex plugin add xinf@xinf && codex mcp login xinf
Sign in: The command ends by opening your browser: sign in, pick a monthly cap, Allow. Done. To sign in again later: codex mcp login xinf.
or only the MCP server (starts the sign-in by itself)
codex mcp add xinf --url https://xavainf.com/mcp/account
or with an API key (~/.codex/config.toml): the header is sent only when the variable is set
[mcp_servers.xinf]
url = "https://xavainf.com/mcp/account"
env_http_headers = { "Authorization" = "XINF_AUTHORIZATION" }
# in your shell: export XINF_AUTHORIZATION="Bearer $XINF_API_KEY"~/.codex/xinf.config.toml (optional: run Codex itself on our models)
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
Export XINF_API_KEY in the terminal first; MCP sign-in does not set it. Save this as a separate profile file. Key creation and verification are in the Codex & Claude Code guide.
Cursor
Adds the MCP server to Cursor (the app and the cursor-agent CLI), then signs you in.
curl -fsSL https://raw.githubusercontent.com/xavadao/xinf-plugin/main/scripts/add-mcp.mjs | node --input-type=module - cursor --login
Sign in: With the Cursor CLI installed, the command ends by opening your browser: sign in, pick a monthly cap, Allow. Only the app: Settings > MCP, click "Needs login" next to xinf, then Allow. Later: cursor-agent mcp login xinf.
or the full plugin (skills, commands, the MCP server) in Cursor chat, then Settings > MCP > Needs login
/add-plugin https://github.com/xavadao/xinf-plugin
or by hand (~/.cursor/mcp.json), then cursor-agent mcp login xinf
{
"mcpServers": {
"xinf": { "url": "https://xavainf.com/mcp/account" }
}
}or the one-click MCP install link (opens Cursor: Install, then Needs login)
cursor://anysphere.cursor-deeplink/mcp/install?name=xinf&config=eyJ1cmwiOiJodHRwczovL3hhdmFpbmYuY29tL21jcC9hY2NvdW50In0=
chat models (Settings > Models)
Override OpenAI Base URL: https://xavainf.com/v1 OpenAI API Key: xk_live_... Add model: anthropic/claude-sonnet-5
Gemini CLI
Installs the extension and starts Gemini CLI, which offers the browser sign-in right away.
gemini extensions install https://github.com/xavadao/xinf-plugin --consent && gemini
Sign in: Gemini asks "Authentication required for MCP Server: xinf ... Do you want to continue?": press Enter, sign in in the browser, pick a monthly cap, Allow. Later: /mcp auth xinf.
or only the MCP server, then /mcp auth xinf inside Gemini
gemini mcp add --transport http xinf https://xavainf.com/mcp/account
OpenCode
Installs the plugin globally, adds the MCP server to your OpenCode config, then signs you in.
curl -fsSL https://raw.githubusercontent.com/xavadao/xinf-plugin/main/scripts/install-opencode.sh | sh && opencode mcp auth xinf
Sign in: The command ends by opening your browser (opencode mcp auth xinf): sign in, pick a monthly cap, Allow.
or by hand (opencode.json), then opencode mcp auth xinf
{
"mcp": {
"xinf": {
"type": "remote",
"url": "https://xavainf.com/mcp/account",
"enabled": true
}
},
"provider": {
"xinf": {
"npm": "@ai-sdk/openai-compatible",
"name": "Xava Inference",
"options": { "baseURL": "https://xavainf.com/v1", "apiKey": "{env:XINF_API_KEY}" },
"models": { "anthropic/claude-sonnet-5": {}, "openai/gpt-5.4": {} }
}
}
}The model provider part needs a key in XINF_API_KEY (device login or dashboard); the MCP server signs in by itself.
Kimi
Installs the plugin in Kimi Code (choose Trust and install); it applies in a new session.
/plugins install https://github.com/xavadao/xinf-plugin
Sign in: Choose "Trust and install", run /new, then /mcp-config login plugin-xinf:xinf: sign in in the browser, pick a monthly cap, Allow. Kimi Code must be signed in (its model runs the login).
or only the MCP server (terminal), then /new and /mcp-config login xinf
curl -fsSL https://raw.githubusercontent.com/xavadao/xinf-plugin/main/scripts/add-mcp.mjs | node --input-type=module - kimi
Pi
Installs the Pi package (the skills plus the MCP server), then signs you in.
pi install git:github.com/xavadao/xinf-plugin@v0.1.1 && pi "/mcp-auth xinf"
Sign in: The command ends by opening your browser (pi "/mcp-auth xinf"): sign in, pick a monthly cap, Allow. Later, inside Pi: /mcp-auth xinf.
Cline
Paste into MCP Servers > Configure, then Authenticate: no key to paste.
{
"mcpServers": {
"xinf": {
"type": "streamableHttp",
"url": "https://xavainf.com/mcp/account"
}
}
}Sign in: In the MCP Servers panel, xinf shows Authenticate: click it, sign in in the browser, Allow (VS Code asks once to open the link back).
or from a terminal (merges it into Cline's settings file in VS Code)
curl -fsSL https://raw.githubusercontent.com/xavadao/xinf-plugin/main/scripts/add-mcp.mjs | node --input-type=module - cline
chat models (API Provider: OpenAI Compatible)
Base URL: https://xavainf.com/v1 API Key: xk_live_... Model ID: anthropic/claude-sonnet-5
Windsurf
Merge into Cascade's MCP config (~/.codeium/windsurf/mcp_config.json; newer builds ~/.config/devin/mcp_config.json), or run the terminal line below.
{
"mcpServers": {
"xinf": {
"serverUrl": "https://xavainf.com/mcp/account"
}
}
}Sign in: Refresh the MCP servers in Cascade and sign in to xinf when it asks (browser, monthly cap, Allow). If Windsurf offers no sign-in, use the device login and the key config below.
or from a terminal (merges it into the Windsurf config)
curl -fsSL https://raw.githubusercontent.com/xavadao/xinf-plugin/main/scripts/add-mcp.mjs | node --input-type=module - windsurf
no sign-in offered: the device login saves a connection key (then set XINF_API_KEY and restart Windsurf)
curl -fsSLo xinf-login.mjs https://raw.githubusercontent.com/xavadao/xinf-plugin/main/bin/xinf-login.mjs node xinf-login.mjs export XINF_API_KEY="$(sed -n 's/^XINF_API_KEY=//p' ~/.xinf/credentials)"
and the config with the key
{
"mcpServers": {
"xinf": {
"serverUrl": "https://xavainf.com/mcp/account",
"headers": { "Authorization": "Bearer ${env:XINF_API_KEY}" }
}
}
}Any OpenAI SDK
Two lines: every OpenAI-compatible SDK and framework picks these up.
OPENAI_BASE_URL=https://xavainf.com/v1 OPENAI_API_KEY=xk_live_...
Configure the agent's model API
To run the agent itself on your balance, use the coding-agent guide. This is separate from installing MCP tools.
Claude Code: base URL, key and model settings