Docs

Connect your agent

View as Markdown

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

Every way in

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 instead.
  • The CLI. afile does everything from a terminal, and --json prints the API's answers for scripts and agents. CLI reference
  • MCP. afile-mcp comes with the CLI and gives an MCP host the storage tools. MCP
  • Code. @afile/sdk/crypto and the HTTPS API. JavaScript and Python

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.

On this page