SUBSCRIPTION COMMANDS
The swamp subscription command group shows the plan and billing standing of
the signed-in user and their collectives, and opens the swamp-club billing page.
Running swamp subscription with no subcommand prints group help. Both
subcommands need a swamp-club.com account, like any other command — see
Swamp Account Requirement — and
both run outside a Swamp repository.
swamp subscription status
Show the plan and billing standing of the signed-in user and each collective they belong to.
swamp subscription statusstatus makes one call to swamp-club, the same one swamp auth whoami makes,
and words each collective exactly as swamp auth whoami does.
Example output:
alice (alice@example.com) on https://swamp-club.com
Plan: Team
Collectives:
alice trial: 25 days left (ends 2026-11-20)
acme Team active
To manage billing: swamp subscription startStandings
Each collective is listed by slug, followed by its standing:
| Shown | Meaning |
|---|---|
Team, Business or Enterprise |
A paid plan. The billing status (for example active) follows the plan name for owners and admins only |
Personal License |
A Personal License: free, for use outside of work. Work use needs a paid plan |
Admin |
Admin standing, set by Swamp Club. There is nothing to bill |
trial: N days left (ends YYYY-MM-DD) |
A free collective on a running trial. 1 day left when one day remains |
covered |
A free collective with no running trial, allowed private extensions through another collective its owner belongs to |
trial ended |
A free collective whose trial has ended |
| slug only | A free collective with nothing else to say |
A collective on any plan other than free shows its plan and is never shown as on
a free trial. A free collective shows the first that applies: a running trial,
then covered, then trial ended.
Trial notices in status
status also asks swamp-club for the user's trial notices,
and prints every one of them between the collectives and the call to action:
alice (alice@example.com) on https://swamp-club.com
Plan: Team
Collectives:
alice trial: 5 days left (ends 2026-11-07)
acme Team active
ℹ Your Swamp Club trial ends in 5 days (2026-11-07).
Choose a plan: https://swamp-club.com/billing
To manage billing: swamp subscription startUnlike the notice printed after other commands, these are not limited to one a
day. They are also printed after
This Swamp Club server does not report subscriptions. When the request for
them fails, or for a collective token, none are printed.
Plan line
Plan: names the strongest plan across the user's collectives, as swamp-club
chooses it: Admin, then the highest paid plan, then Personal License. The line
is omitted when the strongest plan is free.
Call to action
The last line points at swamp subscription start:
| Strongest plan | Last line |
|---|---|
| None, free, or Personal License | To upgrade: swamp subscription start |
| Any paid plan | To manage billing: swamp subscription start |
| Admin | No call to action |
Collective tokens
With a collective token in SWAMP_API_KEY or SWAMP_API_KEY_FILE, the first
line names the collective instead of a user, and only that collective is listed.
A collective token is not an owner or admin, so no billing status is shown:
Collective token: acme on https://swamp-club.com
Plan: Team
Collectives:
acme Team
To manage billing: swamp subscription startServers that report no standing
When the server sends no subscription standing, status prints the identity
line followed by:
This Swamp Club server does not report subscriptions.No Plan: line, collectives or call to action follow, and the exit code is 0.
This is usually an older or self-hosted swamp-club. It is also printed for a
collective token whose standing the server could not read.
SWAMP_CLUB_URL
When SWAMP_CLUB_URL is set, status asks that server instead of the one
stored at login.
JSON output
swamp subscription status --json{
"serverUrl": "https://swamp-club.com",
"username": "alice",
"plan": "team",
"planName": "Team",
"entitlementsReported": true,
"collectives": [
{
"slug": "alice",
"plan": "free",
"planName": "Free",
"subscriptionStatus": null,
"trial": {
"state": "active",
"startedAt": "2026-10-21T15:47:22.164Z",
"endsAt": "2026-11-20T15:47:22.164Z",
"trigger": "signed_up",
"dayNumber": 6,
"daysRemaining": 25,
"totalDays": 30,
"extended": false
},
"privateExtensions": "allowed"
},
{
"slug": "acme",
"plan": "team",
"planName": "Team",
"subscriptionStatus": "active",
"trial": null,
"privateExtensions": "allowed"
}
],
"billingUrl": "https://swamp-club.com/billing",
"notices": [
{
"kind": "trial-ending",
"slug": "alice",
"name": "alice",
"personal": true,
"billingUrl": "https://swamp-club.com/billing",
"endsAt": "2026-11-20T15:47:22.164Z",
"daysRemaining": 5
}
]
}| Key | Description |
|---|---|
serverUrl |
The swamp-club server asked |
username |
The signed-in user. Replaced by collectiveSlug for a collective token |
collectiveSlug |
The collective a collective token belongs to. Present only for a collective token |
plan |
The strongest plan's id, such as free, personal, team or admin. null when the server sent none |
planName |
The strongest plan's display name. null when there is none or it is free |
entitlementsReported |
false when the server sent no subscription standing |
collectives |
One entry per collective, passed on as swamp-club sent it. [] when entitlementsReported is false |
billingUrl |
The billing page swamp subscription start opens by default |
notices |
The user's trial notices, ended trials first. Absent when the request failed or for a collective token |
Each entry in collectives has:
| Key | Description |
|---|---|
slug |
The collective's slug |
plan |
The collective's plan id |
planName |
The plan's display name |
subscriptionStatus |
The billing status, such as active. Absent when the caller is not an owner or admin; null for an owner or admin with no subscription |
trial |
The collective's trial. null for any collective on a plan other than free, and for a free collective with no trial to show |
privateExtensions |
Whether the registry allows the collective private extensions: allowed, trial-ended or paywalled |
Each entry in notices has:
| Key | Description |
|---|---|
kind |
trial-ending or trial-ended |
slug |
The collective's slug |
name |
The collective's display name, with control and escape characters removed |
personal |
true for the user's personal collective |
billingUrl |
The collective's billing page on the server asked |
endsAt |
When the trial ends, ISO 8601 in UTC. trial-ending only |
daysRemaining |
Days left, counted from endsAt and rounded up, never more than swamp-club's own count and never less than 1. trial-ending only |
A trial whose endsAt has passed is listed as trial-ended. Each collective
has at most one entry.
The user's email appears on the identity line but never in the JSON document.
swamp subscription start
Open the swamp-club billing page in a browser, to upgrade or manage billing for yourself or a collective.
swamp subscription start| Flag | Description |
|---|---|
--collective <slug> |
Open this collective's billing page instead of your own |
--no-browser |
Print the URL instead of opening a browser |
start makes no call to swamp-club of its own. It opens:
<server>/billingby default<server>/o/<slug>/billingwith--collective
The server is SWAMP_CLUB_URL when set, else the server stored at login, else
https://swamp-club.com.
The slug is not checked on the command line; the billing page decides what the
user may manage. A personal collective's page redirects to /billing. Only
owners and admins can manage a collective's billing; a member is sent to the
collective's page at /o/<slug>. A user signed out in the browser is asked to
sign in, then returned to the billing page.
Plans are bought, changed and cancelled on the billing page, and a Personal License is taken there too; the CLI only opens it.
Output:
| Case | Output |
|---|---|
| Browser opened | Opening <url> in your browser. |
--no-browser |
Manage billing at <url> |
| No browser could be opened | Could not open a browser. Open this URL to manage billing: then the URL, indented |
No browser can be opened over SSH or on a headless machine, for example:
Could not open a browser. Open this URL to manage billing:
https://swamp-club.com/billingAll three exit 0.
JSON output
swamp subscription start --collective acme --no-browser --json{
"url": "https://swamp-club.com/o/acme/billing",
"opened": false,
"collective": "acme"
}| Key | Description |
|---|---|
url |
The billing page |
opened |
true when a browser opened; false for --no-browser or when none could be opened |
collective |
The --collective slug, or null |
Trial notices
After a command, Swamp tells you when a Swamp Club trial you can pay for ends within 7 days, and when it has ended:
ℹ Your Swamp Club trial ends in 5 days (2026-11-07).
Choose a plan: https://swamp-club.com/billing⚠ Your Swamp Club trial has ended.
Choose a plan: https://swamp-club.com/billing| Case | First line |
|---|---|
| Your personal trial ends in N days | ℹ Your Swamp Club trial ends in N days (YYYY-MM-DD). |
| One day or less left | ℹ Your Swamp Club trial ends within a day (YYYY-MM-DD). |
| Your personal trial has ended | ⚠ Your Swamp Club trial has ended. |
| A team collective's trial | The Swamp Club trial for <slug> replaces Your Swamp Club trial, for example ⚠ The Swamp Club trial for acme has ended. |
The date is the UTC date the trial ends, as Standings prints it.
The day count is the time left rounded up to whole days. A team's trial is named
by its slug, never its display name. Choose a plan: links to the collective's
billing page: /billing for your personal collective, /o/<slug>/billing for a
team, on the server you signed in to.
Who sees a notice
swamp-club decides which notices a user has. A user gets one for each collective they own, and each non-personal collective they are an admin of:
- Ending when the collective is on a running trial that ends within 7 days.
- Ended when the collective's trial ran its course and it never paid.
There is no notice for a plain member, a paying collective, one with Admin
standing, or a personal collective that is covered by another collective its
owner belongs to. A collective that has paid before or holds a Personal License
is never told its trial ended. A collective token has no notices. A team
collective that is over its seat count is shown on the web only.
When it shows
- After a command that succeeded, on stderr, as the last thing printed: after the inbox notice and the update banner.
- At most one notice per command: the most urgent one that has not shown in the last 24 hours. Ended trials come first, then ending trials, soonest end first.
- Each notice shows at most once a day. An ended trial keeps showing once a day until a check finds it resolved, for example after a plan is bought.
- An ending trial shows as ended as soon as its end passes, with no network request, even if the ending notice already showed that day.
- Never with
--jsonor-q, or after a command that failed. - Never after
swamp inbox,swamp subscription,swamp auth, the long-runningserve,worker,startanddashboard, or a command that needs no account. - Never in a Swamp run started by another Swamp run, such as a workflow step or a shell behavior. The outermost run shows it.
No environment variable turns it off. CI, SWAMP_NO_INBOX_NOTICE and
SWAMP_NO_UPDATE_CHECK do not apply to it.
When Swamp checks
The notice is decided from a local cache, so showing it costs no request. The
cache is filled by a check of GET /api/v1/account/notices, sent with your API
key:
- In the background during
swamp workflow run,swamp behavior run,swamp extension pullandswamp extension push, at most every 15 minutes and at least every 7 days. - During any command that can show the notice while the cache holds an ended trial, at most every 15 minutes, so a plan bought on the web clears it.
- After
swamp auth loginhas reported the login. - On every
swamp subscription status.
A check that gets a 401 drops the cached notices and asks again a day later. A
server without the endpoint is asked again a day later. A collective token is
never checked again. swamp auth logout removes the cache for the login it
signs out.
The cache is one file per API key and server in account-notices-v1/ in the
Swamp config directory,
readable by you only. It never holds the API key or the server's address. At
most 8 keys are kept.