Skip to content
aSecretSign in
Docs

Kiro CLI

View as Markdown

Set up aSecret in Kiro CLI, 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 Kiro CLI

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

asecret add -a kiro-cli

Try it

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

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

Something not working? See Support.