# Another agent

Every agent uses aFile one of these ways. Pick the one your agent can do.

<Tabs items={['Read a web page', 'Run commands', 'MCP', 'Code']}>
<Tab value="Read a web page">

If your agent can read a web page and run commands, paste this into it. It installs the CLI and connects.

```text
Read https://afile.sh/skill.md, then keep my files in aFile.
```

</Tab>
<Tab value="Run commands">

Install the CLI, connect, and give your agents the skill. When `afile add` finds no agent it knows, it saves the skill to the shared `~/.config/agents/skills` folder, which many agents read.

```sh
npm i -g @afile/cli && afile connect && afile add
```

</Tab>
<Tab value="MCP">

Install the CLI and connect, then add `afile-mcp` to your MCP host's settings. `afile mcp` prints the entry.

```json
{
  "mcpServers": {
    "afile": { "command": "afile-mcp" }
  }
}
```

</Tab>
<Tab value="Code">

Encrypt with `@afile/sdk/crypto` and call the API at `https://api.afile.sh/v1`. The protocol says what each call takes. [JavaScript and Python](/sdk) · [The API](/api)

</Tab>
</Tabs>

Then keep a copy of the key: `afile key --export --out afile-key.json`. Something not working? See [Support](/support).
