Offer your app to customers
You built an app and want other organizations to run their own instances of it, each with its own data, without installing anything themselves. A deployment is how: your list of the apps you offer on a cluster, each pinned to one installed release. A customer creates an instance from your offer; the instance is theirs (their organization, their members, their data), and its usage is billed to you as its developer.
Read it from the left: you own the deployment and decide what it offers and
which secret values it holds; each instance, and every app its release creates
with it, lives in a customer’s organization and is theirs, while its usage
names you as developer and them as org.
This guide uses meroctl deployment (reference);
each command names the route it calls, so the same steps work from any client.
A deployment is named by its id or by its name. Every change below asks for a
passkey step-up (412 CONFIRM_REQUIRED first). On a development cluster, --dev-passkey FILE
answers it; on a production cluster the step-up is a passkey in a browser:
call the same routes from mero-js with { confirm: passkeyConfirm(browserPasskey()) },
as in Deploy from CI. The protocol behind each step
is in Deployments.
Before you start
Section titled “Before you start”- A signed release in the cluster’s registry. Build and sign it as in Packaging & signing.
- Who owns the deployment. Your account, or an organization in which you
hold
MANAGE_APPLICATIONorganization-wide (its owner and admins do). Whoever holds that capability there manages the deployment with you. - On a granted cluster, a deployer grant. Where the cluster’s deployments
are
granted, installing a release, creating a deployment and offering an app each need a live deployer grant: your account’s, or your organization’s. The operator (or the cluster’s owner) grants it; without it these answer403 DEPLOY_NOT_GRANTED. On anopencluster nothing is needed. - Bind your package’s signing key (recommended). Until you do, each customer’s organization approves which node images hold its instance. Binding makes your organization the publisher for every customer’s instance.
1. Install the release
Section titled “1. Install the release”meroctl package install chat@1.0.0The node fetches the release from the registry, verifies its signature and its pinned signer, and records it as installed by you.
From the app’s crate, meroctl app release --version 1.0.0 --key release.key --publish does the build, the signing, the push to the registry and this
install in one step, and refuses a version that is not newer than the
releases of the package the cluster has; on a development cluster, without
--publish, it uploads the .mpk instead.
2. Create the deployment
Section titled “2. Create the deployment”meroctl deployment create Chat --owner org:<org-id> --dev-passkey ./dev-passkey.json# { "id": "3f2a…", "deployment": { … }, "host": "lprf….apps.example.com" }--owner is org:<id>, account:<id>, or account for your own
(POST /deployments, owner {"org": "<id>"} or {"account": "<id>"}). The name is what
customers see. The id comes from your passkey consent, and host is the
deployment’s own frontend host. An owner has at most 16 deployments.
An organization owns a deployment only while it holds a
recovery key, so losing every passkey never
locks the deployment and its customers: set one first (POST /orgs/{org}/recovery { publicKey }, or recoveryKey when creating the organization) and keep its seed
offline, else creating the deployment is 409 RECOVERY_KEY_REQUIRED. While the
organization owns a deployment, the key can be rotated but not removed.
3. Offer a release
Section titled “3. Offer a release”meroctl deployment offer Chat chat 1.0.0 --package chat --dev-passkey ./dev-passkey.json(POST /deployments/{id}/apps { app, package, version }; once chat is
offered, a later offer may leave out --package.)
app is the name of the entry in your deployment; it offers exactly one
release. Offering the same app again with another version of the same
package moves the entry, and new instances get that release from then on.
Instances already created keep the release they run (see
Shipping a new version). A deployment holds at most
64 apps, and an offered release cannot be uninstalled.
Supply the secrets your release declares
Section titled “Supply the secrets your release declares”If the release declares secrets ([package.metadata.calimero.secrets.NAME],
Outbound requests), you can supply their
values once for every instance created from the deployment, so customers need
not:
meroctl deployment secret set Chat NEAR_AI_API_KEY --dev-passkey ./dev-passkey.json < near-ai.key# { "deployment": "3f2a…", "name": "NEAR_AI_API_KEY", "fingerprint": "9c1e…", … }meroctl deployment secret list ChatThe value is read from stdin, or typed at a prompt that does not echo it,
never from the command line (PUT /deployments/{id}/secrets/{name} { value }).
The node fills it only into a request to that secret’s declared hosts, for an
instance whose release declares the name; an instance that sets its own value
(PUT /apps/{app}/secrets/{name}) uses that instead, and without either the
operator’s applies. It is never shown again: the listing gives each value’s
fingerprint, who set it and when. meroctl deployment secret clear Chat NEAR_AI_API_KEY removes it. A name no release you
offer declares is refused (404 UNDECLARED_SECRET).
If your release uses another app (uses, say Private Inference, which declares
NEAR_AI_API_KEY), you can set that app’s secrets on your deployment too: the
apps your instances create with it then use your value, and the listing names
the release that declares it (declaredBy) and your app that uses it (apps).
A release installed before the cluster ran 1.0.0-rc.32 needs installing again
first, so the node records what it uses.
The value goes from your passkey into the system log once; after that it is read only by the outbound gate, for a run whose release declares the name, and leaves the node only toward that secret’s declared hosts.
Your values reach only the code you offer: the node fills one only for a run of a release of a package your deployment offers, or one a release you offer uses (any version: only its publisher signs releases of it), and an instance cannot be moved onto any other code (see Shipping a new version). Otherwise a customer could install a package of their own declaring the same name for a host they control and upgrade their instance to it.
4. Share the frontend
Section titled “4. Share the frontend”The release’s frontend opens at your deployment’s release on two addresses:
- The deployment’s host,
https://{host}/(from step 2):/redirects to/{version}/?deployment={id}of the release you offer. It serves a frontend only while the deployment offers one package; with none or several, it answers404. - The package’s own host,
https://{label}.<apps-domain>/d/{id}/, which redirects the same way.
Both keep the query string, so an invite link such as /?invite=… reaches
the page. GET /deployments/{id} is public: your frontend reads it to show
the deployment’s name, its owner’s name and what it offers, never its
managers or customers. See Deployment hosts.
5. A customer creates an instance
Section titled “5. A customer creates an instance”On your frontend, the customer signs in (or signs up) with a passkey. The session is bound to your package, and may create instances of it. Your frontend sends:
POST /apps{ "deployment": "<id>", "package": "chat", "org": "<their-org>", "name": "Support chat" }The instance runs the
release you offer (a version, if given, must be it), whether or not the
customer could see that release otherwise, and without a deployer grant:
nothing is installed. The customer needs what creating any instance in their
organization needs (CREATE_APP there, or admin); with no org, it goes
where the offered release’s instanceOrg says (their only organization, or a
new one made with it). The instance records the deployment, and the
log checks again, where CreateApp applies, that the deployment exists and
offers that release.
From then on the instance is the customer’s: its owner and organization decide who reaches it, and you have no path into its data.
6. See who uses it
Section titled “6. See who uses it”meroctl deployment orgs Chat{ "deployment": "3f2a…", "orgs": [{ "orgId": "…", "name": "Globex", "memberCount": 14, "activeMembers30d": 9, "instances": 2, "apps": [{ "app": "chat", "version": "1.0.0" }], "firstCreatedAt": "2026-11-02T09:12:44Z" }], "outsideOrgs": 3}For the deployment’s managers only, from an unbound session (your app’s own
frontend session cannot read it), on fresh state: each customer organization
with instances from this deployment, how many, which of your apps and the
releases they run, and two counts of people. meroctl deployment usage Chat --by org --csv writes the same as one CSV row per organization. Never who the members are,
teams, instance names or data. Another deployment’s customers never appear, even on
the same release. meroctl deployment list (GET /deployments) lists the deployments you manage.
Who is billed
Section titled “Who is billed”Each instance’s usage series carries two labels (Usage metering):
org, the payer: the customer’s organization. Its quotas count the instance’s files and compute runs, and the instance counts against its owner’s app quota.developer: who Calimero Cloud bills, the deployment’s owner (your organization’s id, oraccount:<id>). An instance created without a deployment has its organization as developer. When your release creates other apps with each instance (useswithmode = "create"), each of them is created from your deployment too and billed to you the same way, and deleting the instance deletes them.
A cluster may cap a developer’s fuel per day (maxFuelPerDeveloperPerDay),
summed over every instance of your deployments: past it, client calls to
them answer 429 QUOTA_EXCEEDED until the next UTC day. GET /auth/usage
(your account) and GET /orgs/{org}/usage (your organization, for its
admins) show today’s developerFuelToday and developerWritesToday: one
total for the developer over every deployment, not per customer organization,
and no earlier days.
Shipping a new version
Section titled “Shipping a new version”The whole way, from your signed release to the people who use your customers’ instances and the updates they take:
Offering a newer release (step 3 again) changes what new instances get.
You decide which release your customers’ instances run: an instance created
from your deployment moves only to the release the deployment offers for its
app, and only once you offer it. Its owner accepts that upgrade or not (it is
their data), but cannot pick another version, another package or a raw bundle
(409 OUTSIDE_DEPLOYMENT). Existing ones move by an upgrade, which only the
owner and admins of the customer’s organization approve, whatever the release’s
manifest declares (upgrades: owner | publisher): never you, and never another
member of theirs (App upgrades).
Your customers never use a console: build the offer into your app. Its frontend
reads GET /apps/{app}/update, which answers the release you offer once it
differs from the one running (available, source: deployment), whether the
person may approve it (mayApprove) and who does (approvers). For a person
who may, it opens the consent page with
{ "kind": "upgrade", "subject": { "app": "<appId>" } }: naming no version
asks for your offer, which the page shows and the person approves with their
passkey, though they never installed that release. For anyone else, tell them
an owner or admin of their organization can update it.
A publisher run
(POST /orgs/{org}/packages/chat/upgrade { version }) moves only the instances
of the organizations its starter is an owner or admin of: your own, not your
customers’.
Withdrawing an offer
Section titled “Withdrawing an offer”meroctl deployment withdraw Chat chat --dev-passkey ./dev-passkey.jsonmeroctl deployment delete Chat --dev-passkey ./dev-passkey.jsonWithdrawing is refused while any instance created from this deployment still runs a release of that app’s package: a customer’s instance is never left pointing at an offer that is gone. The release stays installed. A deployment is deleted once it offers nothing and no instance came from it, and an organization that owns a deployment cannot be deleted before it.
Handing a deployment over
Section titled “Handing a deployment over”A deployment moves to another owner (an organization or an account) in two steps, each with that side’s passkey. For an organization’s deployment, its owner or an admin offers it:
meroctl deployment transfer Chat --to org:<their-org-id> --dev-passkey ./dev-passkey.json# on their side, within 7 days:meroctl deployment list # the offer is under "offered"meroctl deployment accept <deployment-id> --to org:<their-org-id> --dev-passkey ./their-passkey.jsonThe receiver needs a deployer grant of its own, as an organization a recovery
key, and the use of every release you offer: a private release must be
installed for it too (409 OFFERS_NOT_USABLE otherwise). Its offers and the customers’ instances go with it; your secret
values do not (the new owner sets its own). Either side can cancel a waiting
offer (deployment cancel-transfer), and it lapses after 7 days or once you no
longer manage the deployment. Customers are not asked, but every instance’s
update sheet says who now runs the deployment until its owner approves an update,
and until then no update applies on its own.
Limits
Section titled “Limits”- Releases from before deployments stay outside every deployment, and instances created before record none: offer the releases in a deployment yourself.
- Keep the deployment manageable. Every change needs a manager’s
passkey, and nothing stops an organization-owned deployment from being left
with no manager able to sign. Keep more than one
MANAGE_APPLICATIONholder in the owning organization, each with more than one passkey.