From 6790a7b8fe74bf407816cc36265fae13fece2d44 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 12 Jun 2026 20:01:05 -0700 Subject: [PATCH] [eric] free-trial: default the trial ON now that the cloud is live on prod and arming is verified --- backend/apps/subscription/free_trial.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/apps/subscription/free_trial.py b/backend/apps/subscription/free_trial.py index 91047875..cd897293 100644 --- a/backend/apps/subscription/free_trial.py +++ b/backend/apps/subscription/free_trial.py @@ -30,11 +30,12 @@ _FP_SALT = "openswarm-free-trial-v1" def _enabled() -> bool: - # Default OFF: the cloud free-trial proxy is staging-only, so on a shipped - # build arming would 404. Flip to "1" once the cloud ships to prod and the - # packaged-build fingerprint is verified. Off = the reorder gate falls back - # to today's connect-model-first onboarding (no regression). - return os.environ.get("OPENSWARM_FREE_TRIAL_ENABLED", "0") == "1" + # Default ON as of 1.2.80: the cloud free-trial proxy is live on prod + # (api.openswarm.com) and arming + metered Haiku were verified end to end. + # Set OPENSWARM_FREE_TRIAL_ENABLED=0 to force it off. The pool-shed gate + + # daily global budget on the cloud cap total spend; arming only happens for a + # truly-unconnected user (no key, no sub), so paid users are never touched. + return os.environ.get("OPENSWARM_FREE_TRIAL_ENABLED", "1") == "1" def _raw_hardware_id() -> str | None: