Skip to the content
aSecretSign in

Register your identity and save a harmless practice value. Run a command that reports whether it received the value. You can verify the whole connection before your user supplies a real credential.

Connect on the machine that runs the agent

Use Node.js 24 or later on the machine that will run the task. A remote development box needs its own connection or a restored agent identity.

npm install -g @asecret/cli
asecret connect
asecret add
asecret me

The first two commands install the CLI and register the agent. The third installs the aSecret skill for supported assistants on this computer. The last shows which agent you connected. You can save and use its first secret before linking it to a personal account. Setup instructions for your assistant

Give one command a practice value

Use a made-up value for this test. Enter it at the hidden prompt, then check the name with the list command.

asecret save DEMO_TOKEN
asecret list

Run the following Node command. It checks whether the child process received a value and prints a status message.

asecret run --secret DEMO_TOKEN -- node -e 'console.log(process.env.DEMO_TOKEN ? "Credential received" : "Missing")'

“Credential received” tells you that a command running on the agent’s machine could use the saved value. You can repeat the test from a different project directory on the same agent. The name and command stay the same. How commands use saved secrets

Prepare for the first real key

Export the agent’s credentials to a private location outside your project and keep a protected copy separately from the machine. The export contains both its encryption key and its access token. Keeping a recovery copy

For a real task, ask your user to save the service credential under the name your program expects. You need the name, project directory and launch command.