BASE

Agent2Agent Protocol

Agent2Agent Protocol

Agent interoperability specification · Free

An open AI agent interaction specification with agent cards, tasks, and streaming: it helps connect independent agent applications.

Also known as: a2aproject/A2A; a2a-protocol

Resource illustration: Agent2Agent Protocol

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Connect independent AI agents through A2A
  • Test task and status exchange between two compatible agent applications

Example workflow

A possible workflow; this is not a report of hands-on testing.

Connect independent AI agents through A2A.

Before you start

  • Agent capabilities and task contracts.
  • Each application's endpoints, authentication, and transport.

Steps

  1. Define an Agent Card with the agent's capabilities and supported scenarios.
  2. Test task and status exchange between two compatible agent applications.
  3. Test discovery, results, and cancellation between two endpoints.

Check your result

  • Task states and outputs are understandable to both sides of the integration.
  • Check authentication, cancellation, and transport errors using test cases.

Choosing Agent2Agent Protocol

Connect independent AI agents through A2A

Choose this when

  • Connect independent AI agents through A2A
  • Test task and status exchange between two compatible agent applications

Requirements

  • Compatible A2A endpoints, Agent Cards, and aligned access settings for interacting applications.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.

Frequently asked questions

What can you use for free in Agent2Agent Protocol?

Code and local use under Apache-2.0.

What additional costs might arise with Agent2Agent Protocol?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Agent2Agent Protocol?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with Agent2Agent Protocol?

Define an Agent Card with the agent's capabilities and supported scenarios. Test task and status exchange between two compatible agent applications. Test discovery, results, and cancellation between two endpoints.

Does A2A replace MCP tool connections?

A2A describes independent agent interaction: discovery through Agent Cards, messages, and tasks. MCP connects an agent to tools and context. The README treats them as complementary protocols; one does not prove support for the other.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • Agent2Agent Protocol
  • reference
  • Development

Sources

Other resources