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
-
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 setupWhen 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
shinjukucommand, press Enter. Then open a new terminal, which knowsshinjuku. 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 -
Type
shinjukuin a terminal, pressa(add funds), and send USDC on Solana to the address it shows. -
Get your key: see the next section.
-
Install the plugin:
hermes plugins install shinjuku-aiHermes asks for
SHINJUKU_API_KEYand keeps it in its own.envfile.
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_tokenswhen 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.
/retrywithin 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
nonewhen 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_PROXYorALL_PROXY) andNO_PROXYdoes not name127.0.0.1in a list with commas. If you useno_proxytoo, it must name it as well. Then start Hermes again. model.base_urlin Hermes's config is nothttp://127.0.0.1:<port>.- A fallback to
shinjukuhas 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_urlas 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. Writeshinjuku. - A
providers:block namedshinjukuwith 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_providersentry namedshinjukuwith 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 modelturns 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 inhermes tools. - The plugin collects no telemetry. Outside its
hermes modelstep it writes no files. It reads Hermes's config, read-only, for the checks above and formodel.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.

Shinjuku Staition