Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Aion Python SDK

PyPI Python Docs License: MIT

A Python library that serves agents over the Agent-to-Agent (A2A) protocol and runs them on the Aion platform. Bring a LangGraph or Google ADK agent, point an aion.yaml at it, and run aion serve — you get an A2A endpoint with an agent card, streaming and conversation state, plus a terminal client to try it out.

✨ Features

  • Framework agnostic: LangGraph and Google ADK agents get the same configuration and the same A2A surface.
  • A2A protocol compliant: agent card, streaming and conversation state without writing protocol code.
  • Four lines of configuration: an agent needs one field — where to find it. Everything else has a default.
  • No account required: runs fully locally; add credentials to reach the Aion model service and MCP tools.
  • Multi-agent: a built-in proxy fronts several agents behind one endpoint, and aion chat talks to any of them from the terminal.

🚀 Getting started

Prerequisites

  • Python 3.12, 3.13 or 3.14
  • Node.js 22+ — only for the bundled aion chat client

🔧 Installation

Install the SDK plus the extra for the framework you use.

Feature uv pip
Core SDK — the aion CLI and client libraries uv add aionto-sdk pip install aionto-sdk
LangGraph agents uv add "aionto-sdk[langgraph-server]" pip install "aionto-sdk[langgraph-server]"
Google ADK agents uv add "aionto-sdk[adk-server]" pip install "aionto-sdk[adk-server]"
LangGraph authoring uv add "aionto-sdk[langgraph-authoring]" pip install "aionto-sdk[langgraph-authoring]"
ADK authoring uv add "aionto-sdk[adk-authoring]" pip install "aionto-sdk[adk-authoring]"

The *-authoring extras are the toolkit on its own — Aion models, tools and messaging inside your agent — for agents that something other than aion serve runs.

💡 Example

A LangGraph agent, served over A2A, with four lines of configuration.

  1. Write the agent. A plain LangGraph graph, returned uncompiled: Aion compiles it and attaches the checkpointer, so conversation state comes for free.

    # agent.py
    from typing import Annotated, TypedDict
    
    from langchain_core.messages import AIMessage, AnyMessage
    from langgraph.graph import END, START, StateGraph
    from langgraph.graph.message import add_messages
    
    
    class State(TypedDict):
        messages: Annotated[list[AnyMessage], add_messages]
    
    
    def reply(state: State) -> dict:
        question = state["messages"][-1].content
        return {"messages": [AIMessage(content=f"Echo: {question}")]}
    
    
    def create_graph() -> StateGraph:
        workflow = StateGraph(State)
        workflow.add_node("reply", reply)
        workflow.add_edge(START, "reply")
        workflow.add_edge("reply", END)
        return workflow
    
  2. Point Aion at it. path is the only field an agent needs.

    # aion.yaml
    aion:
      agents:
        support:
          path: "./agent.py:create_graph"
    
  3. Serve it. The port is assigned automatically and printed on startup.

    aion serve
    
  4. Talk to it from another terminal.

    aion chat
    

That is a complete local run — no account, no credentials. To connect the agent to the platform, add AION_CLIENT_ID and AION_CLIENT_SECRET to a .env beside the configuration.

For Google ADK the configuration is the same — see the ADK quickstart.

📚 Documentation

Full documentation lives at docs.aion.to:

🤝 Contributing

Contributions are welcome. For development setup and how to run the test suites, see the Development Guide.

📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for aionto-sdk 0.1.0rc5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aionto-sdk 0.1.0rc5
File Size Uploaded Provenance
aionto_sdk-0.1.0rc5.tar.gz 988.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aionto-sdk 0.1.0rc5
File Interpreter ABI Platform
aionto_sdk-0.1.0rc5-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / aionto_sdk-0.1.0rc5.tar.gz

Download URL aionto_sdk-0.1.0rc5.tar.gz
Size 988.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2607d89ff92bb94a95cf6bfba82ea6b0e201fa44687fd85192c0c0cd93eb69d8
BLAKE2b-256 checksum
How to use checksums
30533fe889543b0700f6f22a7d6e0bf00c10a0a2506bd4998458ad0e82444803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / aionto_sdk-0.1.0rc5-py3-none-any.whl

Download URL aionto_sdk-0.1.0rc5-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1f22c5f0074bb3fc02a219c947a1116cdd3ad8c68e9b1608bee43b86364fec65
BLAKE2b-256 checksum
How to use checksums
b344b76244cd2715513afb7ae221a5824a550c57943f6670e3d5b7f42b9f8605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for aionto-sdk 0.1.0rc5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aionto_sdk-0.1.0rc5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page