Monthly visits
1,257
2026-09

dif.sh - Manage feature flags and experiments as versioned repo files

dif.sh is a CLI and SDK for defining feature flags, A/B tests, holdouts, and staged rollouts in Markdown files stored with application code. It builds a typed client, checks audience and experiment conflicts, and records learnings in Git. Optional Dif Cloud provides hosted experiment metrics and team views, billed by events.

Visit WebsiteClaim this product

0Views

Capabilities

Repo-managed flags and tests

Define feature flags, A/B tests, holdouts, and staged rollouts in Markdown files alongside application code. Git versions the files, and pull requests provide a reviewable change flow.

Typed client generation

Build a typed client and context file from experiment definitions. The application imports the generated client, which resolves variants without a production call to select them.

Experiment analysis and tracking

Track exposures and results, then inspect lift and confidence intervals in Dif Cloud. Cloud usage is metered by stored events; custom event handlers can instead forward results to Segment, Amplitude, or a warehouse.

PricingFreemium

Dif's CLI and SDK are free; Dif Cloud offers Free, Pro, and Enterprise billing based on monthly events. Compare event allowances, overage handling, history retention, and support when choosing a Cloud plan.

PlanPriceIncluded features and limits
Free

$0 per month

  • 10,000 events monthly per workspace; no card required

  • Unlimited seats and projects

  • Full experiment analysis

  • New events drop above the allowance until reset or upgrade

Pro

$50 per month

  • 1 million events monthly per workspace, then $0.02 per 1,000 events

  • Unlimited seats; events pooled across projects

  • 90-day raw event history; aggregated results kept forever

  • Spend cap and usage alerts enabled by default

  • Email support

Enterprise

Custom volume pricing

  • Negotiated event allowance and retention

  • Special event pricing

  • SSO / SAML, audit logs, and role policies

  • Dedicated infrastructure and region pinning

  • SLA, security review, and invoicing

Annual billing gives two months free on Pro and Enterprise. Aggregated results are retained forever on every plan; raw event retention varies by plan.

Use cases

Manage flags and staged releases

When a software team needs to control a feature release, define its flag or staged rollout in a Markdown file in the application repository. Build the client and use the flag from application code, with changes versioned in Git.

Run and conclude A/B tests

When a team is comparing variants, define audience rules, metrics, and variants in an experiment file, then build and track exposures and results. Review Cloud analysis if enabled, and conclude the test by archiving its file and recording a decision.

Limitations

  • Dif Cloud Free drops new events after 10,000 events per workspace in a month until the month resets or the workspace upgrades.

  • Dif Cloud Pro meters events above its included 1 million events per workspace per month at $0.02 per 1,000 events, subject to the spend cap.

  • Dif Cloud Enterprise uses negotiated event allowances and retention, so its volume pricing is custom.

dif.sh alternatives

DeployRamp

Automate safer feature-flagged deployments

DeployRamp uses AI to scan pull requests for risky code changes, suggest feature flags, and manage staged rollouts. It monitors errors and other signals, pauses or rolls back when thresholds are breached, and opens a cleanup pull request after a stable 100% rollout. It integrates with GitHub, GitLab, and Bitbucket and provides SDKs for multiple programming languages.

  • Self-hosted
  • Contact Sales
  1. FeatBit

    Control feature releases and recover without redeploying

    Foundation · $0, free forever
  2. diffray

    Multi-agent AI code review for Git pull requests

    Solo · $10/month
  3. SplitHub

    Analytics and experiments for websites and apps

    Start for $0 · $0, ongoing
  4. WhatTheDiff

    Simplifying your pull request process

    Freemium
  5. Upstream

    AI feature flags that monitor rollouts and act on changing signals

    Free · $0, free forever

Who it is for

  • Software teams managing flags and tests alongside application code

  • Product and engineering teams that need reviewable experiment decisions in Git

FAQ

Can I use dif without Dif Cloud?

Yes. The CLI and SDK are free and open, and experiments can run from the repository. Dif Cloud is an optional hosted layer for live metrics and team views.

What counts as a billable event?

An SDK-recorded exposure and each result sent through dif.track() each count as one event. Batches are billed by stored rows, while deduplicated retries and rejected payloads are not billed.

What happens when a plan's event allowance is exceeded?

On Free, new events are dropped after 10,000 per workspace per month until reset or upgrade. Pro meters events over 1 million at $0.02 per 1,000; its spend cap limits the bill and ingestion at the cap sheds events.

Comments

Please sign in to leave a comment.
No comments yet. Be the first to share your thoughts!