For developers
Every MCP tool. One key.
Fund a wallet, mint a key and add one server to the MCP client you already use. Your agent can call any tool in the catalogue at a fixed price per call: usage-based billing for AI agents, and no key ever spends past the cap you gave it.
- 1
- URL and one key header for every tool
- 24h
- rolling spend cap on each key you mint
- $0
- for a call that fails before any output
- 0
- SDKs to install, and no automatic top-up
Three steps, then your agent does the rest.
No SDK and nothing to host. Your agent finds every tool through tools/list and calls what it needs.
-
Sign in
With Google, GitHub or Apple. There is no password to choose and no form to fill in; signing in creates the account.
-
Fund your wallet
Add from $10.00 through Stripe Checkout with 3D Secure. No fee is added to your Credits, and the wallet never tops itself up.
-
Mint a key and connect
Name it, give it a 24-hour cap and, if you like, a list of tools. Copy it once, then add one server to your client.
Connect your client
Paste this into Claude Code, Codex or Cursor. Your agent connects itself to Nexus402 and adds the skills, for whichever tool it is.
Set up Nexus402 for me in this coding agent.
1. Read https://www.nexus402.dev/docs/agents.md and work out which tool you are (Claude Code, Codex or Cursor).
2. Add the Nexus402 MCP server https://api.nexus402.dev/v1/mcp the way that page shows for your tool, sending the X-Nexus-Api-Key header from the NEXUS402_API_KEY environment variable.
3. Install the skills listed at https://www.nexus402.dev/.well-known/skills/index.json where your tool keeps skills or rules.
Never write my key into a file, a commit or a reply. If NEXUS402_API_KEY is not set, stop and tell me to set it.
Then check the connection lists tools, and tell me what you changed.
Connect the gateway, then add the two skills.
claude mcp add --transport http --scope user nexus402 https://api.nexus402.dev/v1/mcp \
--header "X-Nexus-Api-Key: $NEXUS402_API_KEY"
mkdir -p ~/.claude/skills/nexus402-tools && curl -fsSL https://www.nexus402.dev/.well-known/skills/nexus402-tools/SKILL.md -o ~/.claude/skills/nexus402-tools/SKILL.md
mkdir -p ~/.claude/skills/nexus402-endpoint && curl -fsSL https://www.nexus402.dev/.well-known/skills/nexus402-endpoint/SKILL.md -o ~/.claude/skills/nexus402-endpoint/SKILL.md
Add the gateway to ~/.codex/config.toml, then add the skills with npx skills add https://www.nexus402.dev.
[mcp_servers.nexus402]
url = "https://api.nexus402.dev/v1/mcp"
env_http_headers = { "X-Nexus-Api-Key" = "NEXUS402_API_KEY" }
tool_timeout_sec = 130
Opens Cursor and asks to add the gateway. Your key is read from NEXUS402_API_KEY.
Or add it by hand to ~/.cursor/mcp.json. Then add the skills with npx skills add https://www.nexus402.dev.
{
"mcpServers": {
"nexus402": {
"url": "https://api.nexus402.dev/v1/mcp",
"headers": {
"X-Nexus-Api-Key": "${env:NEXUS402_API_KEY}"
}
}
}
}
Skills-only installs don't update automatically.
npx skills add https://www.nexus402.dev
Every option reads your key from NEXUS402_API_KEY; none writes it into a file. Learn more
The developer quickstart Every setup option, and skills for your agent
Every key carries its own limits.
Mint up to ten, one per agent or environment. A leaked or looping key can never spend more than the limits you gave it, and nothing but you can raise them.
-
A rolling 24-hour cap
A ceiling on what the key may spend in any 24 hours, checked in the same atomic step as your balance. A call that would pass it is refused with 402 and nothing is charged.
-
A list of tools
Optionally, up to 50 tools. A call to any other is refused with 404 before anything is charged, and
tools/listshows the key only what it may call. -
A rate limit
Requests are counted per key, after the key is verified and before anything is deducted. Past the window you get 429 with
Retry-After, and nothing is billed. -
Shown once, revoked at once
We keep only an argon2id hash, so we cannot show a key again. Revoking takes effect on the next call, and rotating keeps the old key working for an overlap so nothing drops.
The price on the tool. Nothing for a failure.
You pay what the creator listed, per charged call, from a wallet you funded in advance. The charge is taken before the call is forwarded and handed back if the tool fails you.
- The listed price, per call. Each tool version has one fixed price, frozen when it is published. A new price is a new version, and a version you pin keeps its price.
- Nothing for a failure. A call that fails, times out or comes back without a valid proof before any output reaches your agent is charged nothing.
- Free calls are free. Some creators give free calls per day, week or month. They debit nothing and do not count against your key's cap. While a sign-up offer runs, a new account gets trial credit that takes them before adding any funds.
- An empty wallet is a 402, never a debt. There is no automatic top-up and no stored card to draw on. Discovery is free too: initialize, tools/list and ping are never billed.
NEXUS402 key production-agent
- acme/weather/forecast answered $0.050
- geo/route/plan free call $0.000
- docs/search/query timed out · refunded $0.000
- acme/weather/forecast 402 · not covered $0.000
Charged $0.050
= 50000 micro-USD on the ledger
One URL. One header. The client you already use.
Nexus402 is one remote MCP server, https://api.nexus402.dev/v1/mcp, with your key in the X-Nexus-Api-Key
header. No SDK, no OAuth and nothing new to install.
Everything else is in the docs.
Written against the code, and kept in step with it.
- 01 Quickstart From signing in to your agent's first paid call.
- 02 Connect with MCP The exact setup for Cursor, Claude Code, Codex and the rest.
- 03 Keys and caps Ten keys, rolling caps, tool lists, expiry and rotation.
- 04 Wallet Adding funds, receipts and your spend.
- 05 Billing When a call is charged, refunded or free.
- 06 Error codes Every status and error code, and what to do about it.
- 07 Set up your agent One prompt or one command, and skills for your agent.
- 08 How it works The whole system: the meter, the ledger and the signature.
Anything not here is in the documentation, which is written against the code.
Frequently asked questions
Do I need an SDK or a new client?
No. Add one remote MCP server, https://api.nexus402.dev/v1/mcp, to the client you already use, with your key in the X-Nexus-Api-Key header. Cursor, Claude Code and Codex each have a setup page in Connect with MCP.
Can an agent spend more than I meant it to?
Not more than you gave it. The wallet is funded in advance and never refills itself, and each key can carry a rolling 24-hour spend cap checked in the same atomic step as the balance. Give each agent its own key, and one leaked key can never spend more than its cap.
What happens when my wallet runs out?
A paid call that the balance cannot cover is refused with 402 and nothing is charged; it is never forwarded and never turned into a debt. There is no automatic top-up, so you add funds yourself, from $10.00, through Stripe Checkout.
What happens if a tool fails?
If the creator errors, times out or answers without a valid proof before any output reaches you, the charge comes back automatically and appears as its own entry. Once output has started streaming, the charge stands, because part of the work was delivered.
Do free calls count against my cap?
No. A free call debits nothing and does not count against the key's 24-hour cap. Its answer carries X-Nexus-Free-Quota-Remaining, and once that reaches 0 the tool is charged at its normal price. See Free calls.
Can I limit a key to some tools?
Yes. A key can carry a list of up to 50 tools; a call to any other is refused with 404 before anything is charged, and tools/list shows the key only the tools it may call. A key can also expire, between one hour and 365 days from when you set it.
Can a creator change the price of a tool I already use?
Not of a published version: its price, endpoint and schema are frozen. A new price is a new version. Pin a version and you keep the price you chose.
What do you keep from a tool call?
Nexus402 does not store or log the contents of tool calls. The gateway reads only the request envelope, the method and the tool name, to route and bill, and computes a one-way hash. See the Privacy Policy.
Give your agent every tool. Keep the budget.
One key, a wallet you control, and the client you already use.