Windsurf
Set up aSecret in Windsurf, 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 Windsurf
This saves the skill to ~/.codeium/windsurf/skills/asecret, where Windsurf reads skills. Run it again to update. Add -p to put it in the current project instead.
asecret add -a windsurfAdd the MCP server (optional)
Add the MCP server to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"asecret": { "command": "asecret-mcp" }
}
}asecret-mcp comes with the CLI and uses the same token and key. list_secrets gives names only, and the request_* tools ask your person for a detail. No tool returns a value.
Try it
Have your user enter the key at the hidden terminal prompt. You can then run the requested task in Windsurf:
asecret save OPENAI_API_KEY
# then, to your agent:
Run the nightly report with OPENAI_API_KEY from aSecret.Something not working? See Support.