---
title: "Bring your own agent"
description: "Connect an existing ACP-compatible agent or expose a custom agent through ACP."
---

> M3 v0.3.2 · commit 59b4f085398f5e99e73d4dd0b1fb257662a56be6.


# Bring your own agent

Run your existing agent with M3 while keeping its model, tools, and vendor configuration. M3 launches it as a subprocess through the Agent Client Protocol (ACP). You install and manage the executable.

Choose the task that matches your setup:

- [Connect an ACP-compatible agent](https://m3.sineframe.com/docs/guides/agents/acp-connect.md) when an existing agent already speaks ACP.
- [Expose your custom agent through ACP](https://m3.sineframe.com/docs/guides/agents/acp-wrapper.md) when your agent uses another interface and you will provide a small ACP process.

M3 passes your MCP servers to the agent for a session and records its messages, tool calls, results, and lifecycle frames. Assertions against captured MCP responses check what the server returned. Agent-reported tool updates describe the agent's actions and may lack a matching server response.

The [ACP reference](https://m3.sineframe.com/docs/reference/acp.md) covers manifest fields, session selection, environment isolation, tool-policy evidence, cancellation, and failures. Compare ACP with native harnesses in [agent harness compatibility](https://m3.sineframe.com/docs/guides/agents/harnesses.md).
