@needmoretruth/nmts-cli 0.59.0 → 0.61.1
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/AGENTS.md +49 -49
- package/CHANGELOG.md +135 -98
- package/LICENSING.md +8 -8
- package/README.ko.md +156 -156
- package/README.md +111 -111
- package/dist/api-advice.js +34 -34
- package/dist/api-key.js +2 -2
- package/dist/artifact-about.d.ts +1 -1
- package/dist/autonomy.js +12 -12
- package/dist/code-access.js +3 -3
- package/dist/code-vault.js +1 -1
- package/dist/commands/accept-terms.js +4 -4
- package/dist/commands/ai-account.js +10 -10
- package/dist/commands/balance.js +7 -7
- package/dist/commands/create-code-file.js +3 -3
- package/dist/commands/create-link.js +36 -41
- package/dist/commands/create-pass.js +3 -3
- package/dist/commands/create.js +4 -4
- package/dist/commands/credits.js +2 -2
- package/dist/commands/delete-account.js +3 -3
- package/dist/commands/deposit.js +3 -3
- package/dist/commands/devices.js +3 -3
- package/dist/commands/documents.js +1 -1
- package/dist/commands/env.js +13 -13
- package/dist/commands/erase.js +5 -5
- package/dist/commands/expiring.js +9 -7
- package/dist/commands/extend.js +14 -12
- package/dist/commands/get.js +2 -2
- package/dist/commands/handover.js +2 -2
- package/dist/commands/key-manage.js +2 -2
- package/dist/commands/key.js +5 -5
- package/dist/commands/link.js +2 -2
- package/dist/commands/links.js +1 -1
- package/dist/commands/listfile.js +3 -3
- package/dist/commands/login-passphrase.js +4 -4
- package/dist/commands/login.js +12 -12
- package/dist/commands/logout.js +1 -1
- package/dist/commands/losses.js +7 -7
- package/dist/commands/ls.js +7 -7
- package/dist/commands/marks.js +1 -1
- package/dist/commands/mcp.js +4 -4
- package/dist/commands/mode.js +8 -8
- package/dist/commands/on-collision.js +4 -4
- package/dist/commands/openers-attach.js +1 -1
- package/dist/commands/organise.js +1 -1
- package/dist/commands/padding.js +3 -3
- package/dist/commands/platform.js +2 -2
- package/dist/commands/public-code-manage.js +4 -4
- package/dist/commands/public-code.js +4 -4
- package/dist/commands/pull.js +1 -1
- package/dist/commands/push-heavy.js +1 -1
- package/dist/commands/push-wallet.js +1 -1
- package/dist/commands/push.js +2 -2
- package/dist/commands/put-heavy.js +2 -2
- package/dist/commands/put-payer.js +1 -1
- package/dist/commands/put-wallet.js +5 -5
- package/dist/commands/put.js +3 -3
- package/dist/commands/rebuild.js +13 -13
- package/dist/commands/receive.js +2 -2
- package/dist/commands/recovery-list.js +1 -1
- package/dist/commands/recovery.js +7 -7
- package/dist/commands/rollback.js +2 -2
- package/dist/commands/s3.js +3 -3
- package/dist/commands/share.js +7 -7
- package/dist/commands/shares-sent.js +2 -2
- package/dist/commands/support.js +1 -1
- package/dist/commands/sweep.js +3 -3
- package/dist/commands/tip.js +2 -2
- package/dist/commands/trial.js +8 -8
- package/dist/commands/unlock.js +6 -6
- package/dist/commands/update.js +3 -3
- package/dist/commands/usage.js +4 -4
- package/dist/commands/verify.js +1 -1
- package/dist/commands/wallet-activity.js +3 -3
- package/dist/commands/wallet-donate.js +4 -4
- package/dist/commands/wallet-hall.js +5 -5
- package/dist/commands/wallet-list.js +2 -2
- package/dist/commands/wallet-send.js +5 -5
- package/dist/commands/wallet-storage-buy.js +1 -1
- package/dist/commands/wallet-storage-extend.js +1 -1
- package/dist/commands/wallet-storage-ops.js +5 -5
- package/dist/commands/wallet-storage.js +1 -1
- package/dist/commands/wallet-swap.js +14 -14
- package/dist/commands/wallet-use.js +3 -3
- package/dist/commands/wallet.js +7 -7
- package/dist/consent.js +7 -7
- package/dist/credentials.js +1 -1
- package/dist/deposit.js +1 -1
- package/dist/download-part.js +1 -1
- package/dist/download-sink-node.js +3 -3
- package/dist/download.js +1 -1
- package/dist/drive-edit/errors.js +1 -1
- package/dist/drive-edit/folders.js +1 -1
- package/dist/drive-edit/trash.js +2 -2
- package/dist/drive-erase.js +1 -1
- package/dist/environment.js +5 -5
- package/dist/errors.js +1 -1
- package/dist/extend-budget.js +5 -5
- package/dist/extend-chain.js +1 -1
- package/dist/extend-plan.js +4 -4
- package/dist/gate.js +1 -1
- package/dist/handover.js +2 -2
- package/dist/heavy-copy.d.ts +1 -1
- package/dist/heavy-copy.js +7 -7
- package/dist/help-options.js +13 -13
- package/dist/help.js +54 -40
- package/dist/human-check.js +2 -2
- package/dist/kit-file.js +6 -6
- package/dist/list-file.js +1 -1
- package/dist/manifest-chunk-flow.js +1 -1
- package/dist/manifest-create.js +2 -2
- package/dist/manifest-write.js +1 -1
- package/dist/manifest.js +6 -3
- package/dist/mcp-args.js +1 -1
- package/dist/mcp-tools/credits.js +5 -5
- package/dist/mcp-tools/files.js +6 -6
- package/dist/mcp-tools/organise.js +7 -7
- package/dist/mcp-tools/reads.js +17 -17
- package/dist/mcp-tools/share.js +6 -6
- package/dist/mcp-tools/support.js +3 -3
- package/dist/mcp-tools/tiers.js +4 -4
- package/dist/notice.js +1 -1
- package/dist/openers/wallet.js +1 -1
- package/dist/platform-sign.js +2 -2
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/public-codes.js +2 -2
- package/dist/recovery-assemble.js +1 -1
- package/dist/recovery-map-file.js +1 -1
- package/dist/recovery-map.js +1 -1
- package/dist/recovery-source.js +1 -1
- package/dist/recovery.js +1 -1
- package/dist/risk.d.ts +4 -4
- package/dist/risk.js +4 -4
- package/dist/s3/call.js +1 -1
- package/dist/s3/same-file.js +1 -1
- package/dist/setup-questions.js +1 -1
- package/dist/shared/lib/drive/manifest-index.d.ts +9 -0
- package/dist/shared/lib/drive/manifest-index.js +11 -0
- package/dist/shared/lib/heavy/order-plan.js +4 -4
- package/dist/shared/lib/heavy/sp-upload.js +1 -1
- package/dist/shared/lib/upload/relay-limit.d.ts +30 -0
- package/dist/shared/lib/upload/relay-limit.js +74 -0
- package/dist/shared/lib/vendor/nmt-pow.d.ts +21 -0
- package/dist/shared/lib/vendor/nmt-pow.js +56 -0
- package/dist/shared/lib/walrus/node-certificate.js +1 -1
- package/dist/shared/lib/walrus/node-quorum.js +1 -1
- package/dist/sharing-inbox.js +1 -1
- package/dist/sharing.js +4 -4
- package/dist/standing-tip.js +1 -1
- package/dist/storage-control/extend.js +2 -2
- package/dist/storage-control/reshape.js +3 -3
- package/dist/support-copy.js +4 -4
- package/dist/support-wire.js +4 -4
- package/dist/update-source.js +1 -1
- package/dist/upload-price.d.ts +10 -0
- package/dist/upload-price.js +21 -0
- package/dist/upload-quote.js +2 -2
- package/dist/upload-run.js +1 -1
- package/dist/upload-steps.js +1 -1
- package/dist/upload-store.js +1 -1
- package/dist/upload-wallet-chain.js +1 -1
- package/dist/upload-wallet-plan.js +12 -12
- package/dist/upload-wallet-put.js +1 -1
- package/dist/upload-wallet.js +2 -2
- package/dist/upload.js +2 -2
- package/dist/wallet-grant.js +3 -3
- package/dist/wallet-pay-index.js +1 -1
- package/dist/wallet-sign-external.js +5 -5
- package/dist/wallet-sign.js +6 -6
- package/dist/wallet-swap-words.js +3 -3
- package/dist/walrus.js +2 -2
- package/docs/commands/accept-terms.md +3 -3
- package/docs/commands/ai-account.md +4 -4
- package/docs/commands/create.md +8 -8
- package/docs/commands/credits.md +9 -9
- package/docs/commands/delete-account.md +4 -4
- package/docs/commands/deposit.md +7 -7
- package/docs/commands/devices.md +4 -4
- package/docs/commands/documents.md +5 -5
- package/docs/commands/env.md +10 -10
- package/docs/commands/extend.md +4 -4
- package/docs/commands/folders.md +3 -3
- package/docs/commands/get.md +4 -4
- package/docs/commands/handover.md +12 -12
- package/docs/commands/heavy.md +4 -4
- package/docs/commands/key.md +8 -8
- package/docs/commands/link.md +9 -9
- package/docs/commands/login.md +4 -4
- package/docs/commands/logout.md +2 -2
- package/docs/commands/losses.md +3 -3
- package/docs/commands/ls.md +5 -5
- package/docs/commands/marks.md +5 -5
- package/docs/commands/mcp.md +9 -9
- package/docs/commands/mode.md +6 -6
- package/docs/commands/on-collision.md +4 -4
- package/docs/commands/openers.md +5 -5
- package/docs/commands/padding.md +7 -7
- package/docs/commands/platform.md +2 -2
- package/docs/commands/public-code.md +8 -8
- package/docs/commands/pull.md +2 -2
- package/docs/commands/push.md +3 -3
- package/docs/commands/put.md +11 -11
- package/docs/commands/rebuild.md +5 -5
- package/docs/commands/recovery.md +4 -4
- package/docs/commands/s3.md +6 -6
- package/docs/commands/share.md +8 -8
- package/docs/commands/support.md +7 -7
- package/docs/commands/tip.md +7 -7
- package/docs/commands/trash.md +8 -8
- package/docs/commands/trial.md +5 -5
- package/docs/commands/unlock.md +4 -4
- package/docs/commands/update.md +3 -3
- package/docs/commands/usage.md +4 -4
- package/docs/commands/verify.md +5 -5
- package/docs/commands/wallet.md +25 -25
- package/docs/commands/whoami.md +5 -5
- package/examples/podman.sh +3 -3
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# nmts
|
|
2
2
|
|
|
3
|
-
Command-line access to [NMTS](https://nmts.me)
|
|
3
|
+
Command-line access to [NMTS](https://nmts.me): **NeedMoreTruthStorage**, end-to-end encrypted
|
|
4
4
|
cloud storage on the Walrus network, built by one developer ([needmoretruth](https://github.com/needmoretruth)).
|
|
5
5
|
For people at a terminal, and for the AI agents they run.
|
|
6
6
|
|
|
7
|
-
> **[한국어 문서](README.ko.md)
|
|
7
|
+
> **[한국어 문서](README.ko.md)**, Talk about NMTS on [Discord](https://discord.gg/pcmRkVmVZk),
|
|
8
8
|
> in English or Korean.
|
|
9
9
|
>
|
|
10
10
|
> **If you are an AI agent, read [AGENTS.md](AGENTS.md) instead.** It has the tier table,
|
|
@@ -26,18 +26,18 @@ The bytes live on **Walrus**, a public storage network, paid for on the **Sui**
|
|
|
26
26
|
- **There is no password reset.** Your NMTS key *is* the account. It cannot be recovered or
|
|
27
27
|
changed while keeping the files, because nobody, NMTS included, holds a key to them.
|
|
28
28
|
- **NMTS charges nothing.** Storage is bought from the Walrus network, for a period, from your own
|
|
29
|
-
wallet
|
|
30
|
-
has already paid the network for (the weekly free trial)
|
|
29
|
+
wallet. Nothing is paid to NMTS. Uploads here spend **credits**, which are storage a donation pool
|
|
30
|
+
has already paid the network for (the weekly free trial). They are not sold. One command,
|
|
31
31
|
`nmts extend`, pays from your own Sui wallet instead, and asks for a separate agreement first,
|
|
32
32
|
because a signed purchase on a public chain cannot be reversed by anyone.
|
|
33
33
|
|
|
34
34
|
This tool, the encryption engine and the recovery program
|
|
35
|
-
are open source under Apache-2.0
|
|
35
|
+
are open source under Apache-2.0. The server and the web app are not published.
|
|
36
36
|
|
|
37
37
|
## 📦 Install
|
|
38
38
|
|
|
39
39
|
Node 22.15.0 or newer. Nothing is compiled at install time and there is no native build step: the
|
|
40
|
-
encryption engine is a WebAssembly module carried in the repository. It runs wherever Node runs
|
|
40
|
+
encryption engine is a WebAssembly module carried in the repository. It runs wherever Node runs:
|
|
41
41
|
Linux, macOS, Windows, and inside a rootless container.
|
|
42
42
|
|
|
43
43
|
```sh
|
|
@@ -45,13 +45,13 @@ npm install -g @needmoretruth/nmts-cli
|
|
|
45
45
|
nmts --help
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
The same package can be installed straight from this repository, without the registry
|
|
48
|
+
The same package can be installed straight from this repository, without the registry: from the
|
|
49
49
|
default branch, from a pinned version, or from the tarball attached to the
|
|
50
50
|
[latest release](https://github.com/needmoretruth/nmts-cli/releases):
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
npm install -g github:needmoretruth/nmts-cli # the default branch
|
|
54
|
-
npm install -g github:needmoretruth/nmts-cli#v0.
|
|
54
|
+
npm install -g github:needmoretruth/nmts-cli#v0.61.1 # a pinned version
|
|
55
55
|
npm install -g https://github.com/needmoretruth/nmts-cli/releases/latest/download/nmts.tgz
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -79,23 +79,23 @@ halves, and `nmts env` shows what the check last found.
|
|
|
79
79
|
nmts env # what this machine is, and whether credentials are in reach. Contacts nothing.
|
|
80
80
|
nmts login # keep the NMTS key here, sealed, and take an API key
|
|
81
81
|
nmts ls # list the files
|
|
82
|
-
nmts put x # upload one file
|
|
82
|
+
nmts put x # upload one file; spends credits
|
|
83
83
|
nmts get x # download one file
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Run `nmts env` first on any machine you do not know
|
|
86
|
+
Run `nmts env` first on any machine you do not know: a container, a CI runner, someone else's
|
|
87
87
|
laptop. It needs no credential and reports what a credential here would be exposed to.
|
|
88
88
|
|
|
89
89
|
## 🔑 The two credentials
|
|
90
90
|
|
|
91
91
|
| | What it does | How to give it |
|
|
92
92
|
|---|---|---|
|
|
93
|
-
| **NMTS key** | Opens your files. Every key in the account derives from it. Never goes to the server. | `NMTS_ACCOUNT_CODE_FILE=/path` (recommended)
|
|
94
|
-
| **API key** | Makes the server answer. Made on the account screen at nmts.me. Opens no file. | `NMTS_API_KEY_FILE=/path` (recommended)
|
|
93
|
+
| **NMTS key** | Opens your files. Every key in the account derives from it. Never goes to the server. | `NMTS_ACCOUNT_CODE_FILE=/path` (recommended), `nmts login`, `NMTS_ACCOUNT_CODE` |
|
|
94
|
+
| **API key** | Makes the server answer. Made on the account screen at nmts.me. Opens no file. | `NMTS_API_KEY_FILE=/path` (recommended), `NMTS_API_KEY`, `nmts login` |
|
|
95
95
|
|
|
96
96
|
`nmts ls` needs both: the API key so the server answers, your NMTS key so the answer can be opened.
|
|
97
97
|
|
|
98
|
-
**The NMTS key used to be called the account code
|
|
98
|
+
**The NMTS key used to be called the account code. Only the name changed.** The flags, the
|
|
99
99
|
environment variables (`NMTS_ACCOUNT_CODE`, `NMTS_ACCOUNT_CODE_FILE`), the config keys, the MCP
|
|
100
100
|
tool and argument names, the error codes and every file format keep the names they already had, so
|
|
101
101
|
nothing you have scripted breaks.
|
|
@@ -105,9 +105,9 @@ handle and never the key itself, and does not replace a stored API key unless th
|
|
|
105
105
|
`nmts logout` clears what is stored.
|
|
106
106
|
|
|
107
107
|
`nmts whoami --reveal` prints your NMTS key itself. It is locked until you run `nmts unlock
|
|
108
|
-
reveal` once, and asked about on every run
|
|
108
|
+
reveal` once, and asked about on every run. Anything that logs your terminal has your NMTS key from
|
|
109
109
|
then on. Add `--phrase` for the same key as its 15-word recovery phrase (`--lang ko` for Korean
|
|
110
|
-
words)
|
|
110
|
+
words). `nmts login` accepts either form.
|
|
111
111
|
|
|
112
112
|
**Neither credential is ever accepted as a command-line argument.** Any process can read another
|
|
113
113
|
process's command line, and shells record it in history. There is no flag for either.
|
|
@@ -125,12 +125,12 @@ A sealed NMTS key needs its passphrase for every command, from a terminal or fro
|
|
|
125
125
|
`NMTS_PASSPHRASE`. Opening it costs a fraction of a second and 64 MiB of memory, which is what
|
|
126
126
|
makes guessing the passphrase expensive. A passphrase does not protect your NMTS key from anything
|
|
127
127
|
running as you: on a machine where an agent runs unattended, the passphrase has to be reachable
|
|
128
|
-
too. That is why the file form is the recommendation for agents
|
|
128
|
+
too. That is why the file form is the recommendation for agents: your NMTS key is never copied,
|
|
129
129
|
and the permissions are the host's to set.
|
|
130
130
|
|
|
131
131
|
An environment variable is not private: `docker inspect` prints it, anything running as you can
|
|
132
132
|
read `/proc/<pid>/environ`, every child process inherits it, and CI systems write it into logs.
|
|
133
|
-
That is why using one asks once. `nmts login --env` prints the line to set and writes nothing
|
|
133
|
+
That is why using one asks once. `nmts login --env` prints the line to set and writes nothing. It is
|
|
134
134
|
behind the same agreement.
|
|
135
135
|
|
|
136
136
|
**Under Codex, Hermes and OpenClaw an environment variable does not reach an MCP server.** All
|
|
@@ -150,90 +150,90 @@ your main one.
|
|
|
150
150
|
|---|---|
|
|
151
151
|
| `nmts env` | Where this is running, and what that means. Needs nothing. |
|
|
152
152
|
| `nmts login` / `logout` | Keep or remove an NMTS key and an API key on this machine |
|
|
153
|
-
| `nmts whoami` | Which account the stored NMTS key belongs to
|
|
153
|
+
| `nmts whoami` | Which account the stored NMTS key belongs to, offline. `--reveal` prints your NMTS key |
|
|
154
154
|
| `nmts ls` | List the files |
|
|
155
155
|
| `nmts usage` | What the account holds: counts, bytes, the largest files, the trash |
|
|
156
156
|
| `nmts balance` | Credits left, what they buy, and the ceilings on spending |
|
|
157
157
|
| `nmts get <path>` | Download one file, decrypt it, check it |
|
|
158
158
|
| `nmts pull [folder]` | Download a whole folder, or the whole account, keeping its shape |
|
|
159
|
-
| `nmts put <file>` | Encrypt one file and upload it
|
|
160
|
-
| `nmts push <directory>` | Upload a whole directory, keeping its shape
|
|
161
|
-
| `nmts rm <paths>` | Move things to the trash
|
|
159
|
+
| `nmts put <file>` | Encrypt one file and upload it. **Spends credits**. `--deposit <n>` sets the deposit for this upload |
|
|
160
|
+
| `nmts push <directory>` | Upload a whole directory, keeping its shape. **Spends credits**. `--deposit <n>` applies to every file in it |
|
|
161
|
+
| `nmts rm <paths>` | Move things to the trash, restorable for 30 days |
|
|
162
162
|
| `nmts restore <paths>` | Bring things back out of the trash |
|
|
163
|
-
| `nmts sweep` | Drop trash entries past their 30 days. **Cannot be undone
|
|
164
|
-
| `nmts erase <paths>` | Erase files for good
|
|
163
|
+
| `nmts sweep` | Drop trash entries past their 30 days. **Cannot be undone**. Asks every run |
|
|
164
|
+
| `nmts erase <paths>` | Erase files for good: the server's record and this account's key, trash or not. A typed sentence, your NMTS key beside the API key. `--release-storage` also destroys credit-paid storage (locked until `nmts unlock release-storage`) |
|
|
165
165
|
| `nmts mkdir <path>` | Make a folder, and any folder above it that is missing |
|
|
166
166
|
| `nmts mv <paths> <folder>` | Move things into a folder. `/` is the top of the drive |
|
|
167
167
|
| `nmts rename <path> <name>` | Give one thing a new name |
|
|
168
168
|
| `nmts star` / `unstar` | Star files, or take the star off |
|
|
169
169
|
| `nmts pin` / `unpin` | Hold files at the top of their folder, or let them fall back |
|
|
170
|
-
| `nmts label <name> <files>` | Put one label on files. `unlabel` takes it off
|
|
170
|
+
| `nmts label <name> <files>` | Put one label on files. `unlabel` takes it off. `--rename` and `--all` sweep the whole list |
|
|
171
171
|
| `nmts on-collision` | What an upload does when its name is already taken |
|
|
172
172
|
| `nmts padding [mode]` | How file sizes are hidden on the storage network, and change it for the next uploads |
|
|
173
173
|
| `nmts deposit [credits]` | How many credits each credit-paid upload sets aside as a deposit (0 to 64, default 64), and change it |
|
|
174
|
-
| `nmts tip [percent\|off]` | A standing share of every WAL payment sent to the developer as a gift (default 0). Setting it needs `nmts unlock donate
|
|
174
|
+
| `nmts tip [percent\|off]` | A standing share of every WAL payment sent to the developer as a gift (default 0). Setting it needs `nmts unlock donate`. The agreement is asked once |
|
|
175
175
|
| `nmts expiring` | Which files run out of bought storage soon, and when |
|
|
176
|
-
| `nmts losses` | Storage NMTS bought for you that the daily check could not find on the chain. `--recheck <id>` asks again
|
|
177
|
-
| `nmts extend <path>` | Buy more storage time for one file
|
|
176
|
+
| `nmts losses` | Storage NMTS bought for you that the daily check could not find on the chain. `--recheck <id>` asks again. `--dismiss <id>` takes a line off |
|
|
177
|
+
| `nmts extend <path>` | Buy more storage time for one file. **Signs and spends from the wallet** |
|
|
178
178
|
| `nmts wallet` | The account's wallet address, and its SUI and WAL balances. Never signs |
|
|
179
179
|
| `nmts wallet activity` | The wallet's recent transactions, named only where the chain proves it. Never signs |
|
|
180
180
|
| `nmts wallet storage` | The storage resources (size × time) the wallet holds outside any file. Never signs |
|
|
181
|
-
| `nmts wallet storage split <id> --size <n>\|--epochs <n
|
|
182
|
-
| `nmts wallet send <SUI\|WAL> <amount\|max> <address>` | Send coins to an address
|
|
183
|
-
| `nmts wallet swap <SUI\|WAL> <amount\|max>` | Swap one coin for the other on DeepBook or Bluefin
|
|
184
|
-
| `nmts wallet donate <SUI\|WAL> <amount>` | A voluntary gift to the developer, in either coin
|
|
185
|
-
| `nmts wallet hall [--name <name>\|--remove]` | The gift hall of fame
|
|
181
|
+
| `nmts wallet storage split <id> --size <n>\|--epochs <n>`, `merge <id> <id>`, `transfer <id> <address>` | Cut, join or hand over a storage resource. **Signs**, under the wallet unlock (`transfer` needs scope `all`). No file goes with a transfer: size and remaining time only |
|
|
182
|
+
| `nmts wallet send <SUI\|WAL> <amount\|max> <address>` | Send coins to an address. **Signs and spends from the wallet**. Prints the review. Sends only with `--yes` |
|
|
183
|
+
| `nmts wallet swap <SUI\|WAL> <amount\|max>` | Swap one coin for the other on DeepBook or Bluefin. **Signs and spends from the wallet**. Without `--venue` prints both quotes and stops. Swaps only with `--yes` |
|
|
184
|
+
| `nmts wallet donate <SUI\|WAL> <amount>` | A voluntary gift to the developer, in either coin. **Signs and spends**. Locked until `nmts unlock donate`, and `--yes` every run |
|
|
185
|
+
| `nmts wallet hall [--name <name>\|--remove]` | The gift hall of fame. `--name` lists you by a name you choose, signed by your wallet |
|
|
186
186
|
| `nmts trial` | What is left of this week's free credits. `trial apply` asks for some |
|
|
187
|
-
| `nmts create` | Make a NEW account and print its NMTS key once. Nothing can print it again. With no verified API key on this machine it makes the NMTS key here, prints an address, and waits while a person opens it, types that NMTS key and passes the human check
|
|
187
|
+
| `nmts create` | Make a NEW account and print its NMTS key once. Nothing can print it again. With no verified API key on this machine it makes the NMTS key here, prints an address, and waits while a person opens it, types that NMTS key and passes the human check. The account exists the moment they finish. `--no-wait` prints the address and stops |
|
|
188
188
|
| `nmts verify` | Ask a person to pass the check that opens this account's limits. Only the account holder can: signed in to this account in that browser, or typing its NMTS key there |
|
|
189
|
-
| `nmts public-code` | The code other accounts send files to. `--publish` makes it reachable
|
|
190
|
-
| `nmts public-code list · new · revoke <n>` | Every code your NMTS key has published
|
|
191
|
-
| `nmts share <path> <address>` | Give one file to another account
|
|
192
|
-
| `nmts shares` | What was shared with this account
|
|
189
|
+
| `nmts public-code` | The code other accounts send files to. `--publish` makes it reachable. `--save [file]` writes your public code file |
|
|
190
|
+
| `nmts public-code list · new · revoke <n>` | Every code your NMTS key has published. Publish the next one (`--replace <n>` revokes one in the same step). Revoke one: nobody can send to it again. Revoking asks every time |
|
|
191
|
+
| `nmts share <path> <address>` | Give one file to another account. **Withdrawing does not recall it**. Locked until `nmts unlock share`. Every share stops and `--yes` answers for that one file |
|
|
192
|
+
| `nmts shares` | What was shared with this account. `--sent <path>` shows who one file went to |
|
|
193
193
|
| `nmts receive <id>` | Download one file somebody shared with this account |
|
|
194
194
|
| `nmts unshare <id>` | Withdraw a share you sent, or remove one you were sent |
|
|
195
|
-
| `nmts handover make <path> --to <public code \| public code file>` | Write a handover file for one account and pass it on yourself
|
|
196
|
-
| `nmts handover open <file>` | Download the file a handover file carries. Needs the NMTS key and no API key
|
|
195
|
+
| `nmts handover make <path> --to <public code \| public code file>` | Write a handover file for one account and pass it on yourself. **It cannot be taken back**, and NMTS keeps no record of it. Locked like `share` |
|
|
196
|
+
| `nmts handover open <file>` | Download the file a handover file carries. Needs the NMTS key and no API key. Tells the NMTS server nothing about the file |
|
|
197
197
|
| `nmts link make <path> [--hide-name] [--expires <n>d]` | Make a public link to a file |
|
|
198
198
|
| `nmts link list <path>` | List a file's public links |
|
|
199
199
|
| `nmts link revoke <id>` | Cut a public link |
|
|
200
200
|
| `nmts link open <link> [--out <path>]` | Download and decrypt a file from a public link, without logging in |
|
|
201
201
|
| `nmts rebuild` | Build a file list from the server's rows, for an account with none |
|
|
202
|
-
| `nmts rollback` | Put the previous version of the file list back
|
|
202
|
+
| `nmts rollback` | Put the previous version of the file list back. Locked until `nmts unlock rollback`, `--yes` every run |
|
|
203
203
|
| `nmts listfile` | Write this machine's copy of the sealed file list out as a file |
|
|
204
204
|
| `nmts recovery-list` | Write the file that finds this account's bytes without NMTS |
|
|
205
205
|
| `nmts kit` | Recovery kit: that list **and your NMTS key**, together in one file |
|
|
206
206
|
| `nmts recovery` | Download the standalone program that reads files back without NMTS |
|
|
207
|
-
| `nmts unlock` / `nmts lock` | What this machine has unlocked
|
|
207
|
+
| `nmts unlock` / `nmts lock` | What this machine has unlocked. `unlock <key>` opens one (a person, at a terminal), `lock <key>` closes it. `consent` is the older name |
|
|
208
208
|
| `nmts mode` | How much an agent driving this tool may decide without asking |
|
|
209
|
-
| `nmts support send` | Send a report to the developer
|
|
209
|
+
| `nmts support send` | Send a report to the developer: a bug, an error, an idea, a question. `--attach-log` adds the last runs, redacted |
|
|
210
210
|
| `nmts support list` / `show <code>` / `reply <code>` | Read the answers, and write back in the same thread |
|
|
211
211
|
| `nmts update` | Install the newest published release of this tool |
|
|
212
|
-
| `nmts notices` | What NMTS has posted: interruptions, incidents, and the warning before new Terms take effect. `notices <id>` prints one
|
|
212
|
+
| `nmts notices` | What NMTS has posted: interruptions, incidents, and the warning before new Terms take effect. `notices <id>` prints one. `--save <id>` keeps it as a dated file |
|
|
213
213
|
| `nmts terms` | The Terms of Service in force. `--lang ko` for Korean, `--board` for the message board's terms, `--save` to keep a copy |
|
|
214
214
|
| `nmts privacy` | The Privacy Policy in force. `--lang ko`, `--save` to keep a copy |
|
|
215
|
-
| `nmts delete-account` | A **person** erases this account's server record
|
|
215
|
+
| `nmts delete-account` | A **person** erases this account's server record. Irreversible. Needs your NMTS key and a typed sentence. Refused in the auto modes, and under skip-permissions only with `--reason` |
|
|
216
216
|
| `nmts accept-terms` | Accept a new version of the Terms after reading it: a person types the versions, or an agent relays them with `--accept-terms <v> --accept-privacy <v> --yes` after asking |
|
|
217
|
-
| `nmts key new` | Make an API key for this account with your NMTS key alone
|
|
218
|
-
| `nmts devices` | The devices signed in to this account. `--sign-out <id>` or `--sign-out all` ends one or all of them
|
|
217
|
+
| `nmts key new` | Make an API key for this account with your NMTS key alone, no browser. `--scopes read,write,spend`, `--days <n>`. The new API key is stored as this machine's credential. `--print` also prints it once |
|
|
218
|
+
| `nmts devices` | The devices signed in to this account. `--sign-out <id>` or `--sign-out all` ends one or all of them. Needs your NMTS key, locked until `nmts unlock sign-out`, asked every run |
|
|
219
219
|
| `nmts mcp` | Serve a subset of the above as tools over the Model Context Protocol |
|
|
220
220
|
| `nmts s3` | Serve the drive to any S3 program, on this machine only |
|
|
221
221
|
| `nmts platform keygen` | Make the Ed25519 key pair a business signs its NMTS Platform requests with: both halves go to a file only you can read (mode 0600), and only the public half is printed. The public half is registered at nmts.me under Settings › Developer › Platform |
|
|
222
222
|
|
|
223
223
|
### Listing and fetching
|
|
224
224
|
|
|
225
|
-
`ls` takes `--json`, `--all` (include the trash
|
|
225
|
+
`ls` takes `--json`, `--all` (include the trash. The count always says how many were hidden),
|
|
226
226
|
`--find <text>` (files whose name contains the text, with the folders that hold them), `--sort
|
|
227
227
|
name|size|date` and `--desc`.
|
|
228
228
|
|
|
229
229
|
`get` takes `--out` and `--force`. It never leaves a half-right file: the bytes are written under a
|
|
230
230
|
temporary name in the same directory and renamed into place only once the whole-file hash
|
|
231
231
|
matches. One part is held in memory at a time, not the file. `--out -` sends the file to stdout
|
|
232
|
-
instead of writing it, with everything a person reads on stderr
|
|
232
|
+
instead of writing it, with everything a person reads on stderr. A pipe cannot be taken back, so
|
|
233
233
|
that mode proves the whole file first and refuses above 64 MiB.
|
|
234
234
|
|
|
235
235
|
`pull` fetches each file on its own. One that will not come back is named at the end and the rest
|
|
236
|
-
stay on disk. Files already in the destination are skipped and counted
|
|
236
|
+
stay on disk. Files already in the destination are skipped and counted. `--force` replaces them.
|
|
237
237
|
|
|
238
238
|
### Uploading
|
|
239
239
|
|
|
@@ -244,9 +244,9 @@ nmts put film.mov --part-size 256MiB # bigger parts: fewer purchases, more mem
|
|
|
244
244
|
```
|
|
245
245
|
|
|
246
246
|
One credit per started mebibyte, printed before anything is spent. A name already taken in that
|
|
247
|
-
folder gets a numbered copy (`report (2).pdf`) unless `nmts on-collision` says otherwise
|
|
247
|
+
folder gets a numbered copy (`report (2).pdf`) unless `nmts on-collision` says otherwise. NMTS keeps
|
|
248
248
|
no previous versions, so replacing is permanent. A file larger than one part (64 MiB by default) is
|
|
249
|
-
split and each part bought separately
|
|
249
|
+
split and each part bought separately. A run that stops partway is finished by running the same
|
|
250
250
|
command again, which buys only the parts that were never bought. The same is true after any
|
|
251
251
|
interrupted upload: the retry costs nothing more.
|
|
252
252
|
|
|
@@ -261,21 +261,21 @@ nmts put film.mov --pay wallet --sui-key-file ~/.sui/agent.key # another Sui w
|
|
|
261
261
|
|
|
262
262
|
The file is planned into the same parts, the chain quotes each part in WAL
|
|
263
263
|
and the relay's tip in SUI, the register transaction is dry-run for its fee, both balances are read,
|
|
264
|
-
and the review is printed
|
|
264
|
+
and the review is printed (the term as epochs and as days) before the `wallet` agreement (scope
|
|
265
265
|
`storage`) is held against the total and anything is signed. A wallet known to be short is refused
|
|
266
|
-
with the two numbers
|
|
267
|
-
takes two signatures, register and certify
|
|
266
|
+
with the two numbers. A balance that could not be read is said as unread, not as zero. Each part
|
|
267
|
+
takes two signatures, register and certify. A run that stops partway is finished by running the same
|
|
268
268
|
command again, which signs nothing twice. `--storage fit|whole|<object id>` uses a free storage
|
|
269
269
|
resource the wallet holds (`nmts wallet storage` lists them) for a one-part file: `fit` cuts it to the
|
|
270
270
|
part's encoded size and leaves the rest free, `whole` binds all of it with the file, and the review
|
|
271
|
-
says in bytes which. Without `--storage` new storage is bought
|
|
271
|
+
says in bytes which. Without `--storage` new storage is bought. The review only mentions what the
|
|
272
272
|
wallet holds. The server records the file as stored on the wallet's own storage, and `nmts extend`
|
|
273
273
|
can extend it. A wallet-paid upload does not carry the recovery list's storage-network copy,
|
|
274
|
-
whichever way the account's switch is set
|
|
274
|
+
whichever way the account's switch is set. Today only the browser's small-file uploads do. `push
|
|
275
275
|
--pay wallet` does the same one file at a time.
|
|
276
276
|
|
|
277
277
|
With `--sui-key-file <file>`, `put` pays from another Sui wallet you hold instead of your NMTS key's
|
|
278
|
-
wallet, and the review names that wallet. The file holds the wallet's `suiprivkey1…` line
|
|
278
|
+
wallet, and the review names that wallet. The file holds the wallet's `suiprivkey1…` line. A file other
|
|
279
279
|
users can read is refused, and the key is never printed. It cannot be combined with `--wallet` or used
|
|
280
280
|
with `push`.
|
|
281
281
|
|
|
@@ -285,7 +285,7 @@ beginning with a dot are left alone unless `--hidden` is given, and symbolic lin
|
|
|
285
285
|
|
|
286
286
|
`nmts deposit` shows how many credits each credit-paid upload sets aside as a deposit, and `nmts
|
|
287
287
|
deposit <n>` changes it for every device's next uploads (0 to 64, default 64). The deposit pays the
|
|
288
|
-
chain fee of a later operation on that file
|
|
288
|
+
chain fee of a later operation on that file (releasing its storage early, for instance), measured
|
|
289
289
|
rather than spent whole, and what is left comes back when the storage period ends. `put --deposit
|
|
290
290
|
<n>` and `push --deposit <n>` set it for one run. `--deposit 0` sets nothing aside: that file still
|
|
291
291
|
releases, but pays twice the same fee out of the balance at that moment, and is refused with both
|
|
@@ -294,7 +294,7 @@ numbers named when the balance cannot cover it.
|
|
|
294
294
|
`nmts padding` shows how file sizes are hidden, and `nmts padding standard`, `nmts padding pow2` or
|
|
295
295
|
`nmts padding off` changes it for every device's next uploads (`off` stores the exact size: the
|
|
296
296
|
file's length is visible to the network and to anyone who reads the blob, for about 1 % less storage). Anyone can read the size of a piece on the storage
|
|
297
|
-
network
|
|
297
|
+
network. Blank bytes make that size one of a set of fixed values. Powers of two hide more and cost
|
|
298
298
|
more storage on average.
|
|
299
299
|
|
|
300
300
|
### Names, folders and the trash
|
|
@@ -308,10 +308,10 @@ nmts restore photos/2026
|
|
|
308
308
|
```
|
|
309
309
|
|
|
310
310
|
None of these costs anything or asks anything: a name, a folder and a parent live only in your
|
|
311
|
-
sealed file list, and the server holds no place to put a name. `rm` never destroys
|
|
311
|
+
sealed file list, and the server holds no place to put a name. `rm` never destroys. Each trashed
|
|
312
312
|
file keeps its own thirty-day clock. The command that erases for good is deliberately not in this
|
|
313
313
|
tool. A path is matched whole (`photos/a.jpg` is not `a.jpg`), and a path that matches two entries
|
|
314
|
-
is refused rather than resolved. `rm`, `restore` and `mv` take several paths in one write
|
|
314
|
+
is refused rather than resolved. `rm`, `restore` and `mv` take several paths in one write. A path
|
|
315
315
|
that names nothing stops the whole run before anything is touched.
|
|
316
316
|
|
|
317
317
|
`nmts label --rename <old> <new>` renames a label on every file that carries it, and
|
|
@@ -324,34 +324,34 @@ spending. `usage` answers "what do I have". `expiring` says when stored files ru
|
|
|
324
324
|
|
|
325
325
|
`extend` buys more time for a stored file **from the wallet your NMTS key derives**, on a public
|
|
326
326
|
chain. It is locked until you unlock `wallet`, which names a scope (`storage`, or `all` for exchanging and
|
|
327
|
-
sending too), runs out after at most 30 days, and can carry a ceiling on what the tool signs away
|
|
327
|
+
sending too), runs out after at most 30 days, and can carry a ceiling on what the tool signs away:
|
|
328
328
|
`nmts unlock wallet --days 7 [--scope all] [--cap-wal 10 --cap-sui 0.1]`. It takes
|
|
329
329
|
`--dry-run`, which touches no key. Before the agreement it reads the wallet and dry-runs the transaction: the price, the chain
|
|
330
330
|
fee (SUI) and both balances are printed, and a wallet known to be short is refused with the two
|
|
331
331
|
numbers rather than signed. `wallet` only reads: the address is derived on this machine, and a balance that could not be
|
|
332
332
|
read is reported as unread, not as zero. `wallet address --qr` draws the address as a code a phone
|
|
333
333
|
can scan. `wallet activity` lists the newest transactions with the same names the browser gives
|
|
334
|
-
them (seal, extend, erase, exchange, send, receive
|
|
334
|
+
them (seal, extend, erase, exchange, send, receive. Otherwise "other", never a guess). Gifts to the
|
|
335
335
|
developer show as sends there, because the tool does not know that address. `wallet storage` lists
|
|
336
|
-
the storage resources the wallet holds outside any file
|
|
337
|
-
gives back
|
|
336
|
+
the storage resources the wallet holds outside any file (what deleting a file from the network
|
|
337
|
+
gives back), and whether each can be used now. `wallet send` moves SUI or WAL to an address: it
|
|
338
338
|
reads both balances, judges the address and the amount by the browser's own rules, dry-runs the
|
|
339
339
|
transfer for its fee, prints the review with the whole address, and signs only with `--yes` and
|
|
340
340
|
under a `wallet` agreement of scope `all`. `max` sends everything that can be sent (SUI keeps a
|
|
341
|
-
reserve back for fees)
|
|
341
|
+
reserve back for fees). `--fee-cap` puts a ceiling on the fee. A transfer cannot be undone. `wallet swap`
|
|
342
342
|
turns SUI into WAL or WAL into SUI on one of the two venues the browser app offers on mainnet,
|
|
343
343
|
DeepBook and Bluefin, with the same transaction the browser builds: your wallet signs, the outputs
|
|
344
344
|
come back to it, and NMTS is not a party and takes nothing. Without `--venue` it reads both
|
|
345
|
-
venues' quotes at the same moment, prints them side by side
|
|
346
|
-
measured from the quote (or "could not be measured", never a guessed figure)
|
|
347
|
-
is a default and the tool recommends neither
|
|
345
|
+
venues' quotes at the same moment, prints them side by side: what comes out, and the venue's fee as
|
|
346
|
+
measured from the quote (or "could not be measured", never a guessed figure). Then it stops: neither
|
|
347
|
+
is a default and the tool recommends neither. Any other exchange may be used instead. With
|
|
348
348
|
`--venue deepbook|bluefin` it prints the review: the quote, the least it will accept
|
|
349
349
|
(`--slippage-bps`, 1 to 5000, default 50), the chain fee from a dry run, `--fee-cap` if given, and
|
|
350
350
|
how far the quote sits from the site's reference price when one can be read (said as uncompared
|
|
351
351
|
when none can). A slippage under 10 or over 200 bps, a fee cap far from the measured fee, or a
|
|
352
|
-
quote more than 3% from the reference price is refused, even with `--yes
|
|
352
|
+
quote more than 3% from the reference price is refused, even with `--yes`. `--accept-extremes`
|
|
353
353
|
goes on anyway, and only a person may say it (refused while a mode is on). The swap needs `--yes`
|
|
354
|
-
and a `wallet` agreement of scope `all
|
|
354
|
+
and a `wallet` agreement of scope `all`. The chain gives what it gives, never less than the
|
|
355
355
|
minimum, and a swap that would give less fails on chain with the fee spent. On testnet the one
|
|
356
356
|
rail is the official Walrus exchange, SUI→WAL only, at the rate read off its object. `wallet donate` is a voluntary gift to
|
|
357
357
|
the developer, to the address the server publishes (the same one the wallet screen's card shows).
|
|
@@ -359,42 +359,42 @@ It is locked until you run `nmts unlock donate`, needs `--yes` on every run, and
|
|
|
359
359
|
`wallet` unlock and its ceiling. It says, before signing, that the gift is voluntary, buys nothing, is
|
|
360
360
|
non-refundable and cannot be undone, and that the transaction id is the only proof. `nmts tip 2.5` makes
|
|
361
361
|
2.5 % of every WAL payment (an upload paid by wallet, an extension) a standing gift, sent right after the
|
|
362
|
-
payment without a question
|
|
362
|
+
payment without a question. `nmts tip off` stops it, and it is outside the `wallet` ceiling.
|
|
363
363
|
|
|
364
364
|
### Sharing
|
|
365
365
|
|
|
366
366
|
`share` needs the other account's public code, read off their account screen. There is no
|
|
367
|
-
directory and no name lookup
|
|
367
|
+
directory and no name lookup. A mistyped code is caught by its own check symbol. Withdrawing a
|
|
368
368
|
share stops further downloads and cannot reach a copy already taken, which is why sharing asks
|
|
369
369
|
for an agreement the first time.
|
|
370
370
|
|
|
371
371
|
`public-code` prints the value other accounts send files to and says whether it is published.
|
|
372
372
|
Until it is published nobody can send to you. `--publish` writes it. Every code derives from your
|
|
373
|
-
NMTS key at a number, so it cannot be chosen
|
|
374
|
-
`public-code new`, and revoke one with `public-code revoke <n
|
|
373
|
+
NMTS key at a number, so it cannot be chosen. You hold one to three live ones, make the next with
|
|
374
|
+
`public-code new`, and revoke one with `public-code revoke <n>`. Nobody can send to a revoked code,
|
|
375
375
|
and files already received with it stay. `share --as <n>` picks which code sends. A public code is
|
|
376
376
|
not your NMTS key, and it opens nothing on its own.
|
|
377
377
|
|
|
378
|
-
`nmts shares --sent <path>` lists who one file was shared with
|
|
378
|
+
`nmts shares --sent <path>` lists who one file was shared with: the recipient address, since when,
|
|
379
379
|
and the share id `unshare` takes.
|
|
380
380
|
|
|
381
381
|
A share tells NMTS who shared with whom. A handover does not: `nmts handover make <path> --to
|
|
382
382
|
<recipient>` writes the file, sealed to one recipient, into a handover file you pass on yourself,
|
|
383
383
|
and no share is registered. The recipient opens it with `nmts handover open <file>`, which needs no
|
|
384
384
|
API key and tells the NMTS server nothing about the file. Give `--to` their public code file (`nmts public-code
|
|
385
|
-
--save` on their side) and the server is not even asked whose code it is
|
|
385
|
+
--save` on their side) and the server is not even asked whose code it is. Give it the code and the
|
|
386
386
|
server sees that lookup. Whoever holds a handover file sees your public code in it. It cannot be
|
|
387
387
|
taken back: the recipient can download the file until its storage ends or its stored bytes are
|
|
388
|
-
destroyed, and removing the file from your drive does not stop it. The format is NCF-3 §5.6
|
|
388
|
+
destroyed, and removing the file from your drive does not stop it. The format is NCF-3 §5.6 to §5.7.
|
|
389
389
|
|
|
390
390
|
### Recovery
|
|
391
391
|
|
|
392
|
-
`recovery-list` writes the encrypted file that locates your bytes on the storage network
|
|
392
|
+
`recovery-list` writes the encrypted file that locates your bytes on the storage network. It holds
|
|
393
393
|
no NMTS key. `kit` writes that list together with your NMTS key in one file, so whoever
|
|
394
394
|
holds a kit holds the account. `recovery` downloads the standalone recovery program for this
|
|
395
395
|
machine, checks it against the release's checksum file before making it runnable, and never puts
|
|
396
396
|
anything on your PATH. `rebuild` reconstructs a file list from the server's rows for an account
|
|
397
|
-
that has lost its own: keys, hashes, dates and sizes come back
|
|
397
|
+
that has lost its own: keys, hashes, dates and sizes come back. Names and folders do not.
|
|
398
398
|
|
|
399
399
|
With the account's storage copy of the recovery list switched on (in the web app, or with the
|
|
400
400
|
SDK's `setRecoveryCopy(true)`), `put --pay wallet` of a one-part file under 64 MiB onto new storage
|
|
@@ -405,17 +405,17 @@ not derive cannot be found that way. A program can build the same file without t
|
|
|
405
405
|
`setRecoveryCopy`, and runs in a browser as well as in Node.
|
|
406
406
|
|
|
407
407
|
`nmts rollback` puts the previous version of the file list back as the current one, for the case
|
|
408
|
-
where the current one will not open. Files the newer version added are out of the list afterwards
|
|
408
|
+
where the current one will not open. Files the newer version added are out of the list afterwards:
|
|
409
409
|
their bytes are still stored, and `nmts rebuild` finds files the list does not name. It is locked
|
|
410
410
|
until you run `nmts unlock rollback`, and needs `--yes` on every run.
|
|
411
411
|
|
|
412
412
|
### When storage goes missing
|
|
413
413
|
|
|
414
|
-
`nmts losses` lists the storage objects NMTS bought with your credits that the daily check could not find on the chain
|
|
414
|
+
`nmts losses` lists the storage objects NMTS bought with your credits that the daily check could not find on the chain: the object id and the day a check first missed it. There is no file name: the server cannot pair the two, and NMTS cannot see the file. `nmts losses --recheck <id>` asks the chain again now. `nmts losses --dismiss <id>` takes a line off once you have read it. It asks once (a medium act, in an auto mode, the agent's judgement). The incident stays in a record that names nobody. The same finding is posted on the notice board by day.
|
|
415
415
|
|
|
416
416
|
### The check a person has to pass
|
|
417
417
|
|
|
418
|
-
An API key makes the server answer
|
|
418
|
+
An API key makes the server answer. It does not stand in for somebody being there. While nobody
|
|
419
419
|
has checked in lately, the account still works under tighter limits, and a few requests are
|
|
420
420
|
refused outright.
|
|
421
421
|
|
|
@@ -429,7 +429,7 @@ a number of days, because the window ends on a boundary of the server's own week
|
|
|
429
429
|
|
|
430
430
|
## Wallet login
|
|
431
431
|
|
|
432
|
-
An account can also be opened by a Sui wallet. The account keeps its NMTS key
|
|
432
|
+
An account can also be opened by a Sui wallet. The account keeps its NMTS key. Wallet login puts a
|
|
433
433
|
copy of that key on the NMTS server, locked so that only the wallet's signature of one fixed message
|
|
434
434
|
opens it. NMTS cannot open the copy and does not learn which wallet it belongs to.
|
|
435
435
|
|
|
@@ -447,10 +447,10 @@ nmts openers remove <locator> # take one off
|
|
|
447
447
|
for one product only. Both are inside the signed message, so another value is another signature
|
|
448
448
|
and another account.
|
|
449
449
|
- Attaching asks the wallet to sign twice and refuses unless the two signatures are the same bytes.
|
|
450
|
-
A wallet that signs the same message differently each time
|
|
451
|
-
account, a passkey account
|
|
450
|
+
A wallet that signs the same message differently each time (a zkLogin account, a multi-signature
|
|
451
|
+
account, a passkey account) is refused with a code of its own.
|
|
452
452
|
- Whoever holds an attached wallet can open every file in the account until it is removed. Removing
|
|
453
|
-
stops it from then on
|
|
453
|
+
stops it from then on. A wallet that opened the account before has held the NMTS key.
|
|
454
454
|
- Keep the NMTS key. It opens the account if the wallet is lost or starts signing differently.
|
|
455
455
|
|
|
456
456
|
`nmts help openers` has the long form.
|
|
@@ -459,17 +459,17 @@ nmts openers remove <locator> # take one off
|
|
|
459
459
|
|
|
460
460
|
Every act has a tier. **None** (listing, fetching, folders, marks) never asks. **Low** (the trash,
|
|
461
461
|
a setting, a report) and **medium** (uploading, publishing or making a public code, a new key) ask
|
|
462
|
-
once per run
|
|
462
|
+
once per run: y/N at the terminal, or `--yes`. **High** (signing with the wallet, giving another
|
|
463
463
|
account a file, revealing or storing your NMTS key unsealed) is locked until you run `nmts unlock
|
|
464
|
-
<key>` once on this machine, and then still asks on every run
|
|
464
|
+
<key>` once on this machine, and then still asks on every run. Revoking a public code is high too,
|
|
465
465
|
with no unlock, and asks every time. **Ultra-high** (erasing the
|
|
466
|
-
account) is a typed sentence. `nmts unlock` lists the keys
|
|
466
|
+
account) is a typed sentence. `nmts unlock` lists the keys. Each unlock prints what it opens, what
|
|
467
467
|
could go wrong and what it does not cover before it asks. `nmts help <command>` prints any
|
|
468
468
|
command's document, with its tier at the top.
|
|
469
469
|
|
|
470
470
|
## 🐳 Containers
|
|
471
471
|
|
|
472
|
-
It runs unchanged in Docker and Podman, rootless. There is no published image
|
|
472
|
+
It runs unchanged in Docker and Podman, rootless. There is no published image. This repository has
|
|
473
473
|
a `Dockerfile`, and both container tools build and run it on every push.
|
|
474
474
|
|
|
475
475
|
```sh
|
|
@@ -499,10 +499,10 @@ the container as the file `/run/secrets/nmts-key`, and `podman inspect` shows on
|
|
|
499
499
|
container.
|
|
500
500
|
|
|
501
501
|
Unlocks and the mode live in the config directory, and a container that is removed takes them
|
|
502
|
-
with it. A fresh container lists and downloads freely
|
|
502
|
+
with it. A fresh container lists and downloads freely. An upload asks, so a script passes `--yes`,
|
|
503
503
|
and anything locked (the wallet, sharing) needs the config directory kept outside the container
|
|
504
504
|
(`-v nmts-config:/config`) where a person unlocked it once. On an image of your own, `NMTS_CONFIG_DIR` moves everything the tool
|
|
505
|
-
writes to a directory you choose
|
|
505
|
+
writes to a directory you choose. `nmts env` reports where it landed and whether it survives.
|
|
506
506
|
|
|
507
507
|
## Serving the drive to S3 tools
|
|
508
508
|
|
|
@@ -520,15 +520,15 @@ $ nmts s3
|
|
|
520
520
|
|
|
521
521
|
- One bucket, `drive`. A key is the file's path without the leading slash. Folders come back as
|
|
522
522
|
common prefixes, including empty ones, and as `folder/` markers of 0 bytes in a listing without a
|
|
523
|
-
delimiter
|
|
523
|
+
delimiter. A `PUT` of `folder/` with no bytes makes one. An empty file is stored like any other.
|
|
524
524
|
- The credentials are made when the command starts, stored nowhere, and die with it.
|
|
525
525
|
- It listens on 127.0.0.1 only, with no option to change that.
|
|
526
|
-
- Starting it asks once (uploads through it spend credits)
|
|
526
|
+
- Starting it asks once (uploads through it spend credits). `--yes` answers for a script. Deleting
|
|
527
527
|
puts a file in the trash.
|
|
528
528
|
- A key that already holds the **same** file is answered `200` and nothing is sent: content is
|
|
529
529
|
compared, not names, so a nightly backup pays only for files that changed. A key that holds a
|
|
530
530
|
**different** file is refused with `409`, because this drive does not replace files.
|
|
531
|
-
- Large files go up in pieces, checked against the hash the client signed for
|
|
531
|
+
- Large files go up in pieces, checked against the hash the client signed for. Nothing is stored
|
|
532
532
|
until every piece is in.
|
|
533
533
|
- The modification time is not carried across, and a file uploaded from another device can take
|
|
534
534
|
five seconds to appear.
|
|
@@ -546,7 +546,7 @@ $ rclone copy --size-only ./somewhere drive:drive
|
|
|
546
546
|
|
|
547
547
|
## 🔌 For an agent that speaks MCP
|
|
548
548
|
|
|
549
|
-
`nmts mcp` is a local MCP server over stdin and stdout. Sign in first (`nmts login`)
|
|
549
|
+
`nmts mcp` is a local MCP server over stdin and stdout. Sign in first (`nmts login`). It never
|
|
550
550
|
takes an NMTS key on a command line, and it never prompts, so a sealed NMTS key with no `NMTS_PASSPHRASE`
|
|
551
551
|
makes it exit 3 at startup.
|
|
552
552
|
|
|
@@ -557,7 +557,7 @@ $ opencode mcp add nmts -- nmts mcp --out /where/files/should/land
|
|
|
557
557
|
```
|
|
558
558
|
|
|
559
559
|
Hermes and OpenClaw pass the arguments one at a time (`--args` in Hermes, a repeated `--arg` in
|
|
560
|
-
OpenClaw)
|
|
560
|
+
OpenClaw). Their `mcp add --help` prints the shape. Any other client takes the command `nmts` and
|
|
561
561
|
the arguments `mcp --out <directory>`, for example in opencode's own file:
|
|
562
562
|
|
|
563
563
|
```json
|
|
@@ -577,7 +577,7 @@ documents this service publishes (`nmts_notices`, `nmts_notice`, `nmts_terms`, `
|
|
|
577
577
|
|
|
578
578
|
It deliberately does not offer credentials and agreements, the check a person has to pass,
|
|
579
579
|
permanent destruction, rebuilding a lost file list or putting the previous one back, or writing the
|
|
580
|
-
recovery files
|
|
580
|
+
recovery files: those need a person at a terminal. Nothing it offers can write outside the directory you name, and a wrong argument is refused
|
|
581
581
|
rather than guessed at. It is implemented directly, with no MCP SDK dependency.
|
|
582
582
|
|
|
583
583
|
## Letting an agent decide for itself
|
|
@@ -590,18 +590,18 @@ $ nmts mode # what is set now
|
|
|
590
590
|
$ nmts mode explain auto-high # what a mode does, what it risks, what it gains
|
|
591
591
|
$ nmts mode auto-low # low acts run unasked; medium ones are the agent's judgement
|
|
592
592
|
$ nmts mode auto-high # the same, and the agent is asked to think further ahead
|
|
593
|
-
$ nmts mode skip-permissions # nothing asks and nothing is locked
|
|
593
|
+
$ nmts mode skip-permissions # nothing asks and nothing is locked; a typed sentence to turn on
|
|
594
594
|
$ nmts mode default # back to asking
|
|
595
595
|
```
|
|
596
596
|
|
|
597
|
-
High acts stay locked in every mode but skip-permissions, and still ask every time once unlocked
|
|
598
|
-
|
|
599
|
-
stderr. An agent may recommend a mode, with the explanation
|
|
597
|
+
High acts stay locked in every mode but skip-permissions, and still ask every time once unlocked.
|
|
598
|
+
Erasing the account is refused in both auto modes. While a mode is on, every command says so on
|
|
599
|
+
stderr. An agent may recommend a mode, with the explanation. It cannot switch one.
|
|
600
600
|
|
|
601
601
|
## Networks and retries
|
|
602
602
|
|
|
603
603
|
`--network mainnet` or `--network testnet`, or `NMTS_NETWORK`. Against the live server it is
|
|
604
|
-
already known
|
|
604
|
+
already known. Against any other server it is required, because the wrong network answers
|
|
605
605
|
"not found" rather than "wrong network".
|
|
606
606
|
|
|
607
607
|
A connection that was refused, reset or never made is retried with a growing wait for about
|
|
@@ -614,9 +614,9 @@ carry such a key and are safe to repeat, nothing else that writes is.
|
|
|
614
614
|
Send it from the tool: `nmts support send --category bug --message "…" --attach-log`. It reaches
|
|
615
615
|
the one developer who builds NMTS, in the same inbox as the app's contact form, and the reply comes
|
|
616
616
|
back to the same thread (`nmts support list`, then `nmts support show <code>`). The tool shows you
|
|
617
|
-
exactly what will be sent before it goes
|
|
617
|
+
exactly what will be sent before it goes. Your NMTS key, API key, passphrase and file contents
|
|
618
618
|
are stripped on this machine first, and `--omit <text>` strips anything else you name. English is
|
|
619
|
-
preferred
|
|
619
|
+
preferred. Korean is read too.
|
|
620
620
|
|
|
621
621
|
If the tool itself cannot run, write to **nmts@nmts.me** with what you ran and what it said.
|
|
622
622
|
|
|
@@ -625,8 +625,8 @@ answers in English and Korean: https://discord.gg/HtrUwhb2Mz
|
|
|
625
625
|
|
|
626
626
|
## Built on this?
|
|
627
627
|
|
|
628
|
-
If you built something on this code
|
|
629
|
-
client
|
|
628
|
+
If you built something on this code (a service, a fork, a port to another language, a lighter
|
|
629
|
+
client), you owe us nothing: Apache-2.0 asks for the notices and nothing more. We would still like
|
|
630
630
|
to know. Write to **nmts@nmts.me**, or open an issue here if public is fine with you. If you want
|
|
631
631
|
it listed, say so: [SHOWCASE.md](SHOWCASE.md) carries a link and up to ten lines about each
|
|
632
632
|
project, in English ([SHOWCASE.ko.md](SHOWCASE.ko.md) in Korean), written by the people who made it. A listing is not an
|
|
@@ -634,12 +634,12 @@ endorsement, and we may decline or remove one without giving a reason.
|
|
|
634
634
|
|
|
635
635
|
## Licence
|
|
636
636
|
|
|
637
|
-
Apache-2.0
|
|
638
|
-
this tool can be sold. It moved here from AGPL-3.0-only on 2026-08-30
|
|
637
|
+
Apache-2.0: the full text is in [LICENSE](LICENSE). It allows commercial use: a product built on
|
|
638
|
+
this tool can be sold. It moved here from AGPL-3.0-only on 2026-08-30. Copies already held under
|
|
639
639
|
the AGPL stay under it.
|
|
640
640
|
|
|
641
641
|
If you need different terms, write to
|
|
642
|
-
**nmts@nmts.me** and say why
|
|
642
|
+
**nmts@nmts.me** and say why. See [LICENSING.md](LICENSING.md). Code is welcome:
|
|
643
643
|
[CONTRIBUTING.md](CONTRIBUTING.md) says how it reaches here, and the
|
|
644
644
|
[Contributor License Agreement](CLA.md) is the licence a contributor gives needmoretruth for what
|
|
645
645
|
they send.
|