Skip to content
KOPAIDocs
Open Kopai

Getting Started

Kopai Cloud is the hosted backend. Your app sends telemetry to a managed endpoint and your whole team reads it in one dashboard at app.kopai.app. It is free while in alpha, no credit card.

  • An application instrumented with OpenTelemetry. The Quickstart is the fastest way: your agent sets it up and tests it locally first. Manual Setup covers hand-wiring.

Sign up at app.kopai.app/signup. You sign in with a magic link sent to your email.

Your app authenticates to Kopai Cloud with a backend token. Creating tokens requires the owner or admin role.

  1. Open SettingsAccess Tokens in the dashboard
  2. Click Generate Token and choose Backend Token
  3. Copy the token. It is shown once.

Building a browser app? Use a Frontend Token with allowed origins instead. The browser guide covers that setup.

Set two environment variables for your instrumented app:

Terminal window
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp-http.kopai.app"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_BACKEND_TOKEN"

Your instrumentation stays identical to local. Only the endpoint and the auth header change.

Open app.kopai.app/observability and confirm traces, logs, and metrics are arriving from your app.

  1. Go to Team in the dashboard
  2. Click Invite Member

Invited members get the member role. They can read all telemetry. Creating tokens stays with owners and admins.

The CLI queries Kopai Cloud with its own read-only token. An owner or admin creates it:

  1. Open SettingsAccess Tokens
  2. Click Generate Token and choose CLI Token
  3. Copy the token

Then log in:

Terminal window
npx @kopai/cli login

Paste the token at the prompt. The CLI saves it to ./.kopairc with the server URL https://api.kopai.app/v2. See CLI authentication for flags, expiry, and logout.