Skip to main content

Statsig

Feature flags, dynamic configs, experiments, layers, holdouts, metrics, and segments platform.

What you can ask​

  • Roll a feature gate from 10% to 50% after checking the experiment's guardrail metrics.
  • List experiments running longer than 30 days and flag ones with no significant results.
  • Create a dynamic config for the new pricing page and target it to the beta segment.

Set up​

Statsig connects with credentials from your Statsig account. Have these values ready:

  • Console API key
  1. Go to Organization > Connectors and find Statsig.
  2. Click Enable and choose which tools to allow.
  3. Each member enters their own values the first time they use it.

To use one account for the whole organization, turn on Share one connection with everyone. Every member's agents then act as that account, with exactly the access it has.

Tools​

Statsig offers 66 tools. Admins choose which ones agents can use. See Tool permission groups.

Read (33)​

View and search information without changing it.

ToolWhat it does
get_companyGet information about the Statsig company/organization associated with the current API key.
get_dynamic_configGet full details for a Statsig dynamic config by ID, including rules and default value.
get_experimentGet full details for a Statsig experiment by ID, including groups and metrics.
get_gateGet full details for a Statsig feature gate by ID, including targeting rules and status.
get_gate_overridesGet the per-environment ID overrides configured for a Statsig feature gate.
get_holdoutGet full details for a Statsig holdout by ID.
get_keyGet details for a Statsig API key by its key value.
get_layerGet full details for a Statsig layer by ID.
get_metricGet the full definition for a Statsig metric by ID.
get_projectGet information about the current Statsig project associated with the API key.
get_segmentGet full details for a Statsig segment by ID.
get_tagGet details for a Statsig tag by its name.
get_target_appGet details for a Statsig target app by name.
get_teamGet details for a Statsig team by name.
get_unit_id_typeGet details for a Statsig unit ID type by name.
get_userGet details for a Statsig project member by user ID.
list_audit_logsList Statsig audit log entries, optionally filtered by action type, tags, date/time range, and sorted by a given field.
list_dynamic_configsList Statsig dynamic configs with optional filtering by target app, team, or tags.
list_environmentsList the environments configured for this Statsig project (e.g. development, staging, production).
list_experimentsList Statsig experiments with optional filtering by status, target app, team, or tags.
list_gatesList Statsig feature gates with optional filtering by unit ID type, target app, team, tags, gate type, or creator.
list_holdoutsList Statsig holdouts (groups of users excluded from experimentation) with optional tag filtering.
list_keysList Statsig Console/Server/Client API keys with optional filtering by target app or environment.
list_layersList Statsig layers (containers that group mutually-exclusive experiments).
list_metricsList Statsig metrics with optional tag filtering.
list_segment_idsList the IDs currently in a static (id_list-type) Statsig segment.
list_segmentsList Statsig segments (reusable named user groups referenced by gates, configs, and experiments).
list_tagsList Statsig tags.
list_target_appsList Statsig target apps.
list_teamsList teams configured in this Statsig project.
list_unit_id_typesList Statsig unit ID types (e.g. userID, stableID).
list_usersList members of this Statsig project.
validate_credentialValidate Statsig Console API key by fetching company info.

Write (13)​

Create or send data.

ToolWhat it does
add_segment_idsAdd IDs to a static (id_list-type) Statsig segment (max 100000 per call).
create_dynamic_configCreate a Statsig dynamic config.
create_experimentCreate a Statsig experiment.
create_gateCreate a Statsig feature gate.
create_holdoutCreate a Statsig holdout.
create_keyCreate a new Statsig API key.
create_layerCreate a Statsig layer.
create_metricCreate a Statsig metric.
create_segmentCreate a Statsig segment.
create_tagCreate a Statsig tag.
create_target_appCreate a Statsig target app.
create_unit_id_typeCreate a Statsig unit ID type.
update_gate_overridesAdd per-environment ID overrides to a Statsig feature gate (e.g. force a specific user ID to pass or fail in staging).

Delete or overwrite (20)​

Remove or replace existing data.

ToolWhat it does
archive_dynamic_configArchive a Statsig dynamic config, removing it from active use.
archive_gateArchive a Statsig feature gate, removing it from active use.
deactivate_keyDeactivate a Statsig API key so it can no longer authenticate requests.
delete_dynamic_configPermanently delete a Statsig dynamic config by ID.
delete_experimentPermanently delete a Statsig experiment by ID.
delete_gatePermanently delete a Statsig feature gate by ID.
delete_holdoutPermanently delete a Statsig holdout by ID.
delete_layerPermanently delete a Statsig layer by ID.
delete_metricPermanently delete a Statsig metric by ID.
delete_segmentPermanently delete a Statsig segment by ID.
disable_dynamic_configDisable a Statsig dynamic config so it always returns its default value.
disable_gateDisable a Statsig feature gate so it always evaluates to false.
enable_dynamic_configEnable a Statsig dynamic config so its rules are evaluated.
enable_gateEnable a Statsig feature gate so its rules are evaluated.
update_dynamic_configPartially update a Statsig dynamic config's name, description, rules, default value, tags, target apps, or team.
update_experimentPartially update a Statsig experiment's name, description, hypothesis, groups, metrics, tags, or team.
update_gatePartially update a Statsig feature gate's name, description, rules, tags, target apps, or team.
update_holdoutPartially update a Statsig holdout's description.
update_layerPartially update a Statsig layer's description or target apps.
update_metricUpdate a Statsig metric's description, directionality, tags, or team.
⌘J