{"id":"pg_gmb93uoz0py8","property_id":"prp_rnvsunvhyy60","domain_id":"dom_bjihbbcjezvy","root_domain":"posthog.com","locale":"en","url":"https://posthog.com/feature-flags","url_hash":"c65ee6bcf39768e125e9de699c37e552bf35bfb866886adb72d8f6b19843647c","path":"/feature-flags","depth":1,"canonical_url":"https://posthog.com/feature-flags","canonical_page_id":null,"page_type":"landing","page_type_guess":"landing","state":"indexed","skip_reason":"budget","priority":"0.9","discovered_via":"sitemap","first_seen_at":"2026-08-27T09:02:49.784Z","last_seen_at":"2026-11-25T11:10:31.176Z","http_status":200,"content_hash":"f5f36658cc4473ade0dfee63ab7b2ffafbe9d05f83dcfd7d825a6d05bef24b18","title":"Feature Flags – Ship safely and control rollouts with PostHog","description":"Roll out features safely with Feature Flags. Target users and cohorts, test in production, and run A/B tests. 1M flag requests free every month.","author":null,"published_at":null,"modified_at":null,"word_count":222,"reading_time_sec":61,"lang_detected":"en","images":[],"links_out":null,"markdown_source":"readability","refresh_interval":"monthly","last_fetched_at":"2026-11-25T11:10:16.416Z","next_refresh_at":"2026-12-25T11:10:16.416Z","runs_count":1,"changes_count":0,"last_changed_at":null,"fail_count":0,"last_error":null,"created_at":"2026-08-27T09:02:49.784Z","updated_at":"2026-08-27T09:02:49.784Z","inlinks":13,"inlinks_body":13,"outlinks":78,"outlinks_external":0,"anchor_terms":["Feature Flags","Feature FlagsConnect a survey to a feature flag to gather feedback on your latest ideas and tests.","Feature FlagsReact when a feature is turned on, off, or rolled out to a specific segment. Target messages or follow-ups ","Feature FlagsRoll back features that cause errors, or test fixes with slow rollouts","Feature FlagsRoll out AI features gradually and switch models without a deploy","Feature FlagsSee which feature flags are enabled for a user's session"],"template_score":"0.50000000000000000000","cash":"0.053237287603684555","cash_total":"3.786826785448252894","pagerank":"0.0221803468663313","is_orphan":false,"link_confirmed":true,"discovered_wave":0,"embedded_hash":null,"embedded_at":null,"domain_name":"PostHog","brand_color":"#a1b97a","domain_rank":485,"spam_score":9,"markdown":"## What does it do?\n\nFeature Flags let you turn features on or off for specific users, groups, or percentages of traffic without redeploying code. Create a flag, check it in your app, then control who sees what from PostHog – phased rollouts, kill switches, multivariate variants, JSON payloads, and beta opt-ins. When something breaks, flip it off. When it works, roll it out wider and measure the impact in analytics and session replay.\n\n## Who is it for?\n\n![A hedgehog toggling a feature flag](https://res.cloudinary.com/dmukukwp6/image/upload/v1/posthog.com/src/components/Product/hogs/feature-flags-hog)\n\n## How do I use it?\n\n## Key features\n\n## AI prompts\n\nAsk PostHog AI to create flags, explain targeting, and clean up stale ones. Works in [PostHog AI](https://posthog.com/ai) (in-app chat), [PostHog Desktop](https://posthog.com/desktop) (our AI code editor), and in your product editor (using the MCP). Already signed in? Click a prompt to try it.\n\n### Createcreate-feature-flag\n\n### Updateupdate-feature-flag\n\n### Inspectfeature-flag-get-definition\n\n### Test evaluationfeature-flags-test-evaluation-create\n\n### Blast radiusfeature-flags-user-blast-radius-create\n\n### Clean upfeature-flags-status-retrieve\n\n### Schedule changesscheduled-changes-create\n\n## Install\n\nSDKs for web, mobile, and backend – or evaluate flags over the API.\n\n## Feature comparison\n\n## Get started – free\n\nNo credit card required. You get the **first 1,000,000 requests free every month,** then pricing starts at **$0.0001/request** and reduces with volume.\n\n### Install with AI\n\nRun this command in your terminal or AI editor.\n\n```\nnpx -y @posthog/wizard@latest\n```\n\nSupports Next.js, React, Python, and\n\n### Install without AI\n\nSign up for a free account and follow the install instructions for your stack.\n\n[Get started - free](https://us.posthog.com/signup)","storage":{"htmlKey":"stealpage/html/posthog.com/pg_gmb93uoz0py8/run_z5rrg5iqso6n.html.gz","markdownKey":"stealpage/md/posthog.com/pg_gmb93uoz0py8/run_z5rrg5iqso6n.md.gz"},"facets":null,"assets":[{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/feature_flags_f536371cce.jpg","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":true,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_1780,q_auto,f_auto/9000_hogzilla_359a450fb3.png","r2_key":null,"alt":"","caption":null,"width":1780,"height":868,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_2967,q_auto,f_auto/9000_monopoly_light_6614a8a5d5.jpg","r2_key":null,"alt":"","caption":null,"width":2967,"height":1463,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_1582,q_auto,f_auto/9000_monopoly_dark_26c85ccad8.jpg","r2_key":null,"alt":"","caption":null,"width":1582,"height":780,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_997,q_auto,f_auto/office_cc4ae8675f.png","r2_key":null,"alt":"","caption":null,"width":997,"height":858,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_800,q_auto,f_auto/9000_hedge_light_42c729131e.png","r2_key":null,"alt":"","caption":null,"width":1555,"height":1262,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/w_800,q_auto,f_auto/9000_hedge_dark_b36706e924.png","r2_key":null,"alt":"","caption":null,"width":1555,"height":1262,"is_hero":false,"zone":"unknown"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/demo_light_2008b30494.png","r2_key":null,"alt":"","caption":"Demo","width":62,"height":43,"is_hero":false,"zone":"nav"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/demo_dark_6f25a1ecb2.png","r2_key":null,"alt":"","caption":"Demo","width":62,"height":43,"is_hero":false,"zone":"nav"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/screenshot_feature_flags_light_6a7b1dfc70","r2_key":null,"alt":"Feature flags screenshot","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/screenshot_feature_flags_dark_f091ddfb9b","r2_key":null,"alt":"Feature flags screenshot","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/FEATURE_FLAGS_hog_95e008723c","r2_key":null,"alt":"A hedgehog toggling a feature flag","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/v1/posthog.com/src/components/Product/hogs/feature-flags-hog","r2_key":null,"alt":"A hedgehog toggling a feature flag","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/mcp_example_light_cf355dbe0d","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/mcp_example_dark_c535f2d8b4","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/v1/posthog.com/src/components/Product/FeatureFlags/images/multivariate","r2_key":null,"alt":"Multivariate feature flags","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/business_hog_adb9cf3c35","r2_key":null,"alt":"A hedgehog in a suit deciding who gets the flag","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/js.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/frameworks/nextjs.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/react.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/docs/integrate/frameworks/angular.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/astro_icon_dark_23a13977ad.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/frameworks/docusaurus.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/frameworks/gatsby.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/frameworks/nuxt.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/remix_letter_glowing_49183adce2.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/docs/integrate/frameworks/svelte.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/logo_color_600_391d28faae.png","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/frameworks/vue.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/Android_robot_bec2fb7318.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/flutter.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/ios.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/kmp.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/nodejs.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/python.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/ruby.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/elixir.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/go.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/java.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/php.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/rust.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/docs/integrate/frameworks/django.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/docs/integrate/frameworks/flask.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/docs/integrate/frameworks/laravel.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/Phoenix_Framework_81f5da0296.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/rails_581d31c82d.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/f_png,h_20,w_20,c_fill,g_auto,q_auto/docs_and_wizards_c5bcdfd8d7?_a=AXAH4nI0","r2_key":null,"alt":"Wizard & Docs mini crest","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://res.cloudinary.com/dmukukwp6/image/upload/v1730806653/feature_flags_150eb811c6.png","r2_key":null,"alt":"Feature Flags team crest","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"}],"shots":[{"viewport":"mobile","width":390,"height":844,"r2_key":"stealpage/shots/posthog.com/pg_gmb93uoz0py8/run_z5rrg5iqso6n-mobile.png","phash":"b02f0ec8a8e6090f","visual_delta":null,"captured_at":"2026-11-25T11:10:23.613Z"},{"viewport":"desktop","width":1440,"height":900,"r2_key":"stealpage/shots/posthog.com/pg_gmb93uoz0py8/run_z5rrg5iqso6n-desktop.png","phash":"0323262323392009","visual_delta":null,"captured_at":"2026-11-25T11:10:22.914Z"}],"history":[{"id":"run_z5rrg5iqso6n","started_at":"2026-11-25T11:10:16.412Z","http_status":200,"fetcher":"direct","changed":false,"diff":null,"word_count":222}],"citedBy":[{"id":"pg_ros_uzqbuuau","url":"https://posthog.com/session-replay","title":"Session Replay – Record and watch user sessions | PostHog","anchors":["Feature FlagsSee which feature flags are enabled for a user's session"],"zone":"main"},{"id":"pg_tgqauszyuclq","url":"https://posthog.com/self-driving","title":"Self-driving – Proactive fixes from product data | PostHog","anchors":["Feature Flags"],"zone":"main"},{"id":"pg_5phwzcecs9tj","url":"https://posthog.com/web-analytics","title":"Web Analytics – Privacy-friendly website analytics | PostHog","anchors":["Feature Flags"],"zone":"main"},{"id":"pg_gr_3sa8sozut","url":"https://posthog.com/products","title":"Products – PostHog","anchors":["Feature Flags"],"zone":"main"},{"id":"pg_qyahn5mzpueb","url":"https://posthog.com/surveys","title":"Surveys – Collect product feedback with PostHog","anchors":["Feature FlagsConnect a survey to a feature flag to gather feedback on your latest ideas and tests."],"zone":"main"},{"id":"pg_q4cmvb4hm1sx","url":"https://posthog.com/ai-observability","title":"AI Observability – LLM tracing, evals, and costs | PostHog","anchors":["Feature FlagsRoll out AI features gradually and switch models without a deploy"],"zone":"main"},{"id":"pg_h3o8ejrq0bzn","url":"https://posthog.com/workflows","title":"Workflows – Automate emails and messages from user behavior","anchors":["Feature FlagsReact when a feature is turned on, off, or rolled out to a specific segment. Target messages or follow-ups "],"zone":"main"},{"id":"pg_wgkvlqtxi9v_","url":"https://posthog.com/error-tracking","title":"Error Tracking – Error monitoring and alerts | PostHog","anchors":["Feature FlagsRoll back features that cause errors, or test fixes with slow rollouts"],"zone":"main"},{"id":"pg_r252fllprodd","url":"https://posthog.com/","title":"PostHog – Your product’s context layer","anchors":["Feature Flags"],"zone":"main"}]}