shinjuku-shield 0.0.1 → 0.3.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +4 -2
- package/README.md +102 -7
- package/THIRD_PARTY_NOTICES.txt +7512 -0
- package/manifest.json +1286 -0
- package/package.json +19 -11
- package/shinjuku-wallet.mjs +160537 -0
- package/index.mjs +0 -16
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
Shinjuku
|
|
2
|
-
Copyright (c) 2026 Shinjuku
|
|
1
|
+
Shinjuku Shielded wallet
|
|
2
|
+
Copyright (c) 2026 Shinjuku Shielded. All rights reserved.
|
|
3
|
+
|
|
4
|
+
The open-source packages inside this file keep their own licenses: see THIRD_PARTY_NOTICES.txt.
|
package/README.md
CHANGED
|
@@ -1,13 +1,108 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Shinjuku Shield
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
a shielded USDC balance on Solana.
|
|
3
|
+
The Shinjuku Shield wallet: a self-custody wallet that pays x402 URLs
|
|
4
|
+
privately from a shielded USDC balance on Solana. It also pays for AI
|
|
5
|
+
answers privately, in a terminal chat or for your agent app. Its `mcp`
|
|
6
|
+
command runs a local MCP server (stdio) for your agent. Your keys never
|
|
7
|
+
leave your machine.
|
|
5
8
|
|
|
6
|
-
This
|
|
9
|
+
This is version 0.3.81. The npm packages `shinjuku-shield` and
|
|
10
|
+
`shinjuku-shielded` hold the same files; `shinjuku` is the short command.
|
|
11
|
+
|
|
12
|
+
## Set up
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npx -y --no-audit --no-fund shinjuku-shield@0.3.81 setup
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Setup makes the wallet on this machine, a private passphrase file, and the
|
|
19
|
+
checked proof tools (about 191 MB), and writes `config.json`. It also writes
|
|
20
|
+
a recovery file: copy it to two offline places, then delete it from this
|
|
21
|
+
machine. `--add-to claude-code` (or `claude-desktop`, `cursor`) also adds the
|
|
22
|
+
server to that host's config.
|
|
23
|
+
|
|
24
|
+
## The `shinjuku` command
|
|
7
25
|
|
|
8
26
|
```sh
|
|
9
|
-
npm install -g shinjuku
|
|
10
|
-
shinjuku
|
|
27
|
+
npm install -g shinjuku@0.3.81
|
|
28
|
+
shinjuku help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Every wallet command works after `shinjuku`, for example `shinjuku balance`,
|
|
32
|
+
`shinjuku chat` or `shinjuku infer start`.
|
|
33
|
+
|
|
34
|
+
## Add it to your agent host
|
|
35
|
+
|
|
36
|
+
Claude Code:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
claude mcp add --scope user shinjuku-shielded -- npx -y --no-audit --no-fund shinjuku-shield@0.3.81 mcp
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{ "mcpServers": { "shinjuku-shielded": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.81", "mcp"] } } }
|
|
11
46
|
```
|
|
12
47
|
|
|
13
|
-
|
|
48
|
+
On native Windows, if the host cannot find `npx`, use `"command": "cmd"` and
|
|
49
|
+
put `"/c", "npx"` at the start of `args`. The server keeps the name
|
|
50
|
+
`shinjuku-shielded` in host configs.
|
|
51
|
+
|
|
52
|
+
## Add funds
|
|
53
|
+
|
|
54
|
+
Ask your agent "Add 0.50 USDC to my shielded balance". It calls
|
|
55
|
+
`wallet_add_funds` and gives a one-time address. Send USDC on Solana to it
|
|
56
|
+
from any wallet or exchange. Cents work (from 0.01 USDC), and you need no
|
|
57
|
+
SOL. The USDC becomes private by itself.
|
|
58
|
+
|
|
59
|
+
## Pay
|
|
60
|
+
|
|
61
|
+
Spending limits are optional and off by default: only the balance bounds a
|
|
62
|
+
payment. To set them, give setup `--max-payment`, `--max-session`, or
|
|
63
|
+
`--max-cumulative`, in USDC (`0.05` = 5 cents).
|
|
64
|
+
|
|
65
|
+
`x402_discover` finds sellers in public x402 listings, `x402_preview` shows
|
|
66
|
+
the price, and `x402_pay` pays.
|
|
67
|
+
|
|
68
|
+
## Private AI
|
|
69
|
+
|
|
70
|
+
Each answer is paid from your shielded balance, through Tor: the AI
|
|
71
|
+
provider sees your words, not your IP address, and the chain does not show
|
|
72
|
+
which wallet paid. The wallet keeps no copy of a conversation.
|
|
73
|
+
|
|
74
|
+
- `shinjuku chat`: a chat in this terminal. Each answer has a cap (0.05 USDC
|
|
75
|
+
by default) and each chat has a cap (1 USDC by default).
|
|
76
|
+
- `shinjuku infer start`: a local AI address for an agent app that speaks
|
|
77
|
+
the OpenAI API. It prints the `base_url` (`http://127.0.0.1:11402/v1`) and
|
|
78
|
+
an api key. It keeps running in the background after the terminal closes;
|
|
79
|
+
`shinjuku infer status` shows it, and `shinjuku infer stop` stops it. Your
|
|
80
|
+
agent can also start it with the MCP tool `inference_server`.
|
|
81
|
+
- `inference_chat` (MCP): one answer for your agent.
|
|
82
|
+
|
|
83
|
+
## Needs
|
|
84
|
+
|
|
85
|
+
- Node.js 22.21 or later, or Node.js 24 or later (a `--tor` run needs `NODE_USE_ENV_PROXY`, which Node.js 23 does not have).
|
|
86
|
+
- Linux, or Windows with WSL. macOS is not supported: the provers are Linux
|
|
87
|
+
programs.
|
|
88
|
+
- Tor, for private AI (and for `--tor`).
|
|
89
|
+
|
|
90
|
+
The package has no install scripts. `node_modules/.bin` and the global npm
|
|
91
|
+
folder must not be writable by other users: the MCP server holds your wallet
|
|
92
|
+
keys.
|
|
93
|
+
|
|
94
|
+
This package holds one wallet release, unchanged. The `shinjukuRelease` and
|
|
95
|
+
`shinjukuSha256` fields in `package.json` name that release. Compare the hash
|
|
96
|
+
with the Releases table in
|
|
97
|
+
[ShinjukuStaition/shinjuku-shielded](https://github.com/ShinjukuStaition/shinjuku-shielded#releases).
|
|
98
|
+
Versions are published from GitHub Actions with npm provenance.
|
|
99
|
+
|
|
100
|
+
The full guide is
|
|
101
|
+
[ShinjukuStaition/shinjuku-mcp](https://github.com/ShinjukuStaition/shinjuku-mcp).
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
`LICENSE.txt` (the Shinjuku Shielded wallet license, all rights reserved) and
|
|
106
|
+
`THIRD_PARTY_NOTICES.txt` (the open-source packages inside the file) ship
|
|
107
|
+
unchanged from the release. `manifest.json` names the source commit and every
|
|
108
|
+
bundled package.
|