Skip to content

Installation

The A2E SDK requires Python 3.10+ and a handful of lightweight dependencies — Pydantic v2 for schema validation, FastAPI+Uvicorn for the HTTP transport, and aiofiles for async file I/O. Choose your environment: pip for standard deployments, poetry or uv for locked dependency management, or conda for teams already using it.

Requirements

  • Python 3.10+ (uses match statements, type union syntax)
  • pip package manager

Install from PyPI

bash
pip install a2e

Core Dependencies

The a2e package depends on:

PackageVersionPurpose
pydantic2.12.5Data validation, schemas, serialization
fastmcp3.2.0MCP server/client integration
mcp1.27.0Model Context Protocol types
fastapi0.135.3HTTP server framework
uvicornlatestASGI server
pyyamllatestYAML config parsing

Optional Dependencies

bash
# For SQLite persistence (included in stdlib)
pip install a2e              # SQLite support built-in

# For cookbook HTTP tools
pip install requests

# For LLM-powered agents
pip install anthropic         # Claude Sonnet (agent.py)
pip install openai            # OpenAI/OpenRouter (deep_agent.py)
pip install langchain-openai # LangChain integration (deep_agent.py)

Install from Source

bash
git clone https://github.com/a2eprotocol/python-sdk.git
cd python-sdk
pip install -e .

For development:

bash
pip install -e ".[dev]"

Verify Installation

bash
python -c "import a2e; print(a2e.__version__)"   # Should print version
python -c "from a2e.schema import A2EHostConfig; print('OK')"

Troubleshooting

IssueSolution
ModuleNotFoundError: No module named 'a2e'Run pip install -e . from repo root
pydantic.ValidationError on importEnsure pydantic v2: pip install pydantic>=2.0
Port 8765 already in useChange server.port in your config YAML
ImportError: fastmcpRun pip install fastmcp mcp

A2E Protocol v1.0 — Released under the MIT License.