All plugins

shinjuku-ai

Private AI models, paid in USDC by your own Shinjuku wallet on this computer. Disclosure — sends your prompts, tool definitions, tool results and SHINJUKU_API_KEY to the wallet's address on this computer (127.0.0.1). Hermes holds the key and makes the requests; the plugin sets the address and refuses when it sees a proxy variable without NO_PROXY=127.0.0.1, or a model.base_url that points elsewhere. It cannot stop every Hermes setting that sends them elsewhere, such as a providers block named shinjuku; the README lists them. The wallet, a separate closed-source program that you install yourself, sends each request without that key to Shinjuku's server, which asks the AI service Lyber; both read each question, and it is not end-to-end encryption. With Tor off in the wallet, Shinjuku's server sees your IP address and keeps no log of it. Web search and page reads (Exa, Parallel, Firecrawl or Keenable), links typed in the desktop app, browser tools and network commands leave this path and show your IP address. Each request is paid in USDC from your own wallet with no question before it, also in sub-agents and scheduled jobs. The wallet can first move USDC into an AI credit (beta) that Shinjuku holds for you. The plugin reads the wallet's model list with your key and keeps it in memory only. Its hermes model step saves your key, model, provider, address and chat mode, which makes Hermes sign out another provider's login that was active, and after a yes turns off outside tools in config.yaml; nothing else writes files. It reads Hermes's config, read-only, for that check and for model.max_tokens.

Shinjuku StaitionModelsv1.0.0Updated 1 hour ago

About

Private AI models, paid in USDC by your own Shinjuku wallet on this computer. Disclosure — sends your prompts, tool definitions, tool results and SHINJUKU_API_KEY to the wallet's address on this computer (127.0.0.1). Hermes holds the key and makes the requests; the plugin sets the address and refuses when it sees a proxy variable without NO_PROXY=127.0.0.1, or a model.base_url that points elsewhere. It cannot stop every Hermes setting that sends them elsewhere, such as a providers block named shinjuku; the README lists them. The wallet, a separate closed-source program that you install yourself, sends each request without that key to Shinjuku's server, which asks the AI service Lyber; both read each question, and it is not end-to-end encryption. With Tor off in the wallet, Shinjuku's server sees your IP address and keeps no log of it. Web search and page reads (Exa, Parallel, Firecrawl or Keenable), links typed in the desktop app, browser tools and network commands leave this path and show your IP address. Each request is paid in USDC from your own wallet with no question before it, also in sub-agents and scheduled jobs. The wallet can first move USDC into an AI credit (beta) that Shinjuku holds for you. The plugin reads the wallet's model list with your key and keeps it in memory only. Its hermes model step saves your key, model, provider, address and chat mode, which makes Hermes sign out another provider's login that was active, and after a yes turns off outside tools in config.yaml; nothing else writes files. It reads Hermes's config, read-only, for that check and for model.max_tokens.

Shinjuku private AI for Hermes Agent

What leaves your computer. Hermes sends your prompts, tool definitions, tool results and SHINJUKU_API_KEY to the Shinjuku wallet on this computer (127.0.0.1:11402). Hermes holds the key and makes the requests; the plugin sets the address and refuses in the states it can see. It cannot stop every way that Hermes's own settings can send them elsewhere: see "Where the key and your words can go" below. The wallet sends each request, without that key, to Shinjuku's server, which asks the AI service Lyber. Shinjuku's server and Lyber read each question while they answer it; this is not end-to-end encryption. With Tor on in the wallet (the default), Shinjuku's server does not see your IP address. With Tor off it sees it, and keeps no log of it. Other Hermes features leave this path. Web search and page reads go to Exa, Parallel, Firecrawl or Keenable with your words or the link, and they see your IP address. So do links you type in the desktop app, browser tools, and network commands in the terminal, each to its own service. Each request is paid in USDC from your own wallet, with no question before it. That includes tool steps, chat titles, sub-agents and scheduled jobs, which can run with nobody at the computer. The wallet can pay from an AI credit (beta): it first moves USDC from your balance into a credit that Shinjuku holds for you (see Costs below).

Adds the model provider shinjuku to Hermes Agent. It registers the provider and adds its own step to hermes model. It starts no program, and it changes settings only in that step.

Requires Hermes Agent 0.23.6 or newer. An older Hermes does not install it, and shows one line that says so. On 3 December 2026 the Hermes app from the Microsoft Store was still 0.23.5 on the Windows computer we tested, with no update offered, so this plugin does not install there yet.

Install

  1. Install the Shinjuku wallet once. It needs Node.js 24.22.1 or newer, or Node.js 22.23.4 or newer. In a Linux terminal, type:

    npx -y shinjuku setup
    

    When setup shows "Add Shinjuku to your AI apps on this computer", press Esc: this plugin does not need that. If setup's last lines offer "Private AI in Hermes", do not run the command shown there. If a screen asks "Turn on private AI in Hermes?", press Enter for no. A yes makes a separate Hermes profile with the wallet's own, older plugin.

    If setup asks whether to install the shinjuku command, press Enter. Then open a new terminal, which knows shinjuku. The wallet is a separate, closed-source program. It is not part of this plugin, and this plugin never installs, updates or starts it. Full guide: github.com/ShinjukuStaition/shinjuku-shield

  2. Type shinjuku in a terminal, press a (add funds), and send USDC on Solana to the address it shows.

  3. Get your key: see the next section.

  4. Install the plugin:

    hermes plugins install shinjuku-ai
    

    Hermes asks for SHINJUKU_API_KEY and keeps it in its own .env file.

Get your key

Type shinjuku in a terminal and press i. When it says that no private AI address is running, answer y: the wallet starts the address on this computer and shows you its key. The key is only for programs on this computer.

Use

With a proxy variable set (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY), the plugin refuses, and Hermes can show only 'Something went wrong'. Set NO_PROXY=127.0.0.1, then start Hermes again.

hermes -z "hello" --provider shinjuku -m deepseek-v4-1-flash-private

Or in ~/.hermes/config.yaml:

model:
  provider: shinjuku
  default: deepseek-v4-1-flash-private

The model names change over time, so the one above can go away. In a chat, /model shows the ones that are ready now: pick one there. In hermes model, the plugin's own step asks for the key when none is saved or the wallet refuses the saved one, and saves it after the wallet accepts it. It saves the model, the provider, the wallet's address and the chat mode, and Hermes signs out the login of another provider that was active. Then it asks one question: "Turn off Hermes's web search and other outside tools in this profile?" The answer is no unless you choose yes. Only a yes writes agent.disabled_toolsets in config.yaml, once, and the step says what it wrote. The terminal and the Python tool stay on.

After you restart the computer, start the address again: type shinjuku, press i, answer y. The key stays the same. While the address is off, Hermes shows a line that tells you this, tries again by itself, and pays nothing.

What it does

  • Lists the wallet's private models, read live from the wallet. The wallet refuses any other model before payment.
  • Sets one answer limit for every request: 4,096 tokens, or your own model.max_tokens when it is lower. Hermes asks again when a tool call is cut off or an answer is lost. While Hermes stays open, such a try is the same request, and the wallet pays for it once.
  • An answer in words that is cut off at the limit is different: Hermes asks the model to go on, up to three times, and each part is a new paid request.
  • /retry within 10 minutes, while Hermes stays open, sends the same request, so the wallet gives the same answer again and pays nothing. For a new answer, change your words. After a restart of Hermes, a retry can be a new paid request.
  • Tells Hermes that a chat fits 65,536 tokens, so Hermes shortens a long chat early (by default at about half of that). The wallet takes requests of at most 1 MB, and the price follows the size.
  • Sends the reasoning effort you chose when the model offers it, else the nearest lower one, else the lowest one it offers. With reasoning off it sends none when the model offers that, and otherwise no effort. If no model list has been read when you first use a model, no effort is sent to that model until it has not been used for 30 minutes, or Hermes starts again.

Costs: a longer chat costs more, because Hermes sends the chat so far with every request. The first message of a chat also sends one request for the chat's title. The wallet pays in one of two ways:

  • From your AI credit (beta), when it can. The credit is USDC that Shinjuku holds for you. When it runs short, the wallet moves USDC from your balance into it: the larger of 0.02 USDC and 2 times the most the question can cost, usually at most half of your balance. Then each answer takes only what it used. To take the rest back, type shinjuku ai refund.
  • From your balance, when the credit cannot pay. That price follows the size of the request and the answer limit, not the length of the answer.

One real example, paid from the balance (2 December 2026, deepseek-v4-1-flash-private, 19 tools): a two-word answer cost 0.005951 USDC and its title 0.003336 USDC, 0.009287 USDC together. A lower model.max_tokens lowers the price. To set your own spending limits, type shinjuku and press l.

A request can have at most 32 tools. Hermes's tool search (on by default) keeps it below that. If you turn tool search off and have more tools, the wallet refuses the request and pays nothing.

When your balance is too low, the wallet pays nothing and its answer names /shinjuku-add-funds. This plugin has no such command: type shinjuku in a terminal and choose "add funds".

Where the key and your words can go

The plugin refuses, and Hermes sends no chat, in these states:

  • A proxy variable is set (HTTP_PROXY, HTTPS_PROXY or ALL_PROXY) and NO_PROXY does not name 127.0.0.1 in a list with commas. If you use no_proxy too, it must name it as well. Then start Hermes again.
  • model.base_url in Hermes's config is not http://127.0.0.1:<port>.
  • A fallback to shinjuku has an outside address (tested on Hermes 0.23.6: nothing went to that address).

Hermes then shows the reason, or only "Something went wrong" when it has stored the key; hermes logs then shows the reason.

The plugin cannot stop these:

  • With a proxy or an outside model.base_url as above, a provider name written with capital letters (Shinjuku): when Hermes has stored the key, its own checks can send the key to the proxy or the outside address. Your words do not go. Write shinjuku.
  • A providers: block named shinjuku with another address in Hermes's config replaces this plugin: your words go to that address, and the key too when the block names it.
  • A custom_providers entry named shinjuku with another address that names the key: the key goes to that address.
  • Another program on this computer can listen on port 11402 while the wallet's address is off, and get the key and your words.
  • Any path of Hermes that we did not find.

What a leaked key can do: the wallet's address accepts requests only from this computer (it listens on 127.0.0.1), so the key opens nothing from outside. A program on this computer that has it can spend your USDC on AI answers, within the limits you set.

Privacy and network access

  • The plugin reads the wallet's model list with your key when Hermes lists models, and before a request to a model that was not used in the last 30 minutes, if the list was not read in the last minute. The read before a request waits at most 2 seconds. When Hermes lists models, the read waits at most 8 seconds. No read uses a proxy. The list is kept in memory only.
  • Each chat and model-list request carries the header X-Shinjuku-Models: shinjuku-ai. It is a model filter: the wallet then lists its private models only and refuses any other model before payment.
  • No transaction on the blockchain names your wallet as the payer. Shinjuku's server pays Lyber.
  • Hermes's helper tasks (titles, summaries) use this model too when their provider is auto, the default. A helper or fallback provider that you set yourself gets its own data.
  • A yes to the question in hermes model turns off the tool groups that it names, and no others. Other tools can still send data outside: the terminal, the Python tool (execute_code), sub-agents that use them, MCP servers and other plugins that you add, and scheduled jobs. You can turn off tools in hermes tools.
  • The plugin collects no telemetry. Outside its hermes model step it writes no files. It reads Hermes's config, read-only, for the checks above and for model.max_tokens.

Uninstall

hermes plugins remove shinjuku-ai

This leaves the wallet, your USDC and the key in Hermes's .env file. What hermes model wrote in config.yaml stays too: pick another model with hermes model, and take the tools you want back out of agent.disabled_toolsets. To stop the wallet's address, type shinjuku, press i, and answer y when it asks to stop it.

README from the reviewed commit 295d010; it updates when the author re-pins.

More by Shinjuku Staition

2 plugins by Shinjuku Staition in the catalog.

Shinjuku StAItionshinjukuA private USDC wallet for Hermes that the user holds. It pays paid web services and APIs (x402) privately: the seller and the blockchain do not see which wallet paid. From plain requests Hermes checks a price, finds paid APIs, pays, and shows a wallet card (/shinjuku:wallet), receipts, add funds and a send back to the user's own wallet. Agent Plugins v1 package (plugin.json + mcp.json + skills/ + a small launch.mjs). The plugin starts the Shinjuku wallet the user installs (the npm package shinjuku, started as shinjuku mcp; shinjuku.cmd on Windows), with no version of its own: the user installs it once (npm install -g shinjuku; npm.cmd on Windows) and sets it up in a terminal (shinjuku setup; shinjuku.cmd on Windows). The plugin never installs or updates the wallet. On Linux and macOS, when the wallet runs from a folder that is not npm's usual one, the plugin puts the update lines for that folder at the start of one tool description in the wallet's tool list. The plugin adds one read-only tool of its own, setup_wallet_first, to the wallet's tool list and answers it itself with fixed text: before the wallet is installed it gives the install and setup lines, and after that it tells Hermes to use the wallet's tools. When the user finishes the wallet's setup with Hermes open, the plugin starts the installed wallet in place of its small before-install server and sends Hermes the tools-changed notice, so the wallet's tools show with no restart. It changes nothing else the wallet sends. Disclosure — Crypto payments: runs the user's own closed-source Shinjuku wallet (the Shinjuku wallet the user installs (npm shinjuku), not covered by the pinned sha) as an untrusted MCP server; Hermes asks before every wallet call except the read-only ones: every price check, payment (also a private AI question), send, deposit address, backup, stop and every other call that changes something asks first, while searches, receipts, balance reads and the wallet's other read-only status reads run without asking, and a balance read (and wallet start) moves USDC the user added into the user's own private balance. Payments go through Shinjuku's payment service (pay.shinjukustaition.com or its .onion), which takes a per-payment fee, and a paid AI answer sends the prompt to Shinjuku's AI address (its .onion with Tor on; with Tor off, the user's choice in setup, pay.shinjukustaition.com on the normal web, where Shinjuku's server sees the user's IP address and keeps no log of it), whose server asks Lyber with one Shinjuku key, so Shinjuku's server and Lyber read that prompt; with Tor on, traffic goes over Tor, and on Windows and Linux x64 the wallet runs its own Tor in the background from the Tor files in its npm package, each checked by its pinned sha256. Keys stay in the wallet's folder in the user's account.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section