Use OpenNodes from the tools you already have
Three ways in, all free and open source: an MCP server for editors and agents, an Ollama-compatible router for local-AI apps, and an OpenAI-compatible gateway for SDKs and frameworks. Nothing here routes your prompts through OpenNodes: discovery is metadata, invocation goes straight to the node.
Editors and assistants (MCP)
Any MCP host gets seven read-only tools — recommend, search_offerings, get_offering, get_node, estimate, find_locations, find_residency — from one stdio server. The advisor extracts features from your prompt locally and sends only those to the registry; the prompt itself never leaves your machine.
Claude Code Plugin
The plugin adds the same tools plus /opennodes:quote: before bulk AI work it shows a priced table (what you use now, your own machine, checked hosts, the cheapest option, an in-region one), each with what it means for your data, and runs nothing until you choose. In a Claude Code terminal:
/plugin marketplace add opennodes-io/opennodes
/plugin install opennodes@opennodes
Only the MCP tools, with one command:
claude mcp add --scope user opennodes -- npx -y @opennodes/cli@0.1.35 mcp
Claude Desktop MCP
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{ "mcpServers": { "opennodes": { "command": "npx", "args": ["-y", "@opennodes/cli@0.1.35", "mcp"] } } }
Cursor MCP
Add to Cursor opens Cursor, which asks you to confirm
Or add to ~/.cursor/mcp.json (or Settings → MCP → Add new server):
{ "mcpServers": { "opennodes": { "command": "npx", "args": ["-y", "@opennodes/cli@0.1.35", "mcp"] } } }
Quote before run. Add the rule to a project, and before bulk AI work Cursor's agent shows a priced table of options (what you use now, your own machine, checked hosts, the cheapest, an in-region one), each with what it means for your data, and runs nothing until you choose. Then it can pilot the chosen option through the local gateway. From the project folder:
mkdir -p .cursor/rules
curl -fsSL -o .cursor/rules/opennodes-quote.mdc https://raw.githubusercontent.com/opennodes-io/opennodes/main/plugins/cursor/opennodes-quote.mdc
In Windows PowerShell:
New-Item -ItemType Directory -Force .cursor\rules | Out-Null
Invoke-WebRequest -OutFile .cursor\rules\opennodes-quote.mdc https://raw.githubusercontent.com/opennodes-io/opennodes/main/plugins/cursor/opennodes-quote.mdc
Then ask, for example, quote translating the 2,000 files in ./docs into German.
VS Code (Copilot agent mode) MCP
Install in VS Code opens VS Code, which asks you to confirm
Or add to .vscode/mcp.json in the workspace, or the user mcp.json:
{ "servers": { "opennodes": { "type": "stdio", "command": "npx", "args": ["-y", "@opennodes/cli@0.1.35", "mcp"] } } }
Windsurf MCP
Add to ~/.codeium/windsurf/mcp_config.json:
{ "mcpServers": { "opennodes": { "command": "npx", "args": ["-y", "@opennodes/cli@0.1.35", "mcp"] } } }
Kiro MCP
Add to ~/.kiro/settings/mcp.json for all projects, or .kiro/settings/mcp.json for one workspace (Command Palette → "Kiro: Open user MCP config (JSON)"). All seven tools are read-only, so they can be auto-approved:
{ "mcpServers": { "opennodes": { "command": "npx", "args": ["-y", "@opennodes/cli@0.1.35", "mcp"], "autoApprove": ["recommend", "search_offerings", "get_offering", "get_node", "estimate", "find_locations", "find_residency"] } } }No install: point Kiro at the hosted server instead. The remote recommend sends the task text to the registry; the local server above sends only features extracted on your machine.
{ "mcpServers": { "opennodes": { "url": "https://registry.opennodes.io/mcp" } } }
Any remote-MCP host or agent framework MCP over HTTP
The hosted registry is itself an MCP server (streamable HTTP, stateless) — no install at all:
https://registry.opennodes.io/mcpPoint LangGraph, the OpenAI Agents SDK, n8n, or any MCP-capable agent at it to give the agent discovery, task-based recommendation and enforceable pre-pricing as tools.
Ollama apps (local, LAN, and verified public models)
npx @opennodes/ollama-router@0.1.29 starts an Ollama-compatible endpoint on port 11435 whose model list spans your local Ollama, other machines on your LAN, and verified public nodes — plus auto, auto-cheap, auto-fast, auto-quality and auto-private (never leaves your network). Every app below works unchanged: it only needs the Ollama address.
Ollama CLI Ollama
npx @opennodes/ollama-router@0.1.29
export OLLAMA_HOST=127.0.0.1:11435 # PowerShell: $env:OLLAMA_HOST="127.0.0.1:11435"
ollama list
ollama run auto-private "summarize this confidential note …"
Open WebUI Ollama
Admin Panel → Settings → Connections → Ollama API: set the URL to the router. From Docker, use the host alias:
http://host.docker.internal:11435Or, as an OpenAI connection, use the gateway (below) with its token as the key.
Continue (VS Code / JetBrains) Ollama
In config.yaml:
models:
- name: OpenNodes auto
provider: ollama
model: auto
apiBase: http://localhost:11435
Zed Ollama
In settings.json:
{ "language_models": { "ollama": { "api_url": "http://localhost:11435" } } }
JetBrains AI Assistant · Msty · Enchanted · Raycast · LM Studio clients Ollama
Wherever the app asks for the Ollama host or URL, enter http://localhost:11435. The merged model list appears in the app's picker; choose auto-private for anything that must stay on your machines.
OpenAI-compatible SDKs, frameworks and apps (gateway)
npx @opennodes/cli@0.1.35 gateway --port 4141 --token dev-secret runs a local OpenAI-compatible server over discovered nodes. Models are concrete offerings (node_id/offering_id), your aliases, query-defined virtual models, and the advisor-routed onp/auto family. Every call is pinned to a card revision, policy-checked, receipted and logged; a price change is recovered transparently. From cli 0.1.34, without --token it serves only this machine, by a local address such as 127.0.0.1 or localhost; web pages other than localhost need --allow-origin <origin>, and request bodies must be application/json.
OpenAI SDK — Python OpenAI API
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:4141/v1", api_key="dev-secret")
r = client.chat.completions.create(model="onp/auto", messages=[{"role": "user", "content": "Hello"}])
print(r.choices[0].message.content)
OpenAI SDK — JavaScript / TypeScript OpenAI API
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "http://127.0.0.1:4141/v1", apiKey: "dev-secret" });
const r = await client.chat.completions.create({ model: "onp/auto-cheap", messages: [{ role: "user", content: "Hello" }] });
LangChain · LlamaIndex · LiteLLM · Vercel AI SDK · n8n · Dify OpenAI API
Use their OpenAI provider with the base URL http://127.0.0.1:4141/v1 and the gateway token as the key; pick onp/auto or a concrete offering as the model name. LiteLLM: openai/onp/auto with api_base set to the gateway.
Spend and receipts OpenAI API
Read the ledger at any time with the gateway token. From cli 0.1.34 the gateway's own API needs it: your --token, or the one the gateway keeps in ~/.opennodes/gateway-token (PowerShell: $TOKEN = Get-Content ~/.opennodes/gateway-token).
TOKEN=$(cat ~/.opennodes/gateway-token) # or your --token
curl -H "authorization: Bearer $TOKEN" http://127.0.0.1:4141/gateway/receipts # total cost, per-call receipts
curl -H "authorization: Bearer $TOKEN" http://127.0.0.1:4141/gateway/advice # why onp/auto picked what it pickedonp/auto only routes to what you can call: free registered nodes, plus imported catalogs you hold a key for. Keys come from --key openrouter.ai=sk-or-…, or, with --env-keys, from variables you already have set (OPENROUTER_API_KEY, HF_TOKEN, OPENAI_API_KEY, …); each is sent only to its own host. From cli 0.1.34, without --env-keys the gateway reads none of them (0.1.33 and older always read them). Registered nodes join the pool from the community tier up; imported listings are unverified, so they rank lower on trust. --min-tier verified keeps every request, named models included, on verified nodes; --min-tier unverified also admits registered nodes that haven't passed their checks yet.
Check a listing yourself before relying on it: npx @opennodes/cli@0.1.35 check <node_id>/<offering_id> runs a short battery with your key and a $0.02 cap (model listed, answers, token counts, speed, a long-prompt fact test, declared JSON and tool support). The gateway then skips what failed and uses what you measured. It also learns from your real calls (outcome and timing only, never prompts): a listing that keeps failing is benched for a while, and one that works rises.
Embeddings for RAG: POST /v1/embeddings with model: "onp/auto" uses an embedding model already pulled into your local Ollama first (ollama pull nomic-embed-text), so your documents stay on your machine; otherwise a hosted embedder you hold a key for. onp/auto-private never leaves the machine.
In the browser, on the desktop, and for operators
The registry web app Browser
registry.opennodes.io: catalog with hardware and measured performance, model and node pages, the advisor, a playground, and a multi-model chat (compare, jury, pipeline, iterative) that talks straight from your browser to the nodes — scenarios save locally and share by link, no account.
Surge (desktop) Desktop
A desktop client that spans both layers — models through OpenNodes, tools through MCP — with the advisor, verified receipts under every reply, a spend policy, and a one-click private mode. Pre-release: Windows installer, source on GitHub (Apache-2.0).
Serve your own model Operator
pipx install onp-node==0.1.11
onp-node init --engine http://127.0.0.1:11434/v1 --id org.example.ai --public-url https://ai.example.org
onp-node serve && onp-node check && onp-node register https://registry.opennodes.ioThe node id is the reverse of the host that serves it; registration proves control of that host, then the automated battery earns the tier.
Already run an OpenAI-compatible API? List it without a proxy: onp-node card signs a static card you host on your domain, and the registry probes your real API with a key you provide — see card-only listing. Imported listings that point at your own API are retired once you're verified.
Run your own registry Operator
npx @opennodes/registry@0.1.57 # web app + API + MCP on http://127.0.0.1:4300Production recipe (Postgres, TLS, backups, re-imports): deploy/registry. Point any client above at it with ONP_REGISTRY.