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
An agent calls tools through Nexus402. Each call has its key verified and rate-limited, then the tool's fixed price is taken from the wallet within the key's 24-hour cap and the charge is recorded before the creator's server is reached. Two calls are answered and charged; the third would pass the cap, so it is refused with 402 and nothing is charged. YOUR AGENT >_ Your agent any MCP client ready 200 · $0.05 200 · $0.02 402 · over the cap Nexus402 api.nexus402.dev/v1/mcp 1 verify the key 2 rate limit 3 wallet + 24h cap, price taken 4 charge recorded acme/weather $0.05 a call geo/route $0.02 a call Wallet $10.00 $9.95 $9.93 This key's 24h cap $0.00 of $0.10 $0.05 of $0.10 $0.07 of $0.10
An illustration: two calls are answered and charged their fixed price; a third would pass the key's 24-hour cap, so it is refused with 402 and nothing is charged.
How you start

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.

  1. Sign in

    With Google, GitHub or Apple. There is no password to choose and no form to fill in; signing in creates the account.

  2. 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.

  3. 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.

Prompt for your agent text
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.

Terminal bash
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.

~/.codex/config.toml toml
[mcp_servers.nexus402]
url = "https://api.nexus402.dev/v1/mcp"
env_http_headers = { "X-Nexus-Api-Key" = "NEXUS402_API_KEY" }
tool_timeout_sec = 130
Add to Cursor

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.

~/.cursor/mcp.json json
{
  "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.

Terminal bash
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

What a key controls

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/list shows 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.

Keys, caps and rotation Rate limits

What you pay

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.

Billing Wallet and top-ups

NEXUS402 key production-agent

  1. acme/weather/forecast answered $0.050
  2. geo/route/plan free call $0.000
  3. docs/search/query timed out · refunded $0.000
  4. acme/weather/forecast 402 · not covered $0.000

Charged $0.050

= 50000 micro-USD on the ledger

An illustration of four calls: one answered and charged its price, one free, one refunded after the tool timed out, and one refused with 402 because the wallet or the key's cap could not cover it.
Works with your client

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.

Questions

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.