---
title: "Get Feature Flags"
method: GET
path: "/feature-flags"
tags: ["feature-flags"]
---

# Get Feature Flags

`GET /feature-flags`

Return resolved feature flags for the requesting user.

Uses ``FlexibleAuth`` (not ``get_current_user_with_client``) because the
JWT path inside ``_authenticate_with_jwt`` resolves the billing team and
calls ``set_session_team_scope`` — required for per-team Datadog targeting
rules to take effect on this evaluation.

Returns:
    ``FeatureFlagsResponse`` with each flag's resolved boolean value.

## Response `200`

Successful Response

- FeatureFlagsResponse — Resolved boolean feature flags for the requesting user. Field naming follows the canonical agent names in the product: - ``research_agent_enabled``: Deep-research / multi-step research agent (Datadog key ``research_agent_enabled``; renamed from the legacy ``auto_agent_enabled``). - ``mle_agent_enabled``: Claude-powered MLE chat agent. - ``continuous_adaptation_agent_enabled``: Autonomous fine-tuning loop (Datadog key ``continuous_adaptation_agent_enabled``; renamed from the legacy ``data_engine_agent_enabled``). - ``usage_insights_ui_enabled``: Customer-facing usage-aware clustering insights UI (ENG-2110). Decoupled from the backend classify pipeline so the UI can be hidden while the backend keeps computing insights. - ``observability_enabled``: Coding-agent cost Observability page and the ``/observability`` API. Off by default; enabled per-team via Datadog targeting (local dev bypasses the gate). - ``pioneer_openrouter_provider_enabled``: Whether the OpenRouter provider is allowed for inference registration and routing (Datadog key ``pioneer_openrouter_provider_enabled``). Surfaced here so OpenRouter-specific synthetics can self-gate against the same flag (ENG-4977): when the flag is off, probes that exercise the OpenRouter path exit green rather than paging on a policy-disabled provider.
  - `research_agent_enabled` boolean, required
  - `mle_agent_enabled` boolean, required
  - `continuous_adaptation_agent_enabled` boolean, required
  - `billing_credits_page_enabled` boolean, required
  - `usage_insights_ui_enabled` boolean, required
  - `observability_enabled` boolean, required
  - `pioneer_openrouter_provider_enabled` boolean, required

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
