Blog / Swarmfile is now a git-LFS server

Swarmfile is now a git-LFS server

Most teams that outgrow plain Git don't actually want to leave it. They want somewhere else for the files that don't belong in a diff. A 4K plate, a trained model checkpoint, a texture set. Git-LFS was built for exactly that split: keep source in Git, point large objects somewhere else. The "somewhere else" is usually the part that falls short: bloating your git host's storage bill, capping object size, or requiring a second piece of infrastructure to run and pay for.

Swarmfile can now be that somewhere else.

What you get#

Point git-LFS at a Swarmfile repository and your large binary assets get real storage, deduplication, and quota, while your source code stays exactly where it already lives, in the git host your team uses today. LFS objects count as storage on your plan - deduplicated on the chunked upload path the same way the mounted drive stores blocks - and downloads are free. And if you'd rather drop the second host entirely, a repository can also serve a real git remote: clone it and fast-forward push back.

One thing to be precise about is encryption, because it's the one place LFS differs from the mounted drive. On a managed (Starter+) repository, git-LFS uploads must go through Swarmfile's transfer agent (the desktop app bundles it) and are stored as encrypted blocks at any size; the stock direct push is refused with the typed lfs_agent_required error. On an unencrypted repository - every Free-plan repository and every public repository - the stock direct path is accepted and objects are plaintext by definition, as everything stored there is on every path. A managed repository that took direct uploads before that rule may still hold older plaintext LFS objects until the operator-run migration reports clean, so don't assume every existing object is encrypted until then. git-LFS isn't available on end-to-end-encrypted repositories at all. The git-LFS guide has the path-by-path table.

A few things you get:

  • Pushes up to 256 GiB. On an unencrypted repository, stock git-LFS pushes through a presigned direct-to-storage URL, up to the storage provider's ~5 GiB single-PUT cap. On a managed repository the stock direct path is refused (lfs_agent_required). A small transfer agent that speaks the git-LFS custom-transfer protocol pushes objects in chunks, up to 256 GiB each, resuming where it left off, and it is required on a managed repository.
  • One lock system for git and the drive. For a file on the mounted drive, git lfs lock and a drive lock are the same lock, so it can't be checked out twice by two different routes. Files that live only in git can be locked too.
  • No lock-in. Pull everything back out with stock git-LFS and no Swarmfile software installed, then repoint at any other host. The exit is built in from day one, not bolted on later. One boundary: a very large object's first stock download may be paced and retried - see the size boundaries.
  • A first-class view of your objects. Anything you push through the transfer agent or the desktop app can also be projected onto the mounted drive as real files, browsable and previewable the same way as everything else in a repository.

Getting started#

If your team already uses git-LFS, the migration is a config change, not a new workflow: point .lfsconfig at your Swarmfile repository, authenticate, and push. See Git-LFS for setup, credentials, and how deduplication interacts with a mounted drive if you use both.