Quickstart
Get your app reporting to Heystack in a few minutes. Start with the runtime that handles your request, then add the application context that makes its telemetry useful.
1. Create an app and get a key
-
Sign in at console.heystack.dev. New accounts join a waitlist during early access.
-
Create an app. Give it a name that matches what you'll deploy and pick what it is built with (Next.js, Cloudflare Workers, Node, a browser app, iOS, Android, or Python and other OpenTelemetry languages); an admin can change this later. The console then opens a Connect page with three steps, each with its proof:
- Your key: the new key, shown once.
- Install: step-by-step instructions for your stack, or one block to copy for your coding agent. Send a test event gives a
curlcommand that proves the key and Heystack's address work before you change any code. - Verify: waits for your app's first data. Any kind counts: requests, logs, browser errors and product events, session replay, crash reports or metrics. It usually appears within a minute of your app sending it (Heystack stores incoming data in batches up to 30 seconds apart); the page checks every 5 seconds while it's open. When data arrives it says which kinds arrived and suggests what to do next: turn on an alert, add a notification channel, connect a coding agent.
If you come back later and the key is no longer on the page, an admin can create a new key there and get the instructions filled in again; Settings › App › Connection & keys also reopens the instructions after you create a new server key.
-
Mint the key for your runtime. Server-side SDKs (Node, Next.js server, Workers) use a server key (
sk_live_…). Browser code (session replay, browser errors) uses a public Browser key (hs_web_…). Android apps use a Mobile (Android) key (hs_android_…). The raw value is shown once — store it immediately.
Server keys are read from
HEYSTACK_API_KEYand stay server-side — never put ask_live_…key in browser code or aNEXT_PUBLIC_/VITE_variable. Browser keys are write-only and safe in a client bundle. Android keys are injected from the release CI secret store. Never paste any key into committed source.
2. Wire up the SDK
You have two ways to set this up.
Option A — let your coding agent do it (recommended)
If you use Claude Code, install the Heystack plugin. It bundles the heystack-setup skill — which detects your framework and package manager and wires the correct runtime pattern — together with the Heystack MCP server:
/plugin marketplace add heystack-hq/heystack-plugins
/plugin install heystack@heystack
Then ask it to set up Heystack. It selects the JavaScript SDK entry or Android OTLP/HTTP path. With the MCP server connected it can create the app and mint the key itself (heystack_create_app) instead of asking you for one, and verify data arrives (step 4).
Skill only, no MCP server:
/plugin install heystack-setup@heystack. Other agents can read the skill directly fromhttps://heystack.dev/heystack-setup.md.
Option B — install the SDK yourself
For JavaScript runtimes, install @heystack/otel (pin >=0.19.1):
npm install "@heystack/otel@>=0.19.1"
Then add the entry that matches where your code runs:
- Cloudflare Workers → Cloudflare Workers guide
- Next.js (any deploy target) → Next.js guide
- Node / Express / Fastify → Node.js guide
- Android → Android guide (direct OTLP/HTTP; do not install the JavaScript SDK)
- iOS → the Heystack Swift package (
https://github.com/heystack-hq/heystack-swift) with a Mobile (iOS) key; crash reports and dSYM upload are in the crash reporting guide - Python or another language → that language's official OpenTelemetry SDK exporting OTLP/HTTP to
https://ingest.heystack.devwithAuthorization: Bearer <server key>; see the Collector guide (do not install the JavaScript SDK)
Set your key in the environment:
# .env (and gitignore it)
HEYSTACK_API_KEY=sk_live_…
Heystack is not a proxy or gateway for your callers: their requests still go directly to your app. The SDK observes work inside your app and exports telemetry separately. Where the runtime supports a background-lifetime hook, the SDK hands export completion to that lifetime; runtimes without one use the flushing pattern in their framework guide.
On Heystack's side, accepted uploads are handed to a managed queue before storage, so receiving telemetry and making it queryable are separate steps. Instrumentation and export still use some CPU, memory, and network in your app, and the handoff can take time; "not in the caller request path" does not mean zero overhead or instant visibility.
On Cloudflare Workers?
For Cloudflare Workers, Durable Objects, Queues, Workflows, cron handlers, and Agents SDK applications, use the Cloudflare Workers guide first. Cloudflare's native trace and log destinations send the platform signal to Heystack; native mode does not require a HEYSTACK_API_KEY secret in your Worker. Deploy and exercise every runtime path you want to observe.
3. See your telemetry
Run your app and make a request or consent-approved Android test event. Telemetry appears in the console under your app, usually within a minute — open Explore (Traces, Logs and Metrics) to look around.
Nothing showing up? Check the SDK troubleshooting tips — the most common cause is a missing HEYSTACK_API_KEY or the wrong runtime entry.
Deploy markers
Tell Heystack each time you ship, and the release timeline shows when each version went out, with links to the commit and the changes since the last one. A fix you link to an issue is then matched to the release that contains its commit, so Heystack can confirm it worked (confirming fixes is available once it's switched on for your workspace; deploy markers are recorded either way).
Add one step to your deploy job, after the deploy succeeds. It uses the same server key as your app (sk_live_…); a browser or mobile key is refused.
curl -fsS -X POST https://ingest.heystack.dev/api/deploys \
-H "Authorization: Bearer $HEYSTACK_API_KEY" -H "Content-Type: application/json" \
-d "{\"version\":\"$APP_VERSION\",\"build\":\"$GITHUB_SHA\",\"environment\":\"production\",\"source\":\"ci\"}"
version should match the service.version your app reports. Sending the same deploy twice is harmless. Without markers, Heystack still learns about a release when its first telemetry arrives, but it can only assume which release contains a fix. See the deploys API for every field.
4. Connect your agent
Now let your coding agent see what Heystack sees. Connect the MCP server — one line for Claude Code, a click for Cursor or VS Code:
claude mcp add --transport http heystack https://mcp.heystack.dev/mcp
Sign in when prompted and pick your workspace. Then ask the agent to confirm the setup:
Run heystack_verify_setup for <your app> and tell me what's arriving.
heystack_verify_setup waits for telemetry and reports what's flowing (traces, logs, releases, AI enrichment) with fix-it hints if anything is missing. From here on you can ask the agent things like "why did /checkout start failing after the last deploy?" — see the agent playbooks.