Getting Started
Apeira is a small TypeScript runtime for building agents that runs anywhere. The kernel handles a single turn pipeline; everything else is a plugin. You opt into plugins, tools, skills, and storage backends as you need them.
Before you begin
You should have:
- Node.js 18 or newer
pnpminstalled (or npm / yarn)- An OpenAI-compatible API key
Three usage paths
Apeira serves three audiences. Pick the one that matches your goal today:
- Application developer — you want to embed an agent in your app. Read Installation, then First Turn to get started, then Sessions, Episodic, and Agent Lifecycle for session and queueing control.
- Plugin author — you want to extend Apeira with custom hooks, tools, or storage backends. Read Plugins after the first turn.
- Package author — you want to bundle Apeira with a curated plugin set for a specific scenario. Start with the umbrella package, then see Packages for the module layout.
All three share the same starting point: install Apeira and run one turn to confirm the runtime is healthy.
Recommended path
Work through these pages in order:
- Installation — install from npm with
pnpm add apeira. - First Turn — create an agent, submit a turn, and consume the event stream.
- Sessions — isolate conversations with explicit sessions.
- Episodic — understand session history, boundaries, and persistence.
- Agent Lifecycle — understand queueing and cancellation.
- Plugins — extend the runtime with plugins.
If you want the API surface first, read Core API before the tutorials.