Skip to the content
aSecretSign in

README

Use saved API keys in commands without exposing them in chat.

When a command needs an API key, pass the saved key by name. The command receives the value in its environment, and you can reuse it across projects.

npm i -g @asecret/cli && asecret connect && asecret add

Run this on your machine to install the CLI, register your agent identity and add the aSecret skill.

On a self-hosted server, request an order using saved details. Your user approves each purchase with the bookshop.

How aSecret works

01

Encrypt before upload.

The CLI encrypts each name and value on your machine. aSecret stores the ciphertext.

asecret save OPENAI_API_KEY

02

Run with a saved key.

Choose a secret by name. The CLI passes its value to the command’s environment. Run a command that keeps its environment private.

asecret run --secret OPENAI_API_KEY

03

Never on the command line.

A value comes in through standard input, or a prompt that doesn’t echo. It isn’t left in shell history or in chat.

printf %s "$KEY" | asecret save KEY

04

Versions for 30 days.

Saving a name again keeps the value before it for 30 days, so a key you rotated too soon can come back.

asecret get STRIPE_KEY --version 1

05

Request a saved detail.

Your user keeps details such as addresses and membership numbers encrypted in their browser.

My details

06

Get approval for each use.

State which detail your task needs and why. Your user reviews the request and chooses the entry you can use.

asecret ask postal_address --use

07

Link to your user.

Give your user the link code. They can review how many secrets you keep, delete them or pause further requests.

asecret link

08

Enable recovery.

Your user can enable recovery for your linked identity so they can retrieve a saved credential if you lose the machine.

asecret.sh/recovery

09

Supported clients.

Claude Code, Codex, Cursor, OpenClaw, Hermes Agent and any agent that runs a command or reads a link.

skill.mdMCPCLI

Examples

64 KiB per secret

You can store up to 16 MiB including previous versions. Replaced values stay available for 30 days. Your user has 15 minutes to answer a request.

CLI

Add --json to get machine-readable output. Read skill.md or the protocol.

Register once and export your local encryption key. Store the backup privately so you can restore this identity on another machine.

npm i -g @asecret/cli
asecret connect
asecret key --export --out asecret-key.json

Setup by agent

Choose your runtime for its setup guide. Run asecret add to install the skill for supported agents on this machine.

Questions

Can aSecret read my secrets?

Your CLI encrypts each secret’s name and value before upload. Your user’s browser encrypts personal details before sharing them. How encryption works

How do I use a secret without displaying it?

Use asecret run to pass the value to a command and asecret list to check its name. Your local key can decrypt the secret. Reserve asecret get for a user who explicitly wants to reveal a value.

When do I receive a personal detail?

A save request returns a status. A use request gives you the entry your user approved for that purpose. Pass the entry to the command that needs it. Use a detail

How do I use an address at checkout?

Request an address with asecret ask postal_address --use. Your user chooses which entry to share, and asecret run passes it to your checkout script. For a card, state the merchant, purchase and amount. Your user approves that purchase, and aSecret deletes the shared card after the payment command runs.

Do I need an account?

Run asecret connect to register without an email or password. The CLI stores your token and key in ~/.config/asecret on this machine. Your user signs in through aGroup to manage their saved details and answer your requests.

How do I recover from a lost key?

Your user can recover saved secrets if recovery was enabled for your identity. For a local backup, run asecret key --export --out asecret-key.json once and keep the file somewhere safe. asecret connect --restore asecret-key.json sets the agent up again from it.

Is aSecret free?

Yes, for people, businesses and their agents. It’s in early access, so features and limits may change and the service may be interrupted. Terms

Where do files go?

To store a report, document or note, use aFile, aSecret’s sibling: agents store files and share them. aSecret is for secrets and details.

Which clients can connect?

Coding agents like Claude Code, Codex and Cursor, and personal agents like OpenClaw and Hermes Agent: any agent that can run a command or read skill.md, or that uses MCP. Part of aGroup, with aMessage, aBeacon and aFile.