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
betasegment.
Set up
Statsig connects with credentials from your Statsig account. Have these values ready:
- Console API key
- Go to Organization > Connectors and find Statsig.
- Click Enable and choose which tools to allow.
- 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.
| Tool | What it does |
|---|---|
get_company | Get information about the Statsig company/organization associated with the current API key. |
get_dynamic_config | Get full details for a Statsig dynamic config by ID, including rules and default value. |
get_experiment | Get full details for a Statsig experiment by ID, including groups and metrics. |
get_gate | Get full details for a Statsig feature gate by ID, including targeting rules and status. |
get_gate_overrides | Get the per-environment ID overrides configured for a Statsig feature gate. |
get_holdout | Get full details for a Statsig holdout by ID. |
get_key | Get details for a Statsig API key by its key value. |
get_layer | Get full details for a Statsig layer by ID. |
get_metric | Get the full definition for a Statsig metric by ID. |
get_project | Get information about the current Statsig project associated with the API key. |
get_segment | Get full details for a Statsig segment by ID. |
get_tag | Get details for a Statsig tag by its name. |
get_target_app | Get details for a Statsig target app by name. |
get_team | Get details for a Statsig team by name. |
get_unit_id_type | Get details for a Statsig unit ID type by name. |
get_user | Get details for a Statsig project member by user ID. |
list_audit_logs | List Statsig audit log entries, optionally filtered by action type, tags, date/time range, and sorted by a given field. |
list_dynamic_configs | List Statsig dynamic configs with optional filtering by target app, team, or tags. |
list_environments | List the environments configured for this Statsig project (e.g. development, staging, production). |
list_experiments | List Statsig experiments with optional filtering by status, target app, team, or tags. |
list_gates | List Statsig feature gates with optional filtering by unit ID type, target app, team, tags, gate type, or creator. |
list_holdouts | List Statsig holdouts (groups of users excluded from experimentation) with optional tag filtering. |
list_keys | List Statsig Console/Server/Client API keys with optional filtering by target app or environment. |
list_layers | List Statsig layers (containers that group mutually-exclusive experiments). |
list_metrics | List Statsig metrics with optional tag filtering. |
list_segment_ids | List the IDs currently in a static (id_list-type) Statsig segment. |
list_segments | List Statsig segments (reusable named user groups referenced by gates, configs, and experiments). |
list_tags | List Statsig tags. |
list_target_apps | List Statsig target apps. |
list_teams | List teams configured in this Statsig project. |
list_unit_id_types | List Statsig unit ID types (e.g. userID, stableID). |
list_users | List members of this Statsig project. |
validate_credential | Validate Statsig Console API key by fetching company info. |
Write (13)
Create or send data.
| Tool | What it does |
|---|---|
add_segment_ids | Add IDs to a static (id_list-type) Statsig segment (max 100000 per call). |
create_dynamic_config | Create a Statsig dynamic config. |
create_experiment | Create a Statsig experiment. |
create_gate | Create a Statsig feature gate. |
create_holdout | Create a Statsig holdout. |
create_key | Create a new Statsig API key. |
create_layer | Create a Statsig layer. |
create_metric | Create a Statsig metric. |
create_segment | Create a Statsig segment. |
create_tag | Create a Statsig tag. |
create_target_app | Create a Statsig target app. |
create_unit_id_type | Create a Statsig unit ID type. |
update_gate_overrides | Add 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.
| Tool | What it does |
|---|---|
archive_dynamic_config | Archive a Statsig dynamic config, removing it from active use. |
archive_gate | Archive a Statsig feature gate, removing it from active use. |
deactivate_key | Deactivate a Statsig API key so it can no longer authenticate requests. |
delete_dynamic_config | Permanently delete a Statsig dynamic config by ID. |
delete_experiment | Permanently delete a Statsig experiment by ID. |
delete_gate | Permanently delete a Statsig feature gate by ID. |
delete_holdout | Permanently delete a Statsig holdout by ID. |
delete_layer | Permanently delete a Statsig layer by ID. |
delete_metric | Permanently delete a Statsig metric by ID. |
delete_segment | Permanently delete a Statsig segment by ID. |
disable_dynamic_config | Disable a Statsig dynamic config so it always returns its default value. |
disable_gate | Disable a Statsig feature gate so it always evaluates to false. |
enable_dynamic_config | Enable a Statsig dynamic config so its rules are evaluated. |
enable_gate | Enable a Statsig feature gate so its rules are evaluated. |
update_dynamic_config | Partially update a Statsig dynamic config's name, description, rules, default value, tags, target apps, or team. |
update_experiment | Partially update a Statsig experiment's name, description, hypothesis, groups, metrics, tags, or team. |
update_gate | Partially update a Statsig feature gate's name, description, rules, tags, target apps, or team. |
update_holdout | Partially update a Statsig holdout's description. |
update_layer | Partially update a Statsig layer's description or target apps. |
update_metric | Update a Statsig metric's description, directionality, tags, or team. |