Browse docs
Docs / Admin & IT / Organizations, Repositories & Members
View as Markdown

Organizations, Repositories & Members

On this page

An organization is the top-level container for your team: it owns repositories, members, billing, and identity configuration. Everything in Swarmfile lives inside exactly one org.

Creating an organization#

There's no separate "create your organization" step. When you sign up at /start, you register and an org is created for you in the same flow. Choosing Starter or Pro goes straight into Stripe Checkout to pick and pay for a plan; choosing Free creates the org without any card or checkout. The org gets a slug auto-derived from what you typed at signup; if that slug is already taken, it's auto-resolved to something unique so signup never blocks on a collision.

One account can create up to 25 organizations; past that, creating another answers with a support pointer. The limit is an abuse bound (a real buyer has a handful of orgs), not a plan feature - contact support if a legitimate setup needs more.

Only one of those can be a Free organization: a second Free org is refused (free_org_limit_reached), and the new org can be created on Starter or Pro instead. Upgrading your Free org to a paid plan frees the slot; a deleted Free org counts until it is fully removed. See Billing & Plans.

The org slug matters beyond cosmetics - it appears in public share links (/s/:orgSlug/:token) and org URLs, though the share token itself is not bound to it.

Renaming your org#

As owner, you can rename the org's display name or its slug from Settings at any time.

Renaming the name is cosmetic. Renaming the slug changes the visible URL, but old org URLs keep resolving: the previous slug is reserved as an alias for the life of the org (and a new org cannot take it). A share link's token is not tied to the slug, so old /s/:orgSlug/:token links keep working. There is no canonical 301, so a visitor using an old link may still see the old slug in the address bar. Changing the slug still requires retyping the current slug to confirm, because the visible URL changes.

Repositories#

A repository is a mounted filesystem within an org. Owners and members with sufficient permissions can:

  • Create a new repository
  • Rename a repository (the old slug is reserved as an alias, so old URLs keep resolving; a repository API key should use the repository and org ids)
  • Archive a repository (read-only, unmounts for day-to-day use, reversible)
  • Delete a repository (removed from active use straight away; its files, history, git-LFS objects, and stored data are permanently purged 30 days after deletion, and there is no self-serve undelete. Recovery is not guaranteed - contact us before the purge window closes to discuss it. The 30-day window is fixed; a shorter per-user trash-retention setting does not shorten it. A very large entry tree is removed through a durable background job rather than the immediate cascade, so a big delete can take a while to finish; the CLI waits for it by default and op status shows its progress.) Deletion writes durable audit rows that outlive the purge, so it remains auditable after the data is gone.

A repository can also be cloned and pushed with git once an owner turns on git access (swarmfile git enable, the web repository menu, or the Desktop App's Repository settings → Git access) - see Cloning a Repository with Git.

Archived repositories are read-only#

Archiving freezes a repository's content until someone unarchives it. Every change is refused with 403 repository_archived, whether it comes from the desktop drive, the web, the CLI, an API key, git-LFS, or a share link:

  • saving, uploading, creating, renaming, moving, or deleting files
  • commits and changelists, branches (create, merge, archive, protection rules), tags, and merge requests
  • publishing releases, RFIs, labels, and comments (adding or resolving, including through a share link)
  • changing access: granting permissions, switching the repository's ACL mode, or creating new share links (revoking existing access still works)
  • taking a lock: file locks, offline checkouts, folder reservations, byte-range locks, and git lfs lock

What keeps working:

  • reading, browsing, downloading, and history
  • unarchiving the repository
  • taking a public release down, revoking access (removing an existing grant or revoking a share link), and releasing locks (including checking a file back in and git lfs unlock)
  • canceling an upload that was still in progress when the repository was archived, so nobody is left waiting for a file that will never arrive

If someone still has the drive mounted, a save to an existing file is kept beside it as a separate copy instead of being lost, and a brand-new file's content stays on their machine with a message explaining why it wasn't uploaded.

Each repository runs in one of two modes:

  • Open mode - the default for every new repository; more permissive, suited to small teams or early-stage repositories
  • Protected mode - enforces explicit ACL grants on folders and files; opt-in at creation or by switching the repository later

Mode selection and the underlying ACL model are covered in Permissions - this page only covers repository lifecycle, not access control.

Repository configuration and templates#

One options manifest is the single source for every create-time control - encryption tier, commit mode, retention, visibility, ACL mode, connection (the data plane), repository type, default-branch protection, the create-only default branch name, Ensure Git Compatible, data residency, and the per-repository external-collaborator policy. The web dashboard, the Desktop App, and the CLI all render the same set from it, so a choice looks and behaves the same wherever you create the repository.

Templates give a new repository a starting shape: Blank, Media & post, Music production (Ableton Live), Music production (DAW-agnostic), Software (git repository), Open source repository, Revit worksharing, or Geospatial. Where a template defines one, creation seeds starter files (an ignore file, a folder skeleton, or - for Open source repository - README/CONTRIBUTING/SECURITY/CODEOWNERS skeletons, a publicignore starter, an inert commented-out CI starter, and a LICENSE placeholder that never guesses a license); an explicit create option always wins over the template's value.

After creation, the repository's settings show each effective value and where it came from. swarmfile repository show prints the same view for scripts, and swarmfile repository set changes the settings it can - see the CLI reference and Getting Started. The billing page's three-state entitlements matrix labels each setting included, upgrade, or not built, so a plan gate is visible before you hit it.

Switching the active organization or repository#

An engine can host several mounts at once - one repository (and one branch) per mount - so a single machine can work in more than one repository without a second install. The common case is still one active workspace per engine, and switching it is a hot, in-place operation where possible:

swarmfile workspace status                       # which org/repository this engine is on
swarmfile workspace list                         # every org you can reach, plus the current org's repositories
swarmfile workspace switch --org <org-id>        # adopt that org's default repository
swarmfile workspace switch --org <org-id> --repository <repository-id>

To run more than one repository side by side instead of switching, open an additional mount - swarmfile mounts open <path-or-letter> --label "..." --repository <repository-id> (same org only) - and target commands at it with the global --mount <id> flag; swarmfile mounts list shows every open mount and which one is current. The per-agent version of this setup is documented in Coding Agents.

Switching is not a re-authentication: your session is per-user, not per-org, and already covers every org you belong to. Both same-org and org switches normally happen in place (no engine restart), and a target repository whose key has not been released yet is waited for rather than turned into a restart.

The engine drains and restarts only when the hot path cannot complete - typically when there is no live mount to re-scope - so the drive may then briefly unmount and return.

What follows the switch#

A hot switch is workspace-wide for the repository you are leaving: every mount of that repository moves to the new repository's active branch (a per-mount branch pin doesn't survive a repository change), so open drives follow the switch. A mount on a different repository stays where it is - and because such a drive can't follow the engine to another org, an org switch is refused while one is open (cross_repository_mount_open). The Desktop App names both before you confirm: the drives that will follow and any that must be closed first.

A switch is refused while a changelist is open (submit, cancel, or --park it first).

Open files and in-flight work#

A switch doesn't wait for uploads: saves still uploading in the repository you're leaving keep uploading in the background, and the Desktop App and swarmfile status show them as saving in other repositories until they land (see Reading the sync status).

While a switch is running, opening or saving a file on the drive can pause for up to a minute until it finishes, and the Desktop App shows that the drive is switching.

A file that was already open in an application before the switch still belongs to the repository it came from: its later saves are refused rather than written into the new repository, the Desktop App tells you straight away, and when the file closes its unsaved changes are kept on disk and the notification says where. If the application hadn't changed the file before the switch, its first change is refused before anything is written, so Swarmfile has nothing to keep: the changes are still in the application, and the notification says so. Save them under a new name, or switch back and save again.

The one exception is an org behind its own SSO - reaching it goes through that org's identity provider, not the built-in one (see Identity).

First sign-in on a new machine#

A freshly-provisioned machine auto-adopts an org and repository on first sign-in, so there's often nothing to switch - see Deploying to Your Team for how that default is chosen.

Inviting members#

Members are invited by email. An invite generates a link; the invitee accepts it to join the org, landing with the coarse member org role (below admin and owner - see the next section for what that hierarchy gates). Don't look for a role picker on the invite screen; there isn't one - you can't invite someone directly as an admin, only promote them afterward.

On a plan with ACLs (Pro and above) the invite form can also pre-grant whole-repository Read or Write access, listed on the pending invitation and applied when it is accepted; an invite sent without picks adds the org membership only, and repository access is granted afterward under that repository's Permissions tab.

The plan bounds who can be invited: Free is a solo tier (one seat) - the Team tab shows a one-seat notice with an upgrade link instead of the invite form - and a Starter/Pro trial is capped at two seats until it converts - or until an owner ends it early from the Billing tab, which the Team tab's seat-limit notice links to (admins see an "ask an owner" note instead). A signup that picks more than two seats skips the trial and starts paid. See Billing & Plans.

Paid Starter, Pro, and Enterprise orgs have no seat ceiling; each seat simply bills at the plan's per-seat rate.

What a member can see and do within a repository is governed by the ACL system described in Permissions; the org role is a separate, coarser layer that gates org-wide admin surfaces (billing, permissions administration, quarantine) rather than per-file access.

If your org configures SSO with an auto-provisioning group (see Identity), anyone in that IdP group is added to the org automatically on their first sign-in - no manual email invite needed.

SCIM on its own doesn't do this: it syncs your directory into Swarmfile, but org access still requires either that SSO group match or a manual invite.

On a public repository with access requests enabled, an approved membership request arrives through this same invitation flow - the requester accepts the standard email invite to join, and on a protected repository the invitation carries the repository grant they need to see it (Public access requests).

Removing members#

An owner or admin removes a member from the Team tab (only an owner can remove another owner). The hub stops serving them the org's file content and keys within a few seconds. The web dashboard drops the org for them, and their desktop drive stops serving the org's files, including files it had already cached. A computer that's offline at the time does this when it next reaches the hub. A link to a single block that was issued just before the removal can keep working for up to two minutes until it expires.

Their engine also clears its local cache of the repository (file listings and cached content) and discards its copy of the repository's content key. The one exception is changes they saved that hadn't finished uploading: those stay on their computer, held, and upload if their access is restored. Their desktop app tells them so. The repository's key itself isn't changed.

For an end-to-end encrypted repository, removal also revokes their key wraps, but can't recall key material already on their device. Re-inviting the member restores their access without a reinstall - including the repository permissions they held - and their org role comes from the new invitation.

To cut a removed member off everywhere, Swarmfile visits each of the org's repositories in turn, closing their open connections and revoking their keys there; in a large org this can take a few minutes.

The same happens when a guest's access is revoked, your directory deprovisions someone, a device key is revoked, or a group's membership changes.

Owners and admins can follow it in Settings → Access revocations: what's still in progress, any repository Swarmfile couldn't reach (with the reason), and what each finished sweep did - including how many devices confirmed they deleted their cached copy, and a Retry for a repository whose sweep stopped.

Removal also changes the org's peer-to-peer key, the secret your team's computers use to connect directly to each other, so the removed member's computer can no longer join in. Everyone else's desktop app picks up the new key on its own within a couple of minutes, with no restart and no interruption to the drive.

If a computer seen in the last seven days runs an older desktop app that can't switch keys without restarting, the change waits until it updates; owners and admins see a Peer-to-peer key change pending notice in Settings → Network saying how many computers it's waiting for. Until then the removed member's computer may still connect directly to your other computers, but their access to files is already removed.

The org's activity feed records both the wait and the change.

Who can see plan and usage standing#

Any org member - not just the owner - can see the org's current plan and usage standing: seats, storage, and how close the org is to any limits. This is surfaced in both the Desktop App's plan panel and the web dashboard.

This is a deliberate choice, not an oversight. Owner-only areas of the dashboard - billing and usage administration - stay restricted to owners.

Permissions administration and quarantine are open to admins as well as owners. The audit log itself is open to any member (ACL-filtered - you see events on entries you can read); only its CSV export, plus quarantine and org-policy events within the feed, stay owner-only.

But plan and usage visibility is open to everyone on the org, so a member isn't left guessing why an upload is being throttled or what tier the team is on. The dashboard's Public streaming card is member-visible; the Settings → Usage controls and other administration stay owner-only.

Changing request limits#

Usage standing is read-only for members; the request limits themselves - the per-org and per-user request ceilings - are configurable from the web dashboard's Settings → Organization (owners only), the Desktop App's Settings → Developer panel (owners and admins), or swarmfile admin rate-limits (owners and admins).

swarmfile admin rate-limits usage shows the current minute's usage against them, and a raise can be time-boxed (--for 6h). A single API key can carry its own ceiling (swarmfile api-key rate-limit) for that key's bucket. A fleet's aggregate headroom comes from its active keys: each adds its per-key allowance to the org default, up to the plan org max, and the plan's key allowance (purchased headless seats) caps how many keys count. An org override replaces the scaled window.

Seat count#

Seat count itself isn't something you set manually - it's derived from live org membership and kept in sync automatically. Details are in Billing & Plans.

Something wrong or missing? Report a docs issue.