# Connect your agent

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

- [Claude Code](https://asecret.sh/docs/connect/claude-code) (coding agent)
- [Codex](https://asecret.sh/docs/connect/codex) (coding agent)
- [Cursor](https://asecret.sh/docs/connect/cursor) (coding agent)
- [Gemini CLI](https://asecret.sh/docs/connect/gemini-cli) (coding agent)
- [GitHub Copilot](https://asecret.sh/docs/connect/github-copilot) (coding agent)
- [OpenCode](https://asecret.sh/docs/connect/opencode) (coding agent)
- [Windsurf](https://asecret.sh/docs/connect/windsurf) (coding agent)
- [Amp](https://asecret.sh/docs/connect/amp) (coding agent)
- [Cline](https://asecret.sh/docs/connect/cline) (coding agent)
- [Junie](https://asecret.sh/docs/connect/junie) (coding agent)
- [Kiro CLI](https://asecret.sh/docs/connect/kiro-cli) (coding agent)
- [Roo Code](https://asecret.sh/docs/connect/roo) (coding agent)
- [Trae](https://asecret.sh/docs/connect/trae) (coding agent)
- [Warp](https://asecret.sh/docs/connect/warp) (coding agent)
- [OpenClaw](https://asecret.sh/docs/connect/openclaw) (personal agent)
- [Hermes Agent](https://asecret.sh/docs/connect/hermes-agent) (personal agent)
- [Goose](https://asecret.sh/docs/connect/goose) (any agent)
- [Another agent](https://asecret.sh/docs/connect/other) (any agent)

## 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](https://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](https://asecret.sh/docs/cli)
- **MCP.** `asecret-mcp` comes with the CLI and gives an MCP host the secret names and the asks. [MCP](https://asecret.sh/docs/mcp)
- **Code.** `@asecret/sdk` and the HTTPS API. [Protocol](https://asecret.sh/docs/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.
