skillfed

a2a-sdk

A2A Python SDK

a2a-sdk v1.1.2 12.4M downloads/30d#1,323 on PyPI2,079
Permissive license Apache-2.0 Active released

What it is and what it does

The A2A SDK is a Python library for building agentic applications that follow the Agent2Agent (A2A) Protocol specification. It provides a framework for agents to communicate asynchronously over multiple transports—JSON-RPC, HTTP+JSON/REST, and gRPC—with built-in support for modern async Python. The core library is lightweight, but the SDK includes optional integrations for HTTP servers (FastAPI, Starlette), distributed tracing (OpenTelemetry), and SQL persistence (PostgreSQL, MySQL, SQLite), allowing you to compose a deployment stack suited to your needs.

The SDK is maintained actively and supports Python 3.10 through 3.14. It implements the A2A Protocol specification version 1.0 with backward compatibility for 0.3, so agents built with this SDK can interoperate with other A2A-compliant implementations. The 8 core runtime dependencies are all established ecosystem packages, and the install is low-friction.

Use it for:

  • Build a microservice-based agent system where agents communicate over HTTP or gRPC following a standardized protocol.
  • Implement an agent that exposes itself as a JSON-RPC server for remote clients to invoke its capabilities.
  • Create an agentic application with distributed tracing and observability using OpenTelemetry integration.
  • Deploy agents with persistent state backed by PostgreSQL, MySQL, or SQLite without writing custom storage logic.
  • Develop multi-agent workflows where agents coordinate via the A2A Protocol across different network transports.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python SDK for building agentic applications that communicate via the Agent2Agent (A2A) Protocol, supporting JSON-RPC, HTTP+JSON/REST, and gRPC transports with optional integrations for FastAPI, OpenTelemetry, and SQL databases.

Yes. The SDK is actively maintained, has no known vulnerabilities, uses a permissive Apache 2.0 license, and requires only standard ecosystem dependencies. It is well-suited for anyone building agent-to-agent communication systems that need to follow a standardized protocol. The optional extras allow you to scale from simple local agents to distributed, observable, persistent deployments. Start with the core install and add extras as your use case demands.

Install

a2a-sdk on PyPI

pip

pip install a2a-sdk

uv

uv add a2a-sdk

poetry

poetry add a2a-sdk

Installing a2a-sdk

Before you install

Low friction install with a pure-Python wheel. Active maintenance with a release 23 days old and recent commits. The 8 runtime dependencies are standard ecosystem packages (pydantic, protobuf, httpx, google-api-core), suggesting a stable, well-integrated foundation.

License in practice

Apache 2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for proprietary agent applications.

Quickstart

pip install a2a-sdk

from a2a_sdk import Agent

agent = Agent()
# Define agent capabilities and handlers

Requires Python 3.10 or later; the SDK is built on async Python and expects familiarity with asynchronous programming patterns.

Verify before relying

  • Whether the optional integrations (FastAPI, gRPC, OpenTelemetry, SQL drivers) are included in the core install or require separate extras.
  • Performance characteristics and throughput limits for typical agentic workloads.
  • Maturity and stability of the A2A Protocol specification itself, given the SDK is at version 1.1.2 and the protocol at 1.0.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 8 — culsans, google-api-core, googleapis-common-protos, httpx, json-rpc, packaging, protobuf, pydantic
Maintenance actively maintained — 23 days since the last release
Last repo commit
First released
Downloads 12,367,877/month — #1,323 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: a2a_sdk-1.1.2-py3-none-any.whl

Keywords: A2A, A2A Protocol, A2A SDK, Agent 2 Agent, Agent2Agent

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

agent to agent protocol pythonA2A SDK agentic applicationsagent communication frameworkasync agent server libraryA2A protocol implementationagent2agent python sdkdistributed agent protocol
agent-frameworkasync-protocoldistributed-agents

More Python Modules packages