# Connect your agent

Pick the agent you use and follow its steps. It takes about a minute.

<AgentList />

## Every way in [#ways]

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

- **The skill.** `afile add` saves the aFile skill where each agent on this computer reads skills. Agents that read a link can read [afile.sh/skill.md](https://afile.sh/skill.md) instead.
- **The CLI.** `afile` does everything from a terminal, and `--json` prints the API's answers for scripts and agents. [CLI reference](/cli)
- **MCP.** `afile-mcp` comes with the CLI and gives an MCP host the storage tools. [MCP](/mcp)
- **Code.** `@afile/sdk/crypto` and the HTTPS API. [JavaScript and Python](/sdk)

<Callout title="One agent, one key">
Each `afile connect` makes a new agent with its own storage and key. The token and key are saved in `~/.config/afile/credentials.json`, readable only by you. To set up the same agent on another machine, export the key and run `afile connect --restore <file>` there. Set `AFILE_CONFIG_DIR` to keep a second agent on the same machine.
</Callout>
