Skip to content

Quickstart

Get up and running with Kopai in under 5 minutes.

  • Node.js v22.5.0+ installed

Run the local backend — this starts an OTEL collector on port 4318 and an API server on port 8000:

Terminal window
npx @kopai/app start

Your app’s telemetry will be sent to http://localhost:4318 and you can query it or view the dashboard at http://localhost:8000.

See the integration guides for instrumentation examples for your programming language/runtime:

When running the app set the following env var to make the apps send telemetry to @kopai/app on localhost

export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318

Step 3: Verify that your application instrumentation works as expected

Section titled “Step 3: Verify that your application instrumentation works as expected”

Open @kopai/app web interface on http://localhost:8000

and inspect the Logs, Metrics and Traces

Step 4: Go multiplayer -> sign up for a Kopai account

Section titled “Step 4: Go multiplayer -> sign up for a Kopai account”

(sign up for free beta here)

  1. Go to SettingsAccess Tokens in your kopai.app dashboard
  2. Click Generate Token
  3. Copy the token (it won’t be shown again)

Set your Kopai endpoint and backend token as env vars for your instrumented app:

Terminal window
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.kopai.app"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_BACKEND_TOKEN"
  1. Go to Team in your kopai.app dashboard
  2. Click Invite Member

Every team member can create their own CLI token to query traces, logs, and metrics sent to kopai.app:

  1. Go to SettingsAccess Tokens in your kopai.app dashboard
  2. Click Generate Token and select CLI as the token type
  3. Copy the token

Then log in:

Terminal window
npx @kopai/cli login

Paste the CLI token at the prompt. See Authentication for full details.