ncrypted
v0.2.2One-time, end-to-end encrypted secrets for agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ncrypted_create Create one-time secret
Encrypt a password, API key, or sensitive note locally and store it as a one-time secret. Returns a link that works exactly once, then self-destructs. The first 3 per day are free (TTL up to 24h, no email); after that each costs 0.005 USDC, paid automatically from the configured Base wallet via x402. Share the returned link with a human, email it (emailTo), or hand it to another agent, which reads it with ncrypted_read. Treat the link like the secret itself; never echo the secret value in chat. Returns { link, id, receiptToken, expiresAt }; keep id and receiptToken to check delivery (ncrypted_…
| Parameter | Type | Description |
|---|---|---|
secret * | string | The sensitive value to share. Max 64 KB. |
emailNote | string | Short context for the email, e.g. 'Staging DB password'. Never include the secret. |
emailTo | string | If the user asks you to email it, pass the address here and ncrypted emails the link once. Needs a paid secret (a funded wallet); without one the call fails with instructions, and you can give the use… |
passphrase | string | Optional second factor. The recipient needs it in addition to the link; deliver it through a different channel. |
ttl_seconds | integer | Expiry if never read. Default 86400 (24h), max 7 days. |
ncrypted_read Read one-time secret
Open an ncrypted link (https://.../s/{id}#{key}), decrypt it locally and return the secret. This destroys the secret: it can never be read again. Free. Use the value only for the task at hand and do not repeat it in chat. If the value just needs to end up in a Vercel env var or .env file, use ncrypted_to_vercel_env or ncrypted_to_dotenv instead so you never see it. To check whether someone opened a link you created, use ncrypted_status (it doesn't consume anything).
| Parameter | Type | Description |
|---|---|---|
link * | string | The full ncrypted link including the #key fragment. |
passphrase | string | Required only if the sender set a passphrase. |
ncrypted_status Check one-time secret status
Check whether a secret you created has been opened yet, without consuming it. Returns { status, expiresAt, readAt? } where status is pending (not opened), read, burned or expired. Use it to confirm delivery, or before deciding to ncrypted_burn a link. Only works for secrets you created (needs their receiptToken); to open a link, use ncrypted_read. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | The secret's id, returned as `id` by ncrypted_create. |
receiptToken * | string | The creator's receipt token, returned as `receiptToken` by ncrypted_create. Only the creator has it; the link alone isn't enough. |
ncrypted_burn Burn one-time secret
Permanently destroy an unread secret you created, so its link stops working (e.g. it was sent to the wrong place or is no longer needed). Irreversible. Returns { burned: true } if it was destroyed, or { burned: false, status } if there was nothing left to destroy because it was already read, burned or expired; if it was already read, the recipient has the value, so rotate the credential. Only works for secrets you created (needs their receiptToken). Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | The secret's id, returned as `id` by ncrypted_create. |
receiptToken * | string | The creator's receipt token, returned as `receiptToken` by ncrypted_create. Only the creator has it; the link alone isn't enough. |
ncrypted_to_vercel_env Save one-time secret to a Vercel env var
Open an ncrypted link and write its value straight into a Vercel project environment variable (type sensitive), so the value never appears in this conversation. Uses the user's `vercel login` session or VERCEL_TOKEN. Checks Vercel access before consuming the link. Prefer this over reading a secret and running `vercel env add`.
| Parameter | Type | Description |
|---|---|---|
key * | string | Env var name, e.g. STRIPE_SECRET_KEY. |
link * | string | |
cwd | string | Project directory containing .vercel/project.json. Default: the server's working directory. |
passphrase | string | |
project | string | Vercel project name or id. Default: the project linked in cwd's .vercel/project.json. |
targets | array | Default: production and preview. |
team | string | Vercel team id (team_...) or slug. Default: the linked project's team. |
ncrypted_to_dotenv Save one-time secret to a .env file
Open an ncrypted link and write its value into a local .env file (KEY=value, file mode 600) without showing it to you. Warns if the file isn't git-ignored.
| Parameter | Type | Description |
|---|---|---|
key * | string | Variable name. |
link * | string | |
passphrase | string | |
path | string | Path to the .env file. Default: ./.env |
ncrypted_request Ask the user for a secret
When you need a password, API key or token from the user, call this instead of asking them to paste it into chat. Returns a link for the user; they paste the value on that page, where it's encrypted in their browser to a key that only exists on this machine. Give the user the link and END YOUR TURN so they can open it; once they say they've submitted it, call ncrypted_request_fulfill to deliver it (e.g. to a Vercel env var) without ever seeing it. Free.
| Parameter | Type | Description |
|---|---|---|
label * | string | What you need and why, shown to the user, e.g. 'Stripe secret key for the billing project (Vercel production)'. |
ttl_minutes | integer | How long the request stays open. Default 60. |
ncrypted_request_fulfill Receive a requested secret
After the user says they've submitted an ncrypted_request, collect and deliver the value. destination 'vercel_env' or 'dotenv' writes it without showing it to you (preferred). 'return' gives you the value; use it only when you must use it directly, and never repeat it. Returns status 'pending' if the user hasn't answered within wait_seconds; call again later.
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
id * | string | The request id from ncrypted_request. |
cwd | string | Project directory containing .vercel/project.json. Default: the server's working directory. |
key | string | Variable name (required for vercel_env and dotenv). |
path | string | dotenv only: path to the .env file. Default ./.env |
project | string | Vercel project name or id. Default: the project linked in cwd's .vercel/project.json. |
targets | array | Default: production and preview. |
team | string | Vercel team id (team_...) or slug. Default: the linked project's team. |
wait_seconds | integer | How long to wait for the user. Default 60. |
ncrypted_wallet_setup Set up a payer wallet
Create the local wallet that pays for secrets beyond the free tier (0.005 USDC each on Base), if none exists, and get a funding link for its owner. Funding needs only the address; send the user `fundUrl` and ask them to send a little USDC on Base (1 USDC = 200 secrets). The private key stays in a local file and is never shown to you. Set backup_to_owner only if the user wants a copy of the key: it's placed in a one-time link for them.
| Parameter | Type | Description |
|---|---|---|
amount_usdc | number | Suggested funding amount. Default 1. |
backup_to_owner | boolean | Also create a one-time link containing the private key for the owner. Default false. |
ncrypted_wallet Show payer wallet
Show today's remaining free secrets, plus the address and USDC balance (Base) of the wallet that pays for more. Free.