Environment Variables

Complete reference for all environment variables used by the Rune SDK and dashboard.

SDK (Python)

The SDK reads these environment variables in ShieldConfig.__post_init__. Constructor arguments take precedence over environment variables.

VariableDescriptionDefault
RUNE_API_KEYAPI key for authentication. Starts with rune_live_None (required for cloud features)
RUNE_EVENTS_ENDPOINTEvent ingestion endpoint URLhttps://events.runesec.dev
RUNE_API_ENDPOINTAPI endpoint for policy sync and agent registrationhttps://api.runesec.dev
RUNE_DEBUGEnable debug logging. Accepts 1, true, or yesfalse
RUNE_AGENT_IDDefault agent identifier for eventsNone
RUNE_AGENT_TAGSComma-separated default tags (e.g. prod,research)None

Example

Terminalbash
export RUNE_API_KEY=rune_live_xxx
export RUNE_AGENT_ID=my-agent
export RUNE_AGENT_TAGS=prod,customer-facing
export RUNE_DEBUG=1
Pythonpython
from rune import Shield

# Shield reads all RUNE_* env vars automatically
shield = Shield()  # no arguments needed

Dashboard (Next.js)

Required for running the Rune dashboard locally or in production.

VariableDescriptionRequired
NEXT_PUBLIC_CONVEX_URLConvex deployment URL (*.convex.cloud)Yes
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYClerk publishable key (pk_*)Yes
CLERK_SECRET_KEYClerk secret key for server-side authYes
CONVEX_DEPLOY_KEYFor convex deploy in CIDeploy only
SKIP_ENV_VALIDATIONSet to 1 to bypass runtime env checks (CI builds)CI only