Install
Set your API key
Get a project key from the Apie dashboard. Add it to your environment:For local development against a self-hosted Apie instance, set
APIE_BASE_URL to your API host (default is http://localhost:3000).Initialize your project
The CLI scaffolds a config file and.env template:
apie.config.ts(TypeScript) orapie.config.py(Python) — agent identity and SDK settings.env.example— copy to.envand fill in your API key
Wire the SDK
Export a configured client from your config file. One client per process — like Sentry.What you’ll see
Afterready() resolves, Apie has called POST /v1/agents/identify. Your agent appears in the dashboard with an agentId and agentVersionId.
Send a test event
Verify the full pipeline with a smoke test:What you’ll see
The CLI prints a session replay URL. Open it in your browser to walk through the simulated session timeline.Run diagnostics
If something doesn’t look right:doctor checks your config, registration status, queue health, and event validation.
Next steps
Choose how to instrument
Pick MCP proxy, framework plugin, or explicit instrumentation.
Trace runs and sessions
Wrap your agent work so every request creates a run.
