| 1 | # Connectivity |
| 2 | |
| 3 | This page helps you choose the right connection path. |
| 4 | |
| 5 | For source-linked architecture and endpoint internals, use |
| 6 | [DeepWiki for Agent Zero](https://deepwiki.com/agent0ai/agent-zero). The local |
| 7 | docs should not duplicate the full connectivity architecture. |
| 8 | |
| 9 | ## Choose The Right Path |
| 10 | |
| 11 | | Need | Start here | |
| 12 | | --- | --- | |
| 13 | | Let Agent Zero work on your host files, shell, or browser | [A0 CLI Connector](../guides/a0-cli-connector.md) | |
| 14 | | Add a third-party tool through MCP | [MCP Setup](../guides/mcp-setup.md) | |
| 15 | | Let another agent talk to Agent Zero | [A2A Setup](../guides/a2a-setup.md) | |
| 16 | | Add an external API for one workflow | [API Integration](../guides/api-integration.md) | |
| 17 | | Study API, MCP, or A2A internals | [DeepWiki](https://deepwiki.com/agent0ai/agent-zero) | |
| 18 | |
| 19 | ## External API Basics |
| 20 | |
| 21 | You can find your API token in Agent Zero under **Settings > External Services**. |
| 22 | |
| 23 | Common external endpoints include: |
| 24 | |
| 25 | | Endpoint | Use it for | |
| 26 | | --- | --- | |
| 27 | | `POST /api_message` | Send a message to Agent Zero. | |
| 28 | | `GET/POST /api_log_get` | Read chat logs. | |
| 29 | | `POST /api_terminate_chat` | Stop a running chat. | |
| 30 | | `POST /api_reset_chat` | Reset a chat. | |
| 31 | | `POST /api_files_get` | Retrieve files. | |
| 32 | |
| 33 | External API calls use the `X-API-KEY` header. |
| 34 | |
| 35 | > [!TIP] |
| 36 | > For exact request and response details, check the current source or the |
| 37 | > matching DeepWiki page. That keeps the API reference tied to the code that is |
| 38 | > actually running. |
| 39 | |
| 40 | ## MCP And A2A |
| 41 | |
| 42 | Use MCP when you want Agent Zero to call tools from another app or service. |
| 43 | |
| 44 | Use A2A when you want another agent to talk to Agent Zero as a collaborator. |
| 45 | |
| 46 | Both use the same Agent Zero instance and can be project-aware when configured |
| 47 | that way. |
| 48 | |
| 49 | ## Related |
| 50 | |
| 51 | - [A0 CLI Connector](../guides/a0-cli-connector.md) |
| 52 | - [MCP Setup](../guides/mcp-setup.md) |
| 53 | - [A2A Setup](../guides/a2a-setup.md) |
| 54 | - [API Integration](../guides/api-integration.md) |
| 55 | - [DeepWiki for Agent Zero](https://deepwiki.com/agent0ai/agent-zero) |