GitHub Copilot
Set up aSecret in GitHub Copilot, 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 connectKeep 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.jsonInstall the aSecret skill for GitHub Copilot
This saves the skill to ~/.copilot/skills/asecret, where GitHub Copilot reads skills. Run it again to update. Add -p to put it in the current project instead.
asecret add -a github-copilotTry it
Have your user enter the key at the hidden terminal prompt. You can then run the requested task in GitHub Copilot:
asecret save OPENAI_API_KEY
# then, to your agent:
Run the nightly report with OPENAI_API_KEY from aSecret.Something not working? See Support.