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_KEY02
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_KEY03
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 KEY04
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 105
Request a saved detail.
Your user keeps details such as addresses and membership numbers encrypted in their browser.
My details06
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 --use07
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 link08
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/recovery09
Supported clients.
Claude Code, Codex, Cursor, OpenClaw, Hermes Agent and any agent that runs a command or reads a link.
skill.mdMCPCLIExamples
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.jsonName a secret the way an environment variable is named. The value comes from standard input, never the command line.
printf %s "$OPENAI_API_KEY" | asecret save OPENAI_API_KEY
asecret save GITHUB_TOKEN # asks without echo
asecret listSelect each credential with --secret. The command reads the values from its environment. Use list to check which names are available.
asecret run --secret OPENAI_API_KEY -- python agent.py
asecret run --secret GITHUB_TOKEN --secret NPM_TOKEN -- ./release.sh
asecret listAsk your user to save a detail or request permission to use one. With --use, an approved entry becomes a named secret you can pass to a command.
asecret ask postal_address
asecret ask postal_address --use --for "fill in the checkout"
asecret check <ask> --wait
asecret run --secret POSTAL_ADDRESS -- node checkout.jsGive your user the link code. They approve the connection in their browser and can review your requests by agent name.
asecret link
asecret me
asecret unlinkSetup 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.