On this page

Agent Analytics quickstart

Early Access

This feature is in Early Access. During this time, aspects of the functionality may still be developed, and this documentation may not always be up to date. If you have any questions, contact Amplitude Support.

Choose your SDK and setup path, then get your agent's traffic flowing into Amplitude in about five minutes. You need a project with Agent Analytics enabled and its API key. Anonymous user and session IDs are fine.

This page contains the fast installation path with limited customizations. To instrument production with full identity and privacy controls, go to Set up Agent Analytics and the SDK reference instead.
Quick setup with your coding agent
Instrument this app with Amplitude Agent Analytics using the Node SDK.

Install the SDK:

npm install @amplitude/ai @amplitude/analytics-node

Then follow `node_modules/@amplitude/ai/amplitude-ai.md`.
Set up manually

Watch the events arrive

After the setup panel's doctor command passes, open your project's Live Events stream. [Agent] AI Response events appear with model, provider, latency, token, and cost fields populated. For the full verification checklist, go to Verify your data.

Add IDs when you're ready

It's a ladder you climb over time, not a form you fill out on day one.

Placeholder IDs work: events still flow, sessions still enrich, and you can swap in real identity later without re-instrumenting. For the complete breakdown, go to What you set and what you get in the SDK reference.

Was this helpful?