SaaS speed. Your code. 0 % of your revenue.
The subscription commerce engine for AI-built stores: your agent changes the offer and checkout in your code, while subscriptions, renewals and payment recovery come built in.
The subscription commerce engine for AI-built stores: your agent changes the offer and checkout in your code, while subscriptions, renewals and payment recovery come built in.
Open source · Apache-2.0 · Stable 1.x · npm 1.4.0 · in production at velipet.com
Subscriptions are the business, so OpenLup gives you the whole engine, in your code, with no app fee and no revenue share.
Six things decide a subscription store, in this order. Pick an alternative and see where it gives way.
OpenLupShopify Plus + RechargeWooCommerce + SubscriptionsMedusaBuilt from scratch with an agent + StripeNext
| 1 · Speed with your agent | 2 · Margin kept | 3 · Subscriptions built in | 4 · You own it | 5 · Upgrades, no forks | 6 · Buying agents | |
|---|---|---|---|---|---|---|
| Shopify Plus + Recharge | 2 | 0 | 1 | 1 | 2 | 2 |
| WooCommerce + Subscriptions | 1 | 2 | 2 | 3 | 0 | 1 |
| Medusa | 1 | 3 | 1 | 3 | 1 | 1 |
| Built from scratch with an agent + Stripe | 1 | 1 | 0 | 3 | 0 | 0 |
| OpenLup | 3 | 3 | 3 | 3 | 3 | 2 |
3 the engine tells your agent what is installed and checks its changes · 2 tooling checks code against platform APIs · 1 docs or MCP for agents · 0 nothing for agents 3 0 % of revenue, no app fee · 2 a flat fee, no share of orders · 1 a share of billing volume · 0 a share of every order plus monthly fees 3 in the core · 2 a paid first-party extension · 1 a third-party app, plugin or recipe · 0 you build them 3 your code and data under an open licence · 2 your code, key parts cloud-only · 1 a rented store, data exportable · 0 closed 3 versioned packages checked before deploy · 2 the vendor upgrades on its schedule · 1 plugins and forks you merge · 0 you maintain every line, or a plugin stack carrying most known vulnerabilities 3 subscription guarantees and agent protocols shipped · 2 one of the two shipped · 1 pilots or third-party plugins · 0 nothing shipped
Card processing is left out on both paths
| Layer | Shopify Plus + Recharge | OpenLup |
|---|---|---|
| Platform | $2 300 a monthPlus, 3-year term; $2 500 on 1 year | $0Apache-2.0 |
| Share of revenue | Not publishedA variable fee on sales above a threshold | 0 %Of every order, at any volume |
| Subscriptions | $149 a month + 1.50 % + 20¢ an orderRecharge; or $499 + 1.25 % + 20¢ | In the core · 0 %Renewals, recovery, self-service built in |
| Apps around it | $15–$299 a month eachBundles, loyalty, reviews, upsell, analytics; several scale with orders | Your own codeYour agent builds what your offer needs |
| Hosting | IncludedIn the Plus fee | Your own hostingAt your provider’s price |
Plus, because custom checkout steps and your own bundle logic are Plus-only; subscriptions alone run on any plan.
70 % of revenue from subscriptions; a $45 average order. App basket: Judge.me, Smile.io, Simple Bundles, AfterSell, Lifetimely, at their listed plans for that volume. Plus at $2 300 a month; Recharge at the plan that fits the volume. The Plus variable fee is left out: Shopify does not publish it. Card processing is left out on both paths.
Then building changed. With an agent, owning the store is as fast as renting one, and the hard part is already solved.
228 pgTAP files · 2 784 test files · 247 platform migrations · npm 1.4.0
A neutral store starter to begin from; kernels for bundles, inventory, pricing, promotions, shipping, risk and company identity; and example adapters for payments, fulfilment and e-mail.
| Yours, changed by your agent | Kept working by OpenLup |
|---|---|
| Brand look and identity | Checkout to renewal, the subscription path |
| Copy, tone, configurator logic | Subscriptions, dunning, mandates, recovery |
| Taxes, carriers, fiscal rules | Messaging with schedule and observability |
| ERP, WMS, CRM integrations | Customer account and self-service actions |
| Pricing and promotion rules | Operator panel |
| Hosting choice | Payments, fulfilment, invoicing behind ports |
| Runtime, migrations, scheduler, storage |
Nothing is withheld. Limits are documented.
Agents work within explicit human authority. A human is answerable for every line.
The properties that make a codebase legible to an agent.
We built OpenLup with agents, for agents, because we needed it: building commerce had to become different and faster.
Speed is only worth it if the money holds. Here it does.
The subscription engine you build on never becomes a paid tier.
export type SubscriptionEngineErrorCode =
| "invalid_timestamp"
| "invalid_template"
| "inactive_subscription"
| "edit_window_closed"
| "line_not_found"
| "duplicate_line"
| "invalid_slide_target"
| "invalid_transition"
| "terminal_cycle"
| "missing_payment_method"
| "dunning_not_exhausted";Refusals are values. Nothing throws.
Customers get the cadence they paid for, even after a late payment.
const shiftedByDays = Math.max(0, Math.floor(
(Math.min(paidAt.getTime(), recordedAt.getTime()) - Date.parse(input.cycle.scheduledAt)) / DAY_MS,
));
const nextCycleAt = new Date(Math.max(
Date.parse(input.subscription.nextCycleAt) || 0,
Date.parse(onTimeNextCycleAt) + shiftedByDays * DAY_MS,
)).toJSON();From subscriptionEnginePayment.ts, npm 1.4.0.
Retries end on a clear rule; the subscription stays active and repairable.
if (ladderTerminatedByClass(failureClass, cadence)) return null;
const hours = cadence.backoffHours[attemptNumber - 1];
// Covers both ends at once: an attempt below 1 and an attempt past the last
// ladder slot are equally "no next charge is due".
if (attemptNumber < 1 || hours === undefined) return null;From cycleHardening.ts, npm 1.4.0.
Every lifecycle e-mail leaves through a durable outbox, and a dropped webhook is reconciled.
Every failure path is pinned: 228 pgTAP files and 2 784 test files.
A late payment moves the next delivery later, never closer, so the cadence your customer chose holds.
The next cycle is the cycle’s own scheduled date plus its cadence plus the days the payment was late, and it never moves earlier. The clamp means a replayed payment webhook cannot pull a charge forward into a window the customer already paid for.
With delivery alignment on, the next cycle starts from the latest confirmed delivery plus the cadence, and renewals wait while a parcel’s outcome is unknown, so parcels never stack up. The mode is off by default.
Retries, dunning and one-use recovery links are built in, and every ladder has a clear end.
Your next buyer may be an agent. It wants what your store already does.
When your customer’s AI agent buys, it gets the price up front, the same price at renewal, and a way out.
Will the renewal cost the same?
The renewal price is the agreed price
Every cycle charges frozen terms, locked until the customer changes them
What is the whole cost?
One total, from the server
Lines, discounts, shipping and tax in one quote; a mismatch is refused
Will a change cost what I was shown?
A change applies only at the shown price
Edits carry the accepted quote and refuse if the price moved
Can I retry safely?
Safe to retry
Every command takes a key; a retry never becomes a second order
Will anything charge without consent?
Nothing charged without consent on record
Renewals need matching mandate evidence; timing changes need confirmation
Can my person leave?
Leaving is as easy as buying
Cancel, pause, skip and resume are commands, not phone calls
Guest checkout: no account wall. Every refusal is a stable, machine-readable code.
NextProtocol adapters for buying agents, as a recipe on the same engine.
Upgrades like this used to be a SaaS privilege. Now they come with code you own: a package update in your repository, checked before it ships.
| Adapter | On npm | Lane | Proof scope |
|---|---|---|---|
| Supabase PostgreSQL (managed database) | yes | managed | Data gateway and job ledger for the managed rail. Fresh-install, upgrade and existing-store restore proofs for this rail remain partial. |
| Supabase Auth | yes | managed | Customer and operator sign-in on the managed rail. Operator sign-in smoke checks and a hosted settings readback remain open. |
| Supabase Storage | yes | managed | Blob storage binding. Serving and access proofs remain open. |
| Portable PostgreSQL (self-host and Amazon RDS recipes) | yes | portable | Local self-host recipe receipt, local store transfer and restore witnesses, and one hosted RDS PostgreSQL 16 recipe run on a single synthetic instance. No hosted transfer or recovery has run, and none of this is production qualification. |
| Neon | no | portable | No receipt yet. A Neon recipe receipt and Neon to Amazon RDS transfer and recovery are planned in the hostability round. |
| Generic OIDC and JWKS identity | yes | portable | Opt-in access-token verifier. A real-issuer lifecycle witness passed on one disposable hosted origin; no production qualification. |
| S3-compatible object storage | yes | portable and managed | Local recipe with two gateway accounts and one hosted run on a single synthetic bucket in one region. No production qualification. |
| Vercel (Node functions, scheduled jobs, Blob) | yes | managed | Blob binding and the reference default bundle with the managed database, without the Edge runtime. A Vercel host for the portable neutral store is planned in the hostability round. |
| Generic Node host and OCI image | yes | portable | Local self-host receipt and one hosted run on a single synthetic VM with restart, drain and A to B to A rollback checks. No production qualification. |
| Netlify (independent PaaS candidate) | no | portable | Candidate only, not yet measured. It is evaluated in the hostability round. |
| Resend email | yes | portable and managed | Opt-in adapter on the communications entry with offline conformance. No provider-account evidence. |
| Klaviyo marketing sync | yes | portable and managed | Opt-in adapter with offline conformance only; account verification is pending. |
| Stripe payments | yes | portable and managed | Opt-in injected-client adapter with a reference card-provider composition on the portable rail. Fake-client and offline proof only; no production qualification. Refund creation and split authorization and capture remain unavailable. |
| Tpay payments | yes | managed | Opt-in example adapter with offline conformance proof only; no production qualification. No supplied portable composition; provider-account readiness awaits TEST readback. |
| OmniPack warehouse fulfillment | yes | portable and managed | Opt-in, default-off reference example behind the neutral fulfilment port; composed on portable and managed rails. Full offline certification; installed-package PostgreSQL witness. Exact absence, label create and void, provider-side cancellation and courier pickup are not available; no live provider qualification. |
| Polish company registries (VAT whitelist, GUS/CEIDG) | no | portable and managed | Not packaged. A packaged example lookup adapter comes in the A5 adapter round. |
| External sales channels (normalized import) | yes | portable and managed | Normalized ingest contracts and bindings. Real marketplace connectors are not planned in the current programme. No real connector ships, and conversion to a physical order refuses on the portable rail. |
Proof scope as the OpenLup roadmap states it; passing conformance does not qualify a provider.
Runs where you run Node.js
TypeScript · Node.js 24 · PostgreSQL 16 · Vercel · Supabase · OCI image
Your Node.js and PostgreSQL host; providers plug in behind ports.
Three runtime bundles: Vercel with Supabase, Node with Supabase, Node with plain PostgreSQL. Support covers only the npm starter, PostgreSQL and the qualified image of a release. The starter defaults to sandbox; live providers need separate qualification. No hosting resources are supplied.
Anything published under Apache-2.0 stays open. Permanently. Open never becomes paid. In the operational layer, never in withheld code. There is no CLA, and there will not be one. AI-assisted contributions are welcome. They are not banned, and they will not be banned. Nothing in this project carries a service-level agreement. The first public OpenLup root is a mechanically derived, fresh-history subset of the pre-split development repository, not a hand-assembled copy.
Commerce is strictly additive: paid work is built on top of a stabilized open core, never carved out of it. There are no tiers. Everything the project publishes is open.
It already runs a real shop. Yours is next.
velipet.com, the author’s own subscription shop, runs on the same packages you install.
Measured on npm 1.4.0. velipet.com is the author’s shop, not an independent adopter; it adopts the published packages, and its changes go through OpenLup’s own review and releases.
Subscriptions are the business. They should not be a monthly app fee and a revenue share. I built OpenLup so a brand can own them.
Yes, on your own Node.js and PostgreSQL host, from the npm starter and the qualified application image.
As fast as your agent builds your offer: checkout, renewals and recovery already run from one npm install.
Everything published under Apache-2.0, permanently. Subscriptions, renewals, dunning, mandates, recovery and messaging will not become paid tiers.
Your brand, storefront, catalogue and offer, your market’s taxes and carriers, your ERP and CRM integrations, your hosting.
Payments, fulfilment, e-mail, auth and storage plug in behind ports, with example adapters for each and their proof scope written down.
velipet.com, the author’s own subscription shop, on the published packages.
Yes. Disclose it and stay accountable for every line. An agent opens a pull request only with a maintainer’s explicit authority.
Yes. Apache-2.0 and a fresh-history root. The name and logo are not part of the licence, so a fork takes its own name.
npm install --save-exact @openlup/core@1.4.0