Skip to main content

Environment variables

What application developers set

Env varDefaultPurpose
EDEN_API_KEYunsetOrg API key (required)
EDEN_ORG_IDunsetOrg id (required)
EDEN_BASE_URLhttps://api.edenobservability.comOverride API host (optional)
EDEN_ENVdefaultEnvironment label on events (Python)
EDEN_DEBUGfalseVerbose SDK logs
export EDEN_API_KEY="sk_eden_…"
export EDEN_ORG_ID="org_…"
# EDEN_BASE_URL is optional — SDKs already default to the production API

Validate with python -m eden_sdk.doctor or npx eden-doctor.

Portal (Vercel)

Env varProduction valueNotes
NEXT_PUBLIC_API_URL/api/proxySame-origin browser proxy
API_INTERNAL_URLhttps://api.edenobservability.comServer-side FastAPI upstream
NEXT_PUBLIC_SITE_URLhttps://edenobservability.com
Clerk keyslive keys for prod

Platform variables (Eden-operated)

The tables below document variables used by the hosted API and workers. Customers do not set these unless Eden staff asks you to for a dedicated tenancy.

A–C

Env varProduction noteUsed by
ANTHROPIC_API_KEYProvider keyAPI
APP_BASE_URLPublic portal/API URLAPI
CLICKHOUSE_*Analytics storeAPI
CLERK_*AuthAPI, Portal
CORS_ORIGINS_RAWCSV of portal (+ docs if needed) originsAPI

D–E (SDK + sampling)

Env varDefaultUsed byNotes
EDEN_API_KEYunsetSDKsOrg API key
EDEN_BASE_URLhttps://api.edenobservability.comSDKs
EDEN_DEBUGfalsePython SDK
EDEN_ENVdefaultSDKs
EDEN_ORG_IDunsetSDKs
EDEN_SAMPLING_PROFILEfullAPI + SDKsSoft-launch default: 100% keep. Cost win after soft-launch: set balanced (~15% non-signal keep; errors/loops/stumbles always kept) or aggressive (~5%). Applied server-side via N16 decide() on ingest; SDKs also honour the same env for client-side enqueue filtering.
EDEN_SAMPLING_ENABLEDtrue / 1API + SDKsfalse / 0 forces 100% keep (safe rollback).
EDEN_SAMPLE_KEEP_ERRORS1SDKsClient sampler always keeps error signals when on.
EDEN_PROBABILISTIC_SAMPLE_RATE1.0APIWhen \< 1.0, overrides profile fallback rate only.

Maps to Settings: sampling_profile, sampling_enabled, probabilistic_sample_rate (src/eden/config.py). Ingest gate: eden.observability.sampling.apply.should_route_event.

Remaining platform vars

Postgres, Redis, Qdrant, Stripe, Sentry, and provider keys are configured on the Eden-operated API. Full historical list (including local-dev defaults used by Eden engineers) lives in src/eden/config.py / .env.example in the repo.

Precedence

  1. Explicit configure(...) / CLI flags — highest
  2. Environment variables
  3. SDK default (https://api.edenobservability.com) — lowest