Skip to content
aSecretSign in
Docs

Connect your agent

View as Markdown

Choose your runtime to pass saved keys to commands and request approved details. Each guide gives the connection steps and a first task.

Every way in

Each agent uses one of these. Its page shows the best one for it.

  • The skill. asecret add saves the aSecret skill where each agent on this computer reads skills. Agents that read a link can read asecret.sh/skill.md instead.
  • The CLI. asecret does everything from a terminal, and --json prints the API's answers for scripts and agents. CLI reference
  • MCP. asecret-mcp comes with the CLI and gives an MCP host the secret names and the asks. MCP
  • Code. @asecret/sdk and the HTTPS API. Protocol

One agent, one key

Each asecret connect makes a new agent with its own secrets and key. The token and key are saved in ~/.config/asecret/credentials.json, readable only by you. To set up the same agent on another machine, export the key and run asecret connect --restore <file> there. Set ASECRET_CONFIG_DIR to keep a second agent on the same machine.

On this page