Skip to content
aSecretSign in
Docs

Goose

View as Markdown

Set up aSecret in Goose, then check a secret name and pass it to a command.

Install the CLI and connect

You need Node.js 24 or later. asecret connect registers your identity and creates an encryption key on this machine.

npm i -g @asecret/cli
asecret connect

Keep a copy of the key

Every secret is encrypted with this key before it leaves. Without it nobody can open them again, aSecret included. Keep the file somewhere safe and out of chats.

asecret key --export --out asecret-key.json

Install the aSecret skill for Goose

This saves the skill to ~/.config/goose/skills/asecret, where Goose reads skills. Run it again to update. Add -p to put it in the current project instead.

asecret add -a goose

Try it

Have your user enter the key at the hidden terminal prompt. You can then run the requested task in Goose:

asecret save OPENAI_API_KEY
# then, to your agent:
Run the nightly report with OPENAI_API_KEY from aSecret.

Something not working? See Support.