The A2A protocol (Agent2Agent) is an open standard that lets independent AI agents discover each other, exchange messages and delegate tasks over HTTP, even when they run on different frameworks or belong to different organizations. Each agent publishes an Agent Card describing its skills, endpoints and authentication, and agents collaborate without sharing their internal memory, prompts or tools.
Google announced the Agent2Agent protocol on April 9, 2025 with more than 50 technology partners and contributed it to the Linux Foundation in June 2025. The specification reached v1.0.0 on March 12, 2026. Once a company runs more than a handful of agents, A2A traffic needs the same access control and logging as model traffic. Bifrost, the open-source AI gateway, sits on that path for A2A, LLM and MCP calls.
How does the A2A protocol work?
The A2A protocol works as a client-server exchange between two agents. An A2A client reads the remote agent's Agent Card, sends a message with SendMessage, and receives either a direct reply or a task with an ID. The client then follows that task by polling, by holding a server-sent events stream open, or through push notifications, until the remote agent returns its artifacts.
A single delegation runs through six steps, defined in the A2A v1.0 specification:
- Discovery. The client fetches the Agent Card, usually from
https://{domain}/.well-known/agent-card.json, and picks the first interface in itssupportedInterfaceslist that the client supports. - Authentication. The card's
securitySchemestell the client which credential to obtain out of band, such as an OAuth 2.0 access token. The client sends it on every request. - Send a message. The client calls
SendMessageorSendStreamingMessagewith a message built from parts: text, a file, or structured JSON data. - Task creation. For work that is more than a quick answer, the remote agent creates a task, assigns a task ID and a context ID, and reports a state such as
TASK_STATE_WORKING. - Updates. The client calls
GetTask, keeps a stream open, or registers a webhook for push notifications. - Results. When the task reaches
TASK_STATE_COMPLETED, the client reads its artifacts.

Figure 1: Discovery happens once per agent; every later request references the task ID the remote agent returned.
The remote agent stays opaque: the client sees declared skills, task states and artifacts, never the other agent's model, prompts or memory. A2A is often called a universal translator for agents, but it translates nothing; it fixes the envelope, the task lifecycle and the discovery document. That opacity lets two companies' agents cooperate, and it is why A2A leaves identity, authorization and audit to the infrastructure around the agents.
A2A protocol core concepts
A2A is built on a small data model: the A2A client, the A2A server (also called the remote agent), the Agent Card, the task, the message, the part and the artifact. A context ID groups related tasks and messages into one conversation. Every A2A operation reads or changes one of these objects.
| Concept | What it is | Key fields |
|---|---|---|
| A2A client | The application or agent that starts a request on behalf of a user or system | Credentials, chosen interface |
| A2A server (remote agent) | An agent that exposes an A2A endpoint and processes tasks | Agent Card URL |
| Agent Card | JSON metadata describing the agent's identity, skills, endpoints and authentication | skills, supportedInterfaces, securitySchemes |
| Task | The stateful unit of work, with a lifecycle and an ID | id, contextId, status, artifacts |
| Message | One communication turn, with a user or agent role | messageId, role, parts |
| Part | The smallest unit of content | Exactly one of text, raw, url or data |
| Artifact | An output the agent produced for a task | artifactId, name, parts |
| Context | An identifier that groups related tasks and messages | contextId |
One agent often plays both roles: an orchestrator is an A2A client toward specialist agents and an A2A server toward its own caller. An agent built with LangGraph, CrewAI or Google's Agent Development Kit becomes an A2A agent by serving a card and the A2A operations. The Agent Gateway announcement walks through one such hand-off.
What is an A2A agent card?
An A2A agent card is a JSON document that an A2A server publishes to describe itself: its name, description, version, skills, the interfaces where it accepts requests, its capabilities and the authentication it requires. Clients usually fetch it from /.well-known/agent-card.json, and it is all a client needs to start working with an agent.
{
"name": "Library Research Agent",
"description": "Answers questions about software libraries.",
"version": "1.2.0",
"supportedInterfaces": [
{"url": "https://research.example.com/a2a", "protocolBinding": "JSONRPC", "protocolVersion": "1.0"},
{"url": "research.example.com:443", "protocolBinding": "GRPC", "protocolVersion": "1.0"}
],
"capabilities": {"streaming": true, "pushNotifications": true, "extendedAgentCard": true},
"securitySchemes": {
"oidc": {"openIdConnectSecurityScheme": {"openIdConnectUrl": "https://auth.example.com/.well-known/openid-configuration"}}
},
"securityRequirements": [{"schemes": {"oidc": {"list": ["openid"]}}}],
"defaultInputModes": ["text/plain"],
"defaultOutputModes": ["text/plain", "application/json"],
"skills": [
{"id": "library-lookup", "name": "Library lookup", "description": "Finds docs and usage patterns.", "tags": ["docs", "code"]}
]
}
Eight fields are required in v1.0: name, description, version, supportedInterfaces, capabilities, defaultInputModes, defaultOutputModes and skills. The order of supportedInterfaces matters, because the first entry is the agent's preferred binding. Each skill declares an ID, a name, a description and tags, and can override the default input and output media types.
Clients find cards in three ways: the well-known URI, a registry or catalog of agents, or a URL configured directly in the client. When capabilities.extendedAgentCard is true, an authenticated client can call GetExtendedAgentCard to see skills the public card hides. Cards can also be signed with JSON Web Signatures (JWS, RFC 7515) over a JSON Canonicalization Scheme (RFC 8785) form, so a client can detect a tampered or spoofed card. The A2A agent card guide shows more card examples field by field.
How A2A handles tasks and long-running work
A2A handles long-running work through stateful tasks. A remote agent can return a task immediately in TASK_STATE_SUBMITTED or TASK_STATE_WORKING, then report progress for minutes, hours or days. Clients follow the task by polling with GetTask, streaming updates over server-sent events, or registering a webhook for push notifications, until it reaches a terminal state.
| Task state | Type | What it means for the client |
|---|---|---|
TASK_STATE_SUBMITTED | Active | The agent accepted the task |
TASK_STATE_WORKING | Active | Processing is under way; poll, stream or wait for a push |
TASK_STATE_INPUT_REQUIRED | Interrupted | The agent needs more input; reply with the same task ID |
TASK_STATE_AUTH_REQUIRED | Interrupted | The agent needs authorization before it can continue |
TASK_STATE_COMPLETED | Terminal | Read the artifacts |
TASK_STATE_FAILED | Terminal | The work failed, even if the HTTP call succeeded |
TASK_STATE_CANCELED | Terminal | A CancelTask request took effect |
TASK_STATE_REJECTED | Terminal | The agent declined the work |
Streaming. SendStreamingMessage returns a sequence of TaskStatusUpdateEvent and TaskArtifactUpdateEvent objects. An artifact update with append: true adds to an artifact already sent, so ten stream events can describe one file. A dropped stream does not end the task: SubscribeToTask reattaches to it, and CancelTask is the call that stops the work.
Push notifications. For work that outlives a connection, the client registers a webhook with CreateTaskPushNotificationConfig, and the agent POSTs updates to it.
Multi-turn work. In TASK_STATE_INPUT_REQUIRED, the agent's status message says what is missing. The client replies with a new message that carries the same task ID and context ID. Messages sent to a task in a terminal state are rejected with UnsupportedOperationError. Version 1.0 added ListTasks with cursor pagination, at most 100 tasks per page and 50 by default, so a client can find work it started earlier. Messages, tasks and events shows these calls as raw requests.
A2A transports: JSON-RPC, gRPC and HTTP+JSON
A2A runs over HTTP(S) and defines three standard protocol bindings: JSON-RPC 2.0, gRPC and HTTP+JSON, the REST-style binding. All three carry the same operations and data model, and an agent lists the bindings it serves in its Agent Card. Streaming uses server-sent events (text/event-stream) on the HTTP bindings and server streaming on gRPC.
A2A is an application-layer protocol. It defines no network transport of its own and runs over HTTP or gRPC on TLS and TCP/IP, which is why it passes through existing load balancers, API gateways and service meshes. The specification has three layers: a canonical data model in a2a.proto, the single normative source since v1.0; abstract operations; and the bindings that map those operations onto each protocol. MCP made a similar choice for its remote transport, covered in SSE vs Streamable HTTP.
| Operation | JSON-RPC and gRPC method | HTTP+JSON endpoint |
|---|---|---|
| Send a message | SendMessage | POST /message:send |
| Send and stream | SendStreamingMessage | POST /message:stream |
| Read a task | GetTask | GET /tasks/{id} |
| List tasks | ListTasks | GET /tasks |
| Cancel a task | CancelTask | POST /tasks/{id}:cancel |
| Reattach to a task | SubscribeToTask | POST /tasks/{id}:subscribe |
| Register a webhook | CreateTaskPushNotificationConfig | POST /tasks/{id}/pushNotificationConfigs |
| Read the extended card | GetExtendedAgentCard | GET /extendedAgentCard |
Clients send an A2A-Version header, such as A2A-Version: 1.0, on each request, and servers must treat a request without it as version 0.3. A server that does not support the requested version returns VersionNotSupportedError, which is JSON-RPC code -32009 and HTTP 400. Errors map consistently across bindings: TaskNotFoundError is JSON-RPC -32001, gRPC NOT_FOUND and HTTP 404. The v1.0.1 patch recommends the application/a2a+json media type for the HTTP+JSON binding.
A2A authentication and security
A2A authentication reuses standard web security instead of defining its own. The Agent Card declares one or more security schemes, the client obtains credentials out of band, and it sends them in HTTP headers or gRPC metadata on every request. Production deployments must use HTTPS or TLS, TLS 1.3 is recommended, and the server must authenticate every incoming request.
The security scheme object follows OpenAPI 3.2 and allows five types:
- API key, sent in a header, query parameter or cookie.
- HTTP authentication, typically bearer tokens, which are often JSON Web Tokens (JWTs).
- OAuth 2.0, with the authorization code flow (with a
pkceRequiredflag), client credentials, and the device code flow from RFC 8628. Version 1.0 deprecates the implicit and password flows. - OpenID Connect, discovered from the provider's
openid-configurationURL. - Mutual TLS, added as a scheme in v1.0.
A2A also supports in-task authorization. An agent that needs an OAuth token to call another API, or human approval before a destructive action, moves the task to TASK_STATE_AUTH_REQUIRED and asks the client to obtain it. Authorization policy itself is left to the implementer: the specification names skills, actions, data policies and OAuth scopes as inputs, but defines no policy language. MCP instead standardizes OAuth 2.1 between each client and MCP server, as MCP OAuth explains. The A2A security guide maps the threat model in more detail.
A2A vs MCP
The difference between A2A and MCP is what each one connects, and the two are designed to work together. The Model Context Protocol (MCP) connects one agent to tools, data and prompts; the A2A protocol connects an agent to other agents that plan and act on their own. A2A does not replace MCP: a typical agent receives work over A2A and does that work with MCP tools.
| Dimension | A2A | MCP |
|---|---|---|
| Connects | An agent to other agents | An agent or AI application to tools and data |
| Counterpart | An autonomous, opaque agent | A tool, resource or prompt with a schema |
| Unit of work | A task with a lifecycle and artifacts | A tool call with a result |
| Discovery | Agent Card at /.well-known/agent-card.json | tools/list and related requests to an MCP server |
| Wire format | JSON-RPC 2.0, gRPC or HTTP+JSON | JSON-RPC 2.0 over stdio or Streamable HTTP |
| Direction | Horizontal: across teams and organizations | Vertical: deeper capability for one agent |
| Origin | Google, April 2025 | Anthropic, November 2024 |

Figure 2: The protocols operate on different axes, so a production agent system usually runs both.
Both protocols now sit in the Agentic AI Foundation. What is MCP explains the tool side: hosts, clients, servers and the tools they expose.
Who created A2A and who supports it?
Google created A2A, launched it in April 2025 with more than 50 technology partners, and contributed it to the Linux Foundation in June 2025 as a vendor-neutral Apache 2.0 project. Official SDKs exist for Python, Go, JavaScript, Java, .NET and Rust, and the major agent frameworks and cloud agent platforms support it.
On August 27, 2026, A2A was accepted as a Growth Stage project at the Agentic AI Foundation, the Linux Foundation-directed home of MCP, with backing from more than 150 organizations. The same announcement lists native support in Google Cloud, AWS Bedrock AgentCore Runtime and Microsoft Azure AI Foundry, and framework support in LangGraph, CrewAI, Pydantic AI, AG2 and IBM BeeAI. ServiceNow, Salesforce, Atlassian and SAP use it across their products. An official a2a command-line client followed in October 2026.
What changed in A2A v1.0
Version 1.0.0, released on March 12, 2026, is a breaking release from v0.3, and v1.0.1 followed on May 26, 2026 with fixes only. The A2A changelog marks 16 changes as breaking; these are the ones that break existing code:
- Methods renamed from slash style to PascalCase:
message/sendbecameSendMessage,tasks/getbecameGetTask,tasks/resubscribebecameSubscribeToTask, andagent/getAuthenticatedExtendedCardbecameGetExtendedAgentCard. - Enum values renamed from kebab-case to SCREAMING_SNAKE_CASE, so
input-requiredis nowTASK_STATE_INPUT_REQUIRED. - Agent Card restructured.
preferredTransportandadditionalInterfacesmerged intosupportedInterfaces,protocolVersionmoved to each interface, andextendedAgentCardmoved intocapabilities. kinddiscriminators removed from stream events and parts in favor of JSON member names.
Many tutorials still show the v0.3 method names, and code written against them fails on a v1.0-only server.
Running A2A in production: risks and design decisions
Running A2A in production raises questions the specification leaves to implementers: who may call which agent, how credentials travel across hops, how to trace one task through several agents and their model calls, and how to keep endpoints reachable. Most teams answer them with an agent gateway in front of their A2A servers, the same pattern an MCP gateway applies to tool servers.
The failure modes that show up first:
- Unmanaged agent access. Every A2A server is a new HTTPS endpoint with its own credentials, and without a registry nobody knows who calls it.
- Spoofed or stale Agent Cards. Card signing is optional. An unsigned card on a compromised host can point clients at a malicious endpoint.
- Lost caller identity. When agent A calls agent B, which calls a model, the original caller disappears unless each hop forwards it, and audit records name a shared service account.
- Untrusted content. Text and artifacts from a remote agent become input to your own model, which makes them a prompt injection path. MCP security covers the same risk for tool results, and AI security at the gateway covers the screening.
- Tracing gaps. Task IDs live in A2A traffic and model calls live in other logs, so a failed task cannot be tied to the LLM call that caused it.
- State split across interfaces. An agent that advertises JSON-RPC and gRPC must share task state across both, or a
GetTaskon the second interface returnsTaskNotFoundError.
The design decisions follow: order supportedInterfaces by preference, pick polling, streaming or push per workload, and pin A2A-Version on every client. Then decide where access control runs: in each agent, or once in a shared AI gateway layer that also sees the agents' model and tool calls.
A2A protocol with Bifrost
Bifrost, the open-source AI gateway built by Maxim AI, governs A2A traffic through the Agent Gateway in Bifrost, alongside LLM and MCP traffic. Teams register an existing A2A agent by its Agent Card URL. Bifrost fetches the current card on every discovery request, rewrites its endpoints and authentication requirements, and serves a gateway card, so clients discover Bifrost routes instead of the agent's origin.
Bifrost accepts JSON-RPC, HTTP+JSON and gRPC from clients and calls the agent over the first eligible interface its card lists, so a JSON-RPC client can reach a gRPC-only agent. The gateway speaks A2A v1 and rejects an explicitly incompatible A2A-Version. It never replays a stream or an ambiguous failure, because a replay could create a second task, and it strips upstream card signatures, which its rewrite would invalidate.
Virtual keys grant access to individual agents, and a key granted one agent cannot call the others. Agent access is separate from model and tool permissions. Agent authentication configures card-fetch and request credentials separately, using headers, OAuth 2.0 client credentials or mutual TLS.

Figure 3: Sending both hops through Bifrost ties one A2A task to every model and tool call made for it.
With credential forwarding enabled, the agent reuses the caller's credential on its own model and tool calls and sends x-bf-session-id with the A2A context ID and x-bf-agent-correlation-id with the task ID. Agent Logs then link each session and task to its LLM and MCP calls, and the OpenTelemetry connector exports spans with a2a.task.id attributes. The same deployment routes to 10,000+ models across 25+ providers with 11 microseconds of overhead per request at 5,000 RPS.
To put an A2A agent behind Bifrost, start with the gateway quickstart, then register the agent and send your first task.
Frequently asked questions
What does A2A mean?
In AI, A2A means Agent2Agent, the open protocol that lets AI agents from different frameworks and vendors discover each other and delegate tasks. Outside AI, the same letters mean other things: in payments, A2A is an account-to-account transfer, and in enterprise integration it can mean application-to-application. Agent2Agent is unrelated to both.
Who made the A2A protocol?
Google made A2A and announced it in April 2025 with more than 50 technology partners. Google contributed the protocol to the Linux Foundation as a vendor-neutral project in June 2025, and in August 2026 A2A became a Growth Stage project at the Agentic AI Foundation, which also hosts the Model Context Protocol. The project is licensed under Apache 2.0.
Is the A2A protocol over HTTP?
Yes. A2A runs over HTTP(S) in all three standard bindings. JSON-RPC 2.0 and HTTP+JSON use ordinary HTTPS requests, and gRPC runs on HTTP/2. Streaming uses server-sent events on the HTTP bindings, and push notifications are HTTP POST requests to a client webhook. Production deployments must use TLS, and TLS 1.3 is recommended.
Will A2A replace MCP?
No. A2A and MCP work together because they address different connections. MCP connects one agent to tools, data and prompts, while A2A connects an agent to other autonomous agents. An agent typically receives a task over A2A and completes it by calling tools over MCP, so most production systems run both. Both protocols are now governed by the Agentic AI Foundation.
Is A2A being used?
Yes. A2A reached a stable v1.0 specification in March 2026 and is supported natively by major cloud agent platforms, including Google Cloud, AWS Bedrock AgentCore Runtime and Azure AI Foundry. Agent frameworks such as LangGraph and CrewAI support it, more than 150 organizations back the project, and enterprise software vendors use it to connect agents across their products.
What is the difference between A2A and P2P?
In payments, A2A (account-to-account) moves money directly between bank accounts, while P2P (person-to-person) describes who pays whom, often through an app. In AI, A2A means Agent2Agent and has nothing to do with payments, although its maintainers describe collaboration between agents over A2A as peer-to-peer.
- a2a protocol
- a2a
- ai agent



