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.0rc7

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.0rc7
File Size Uploaded Provenance
aionto_sdk-0.1.0rc7.tar.gz 981.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 2.2 MB

Release files / aionto_sdk-0.1.0rc7.tar.gz

Download URL aionto_sdk-0.1.0rc7.tar.gz
Size 981.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f84f63bb2819d1d7c2434f1e92924b66ef63b9d616919fab1ab79519861dec1
BLAKE2b-256 checksum
How to use checksums
baa54a1dad9335674c4b322f4ca4868913880614e9d831f4853178898c217506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 23, 2026.

Transparency log

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

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

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 23, 2026.

Transparency log

Security for aionto-sdk 0.1.0rc7

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.0rc7.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 23, 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