Skip to main content

etaoi

The Python SDK for ETAOI Flow — an agent-native trace visualizer for the LangChain ecosystem and LiveKit voice agents. Attach it to your agent, run a conversation, and watch the full reasoning unfold as a navigable, drill-down node graph.

pip install etaoi             # core SDK
pip install "etaoi[livekit]"  # + LiveKit voice agent tap

Quick start — LangChain / LangGraph / deepagents

import etaoi

etaoi.attach(my_agent)  # streams telemetry to a local ETAOI Flow server
# … now `my_agent.invoke(...)` shows up as a trace.

One callback adapter covers LangChain, LangGraph, and deepagents.

Quick start — LiveKit voice agents

from livekit.agents import AgentSession
import etaoi

session = AgentSession(...)
etaoi.attach_session(session)

Captures voice turns (mic → STT → LLM → TTS → speaker), tool calls, sub-agent handoffs, scores/outcomes, errors, and — if the host enabled LiveKit recording — synced audio for replay alongside the trace.

ETAOI Flow Cloud (project API keys)

To stream to the hosted ingest instead of a local self-host server, pass a host plus your project's API keys:

import etaoi

etaoi.attach(
    my_agent,
    host="ingest.etaoi.dev",         # bare host → wss://, default path /ingest
    public_key="pk_live_…",
    secret_key="sk_live_…",
)

Or via environment (explicit params take precedence):

export ETAOI_HOST=ingest.etaoi.dev
export ETAOI_PUBLIC_KEY=pk_live_…
export ETAOI_SECRET_KEY=sk_live_…
etaoi.attach(my_agent)  # picks up ETAOI_HOST / ETAOI_PUBLIC_KEY / ETAOI_SECRET_KEY

The keys are sent as X-Etaoi-Public-Key / X-Etaoi-Secret-Key headers on every (re)connect — and only when both are set, so self-host stays key-less. If the server rejects them (WS close code 4401), the SDK logs a clear error and stops reconnecting. It never raises into or blocks your agent.

Design constraints

  • Never blocks your agent. Async background flush via anyio, bounded in-memory queue with drop-oldest on overflow, transparent reconnect with backoff. All callbacks return immediately.
  • Schema-versioned wire format. MessagePack with permessage-deflate over WebSocket; schema version is negotiated at the handshake (MAJOR mismatch = fast fail, close code 4400).
  • No vendor lock-in. Self-host the server with docker compose up, or stream to ETAOI Flow Cloud. Same SDK.

For the wire schema this package depends on, see etaoi-schema.

Metadata

Release files for etaoi 0.2.0

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

Source distribution (sdist)

Source distribution for etaoi 0.2.0
File Size Uploaded Provenance Actions
etaoi-0.2.0.tar.gz 108.0 kB With provenance Details for etaoi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for etaoi 0.2.0
File Interpreter ABI Platform Actions
etaoi-0.2.0-py3-none-any.whl Python 3 none any Details for etaoi-0.2.0-py3-none-any.whl

Total release size: 230.6 kB

Release files / etaoi-0.2.0.tar.gz

Download URL etaoi-0.2.0.tar.gz
Size 108.0 kB
Tags Source
SHA-256 checksum
How to use checksums
612e8cdf8bb76235d3d8f4e2be77bb5a4c16a43250ca0d29a970c78547089100
BLAKE2b-256 checksum
How to use checksums
63a19dcc9b840b86f14e42abd5c9809dc1c3fd3cdf3208277dc7a24b3ae0fea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 21, 2026.

Transparency log

Release files / etaoi-0.2.0-py3-none-any.whl

Download URL etaoi-0.2.0-py3-none-any.whl
Size 122.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6af0fc2a7d5395c0c99f4cb154dd426bb06f446078db6dbe2623773873d524d5
BLAKE2b-256 checksum
How to use checksums
842f4019357701e6e5720b38f97fd38bcc100d94b4f2913ab8cb8fcc3dde0d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 21, 2026.

Transparency log

Security for etaoi 0.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for etaoi-0.2.0.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 Jun 21, 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