Share a file, a folder, or a short link that expires on its own. FleetLink is a multi-user service on Cloudflare Workers: people sign in with passkeys, agents act through their own API tokens, teams share a space for links, and every share has an owner who controls it.
- Primary domain:
https://fleetlink.online(share links are minted here) - Mirror:
https://fleetlink.app(same worker) - License: Apache License 2.0
- Accounts. Passkey sign-up and sign-in (WebAuthn, RP ID
fleetlink.online). No passwords. Sign-up isopen,invite, orclosed, set by an admin. - Ownership. Every share belongs to the account that made it. Only the owner, the owners and admins of a team the share is in, and FleetLink admins can see it in a list, change it, renew it, or delete it. Links themselves are public unless they have a password.
- Agents. An API token (
fla_…) acts as one person, can be narrowed (largest file, longest share, no short links, one team), and can be revoked. The old shared agent secret is retired. - Teams. Members see the team's shares; team owners and admins manage them; members manage their own.
- Admins. Manage people (role, disable, quotas, delete), invites, sign-up policy, and every share, from
/adminorfleet-share admin. - Safety. User files are served with a sandbox content policy and HTML always downloads, so a shared file cannot act as the signed-in viewer.
The full model, limits, and API map are in docs/multi-user.md.
worker/index.mjs— the worker entry: routing, health, share serving, scheduled sweep.worker/lib/—schema.mjs(D1 migrations, applied by the worker itself),auth.mjs(credentials to principals),policy.mjs(who may do what),shares.mjs,serve.mjs,passkeys.mjs,sessions.mjs,tokens.mjs,teams.mjs,invites.mjs,users.mjs,settings.mjs,audit.mjs,sweep.mjs,legacy.mjs(adopts pre-ownership objects),mcp.mjs,api/(route handlers), andpages/(the website and its scripts).cli/fleet-share— the command-line client (Python 3, standard library only).ios/— the FleetLink iOS app and App Clip.skills/fleetlink/SKILL.md— the agent skill: credentials, CLI, API, limits, and MCP setup.scripts/deploy.sh,scripts/provision-d1.sh,scripts/bundle-worker.mjs,scripts/prod-smoke.mjs— build, deploy, and verify. SeeDEPLOY.md.test/—npm testruns the worker against an in-memory D1 and R2 with real WebAuthn ceremonies, and runs the CLI against a local server.
On the web, create an account at https://fleetlink.online/login, then use the dashboard to share files, make short links, create API tokens, manage teams, edit a share (name, title, password, duration), and watch views and downloads. The landing page at https://fleetlink.online walks through handoffs between people and agents, and https://fleetlink.online/agents is the step-by-step guide for connecting an agent (tokens, CLI, MCP, skill, HTTP).
From a terminal:
fleet-share login # paste an API token from the dashboard
fleet-share notes.md ./report/
fleet-share link https://example.com/long/address
fleet-share listOver HTTPS:
curl -X PUT "https://fleetlink.online/notes/notes.md" \
-T notes.md \
-H "Authorization: Bearer $FLEETLINK_TOKEN" \
-H "Content-Type: text/markdown; charset=utf-8"Over MCP: https://fleetlink.online/mcp with Authorization: Bearer <API token>. See docs/mcp.md.
The Cloudflare edge refuses any request body over ~100 MB before the worker runs, so a large file cannot go up in one request. The dashboard, the iOS app, and the CLI switch to chunked uploads automatically for files of 64 MB and up: the file travels as 32 MB R2 multipart parts, each its own request. Size limits still apply to the whole file and are checked against the declared size up front.
The same flow is available over HTTPS:
# 1. Start: declares the total size; returns the upload id and part size.
curl -X POST "https://fleetlink.online/api/shares/$SLUG/multipart/start/$PATH" \
-H "Authorization: Bearer $FLEETLINK_TOKEN" -H "Content-Type: application/json" \
-d '{"size": 734003200, "content_type": "video/mp4"}'
# -> {"upload": {"upload_id": "...", "part_size": 33554432, ...}}
# 2. Parts: PUT each chunk (numbered from 1), keep the etag from each reply.
curl -X PUT "https://fleetlink.online/api/shares/$SLUG/multipart/part/$PATH?upload=$UPLOAD_ID&part=1" \
-H "Authorization: Bearer $FLEETLINK_TOKEN" -H "Content-Type: application/octet-stream" \
--data-binary @chunk1
# 3. Complete with every part number and etag, in any order.
curl -X POST "https://fleetlink.online/api/shares/$SLUG/multipart/complete/$PATH" \
-H "Authorization: Bearer $FLEETLINK_TOKEN" -H "Content-Type: application/json" \
-d '{"upload_id": "...", "parts": [{"part_number": 1, "etag": "..."}]}'
# Giving up instead: POST .../multipart/abort/$PATH with {"upload_id": "..."}.Starting again for the same share path resumes the upload already in progress instead of leaking a second one.
bash scripts/install-skill.sh # symlink skills/fleetlink into agent skill folders
bash scripts/install-skill.sh --check
fleet-share skill install # the same, or a pinned download outside a checkout
bash scripts/hooks/install.sh # keep copy-mode installs fresh after git pullThe skill documents the install targets, copy mode, and pinning.
npm ci
npm test
npm run bundle # dist/fleetlink-api.mjs, the module the deploy uploads- Anonymous writes are
401. A share held by someone else is404to read and409to claim. GET /api/auth/tokenis410.X-Fleet-AuthandX-Fleet-Agentare refused..html/.htm(any case), or a storedtext/html/application/xhtml+xmltype, is alwaysapplication/octet-streamwithContent-Disposition: attachment.- User files carry
Content-Security-Policy: sandbox(PDF excepted) andnosniff. Rendered Markdown runs only nonce'd scripts and sanitizes the HTML it produces. - Cookie-authenticated writes need a same-origin
Origin. Sessions, tokens, and invite codes are stored as peppered hashes. - workers.dev and preview URLs are off. Workers Logs observability is off, because share passwords can appear in URLs.
/health keeps its deep R2/schema check. GET /health?check=live is the explicit storage-free liveness check. Warm isolates use fresh cached settings to apply existing per-IP limits and reject invalid API routes before schema/usage/settings SQL. Cold or expired settings still load normally; no new rates or valve thresholds are introduced.