Aelio

Introduction

Aelio documentation. The open-source conversational runtime for your platform.

Aelio lets any platform offer an agentic interactive experience on your preferred chat interface, powered by your existing backend.

Three products, one system

ProductPackageWhere it runs
Aelio SDK@aelio/sdk / aelio-sdkYour backend server
Chat Widget@aelio/chatYour website (browser)
Aelio ServerDocker (aelio/server)Your infrastructure

Supported platforms

PlatformSDK statusGuide
Node.js / ExpressOfficial (@aelio/sdk)Node.js
Next.jsOfficial SDK + widgetNext.js
React (Vite, CRA)Official SDK + widgetReact
Python (FastAPI, Django)Official (aelio-sdk)Python
GoWire protocol (community)Go
RubyWire protocol (community)Ruby
RustWire protocol (community)Rust

Quick start

# 1. Start Aelio server
export AELIO_SDK_SECRET=change-me-in-production
pnpm --filter @aelio/server dev

# 2. Install SDK in your backend
npm install @aelio/sdk

# 3. Expose a function and connect
import { aelio } from '@aelio/sdk';

aelio.expose('getOrderStatus', async ({ orderId }, ctx) => {
  return await db.orders.findOne({ id: orderId, userId: ctx.customerId });
}, { description: 'Get order status', params: { orderId: 'string' }, safety: 'read' });

await aelio.listen({ secret: process.env.AELIO_SDK_SECRET, url: 'ws://127.0.0.1:3010' });

See the Installation guide for the full setup, or pick your platform guide.

On this page