envs

Statsig — feature flags and experiments

statsig/flags · version 1

envs add statsig/flags

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
STATSIG_CLIENT_API_KEY required config Statsig says to use client keys where the key itself cannot be secret, such as a mobile or web app. The names here are convention: Statsig's SDKs take the key as an argument.. where to get it
STATSIG_SERVER_SECRET_KEY optional secret Statsig says to keep server secret keys private, and that an exposed one is disabled and recreated rather than rotated.. where to get it
STATSIG_CONSOLE_API_KEY optional secret Statsig calls these the most powerful keys in a project: they read the whole configuration and can create, update and delete anything in it.. where to get it

The JSON the CLI reads