Articles
Articles
Practical writing on selling software directly: pricing, licensing, payments and keeping customers happy.
About Clavem
Developers
- How to check for updates in a desktop app: version comparison, cadence and entitlementBuild an update check for a desktop app. Compare versions correctly, choose a cadence, send the license key safely and handle expired licenses and bad releases.
- How to license a CLI tool without breaking CI, containers or scriptsLicense a command-line tool. Where to keep the key, why CI runners should validate without activating, how to cache checks, and which exit codes to return.
- How to license a Tauri app: Rust checks, two key pairs and the updaterAdd license keys to a Tauri app. Keep the check in Rust, tell the updater key from the license key, verify tokens offline and decide how updates reach buyers.
- How to license an Electron app: where the check runs, where the key livesDesign a license check for an Electron app. Main process versus renderer, safeStorage on each OS, Ed25519 verification, fingerprints, test licenses and updates.
- License API design: the Lemon Squeezy, Keygen and Clavem styles comparedHow license APIs differ in shape, errors and status codes, compared with real responses, plus ten design rules for building your own license server.
- Licensing AI and local LLM apps: what to protect, how to tier, how to stay offlineLicense a local LLM or AI desktop app. Separate your app license from model licenses, tier plans with signed tokens, and keep privacy-minded users offline.
- Licensing offline-first apps: three policies for the 14-day window, comparedHow long should an offline-first app trust a stored license token? Three policies compared for perpetual and subscription licenses, plus air gaps and outages.
- Manage software licenses with an AI assistant: what MCP adds and what to keep manualUse an AI assistant with MCP to look up, issue, extend and revoke licenses: what suits an agent, what needs a human and how to limit the risks of the key.
- Privacy-friendly analytics for desktop and mobile apps: what to measure, what to leave outMeasure a paid app without tracking people: what license data already tells you, six events worth sending, rotating-salt hashing and what never to log.
- Selling an app built with AI coding tools: what to review, what to buy and what you ownBefore charging for an app written with AI assistants, check ownership, the billing and license code, secrets in the bundle, and what to buy instead of generate.
- Update prompts and release notes: when to ask, what to say, how not to nagDesign the update prompt in a licensed desktop app: a decision function, notes that say something, wording when a license cannot download, and beta channels.
Lemon Squeezy
- How to export license keys, devices and expiry dates from Lemon SqueezyThe Lemon Squeezy order export has no license keys. Pull keys and device activations through the API with a Node script, and check the CSV before you import.
- Lemon Squeezy is shutting down: what software sellers should do before 31 March 2027Lemon Squeezy stops processing on 31 March 2027. The dates, what breaks first for license keys and installed apps, what each option costs, and a checklist.
- Migrate license keys without breaking shipped appsMove license keys to a new service without breaking installed apps: what to import, a dual-host fallback, the id checks that fail after a move, and the order.
Licensing
- Grace periods for expired licenses: the four layers and how they stackA license can get grace from Stripe retries, a server margin, an offline token window and your app. Worked timeline, code and a policy table by license type.
- How many devices should one software license cover?Pick a device limit by product type, see what the API does at the limit, and work out when an honest buyer runs out of seats. Includes real responses.
- How to reduce software piracy without annoying paying customersA layered, low-friction approach to license protection for indie software. What each layer stops, what it costs honest buyers, and what to skip.
- License key security mistakes that let people bypass your licensingTwelve mistakes in license key design and checking, from short keys to trusting HTTP 200, with entropy arithmetic, a fix for each and the rate limits to know.
- License transfers between computers: new machine, dead machine, new ownerHow to let buyers move a license to a new computer, what to do when the old one is gone, and a policy for passing it to someone else, with real API responses.
- Lost license keys: how to let buyers recover them without leaking themDesign a recovery flow for lost license keys: order page links, resend, a safe lookup by email on your server, what to avoid and a support reply to copy.
- Machine fingerprinting for software licenses: what to use and what goes wrongWhich machine identifiers to use on macOS, Windows and Linux, how each behaves on reinstalls, clones and hardware changes, and how to hash and send them safely.
- Offline license checks explained: how an app verifies a license without the internetHow signed license tokens work, decoded from a real response, verified in Node, with the four states an app must handle and the limits of offline checks.
- Open-core licensing: choosing a license and deciding what the key actually protectsChoose between MIT, AGPL, BSL and FSL for an open-core product, and put license keys on a separate commercial module, with a node-count model for self-hosting.
- Seat-based licensing for teams: one key per person, one team key, or your own accountsThree ways to license software for teams with license keys and Stripe quantities. Compares leavers, seat changes and plan limits, with worked numbers for each.
- Should you build your own license server, or use a service?Build versus buy for software licensing, with an itemised component list, the device-limit race condition and when a homemade server is the right call.
- Site licenses for companies: how to price them, cap them and audit themSell one license key to a whole company. Pricing bands worked through, a device cap instead of unlimited, an audit of activations and a renewal routine.
- Why sign license responses: a fake server attack, run on localhostAn unsigned license check believes any server that says valid. A run-it-yourself demo shows a fake server beating one and failing against signed tokens.
Mac and Windows
- How to notarize and distribute a Mac app outside the App StoreDeveloper ID signing, notarytool, stapler and spctl commands in order, plus a table of the errors Apple's notary service returns and the fix for each one.
- How to sell Mac apps outside the App StoreWhat direct Mac distribution requires (Developer ID, notarization, payments, license keys, updates) and a worked fee comparison against the Mac App Store.
- How to sell Windows software directly: code signing, SmartScreen and installersWhat Microsoft documents about SmartScreen, which code-signing options exist in 2026, how EV and Artifact Signing compare, and how to ship installers.
Payments and Stripe
- Does Stripe generate license keys?Stripe has no license-key feature. See what it does offer (Entitlements, metadata, Apps), why none replace a key, and what Stripe Managed Payments leaves out.
- Failed subscription payments: Smart Retries, past due and what a license doesHow Stripe retries failed subscription payments, which declines are never retried, and what a license does while a subscription is past due, unpaid or canceled.
- How to add license keys to Stripe paymentsThree ways to issue a license key after a Stripe payment, the exact webhook flow, and the failure modes to handle, from async payments to unmapped prices.
- Merchant of record vs Stripe: what changes for software sellersWhat a merchant of record does, how its fees compare with Stripe at $2k, $10k and $50k a month, and what you give up: checkout control and eligibility.
- Stripe customer portal for software subscriptionsWhat Stripe's customer portal handles for software subscribers, what it cannot (keys, devices, downloads), and how each portal action reaches a license.
- Stripe Managed Payments for software sellers: eligibility, limits and what it leaves to youWhat Stripe Managed Payments covers for software, who qualifies, which integrations it blocks, and the jobs it leaves to you, such as keys and downloads.
- Stripe webhooks for license fulfilment: the events, the signature check and the trapsThe six Stripe events that drive license keys, a signature check you can run, and how retries, duplicates and out-of-order delivery should shape your handler.
- Subscription licenses with Stripe Billing: which event changes which licenseMap Stripe Billing subscription statuses and webhook events to license states, with expiry dates worked through and edge cases for trials and refunds.
Pricing
- Educational and volume discounts for software: Stripe coupons, tiers and seat keysSet up student and bulk pricing with Stripe coupons, promotion codes and tiers. Includes a 1, 5, 25 and 100 seat price table and the volume pricing cliff.
- Free trial vs freemium for paid software: mechanics, abuse and conversion mathHow to build a time-limited trial or a free tier, where the state lives, how people reset trials, and what Stripe trial periods do to a license.
- How to price a desktop app: a worked example with fees, refunds and supportPrice a desktop app from the buyer's side, then test it against Stripe fees, refunds and support time. Worked numbers for $9 to $299, plus a tier ladder.
- Lifetime deals for software: pros, cons and the break-even mathWhen a lifetime price works, how many months of subscription it should equal, what lifetime customers cost in support and license limits, and how to word it.
- One-time purchase vs subscription for software: revenue per customer over 36 monthsCompare a $79 license, a $6 monthly plan and a $59 annual plan over 36 months with stated churn, Stripe fees, cash flow and how each maps to a license.
- Payment fees for software sellers: Stripe, Paddle, Polar, Creem, Dodo and Gumroad on one saleCompare published fees for selling software on one $49 sale and at 20, 100 and 500 sales a month, with the tax work each option does or leaves to you.
- Upgrade pricing for major versions: five models, the math and how to license eachCharge for version 3 without upsetting version 2 owners. Five models, discount math, Stripe promotion codes and one license product per major version.
Selling software
- How to deliver software downloads after paymentSix ways to hand a buyer the installer after a Stripe payment, signed expiring links you can build in 20 lines, and why a success page is not enough.
- How to sell software online with StripeA practical path from Stripe account to paying customer: which checkout to use, which Stripe objects and events matter, and what Stripe leaves for you to build.
- Launch checklist for paid software sold with Stripe and license keysA launch checklist for software sold with Stripe and license keys. Each item says how to verify it, and the test-to-live switch gets its own section.
- Refunds for software: policy, Stripe fees and what happens to the licenseHow to write a refund policy for software, what a refund costs on Stripe, how it differs from a chargeback, and what should happen to the license key.
- Selling games outside Steam: itch.io, your own store and license keysCompare itch.io and your own Stripe store for selling a game. Fees on a worked example, who handles tax, download storage maths and how to license offline play.
- Selling plugins and extensions: what each marketplace allows and how to license themWhich stores can charge for plugins and extensions, which cannot, and how to check a license key from inside a WordPress, browser, VS Code or JetBrains plugin.
- Selling software to businesses: tax IDs, invoices, security questions and hand-made licensesWhat changes when a company buys your software: tax IDs in Stripe Checkout, selling on invoice, security questions and hand-made licenses.
- Support for license issues: what each error means and what to tell the customerEvery license error a customer can see, with the real response text, the cause, the fix and a short reply to send. Includes which typos the API forgives.
Tax and legal
- Code signing certificates explained: Windows, macOS and the four signatures in a licensed appWhat code signing does on Windows and macOS, why EV no longer bypasses SmartScreen, the 460-day certificate limit and how it differs from a license token.
- EU VAT for software sellers: what to charge and where to registerHow EU VAT works for software sold to private buyers: the 10,000 euro threshold, One Stop Shop registration, quarterly returns, rates and a worked example.
- Selling software from Switzerland: Stripe fees, the CHF 100,000 VAT threshold and where data sitsWhat a Swiss software seller should know: Stripe fees in francs, when Swiss VAT registration starts, Managed Payments eligibility and where Clavem keeps data.
- Tax basics for indie software sellers: where you owe VAT, GST and sales taxWhere tax on software sales is owed, which thresholds trigger registration, and how a merchant of record, Stripe Tax and self-filing compare, with costs.
- Terms for selling software online: what goes in, and how to show them at checkoutWhat to put in terms of sale for downloadable software or a subscription, including refunds and renewals, and how to collect agreement in Stripe Checkout.
- Writing an EULA for paid software: the clauses that must match your license systemWhat a software EULA should say, which clauses must match your device limits and expiry, sample wording, and how to record that the customer agreed.