Listed from the MCP registry; nobody on Odel publishes it.
Private x402 payments on Solana: shield, pay, and unshield USDC under caps you set.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y shinjuku-shield
MCP client config
{
"mcpServers": {
"shinjuku-shield": {
"command": "npx",
"args": [
"-y",
"shinjuku-shield"
]
}
}
}
The privacy suite for AI. Shield once. Pay anywhere.
Install it once. Take your privacy everywhere you and your AI go.
It works today in Claude Code and in a terminal. To start, follow the two lines in Get started.
Shinjuku Shield is a privacy-only x402 payment facilitator on Solana. An agent pays an x402 endpoint from a balance that it holds itself. The chain does not show who paid.
exact seller that takes USDC
gets paid, whichever facilitator it uses (Coinbase CDP, PayAI, or any
other). The seller changes nothing. Your wallet pays us privately, and we
pay the seller from our own float. The chain shows Shinjuku paying the
seller, never your wallet.Notice, 2026-11-01: Shinjuku updated its on-chain program at 11:50 UTC. If you use version 0.3.131, update to the stable version 0.3.270: run
npx -y shinjuku setupin the terminal (Windows:npx.cmd -y shinjuku setup, ornpm.cmd install -g shinjuku, thenshinjuku.cmd setup). Your balance is safe. The next release follows such an update by itself.
The private x402 facilitator, inside your agent.
Shinjuku Shield settles x402 payments from a shielded USDC balance on Solana: on chain, a shielded payment does not show who paid. This MCP server is how your agent uses it. It runs on your machine, under caps that only you set.
npx -y shinjuku setup (Windows: npx.cmd -y shinjuku setup, or npm.cmd install -g shinjuku,
then shinjuku.cmd setup. Setup makes the wallet, a private passphrase file, and
the checked proof tools, and prints the line that adds the wallet to your
agent host.wallet_add_funds gives a one-time address. Send USDC to it from any
wallet or exchange, and it becomes private by itself.x402_discover searches public x402 listings
(Coinbase x402 Bazaar, PayAI, Dexter, and others) on your machine.exact seller. A seller on Coinbase CDP, PayAI, or any
other facilitator is paid through Shinjuku: your wallet pays us privately,
and we pay the seller from our own float. Nothing to fill or set aside.x402_preview shows the price and whether your
caps allow it. It pays nothing.wallet_add_funds and wallet_shield need only USDC. Our
facilitator's relayer pays the network fee.request_id resumes the same
payment, deposit, or unshield. It never starts a second one.This repository holds the setup guide, the examples, the docs, the changelog, and the published SHA-256 hashes of every wallet file and its proof tools (Releases). It holds no server code, no circuit code, and no wallet source code.
08a4b56f (npm 0.3.8):
changelog-to-0.3.8.md.Stable version, pinned 2026-11-24. A self-custody wallet for AI agents. It pays any x402 endpoint from a shielded balance, so the chain does not show which wallet paid. Setup is one step on Linux and two lines on Windows. Your agent does the rest from plain requests.
| Pinned version | shinjuku-shield@0.3.270 |
| Wallet release | c1161b8c (its hash) |
| Network | Solana, USDC |
0.3.270 replaces 0.3.269. The changelog entry for 0.3.270 lists each change.
shinjuku command until a new terminal knows
the plain name.You need Node.js 24.22.1 or newer, or Node.js 22.23.4 or newer (node --version shows
which one your node command runs; older versions have known security faults, and npm and the wallet warn about them). Tor is optional: setup asks whether to use
it. On Windows and on Linux x64 the wallet runs its own Tor in the background: you start nothing.
Set up the wallet. In a terminal, type these two lines as they are.
Linux:
npx -y shinjuku setup
Windows (Command Prompt or PowerShell):
npm.cmd install -g shinjuku
shinjuku.cmd setup
Windows says shinjuku is not recognized? Open a new terminal window. If it is still not found (for example on a second Windows account), run npx.cmd -y shinjuku setup and follow its prompts: setup adds npm's command folder to your PATH and tells you when to open a new window.
On Linux, setup asks to install the shinjuku command for your user (in ~/.local/bin; no root and no sudo):
press Enter. In the same window, type ~/.local/bin/shinjuku; a new terminal window knows shinjuku. Do not use
sudo npm install -g shinjuku on Linux (Windows: npm.cmd install -g shinjuku above): where it stops with EACCES
(permission denied), the npx line above is the way. On Windows, the first line installs the shinjuku command for
every folder and every new terminal window (-g means global). Both ways download the wallet from npm
directly (Tor is not set up yet), so npm sees your IP address for that
download. On Windows, type npm.cmd, npx.cmd and shinjuku.cmd where a line below says npm, npx or
shinjuku (they run in Command Prompt and in PowerShell). App start lines, app configs and
claude mcp add ... npx ... lines stay as they are.
Setup adds npm's folder to your PATH by
itself. If Windows still says shinjuku.cmd "is not recognized" (on a
computer with more than one account), type npx.cmd -y --prefer-offline shinjuku@0.3.270
in place of shinjuku.cmd in the lines below.
Setup asks whether to use Tor and for your own wallet address (optional; Enter keeps the default or skips). It makes the wallet on your machine and a private passphrase file, and downloads every proof file it needs (about 205 MB on Linux, 225 MB on Windows, checked by hash).
Add it to your agent app. For Claude Code, run
shinjuku setup --add-to claude-code once. For Claude Desktop, Cursor and
other apps, setup prints the config at the end: paste it once (in Claude
Desktop, Settings > Developer > Edit Config opens its settings file). Then
restart the app once. On Windows, Claude Desktop keeps running when you close
its window: right-click its icon by the clock (it may be under the ^ arrow
there) and choose Exit, then open it again. On a Mac, press Command+Q. Your
agent app then starts the wallet by itself.
Setup also adds the wallet for you to other apps: --add-to codex for the ChatGPT desktop app (its Codex
side) and Codex CLI, --add-to claude-desktop for Claude Desktop, also
the Microsoft Store version, --add-to grok for Grok Build, --add-to hermes
for Hermes Agent, --add-to opencode for OpenCode, --add-to copilot for the
GitHub Copilot CLI, --add-to openclaw for OpenClaw, and --add-to goose for Goose. Setup then
says how to restart and check that app. In the ChatGPT desktop app, use its Codex side: ChatGPT's own chat
cannot start a program on your computer.
Add money. Ask your agent "Give me an address to add 1 USDC to my wallet." It gives you a one-time address. Nothing moves until you send USDC on Solana to it from your own wallet or an exchange. You need no SOL. A few minutes after it arrives, the wallet moves it into your own private balance; it pays no one and sends nothing out.
Use it. Ask your agent to pay a URL, find a paid API, send money out, or ask an AI model. Every feature below works from a plain request.
In a terminal, shinjuku help lists every command (Windows: shinjuku.cmd help).
The previous stable version, pinned 2026-11-24 and replaced by 0.3.270 on 2026-11-24.
| Pinned version | shinjuku-shield@0.3.269 |
| Wallet release | 5ad25174 (its hash) |
| Network | Solana, USDC |
0.3.269 replaced 0.3.266: setup became shorter to read, USDC that reached a closed add-money address went in by itself, a send back to the wallet you added money from asked each time, and the balance answer came in about 3 seconds.
The previous stable version, pinned 2026-11-23 and replaced by 0.3.269 on 2026-11-24.
| Pinned version | shinjuku-shield@0.3.266 |
| Wallet release | ef26aca4 (its hash) |
| Network | Solana, USDC |
0.3.266 replaced 0.3.218: the npm package carried the Tor program, setup checked its proof files faster, a send whose network dropped went on by itself, and each payment through Shinjuku got its own fee.
An older stable version, pinned 2026-11-11 and replaced by 0.3.266 on 2026-11-23.
| Pinned version | shinjuku-shield@0.3.218 |
| Wallet release | 947a6309 (its hash) |
| Network | Solana, USDC |
0.3.218 was the 0.3.217 code plus fixes for price checks, update messages, the backup question in Hermes and payment links.
An older stable version, pinned 2026-11-11 and replaced by 0.3.218 on 2026-11-11.
| Pinned version | shinjuku-shield@0.3.217 |
| Wallet release | 80851766 (its hash) |
| Network | Solana, USDC |
0.3.217 passed live runs with real USDC on production on 2026-11-11 in the Hermes desktop app (install, price check, a paid call, a pay-me link, receipts) and in a terminal (the speed check with and without Tor).
An older stable version, pinned 2026-11-11 and replaced by 0.3.217 on 2026-11-11.
| Pinned version | shinjuku-shield@0.3.210 |
| Wallet release | 2b7c138c (its hash) |
| Network | Solana, USDC |
0.3.210 passed live runs with real USDC on production on 2026-11-11, in a terminal and through the wallet's MCP tools: setup, add money, balance, pay a new seller with and without Tor, send to your own wallet, cancel, receipts, private AI answers, and a price check in the Hermes app.
An older stable version, pinned 2026-10-30 and replaced by 0.3.210 on 2026-11-11.
| Pinned version | shinjuku-shield@0.3.131 |
| Wallet release | 3c8b302d (its hash) |
| Network | Solana, USDC |
Each feature here passed a live run on the published 0.3.131 package, on
production, with real USDC: the check of the stable version, from
2026-10-30 23:51 UTC to 2026-10-31 00:33 UTC, in Claude Code and in a
terminal. No other agent app was run on 0.3.131. One feature has no run
of its own on 0.3.131: one question with shinjuku infer. On Windows, type
shinjuku.cmd where a line below says shinjuku (app start lines and app configs stay as they are).
Add money
wallet_add_funds, shinjuku add-funds). A new one-time
address for each deposit, from 0.01 USDC. Send from any wallet or exchange;
no SOL needed. The wallet makes it private by itself after it lands, even
if your agent app closed. Ask: "Give me an address to add 1 USDC to my wallet."
Terminal: shinjuku add-funds --route exchange --amount 1wallet_shield). USDC that sits on the
wallet's own public address moves into the shielded balance. The
facilitator pays the network fee. Ask: "Make the USDC on my address
private."Pay
x402_pay, shinjuku pay, shinjuku curl).
Pays an x402 URL from the shielded balance and returns the answer. The
seller gets paid as usual; the chain does not show which wallet paid. The
price and the fee show in the answer. Ask: "Pay for this endpoint and show
me what it returns: "x402_preview). Shows what a URL costs before you pay.
Nothing is paid or signed. Ask: "How much does this URL cost?"x402_discover). Searches public x402 endpoints for a
job. Your search words stay on your machine; nothing is paid. Ask: "Find a
paid API for Brazil inflation data."x402_pay). If the seller fails before it takes the
money, the full amount comes back to the private balance by itself. If the
seller took the money and gave nothing, the receipt says so with the
seller's transaction. Nothing to ask: the receipts show each refund and its
transaction.x402_pay). When a seller is slow, the
wallet answers early and keeps waiting. Asking again with the same request
continues the same payment. It never pays twice. Ask again with the same
request when the agent tells you the seller is still working.x402_pay). A paid answer that is an image or a file
is saved in the wallet folder, with its path and hash. Ask: "Buy a QR code
for this text from ."wallet_cancel, shinjuku cancel). Closes a payment that can
no longer settle, so its reserved money comes back. A finished payment
cannot be taken back, and the wallet says so. Ask: "Cancel that payment."Send money out
wallet_unshield, shinjuku unshield). Sends some
or all of the private balance to any Solana wallet as plain USDC. The
facilitator pays the network fee. Ask: "Send my whole private balance to my
main wallet." Terminal: shinjuku unshield --amount all --to <address>wallet_unshield, shinjuku unshield --amount all). A
balance from several deposits is readied by itself when you send all of it.
You do nothing extra. Ask: "Send all of it."wallet_unshield). A wallet that only
received private payments can send them out directly, with no extra step.
Ask: "Send what I received to ."Your wallet
wallet_balance, shinjuku balance). One number: what you can
spend. It also shows any public USDC on the wallet's own address and any
money still on its way. Ask: "What is my private balance?"wallet_receipts). Every payment, refund, deposit and send,
newest first, with the seller, the price, the fee and the transactions.
Ask: "Show my receipts from today. Did I get my money back on failed
payments?"--max-payment, --max-session, shinjuku limits).
Optional limits per payment and per 24 hours. A payment over a limit is
refused before anything is paid, and the answer says how to change the
limit. Set them in setup or in your host's MCP entry, for example
--max-payment 0.05.npx ... shinjuku-shield@0.3.270 mcp).
Your host runs the exact version it names. When a new release is ready,
the wallet tells you to restart. Nothing to ask.Private AI
inference_chat). Your agent asks an AI model and pays
for the answer from the shielded balance. The chain does not show which
wallet paid. Ask: "Ask a private AI model: what is the capital of France?"shinjuku chat). A private AI chat in your terminal. The
conversation stays in memory only and is gone when you exit. Terminal:
shinjuku chat, then /cost and /exitshinjuku infer). One question, one paid answer, no setup
flags. Terminal: shinjuku infer "Say hello" or
echo "Say hello" | shinjuku infer -shinjuku infer start,
inference_server). A local OpenAI-compatible address
(http://127.0.0.1:11402/v1) with an API key. Any app that speaks the
OpenAI chat API, streaming included, gets private paid answers. It runs in
the background after the terminal closes, but not after the computer
restarts: then run shinjuku infer start again (the API key
stays the same). Ask: "Start my local private AI address." Terminal: shinjuku infer start, shinjuku infer status,
shinjuku infer stopPrivacy and setup
setup --tor, --tor, --no-tor). With Tor, every request goes
through Tor and reaches the facilitator through its onion service, so no
server sees your IP address. After a Tor setup, every command uses Tor by
itself. On Windows and on Linux x64 the wallet runs its own Tor in the background: you start nothing. On Linux on
another processor (arm64), run your own Tor with HTTPTunnelPort 127.0.0.1:9080 in its torrc, then
setup --tor.shinjuku setup, backup-export). The keys are made and
kept on your machine. Only your keys move your balance. The facilitator
settles and pays network fees; only your keys can spend your balance. Back up after
setup: shinjuku help backup-exportshinjuku helpThe time from "pay" to the seller's data, for the first payment to a seller the wallet never paid before (a fresh wallet process, production, 2026-10-23, version 0.3.86):
| Route | First seller | Second seller |
|---|---|---|
| Direct | 4.85 s (payai.agentstools.dev) | 11.31 s |
| Over Tor | 9.94 s (werner.ddns.net) | 18.14 s |
These seven issues of the older stable version 0.3.86 are fixed in 0.3.131. Each fix passed a live run when it came out (0.3.87 to 0.3.91).
SELLER_STORE.shinjuku chat can print raw Tor lines while Tor is slow.shinjuku balance right after a deposit can show no number.
shinjuku balance --refresh shows it.Payments to outside sellers show the price and the seller on chain as any x402 payment does; what the chain does not show is which wallet paid. Every release and its changes: CHANGELOG.md.
Ask your agent the way you would ask a person:
| You say | Your agent calls |
|---|---|
| "what is my balance" | wallet_balance |
| "add 0.50 USDC to my shielded balance" | wallet_add_funds |
| "shield 5 USDC" | wallet_shield |
| "find a seller of satellite images" | x402_discover |
| "pay this URL" | x402_preview, then x402_pay |
| "ask an AI model privately" | inference_chat |
| "send 2 USDC privately to " | wallet_unshield |
Each answer tells the agent the exact next call. The wallet reads the chain and writes an encrypted backup by itself, so you never run a command for upkeep.
On a machine with no wallet, the server starts in setup mode.
| Tool | What it does |
|---|---|
shinjuku_setup | Asks you to confirm in your MCP client that it may create a Shinjuku Shielded wallet on this machine, and shows the caps. Then it runs the setup and switches the same server to the wallet tools. It never asks for a secret. A client that cannot ask is told to run the setup in a terminal. |
wallet_status | Says whether the wallet is set up, and what to do next. |
In setup mode, every money tool answers wallet_not_set_up and does
nothing.
| Tool | What it does |
|---|---|
wallet_add_funds | Gives a new one-time Solana address of this wallet and a solana: pay link. Send USDC to it from any wallet or exchange, from 0.01 USDC. You need no SOL. A few minutes after the USDC arrives, it becomes private by itself while the MCP server runs. One round takes up to 5 USDC; a larger amount goes in by rounds. Use each address for one payer. The call itself moves no money. |
wallet_shield | Moves USDC that is already on the wallet's own Solana key into your shielded balance: any amount from 0.01 USDC, while the shielded balance stays at most 5 USDC. It is a public step: the chain shows the wallet's own key. It is on with --proof-tools. --no-shield turns it off. Funding takes minutes: the first call starts it and returns a stage. Call again with the same request_id to see the stage. It never starts a second deposit. When the deposit lands, the wallet reads it from the chain and writes an encrypted backup. The wallet's own key needs the USDC and no SOL: our facilitator's relayer pays the network fee, and you pay the shield cost. |
| Tool | What it does |
|---|---|
x402_discover | Searches public x402 listings (Coinbase x402 Bazaar, PayAI, Dexter, and others) on your machine and returns the sellers that match. Pays nothing. The first call takes about 15 s. |
x402_preview | One unpaid request. Returns the seller's price, the scheme, and whether your caps allow it. Pays nothing. For a standard exact seller it adds feeAtomic (our fee) and totalAtomic (price plus fee, what leaves your balance). A seller that lists several networks is priced from its Solana offer. |
x402_pay | Pays the URL (if it asks for payment) and returns the answer. A URL that does not answer 402 is fetched once and nothing is paid. An image answer (image bytes, or JSON image_base64) comes back as an MCP image block, and the file is saved. A payment that landed, from a seller that gives no answer, closes as paid. If a standard exact seller does not take our payment, the answer is p03_float_refund_pending: price and fee come back to your balance by themselves within about 7 minutes. Alias: fetch_paid. |
inference_chat | One AI answer from usePod's x402 chat endpoint, paid privately from your shielded balance. A short qwen3-8-flash answer costs about 0.0011 USDC: the provider price plus the 0.001 USDC Shinjuku fee. It needs --tor or a proxy. |
| Tool | What it does |
|---|---|
wallet_unshield | Sends shielded USDC to a public Solana address. It is on with --exit-proof-tools and --profile. Our facilitator pays every network fee. The same request_id never unshields twice. An address that you named with --unshield-to is sent at once. Any other address is sent only after you confirm it in your MCP client: "Send X USDC from your shielded balance to ?". A decline, or no answer in 5 minutes, sends nothing. A client that cannot ask is refused, so a prompt injection cannot pick an address by itself. The wallet's own key is refused: it made the deposits, so an exit there would link them. |
| Tool | What it does |
|---|---|
wallet_balance | ONE balance (balanceAtomic, what x402_pay can spend) and UNSHIELDED (unshieldedAtomic, plain USDC on the wallet's own Solana key), with ownAddress and status ("current" when the balance is read). breakdown names what the one balance holds: shieldedAtomic (what wallet_unshield can send), refundsInFlightAtomic (a Shinjuku refund on its way back), and setAsideAtomic (value in pockets of an older version). A stale balance is read from the chain first. UNSHIELDED is one network read; if it fails, that line is empty and says why. |
wallet_receipts | Your most recent paid receipts: {ok, count, total, facilitatorNote, receipts}. Each receipt has kind (x402, inference, or a move), the host (never the full URL), amountAtomic, and transaction. |
wallet_cancel | Closes one unfinished payment (its reserved balance comes back), the pieces of a private send that did not start, or an add-funds link that no USDC reached. |
wallet_shield and wallet_unshield always appear in the tool list. When
one is off, it answers "error": "mcp_tool_disabled" and tells the agent
what to ask you.
What it pays:
shielded-exact, from your shielded balance, whenever the seller
offers it.exact, through Shinjuku (float pay). For a seller on
any facilitator (Coinbase CDP, PayAI, or any other), x402_pay pays us
privately from your shielded balance: the seller's price plus a fee that
each payment sets inside feeRange (0.0005 to 0.0015 USDC on 2026-11-23). We pay the seller at once from our
own shared float. The chain shows Shinjuku paying the seller, never your
wallet. max_payment_atomic must cover price plus fee. The largest price
that one request can pay is largestAtomic in
GET https://pay.shinjukustaition.com/api/x402/float/config (10 USDC on
2026-10-22).request_id never pays twice.Hidden amounts (scheme confidential, the V0b vault) are retired: the V0b
program was closed on chain on 2026-10-11.
Value that an older version put in pockets still counts in the one balance.
When the server has --proof-tools, --exit-proof-tools, and --profile,
it returns that value to the shielded balance by itself while it is idle.
shinjuku pocket reshield does the same by hand.
A balance from several deposits: one payment can spend only a few of them
at once. The server gathers them into one by itself (a private payment to
itself; nothing leaves the shielded balance, and our facilitator pays the
network fee). When no single deposit covers a price yet, x402_pay says
so, the gathering starts within about a minute, and the answer says when
to pay again.
| Default | --tor | |
|---|---|---|
| On chain | A shielded payment does not show who paid. | The same. |
| Your IP | Payments go to pay.shinjukustaition.com, with no CDN in the path. Our server sees your IP. It keeps no access logs. | Hidden from everyone, us included. |
| The seller | Sees your IP. | Does not see your IP. |
| Speed | Faster. | About 1-2 s slower per request. |
| Needs | Nothing extra. | Nothing extra on Windows and on Linux x64: the wallet runs its own Tor. On Linux on another processor (arm64), your own Tor with HTTPTunnelPort 127.0.0.1:9080 IsolateDestAddr in its torrc. |
| When a path is slow | - | The wallet races our onion addresses and keeps the first that answers. A facilitator onion that gives no answer in 15 s brings in two spare onions. A history request with no answer moves to the next history onion, and a history source that is silent for 60 s ends with a plain error instead of a long wait. A stalled Tor circuit is replaced. A facilitator request never falls back to our clearnet address. |
You need Node.js 24.22.1 or later (or Node.js 22.23.4 or later), on Windows or Linux. macOS is not supported yet.
The stable version is 0.3.270 (wallet release c1161b8c, pinned 2026-11-24).
Every command here names it. Setup prints host lines that name this exact version.
It uses npm tag latest.
Status and the changelog list its changes.
A later stable version gets its own row in the Releases table: run its setup once and put its version in your host's config. Your wallet, its address, and its balance stay the same.
Linux:
npx -y shinjuku setup
Windows (Command Prompt or PowerShell):
npx.cmd -y shinjuku setup
It asks whether to use Tor and for your own wallet address (optional: your
agent can then send money back to you without asking for it). When the
shinjuku command is not installed yet, it offers to install it. Enter keeps
the default or skips. At the end it offers
to add funds (Enter skips). --yes asks nothing. --add-to claude-code (or
claude-desktop, cursor) also adds the server to that host's config; if
Claude Code already has a wallet entry for another wallet folder, setup asks
before it replaces it. In our 0.3.131 runs (2026-10-30), setup took about 17 s
on a fast line and about 80 s over Tor, with the setup-file download of about 191 MB then; since 0.3.208 the download is about 205 MB on Linux and 225 MB on Windows. At the end it prints a summary, for example:
Shinjuku Shield is set up.
limits no limit per payment, no limit in any 24 hours, no limit for the life of the wallet
config <home>/config.json
passphrase <home>/passphrase.txt (a new random passphrase; only you can read the file; it is never printed)
setup files <home>/proof-tools/f8ea3738 (36 files downloaded, every hash checked)
balance prepared during setup: your first balance after a deposit shows sooner
wallet created
recovery <home>/recovery-<time>.txt
Setup writes to ~/.carbon-shielded-wallet (or SHIELDED_WALLET_HOME):
passphrase.txt: a new random passphrase, readable by you alone. It is
never printed, and no tool takes or returns it. Keep it: the wallet file
opens only with it.config.json: the caps, the paths, and Tor. With it, mcp needs no
flags. A flag on the command line still wins.Spending limits are optional and off by default: with none, only the balance
bounds a payment. To set them, give --max-payment, --max-session, or
--max-cumulative, in USDC (0.05 = 5 cents). A setup rerun lifts the
old default caps (0.05 / 1 / 20 USDC) of earlier versions. --prefer-tor
records Tor (see Privacy modes).
You can run setup again at any time. It never changes an existing wallet,
and it checks every proof-tool file again.
If you gave --add-to, this step is done. For Claude Code, the simplest way is
shinjuku setup --add-to claude-code (it runs the line below for you). Setup also
prints these lines. Add the wallet once: one entry named shinjuku.
Claude Code:
claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.270 mcp
--no-audit --no-fund stop npx from asking npm's audit and funding
services when it starts a new version. Once, that request held the start for
5 minutes. --prefer-offline runs the copy of the wallet that npm saved. If npm has not saved it yet, that start asks
npm once, directly, so npm sees your IP address that one time; later starts ask npm nothing.
On native Windows, the line that setup prints puts cmd /c before npx.
With a wallet folder that is not the default, it adds
-e SHIELDED_WALLET_HOME=<home> (or an "env" block in JSON).
Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json),
and other JSON-config hosts:
{
"mcpServers": {
"shinjuku": {
"command": "npx",
"args": ["-y", "--prefer-offline", "--no-audit", "--no-fund", "shinjuku-shield@0.3.270", "mcp"]
}
}
}
You can also add the server first, with no wallet on the machine. Then the server starts in setup mode. Ask your agent "what is my balance". Your MCP client asks you to confirm: create a Shinjuku Shielded wallet on this machine. Accept, and the setup runs (with the proof-tool download of about 205 MB on Linux, 225 MB on Windows). Then the same server switches to the wallet tools. You do not restart it. A client that cannot ask is told to run the setup in a terminal.
In a terminal, shinjuku mcp asks "Set up Shinjuku Shield now? (y/n)".
The wallet starts empty. Ask your agent "Add 0.50 USDC to my shielded
balance". It calls wallet_add_funds and gives a one-time address. Send
that USDC on Solana from any wallet or exchange. Amounts from 0.01 USDC
work, and you need no SOL. The USDC becomes private by itself while the MCP
server runs: our relayer pays every fee.
From an exchange, in a terminal, whole USDC only:
shinjuku add-funds --route exchange --amount 2
It prints a one-time address. Withdraw exactly that amount of USDC (Solana
SPL) from the exchange to it, and it shields the USDC by itself. --amount
is a whole number of USDC (2 = 2 USDC).
USDC that is already on the wallet's own address (ownAddress in
wallet_balance) goes in with wallet_shield. The steps are in
First 10 minutes.
The wallet is one file, shinjuku-wallet.mjs. The same file, with the same
SHA-256, is in three places: the npm package shinjuku-shield, our website,
and the Releases table of this repository. The steps below check
the stable version 0.3.270 (wallet release c1161b8c). Its SHA-256 in the
Releases table is
c1161b8c3b5d112e80d7631bd529452db6d77e6e9731ab63fd547d4aee363cd7.
Install the npm package into a new, empty folder. Type each line alone:
mkdir shinjuku-check
cd shinjuku-check
npm init -y
npm install --ignore-scripts shinjuku-shield@0.3.270
The npm copy. Hash the wallet file inside the installed package. The hash must equal the SHA-256 above.
Linux: sha256sum node_modules/shinjuku-shield/shinjuku-wallet.mjs
macOS: shasum -a 256 node_modules/shinjuku-shield/shinjuku-wallet.mjs
Windows (PowerShell):
(Get-FileHash .\node_modules\shinjuku-shield\shinjuku-wallet.mjs -Algorithm SHA256).Hash
PowerShell prints the hash in capital letters; the letters are the same.
The npm signatures. In the same folder:
npm audit signatures
It checks the registry signatures and the provenance attestations of the installed package. It must print "1 package has a verified registry signature" and "1 package has a verified attestation". It does not print who built the package.
Who built it. The provenance attestation is a statement, signed through
Sigstore during the build, of where the package was built. To read it, open
https://www.npmjs.com/package/shinjuku-shield/v/0.3.270, select the green
check mark next to the version, then "View more details". "Source Commit"
must be a commit of ShinjukuStaition/shinjuku-shield, and "Build File"
must be .github/workflows/publish.yml.
The website copy. Download the file and check it. Go on only when the
check prints OK:
curl -fsSLO https://shinjukustaition.com/wallet/c1161b8c/shinjuku-wallet.mjs
echo "c1161b8c3b5d112e80d7631bd529452db6d77e6e9731ab63fd547d4aee363cd7 shinjuku-wallet.mjs" | sha256sum -c -
On macOS, end the second line with shasum -a 256 -c - in place of
sha256sum -c -.
On Windows (PowerShell), type curl.exe in place of curl, then:
if ((Get-FileHash .\shinjuku-wallet.mjs -Algorithm SHA256).Hash -eq "c1161b8c3b5d112e80d7631bd529452db6d77e6e9731ab63fd547d4aee363cd7") { "OK" } else { "MISMATCH" }
The file and its hash are also in section 7b of
https://shinjukustaition.com/skill.md. To run the file itself, replace
shinjuku with node /abs/path/shinjuku-wallet.mjs in the commands.
What these steps show: the npm copy, the website copy and the Releases table have the same hash; npm's signatures on the package are valid; and the provenance names the repository and workflow that built the package. They do not show the wallet's source code, which is not public. As npm says, provenance does not guarantee that a package has no malicious code.
mcp reads config.json only when you give no --pool and no --wallet.
To give the flags yourself (for example, for a wallet that you made with
init before 0.2.0):
claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.270 mcp \
--max-payment 0.05 --max-session 0.2 --tor \
--pool <pool> \
--program 8PYPw3FSFTMbvSneXdcoH6jNoN4VD23nHwPY2A2riUy1 \
--memo-service https://pay.shinjukustaition.com \
--proof-tools /abs/path/shinjuku-proof-tools/proof-tools.json \
--exit-proof-tools /abs/path/shinjuku-proof-tools/exit-proof-tools.json \
--profile /abs/path/shinjuku-proof-tools/public-profile.json \
--passphrase-file /abs/path/passphrase.txt
With --pool, --program and --memo-service are required. Setup writes the pool, the program, and the
facilitator into config.json: <pool> is the pool in your config.json.
shinjuku help mcp prints every flag.
Use absolute paths: a host starts the server from its own folder. On Windows,
write C:/Users/you/.... --proof-tools turns wallet_shield on.
--exit-proof-tools and --profile turn wallet_unshield on.
For an older wallet, you can also run setup once with
SHIELDED_WALLET_HOME set to your wallet folder and --passphrase-file
set to your passphrase file. It keeps your wallet and writes config.json
beside it.
A send to a new address needs a host that supports MCP elicitation (it shows
you the confirmation). With a host that does not, name each address with
--unshield-to.
Your wallet can run a private AI address on your computer. A program that asks OpenAI's chat API text questions can use it, with tool calls too. It does not take images or a reference to an earlier answer (send the whole conversation each time), and it gives one answer per request. Each answer is paid from your private balance. The address always runs through Tor, so the AI company does not see your IP address.
Below: one short question each, with curl, TypeScript, Python and LangChain.
npx -y --prefer-offline shinjuku@0.3.270 infer start
On Windows, type npx.cmd in place of npx in this step's lines (it runs in Command Prompt and PowerShell).
It prints the address, an API key and the model. You need the first two:
base_url http://127.0.0.1:11402/v1
api key <your key: 48 letters and numbers>
model qwen3-8-flash (others: ...)
The address keeps running in the background. It stops when your computer
restarts: then run the line again (the key stays the same). To stop it:
npx -y --prefer-offline shinjuku@0.3.270 infer stop.
In the same window (Windows, Command Prompt):
set OPENAI_API_KEY=<your key from step 1>
On a Mac or Linux: export OPENAI_API_KEY=<your key from step 1>. This lasts
until you close the window. Keep the key to yourself: a program on your
computer that has it can spend from your balance.
In Command Prompt (one line; copy it as it is):
curl http://127.0.0.1:11402/v1/chat/completions -H "Authorization: Bearer %OPENAI_API_KEY%" -H "Content-Type: application/json" -d "{\"model\":\"qwen3-8-flash\",\"max_tokens\":4096,\"messages\":[{\"role\":\"user\",\"content\":\"What is the capital of Japan?\"}]}"
The answer is the text after "content":. The reply's "paid_atomic" is what
you paid, in millionths of a USDC (3118 = 0.003118 USDC).
Node.js is already on your computer if the wallet runs. In a new folder:
npm install openai tsx
Save this as ask.ts (in Notepad: File, Save as, "Save as type: All files",
file name ask.ts):
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "http://127.0.0.1:11402/v1",
apiKey: process.env.OPENAI_API_KEY,
});
async function main() {
const answer = await client.chat.completions.create({
model: "qwen3-8-flash",
max_tokens: 4096,
messages: [{ role: "user", content: "What is the capital of Japan?" }],
});
console.log(answer.choices[0].message.content);
}
main();
Run it: npx tsx ask.ts
If python --version says "Python was not found" or opens the Microsoft
Store, install Python from https://www.python.org/downloads/ and tick
"Add python.exe to PATH" in the installer. Then close the window and open a
new one (the old window does not see the new Python), go back to your folder
and set your key again (step 2).
pip install openai
pip can print yellow "not on PATH" warnings and a note about a newer pip.
They do no harm. Save this as ask.py:
import os
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:11402/v1",
api_key=os.environ["OPENAI_API_KEY"],
)
answer = client.chat.completions.create(
model="qwen3-8-flash",
max_tokens=4096,
messages=[{"role": "user", "content": "What is the capital of Japan?"}],
)
print(answer.choices[0].message.content)
Run it: python ask.py
Do 3c first, then:
pip install langchain-openai
Save this as ask_langchain.py:
import os
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="http://127.0.0.1:11402/v1",
api_key=os.environ["OPENAI_API_KEY"],
model="qwen3-8-flash",
max_tokens=4096,
)
print(llm.invoke("What is the capital of Japan?").content)
Run it: python ask_langchain.py
Each answer is paid before it runs, for the longest reply you allow
(max_tokens). A part you do not use is not paid back.
qwen3-8-flash thinks before it answers, so it needs a max_tokens of at
least 4096: with less, it can use every token to think and give no answer,
and you still pay. The address refuses a smaller value before anything is
paid. A short question at 4096 costs about 0.003 USDC, at most 0.011 USDC.
For the other models, 256 is the smallest. A request with no max_tokens
pays for 4096 (512 for claude-opus-5). infer start says the most it pays
for one answer and for one run.
examples/ has complete configs and a walkthrough:
claude mcp add command, Tor, each flag explained, and how to check it
works.hermes plugins install ShinjukuStaition/hermes-shinjuku; also in plugins/hermes/shinjuku), or the config.yaml entry.generateText through @ai-sdk/mcp, with no other package.solana-agent-kit-plugin-shinjuku, the wallet as Solana Agent Kit v2
actions.After setup, config.json holds the caps and the paths. You can add any of
these flags to the mcp command. A flag wins over config.json.
| Flag | |
|---|---|
--max-payment <usdc> | Optional. The most one payment may cost, in USDC (0.05 = 5 cents). Setup records it. Default: no limit. |
--max-session <usdc> | Optional. The most this wallet may pay in any 24 hours, from every MCP process together. When you set both, it must be at least --max-payment. Setup records it. Default: no limit. |
--max-per-host-day <usdc> | Optional. The most one seller host may receive in 24 hours, in USDC. |
--allow-host <host> | Optional, repeatable. Pay only these seller hosts. |
--no-shield | Optional. Turns wallet_shield off. It is on with --proof-tools. |
--max-shield <usdc> | Optional. The most one shield call may move, and the most this wallet may shield in any 24 hours, in USDC. Without it, no cap beyond the balance. |
--allow-shield | Accepted for older configs. wallet_shield is on without it. |
--exit-proof-tools <file>, --profile <file> | Optional. Turn wallet_unshield on (with --proof-tools). |
--unshield-to <address> | Optional, repeatable. These addresses receive with no confirmation. Any other address needs your confirmation in the MCP client. The wallet's own key is refused: the server does not start when you name it here. |
--ready-pockets <0-5> | Accepted for older configs and ignored. Standard exact sellers are paid through Shinjuku, and the wallet fills no pocket. |
--no-auto-pockets | Accepted for older configs. It also stops the idle return of old pockets to the shielded balance. |
--max-unshield <usdc> | Optional. The most one unshield call may move, and the most this wallet may unshield in any 24 hours, in USDC. Without it, a send you confirm can move the whole shielded balance. |
--no-tor | Optional. This run does not use the Tor that setup recorded. |
--tor | Optional. Every request goes through Tor; our facilitator is reached over its onion service. On Windows and on Linux x64 the wallet runs its own Tor; on Linux on another processor (arm64) it needs your own Tor with HTTPTunnelPort 127.0.0.1:9080 in its torrc. See Privacy modes. |
--rpc-file <file> | Optional. Your own Solana RPC URL. Without it, reads go to our relay, which sees which addresses the wallet reads. |
The passphrase comes from --passphrase-file or SHIELDED_WALLET_PASSPHRASE
at start, never from a tool call. A refusal is a normal answer
({"ok": false, "error", "detail", "next"}); the agent does what next
says. A cap refusal tells the agent to ask you: only you set the caps.
An unshield is your own money, so it does not count against the payment
budget of the wallet file (init --max-payment, --max-cumulative).
Payments to sellers still count. To show, change, or remove those
wallet-file caps, run shinjuku limits (none removes a cap). A
refusal by one of them tells the agent to ask you for this.
Upkeep is automatic. After a deposit lands, and before a payment or unshield
when the local balance is stale, the server reads the chain itself. By
default it reads the pool history through our facilitator's https history
proxy: a new wallet is ready in about 60 s. After
each shield and unshield, the wallet writes an encrypted backup to
<SHIELDED_WALLET_HOME>/auto-backups/<pool>/. It keeps the newest 5
complete, verified backups. They are on the same disk as the wallet: copy
one to another place.
--tor.--unshield-to and use a
client without elicitation. Then any other address is refused.shielded-exact payment does not show who paid. A float pay
payment is a pool payment to us (the payer hidden), then a normal USDC
transfer from a Shinjuku float pocket to the seller. Many buyers pay from
the same float pockets. The transfer lands seconds after the pool payment,
so time can pair the two.wallet_add_funds: the chain shows the USDC that arrives at the one-time
address, the amount, and the time. Use each address for one payer.wallet_shield is a public step: the chain shows USDC leave the wallet's
own key, the amount, and the time.wallet_unshield is a public step: the chain shows the amount, the
address that receives it, and the time.inference_chat: usePod and the model provider see the prompt and the
answer.wallet_balance reads the wallet's own key. The RPC
(our relay by default) sees which key it reads.shielded-exact. The wallet pays it from
your shielded balance, and our facilitator settles the payment.exact endpoint that takes USDC, whichever
facilitator settles it (float pay). pay (or the MCP x402_pay) pays
us privately from your shielded balance: the seller's price plus a fee of
0.0005 to 0.0015 USDC, set for each payment. We then pay the seller at once from our own shared
float. You fill nothing and set nothing aside. If the seller does not take
the payment, we refund price and fee to your shielded balance by ourselves.
This path, and every other payment, needs wallet release 08a4b56f (npm
shinjuku-shielded@0.3.8) or later: the pool program was upgraded on
2026-10-11, and earlier releases refuse to pay.The largest price that float pay can pay for one request is the size of our largest float pocket. Read it, and the fee, before you pay:
curl -fsS https://pay.shinjukustaition.com/api/x402/float/config
feeRange is the range of the fee (each payment draws its own fee in it) and
largestAtomic is the largest price, in atomic USDC (1000000 = 1 USDC). On
2026-11-23 they were 500 to 1500 (0.0005 to 0.0015 USDC) and 10000000
(10 USDC). A higher price is refused before anything is paid
(p03_float_price_above_capacity).
The 3D market game Shinjuku Undermarket is our first customer and our live demo.
c1161b8c, npm
shinjuku-shield@0.3.270.
Install that exact version. The wallet runs Tor for you,
Windows needs no WSL (on Windows type npx.cmd -y shinjuku setup in
Command Prompt or PowerShell), the shinjuku screen runs every job, setup offers a backup
before the first deposit, and a wallet from an older version updates with no
new setup. The changelog lists the rest.
How to start: the 0.3.270 release notes.
Hash: the c1161b8c row of Releases.5ad25174 (npm 0.3.269,
pinned 2026-11-24): the 0.3.269 release notes.ef26aca4 (npm 0.3.266,
pinned 2026-11-23): the 0.3.266 release notes.2b7c138c (npm 0.3.210,
pinned 2026-11-11): the 0.3.210 release notes.3c8b302d (npm 0.3.131,
pinned 2026-10-30). Its feature list: the
0.3.131 release notes.b650bf06 (npm 0.3.86).qwen3-8-flash, 4096 tokens for an answer) for the chat and the private AI address, and the
time when a refund lands after a seller refuses at once. It says when a
seller works too long before it charges (about 30 s) for any wallet to pay it.
A private send keeps the money that its next payments need, so its last
payment no longer waits until you cancel it. The balance then says when
one payment can use the change of your last payment, and a request id
that an earlier payment used gets one new request id named. A new
deposit or send leaves its request id out, so an old send never answers
for a new one. A new payment or AI question leaves it out too. Answers
show you no request id, and the balance names a private send by its
amount and address. A payment can go while a private send in parts
runs from the same money, and it waits for one step of a part, not
the whole part. A refund notice names its payment and stays until an
answer shows it. A send that the agent app cut finishes at the next
start without holding up the first payment, and a part that finishes
before the chain marks it final waits and tries again. A new private
send leaves in one transfer, and a terminal send of money you received
goes straight to the address. The wallet reads the chain before it says
your balance is 0, and a terminal command with no money says how to add
money before it asks anything. The words of an answer name no tool
and no field. The history reads go in fewer, shared requests. The
search for paid APIs reads the seller lists through Shinjuku's copies,
so every list works with Tor, and an answer names a list it could not
read. An AI answer limit below 0.01 USDC, a price check on a low
balance, a declined question and the AI model list say in plain words
what stops a payment and what works.shielded-exact payments from the shielded balance: live on mainnet.exact endpoint that takes USDC: live on
mainnet since 2026-10-11 (wallet release e3348092 and later). On
2026-10-11 it paid two stock sellers on the PayAI facilitator, 0.10 USDC in
15 s and 1.50 USDC in 20 s, and a stock seller on our own facilitator
(488372b4 and later), 0.01 USDC in 16 s and 17 s: see
proof.md.08a4b56f and later). The pool takes an anchor
about every 30 s when it grew. In our test, 12 of 12 new deposits could pay
within 45 s (median 18 s).701809bd (npm shinjuku-shielded@0.3.9). When we open a new
pool, the old pool keeps serving until it is empty, and move moves your
whole balance to the new pool privately: you pay our float in the old pool, and the float pays you
in the new pool. Nothing goes through a public address.pocket reshield returns the USDC of an old pocket to your
shielded balance.confidential, the V0b vault): retired. The V0b
program was closed on chain on 2026-10-11.Listed in the official MCP Registry
as io.github.ShinjukuStaition/shinjuku-shield (the older name io.github.ShinjukuStaition/shinjuku-mcp is deprecated). npm: shinjuku-shield (the one package that holds the wallet; the older name shinjuku-shielded runs the same wallet at the same version, so wallets installed under it keep updating: from the release after 0.3.186 it is a small package that runs shinjuku-shield; 0.3.186 and earlier hold the same files),
published from this repository's workflow with npm provenance (from 0.1.1).
Live on Solana mainnet. The current wallet release is c1161b8c (npm
0.3.270, pinned 2026-11-24). How to start: Release 0.3.270.
Every release and its changes: CHANGELOG.md.
Float pay paid two stock sellers on the PayAI facilitator on production on 2026-10-11, 0.10 USDC and 1.50 USDC, and a stock seller on our own facilitator, 0.01 USDC twice: the transactions are in proof.md.
These transactions were made with real money through this MCP
server, against our production facilitator, on an earlier pool (retired
2026-10-10). The first two came from a new wallet with the default
setup and no SOL at any time (wallet release 94a357bc). The others used
wallet release 1a336885 (2026-10-08).
| Tool | Transaction |
|---|---|
wallet_shield (no SOL) | 5np1EYjN…fH2 |
x402_pay to a public satellite-imagery seller (0.013 USDC, JPEG answer in 8 s) | iC6gnjFM…DHwC |
wallet_shield (1 USDC in) | hWzDiR1R…izn |
wallet_unshield (0.5 USDC out) | self-pay 5evVHz8X…r9uv · exit 4yY2YXLS…pgF2i |
wallet_unshield with your confirmation (0.25 USDC, release 1a336885) | self-pay 3jQyPgrA…QEWw · exit 4yA3qkHU…jCoh |
x402_pay (pocket exact, before float pay) | kX2zbbuR…8wW |
No unshield transaction contains the wallet that shielded; our facilitator paid every network fee of each unshield.
Full guide: https://shinjukustaition.com/skill.md · Onion: http://2kfhlfuyuwvhmibjrpxqsg4nrbcxasjgjq7kmnfzgfwzptkhhznz3dad.onion/skill.md · X: @Shin_StAItion
verify.mjs checks one published release with one command. It needs Node.js 22 or later and nothing else:
git clone https://github.com/ShinjukuStaition/shinjuku-shield
cd shinjuku-shield
node verify.mjs 0.3.270
shinjuku-shield and checks it against its npm sha512..github/workflows/publish.yml.shinjuku and shinjuku-shielded packages of that version. A small pointer package must depend only on shinjuku-shield at that version and hold no wallet file. An older full copy must hold the same wallet file.Each check prints OK or FAIL. A package that npm does not have at that version prints SKIP, and the last line counts it. The script runs no downloaded file.
It does not check the Sigstore signature of the provenance. To check it, run npm audit signatures in a folder where the package is installed.
Each release is one file, shinjuku-wallet.mjs, and a set of proof tools.
From npm 0.3.208 (bf8c2b52) on, a release pins one V2 set per platform, and
the table names its Linux x64 set; its other sets are Windows x64 e60caaec
(225,115,541 bytes) and Linux ARM64 ce903e38 (203,798,977 bytes). The V1 set
eb4cbf8a stays pinned only as the fallback for a server that serves no V2
set. From npm 0.3.212 (2dd06d0d) on, after a program upgrade the wallet also
installs a V2 set that the signed release channel lists for the pool: since the
upgrade of 2026-11-12 the website serves f8ea3738 (Linux x64, 205,459,679
bytes), 0d7e1b50 (Windows x64, 225,117,531) and 150f8bf8 (Linux ARM64,
203,800,967), and a new setup with 0.3.212 or later downloads those. Releases
0.3.208 to 0.3.211 install only their own pinned set, so their setup stops on
these; use the current release.
Our website serves the files and their SHA-256 hashes at
https://shinjukustaition.com/wallet/<sha8>/ and
https://shinjukustaition.com/proof-tools/<sha8>/. This repository is a
second, separate place for those hashes: each release adds its row here.
The stable version is c1161b8c, on npm as shinjuku-shield@0.3.270
(pinned 2026-11-24). Use it for a new install.
A row marked "candidate" records a
release served beside the stable version and published on npm under the
tag next, not latest; it becomes the stable version only when we say so here. Rows