/kubit-integrate skill finds your existing tracing setup, creates or selects a workspace, writes the API key to your env file and adds the Kubit SDK. It shows a diff before every file it changes.
Use this page if you work in Claude Code, if your agent is in Node or TypeScript, or if you already send traces to Langfuse or Braintrust. For a plain Python app, the Quickstart is just as fast by hand.
Before you start
- Claude Code installed
- A Kubit account
- Your agent’s repo checked out, with its dependencies installed
- For Node: OpenTelemetry JS SDK v2 or no OpenTelemetry yet.
@kubit-ai/otelneeds@opentelemetry/sdk-trace-base,@opentelemetry/sdk-trace-nodeand@opentelemetry/resourcesat^2.0.0.
Steps
1
Install the Kubit plugin
2
Sign in to the Kubit MCP server
In Claude Code, run
/mcp, pick the Kubit server and complete the browser sign-in. This is a one-time OAuth sign-in. Until it’s done, every Kubit tool call fails with an auth error.3
Run /kubit-integrate in your repo
4
Review each diff
The skill shows a diff for every file it writes or edits: the env file, the bootstrap file and your entrypoint. Approve or reject each one.
5
Run the verification command
The skill ends with three lines: which workspace and env file it used, where the Kubit wiring went, and a command that sends a
hello-kubit test span. Run that command.What /kubit-integrate does
Detection
The skill looks for tracing tools on two axes.
If it finds more than one sink, it asks you to pick one.
Workspace and API key
The skill offers to create a new workspace, switch to another one or use your current one. Creating a workspace takes about 30 seconds. It detects your timezone for the workspace and falls back toUTC.
It then mints an ingestion key, or takes one you paste, and writes KUBIT_API_KEY=<key> to .env.local or .env. The key goes only into that file. If no env file can be written, it prints an export KUBIT_API_KEY=… line for you to run.
Wiring
For a Next.js app with the Vercel AI SDK, the bootstrap file is
instrumentation.node.ts.
Constraints
Other Kubit skills
Using Cursor, Codex or another agent
Without the plugin, give your agent the page that matches your stack and let it follow the steps:Verify
After running the skill’s verification command, ask Claude Code:“Show me traces from the last 15 minutes”The result lists a trace whose root span is
hello-kubit.
If it fails
More checks are in Is my data flowing?.
Next steps
- Span attributes: add user and session IDs.
- Concepts: what Atlas does with your spans.