feat(kiloclaw): update billing pricing and trial duration#1289
Open
jeanduplessis wants to merge 1 commit intomainfrom
Open
feat(kiloclaw): update billing pricing and trial duration#1289jeanduplessis wants to merge 1 commit intomainfrom
jeanduplessis wants to merge 1 commit intomainfrom
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (17 files)
Reviewed by gpt-5.4-20260305 · 2,064,363 tokens |
- Trial: 30 days → 7 days for new users (existing trials keep stored end date) - Standard plan: $25/mo → $9/mo with $4 first month via Stripe coupon - Commit plan: $54/6mo → $48/6mo - Remove promo codes from Standard plan (replaced by first-month coupon) - Adjust trial warning thresholds from 5 days to 2 days - Add migration script for existing subscribers (next billing cycle) - Update spec with changelog preserving historical values
dec2dc2 to
b19d63b
Compare
RSO
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates KiloClaw billing to reflect new pricing and trial conditions. No users have been charged on the current pricing yet.
trial_ends_atdate since it's computed at creation time.discounts: [{ coupon }]at checkout). Promotional codes removed from Standard checkout (Stripe doesn't allowdiscountsandallow_promotion_codestogether).claw_trial_5dto avoid re-notifying users who already received the old 5-day warning.src/scripts/d2026-03-19_migrate-kiloclaw-prices.tsfor 14 existing subscribers — updates Stripe subscriptions withproration_behavior: 'none'so new prices take effect at next billing cycle with no immediate charge.New env var required:
STRIPE_KILOCLAW_STANDARD_FIRST_MONTH_COUPON_ID. Existing env varsSTRIPE_KILOCLAW_STANDARD_PRICE_IDandSTRIPE_KILOCLAW_COMMIT_PRICE_IDmust be updated to new Stripe price IDs at deploy time.Verification
pnpm typecheck— 0 errorsoxlint— 0 warnings, 0 errorsoxfmt --list-different— no formatting issuesVisual Changes
Reviewer Notes
STRIPE_KILOCLAW_STANDARD_FIRST_MONTH_COUPON_IDenv var will hard-fail checkout if missing (intentional — matches existing pattern for price IDs).claw_trial_5demail log key is intentionally not renamed toclaw_trial_2dto preserve idempotency for existing trial users who already received the 5-day warning.proration_behavior: 'none'and dry-run by default. Must be run after env vars are updated. Also handles subscriptions with pending schedule changes (plan switches).ascast in test: The test file usesas Record<string, unknown>on mock call args — this is the existing test pattern for accessing untyped mock arguments.