SDK reference
SDK reference
The atune package — install, capture, identify, and query understanding.
The atune package is the whole client surface. Install it like any dependency;
understanding comes back through a queryable API.
npm install atune
# or wire a live Next.js app in one step:
npx atune initEnvironment
| Variable | What |
|---|---|
ATUNE_API_KEY | Your workspace key. The only secret. Server-side only — never ship it to the browser. |
ATUNE_URL | Your Atune host. Defaults to https://useatune.com. |
The surface
track()
Send a named event from any Node backend.
identify() / group()
Attach names and companies to opaque IDs.
understand()
Ask grounded, cited questions about any entity.
createAtuneMiddleware()
Auto-capture behavior from every request.
atune mcp
Expose understand() to an AI agent over MCP.
The published package is atune (currently 0.1.5). See the
quickstart compatibility notes before using the installer.