# FuzzyShare documentation > Every page of the FuzzyShare docs as one Markdown file, for AI agents. Online: https://fuzzyshare.com/docs --- # FuzzyShare Documentation FuzzyShare is a small file drop for short-lived files. You upload a file, text or data, choose how long it should live, and share it with a link. When the time is up, the file and its links are deleted. You can use it four ways, and they all share the same account and the same files: - The **dashboard** in your browser: drag and drop, paste, preview, share. - The **command line**: `fuzzy put report.pdf --ttl 1h --share`. - The **HTTP API**: plain `curl`, no SDK needed. - **MCP**: connect an AI agent and let it upload and share for you. ## Start here 1. Follow the [Quickstart](quickstart.md) to upload and share a file in about two minutes. 2. [Install the CLI](cli-install.md) with one line. 3. Read [Access keys and identity](concepts-keys.md) to understand how sign-in works. 4. Connect an agent with [Use FuzzyShare with AI agents](guides-agents.md). ## What you get - **Every file expires.** 24 hours by default, 14 days at most. See [Files and expiry](concepts-files.md). - **Public or private links.** A private link needs a passphrase or an allowed key. See [Public and private links](concepts-links.md). - **Know who opened a link.** See [Access activity and privacy](concepts-activity.md). - **Fixed, small limits.** 50 MB per file and 1 GB per person. See [Limits](concepts-limits.md). - **Self-hosting.** One static binary and a data directory. See [Self-hosting](self-hosting-install.md). > [!TIP] > Working with an AI assistant? Press **Get the setup prompt** above (or **Agent prompt** in the top bar), copy it, and paste it into your assistant. It installs the CLI, signs in and connects MCP for you. The whole documentation is also one plain-text file at [/llms-full.txt](/llms-full.txt). --- # Quickstart This page takes you from nothing to a shared file. Pick the browser or the command line; the account is the same. ## 1. Get an access key Your **access key** is your identity. It looks like `fuzzy_...` and it is shown once. ```sh {tab="Browser"} # Open https://fuzzyshare.com/signup, enter your name and email, and press Get your key. # Copy the key and keep it in a password manager. ``` ```sh {tab="CLI"} curl -fsSL https://fuzzyshare.com/install.sh | sh fuzzy register --name "Ada Lovelace" --email ada@example.com ``` ```sh {tab="curl"} curl -X POST https://fuzzyshare.com/register \ -d '{"full_name":"Ada Lovelace","email":"ada@example.com"}' ``` > [!WARNING] > FuzzyShare stores only a hash of your key, so it cannot show it again. If you lose it you need a new one. See [Access keys and identity](concepts-keys.md). If you registered in the browser, sign in on the [access page](/access). From the CLI, `fuzzy register` saves the key for you. With curl, put it in a variable: ```sh export FUZZY_KEY=fuzzy_... # the key from the response ``` ## 2. Upload a file ```sh {tab="Browser"} # In the dashboard, open Files, drop a file on the upload area, # and choose how long to keep it. ``` ```sh {tab="CLI"} fuzzy put report.pdf --ttl 1h ``` ```sh {tab="curl"} curl -H "Authorization: Bearer $FUZZY_KEY" \ -T report.pdf "https://fuzzyshare.com/files/report.pdf?ttl=1h" ``` The file is private to you until you share it. It deletes itself after one hour. ## 3. Share it ```sh {tab="Browser"} # Press Share on the file's row, pick Public or Private, and copy the link. ``` ```sh {tab="CLI"} fuzzy share report.pdf --ttl 30m ``` ```sh {tab="curl"} curl -H "Authorization: Bearer $FUZZY_KEY" \ -X POST "https://fuzzyshare.com/files/report.pdf/share?ttl=30m" ``` You get a link like `https://fuzzyshare.com/s/`. Anyone who opens it in a browser sees a preview. Programs such as `curl` get the file's bytes. ## 4. See who opened it ```sh fuzzy links # find the link id fuzzy activity l_0123456789ab ``` ## 5. Clean up You do not have to. The file and its links disappear when the lifetime ends. To remove them now: ```sh fuzzy rm report.pdf ``` ## Next steps - [Share a file safely](guides-sharing.md): passphrases, allowed keys and burn-after-reading. - [Command reference](cli-reference.md): every command and flag. - [Use FuzzyShare with AI agents](guides-agents.md). --- # Access keys and identity FuzzyShare has no passwords. Your **access key** is your identity: you send it with every request, and it proves who you are. Reads need it too, apart from [public links](concepts-links.md). An access key looks like `fuzzy_Fh1u0eolTcnpdilVSgBp1jSTfoLNkkBULXC7d66YJ7I`. You send it as a header: ``` Authorization: Bearer fuzzy_... ``` ## Shown once, stored as a hash FuzzyShare shows your access key **once**, when it is created. After that, only a SHA-256 hash is stored. A hash cannot be turned back into the key, so nobody can read your key back: not you, not the operator of the server, and not someone who copies the data directory. This is on purpose. It means a leaked backup does not leak anyone's access. The price is simple: **if you lose the key, it is gone.** There is no "forgot my key" email. To recover: - If you have another key on the account, sign in with it, create a new key, and revoke the lost one. - If it was your only key, ask the operator to remove your account, then register again. Your files go with the old account. > [!NOTE] > The last four characters of a key (its `hint`) are kept so you can tell your keys apart in a list. They are not enough to use the key. ## Keep it safe - **Save it in a password manager** when you first see it. - **Give each machine or agent its own named key.** A laptop, a CI job and an AI agent each get one, so you can revoke one without touching the others. - **Revoke a key that leaked.** Revoking takes effect at once. See [Keys and account](api-keys.md) or the **Keys** page of the [dashboard](guides-dashboard.md). - **Do not paste keys into chat or commit them.** Put them in a secret store or an environment variable such as `FUZZY_KEY`. ## Several keys per account An account holds up to **20 named keys**. Names are 1 to 40 characters (letters, digits, space, `.`, `_`, `-`) and unique within the account. The first key is named `default`. ```sh fuzzy keys ls fuzzy keys add ci-bot # printed once, on standard output fuzzy keys rm k_37ea501438da ``` Files record which key uploaded them, so you can see that `deploy.zip` came from `ci-bot`. You cannot revoke your only key; create another first, or replace it with a rotation (`POST /me/key`). ## Fingerprints Every key has a **fingerprint**: `sha256:` and the first 16 hex characters of the key's SHA-256, for example `sha256:9f40a72b1a603ba8`. A fingerprint is a public identifier. You can share it on purpose: a person gives you theirs so you can put it on a [private link's](concepts-links.md) allow-list. Only the holder of the matching key can read the link. The key itself is never shown to anyone else. ## Identity and privacy Your account stores your name, email, an optional organization and purpose, and the hashes of your keys. See the [privacy page](legal-privacy.md) for the full list. Other people see your name only when you present your own key to open someone's link; see [Access activity and privacy](concepts-activity.md). --- # Files and expiry A file is a name, some bytes and an expiry time. It belongs to one account and is private to it until you share it. ## Lifetime Every file expires. You choose the lifetime when you upload it: | Form | Examples | |---|---| | Seconds | `3600` | | A number and a unit (`s m h d w`) | `90m`, `24h`, `7d`, `14d` | - The **default** is 24 hours. - The **maximum** is 14 days. An operator can lower it, never raise it. - Re-uploading a name **resets** its lifetime and revokes its links. An expired file answers `404`, vanishes from lists at once, and is deleted from disk by a sweeper that runs about once a minute. > [!TIP] > Choose the shortest lifetime that fits the job. A build artifact for a colleague needs hours, not days. ## Names A file name has 1 to 128 characters: letters, digits, `.`, `_`, `-`. It starts with a letter or a digit. Two people can use the same name; files are isolated per account. ## Types and previews FuzzyShare detects the type from the upload's `Content-Type`, then the file extension, then the first bytes. The result is the file's `content_type` and a `kind`: `html`, `markdown`, `csv`, `json`, `text`, `link` (`.url` files), `image`, `svg`, `pdf`, `audio`, `video` or `other`. Share links open a preview for these kinds in a browser. Uploaded HTML runs in a sandbox with no access to the app, so a shared page cannot read anyone's key. ## Overwriting and deleting Uploading to an existing name replaces the file. Deleting removes it now. Both revoke every link that pointed at the old version. ## Visibility A file is **private** by default. It is **public** when it has an active public link. See [Public and private links](concepts-links.md). --- # Public and private links A **link** lets someone else read a file. Links are read-only, hide the file's name, and never outlive the file. ## Public links Anyone with the URL can read the file. No account is needed. ```sh fuzzy share report.pdf --ttl 1h ``` Public links answer `GET` and `HEAD` only. They are pinned to the version of the file they were made for: replacing or deleting the file revokes them. ## Private links A private link shows nothing, not even the file's name, until the reader proves access. There are two proofs, and a link can use either or both: - A **passphrase** of 8 to 200 characters. Tell the reader out of band. - An **allow-list** of key fingerprints (up to 20). The reader presents their own access key, and its fingerprint must be on the list. ```sh fuzzy share report.pdf --passphrase "correct horse battery" fuzzy share report.pdf --allow sha256:9f2c4ab01d3e7f58 --label "for Sam" ``` FuzzyShare keeps only hashes of private links. The URL is shown **once**, when you make it. ## Limits on a link | Option | Meaning | |---|---| | `ttl` | Shorter than the file's remaining life | | `max_downloads` | 1 to 1000. The link stops working after that many reads ("burn after reading") | | `label` | A note for yourself, up to 60 characters | A file can have 20 active links and a person 200. ## What counts as a read A request that serves the bytes counts as one read. Previews, `/info` and `HEAD` never count. A browser that opens the preview and then presses Download counts once: the first counted request sets a short cookie that makes the next ones free for 10 minutes. Programs without the cookie count every read. When the limit is reached, the link answers `404`, like an expired one. ## Turning public links off An operator can set `FUZZY_ALLOW_PUBLIC=false`. Then every link must be private. See the [configuration reference](self-hosting-configuration.md). For the exact requests, see [Links in the API](api-links.md). --- # Access activity and privacy Each link keeps a small log of who opened it. Only the link's owner can read it. The operator's admin key cannot. ## What you see In the dashboard open **Links**, then **Details**. From the CLI: ```sh fuzzy activity l_0123456789ab ``` You get totals (views, reads, visitors, bots) and one row per **visitor session**: time, IP address, a device label such as "Chrome on macOS", and the actions taken. | Event | Meaning | |---|---| | `view` | The preview page loaded | | `read` | The file was served from the first byte | | `locked` | A private link was opened without proof | | `unlock_ok` / `unlock_fail` | A passphrase was right or wrong | | `throttled` | Too many wrong passphrases (`429`) | Link-preview bots such as Slackbot, WhatsApp and Googlebot are flagged and left out of the totals. Tools such as `curl` are labelled by name. ## Who is named A visitor is named only when they presented **their own access key** on that request, for example to open a private link with an allow-list. Nobody is identified silently, and public links never ask for a key. You then see their name, organization and member-since date. You never see their email, their purpose, or anything about which key they used. ## What is stored Per event: the time, the kind, the visitor's IP address, the first 200 characters of the user agent and an opaque session id. If the visitor presented their own key, also their account id and name at that time. Passphrases and keys are never stored. The log keeps the newest 500 events (256 KB) per link. It is deleted when the link is revoked, burned or expired, or when its file is replaced or deleted. ## What the operator controls `FUZZY_ACCESS_LOG` sets how much is recorded: | Value | Effect | |---|---| | `full` | IP addresses as seen (default) | | `anonymous` | IPv4 last octet zeroed, IPv6 cut to /64 | | `off` | Nothing is recorded | IP addresses are personal data in many places, so tell your users what you log. See the [privacy page](legal-privacy.md). Behind a proxy, set `FUZZY_TRUST_PROXY=true` or every visitor looks like the proxy. > [!NOTE] > IPs and user agents are whatever the client sent. Treat the log as a hint, not as evidence. The API shape is in [Links in the API](api-links.md#link-activity). --- # Limits FuzzyShare is for short-lived files, so its limits are small and some of them are fixed in the program. | Limit | Value | Can an operator change it? | |---|---|---| | Lifetime of a file | 14 days at most, 24 hours by default | Lower only (`FUZZY_MAX_TTL`, `FUZZY_DEFAULT_TTL`) | | Storage per person | 1 GB of live files | Lower only (`FUZZY_USER_QUOTA`) | | Size of one file | 50 MB by default | Yes (`FUZZY_MAX_SIZE`) | | Access keys per account | 20 | No | | Active links per file | 20 | No | | Active links per person | 200 | No | | Allowed fingerprints per link | 20 | No | | Passphrase | 8 to 200 characters | No | | `max_downloads` on a link | 1 to 1000 | No | | Content sent through MCP | 5 MB | No. Use HTTP for larger files | | Link activity log | newest 500 events (256 KB) per link | No | | Registrations | 10 per hour per IP by default | Yes (`FUZZY_SIGNUPS_PER_HOUR`) | | Wrong passphrases | 5 per link and address per 10 minutes | No | An upload that would not fit your quota is refused before anything is written (`413`). Expired files stop counting at once. > [!NOTE] > The 14-day and 1 GB ceilings are constants in the program. A server cannot be configured into long-term storage. Read the current values of a server from `GET /config` (no key needed) or `GET /me`. --- # Plans This page is about the hosted service. A server you run yourself has one set of limits, set by its operator (see [Limits](concepts-limits.md)), and nothing is locked. ## What each plan includes | | Free | Pro | Team (per seat) | |---|---|---|---| | Live storage | 5 GB | 128 GB | 128 GB per seat, pooled | | Largest file | 1 GB | 50 GB | 50 GB | | Longest lifetime | 14 days | 30 days | 30 days | | Access keys | 3 | 20 | 20 per member | | Download limits on links | no | yes | yes | | End-to-end encrypted sharing | no | yes | yes | | Shared folders, roles, link policy, audit log | no | no | yes | Public and passphrase links, link activity, the CLI and MCP are on every plan. ## Find your plan and limits `GET /me` returns `limits.plan`, the numbers that apply to you, and `limits.features`, a map of what your plan unlocks. `GET /config` (no key) shows the Free plan. ```json {"plan":"free","max_size":1073741824,"quota":5368709120,"max_keys":3, "features":{"burn_after_read":false,"e2ee":false}} ``` ## When a feature is locked A request that needs a feature your plan lacks answers `402`: ```json {"error":"Download limits on links is part of Pro","code":"plan_required", "feature":"burn_after_read","needs":"pro","plan":"free","upgrade_url":"https://example.com/pricing"} ``` Limits keep their usual status and gain the same fields: `413` with `code` `file_too_large` or `quota_exceeded`, and `409` with `key_limit`. Each has `limit` and `plan`. ## Changing plan Nothing is deleted when you move to a smaller plan. Your files stay until they expire. Uploads that no longer fit are refused until you are back under the limit, and new use of a locked feature is refused. Links you already made keep working. --- # The dashboard The dashboard is the browser app at [/dashboard](/dashboard). Sign in at [/access](/access) with your access key. If you are signed out, `/dashboard` sends you there first. ## Sections | Section | What you do there | |---|---| | **Overview** | See your files, storage used of 1 GB, active links, keys and total link views. Find files that expire soon, recent uploads and quick actions. | | **Files** | Drop files to upload, paste text or a web address, search, sort, preview and delete. Press **Share** on a row to make a link. | | **Links** | All your active links with access mode, reads, views and expiry. Open **Details** for the activity log, **Copy** a public URL, or **Revoke**. | | **Keys** | Create named access keys (shown once), see fingerprints and when each was last used, and revoke. | | **Command line** | The install one-liner for macOS, Linux and Windows, and the login command. | | **API and agents** | Ready-made snippets to connect Claude Code, Cursor, Codex and Claude Desktop over MCP, and `curl` examples. | | **Account** | Your profile and replacing the key you are signed in with. | ## Uploading Drop a file on the upload area or press **Upload**. Choose the lifetime (15 minutes up to 14 days) and whether it is **Public** or **Private** from the bar. Large files stream to the server, and a progress bar shows the transfer. The **Paste** panel stores text as a file. If you paste a single web address, FuzzyShare saves it as a `.url` link file. ## Sharing Press **Share** on a file. Pick public, or private with a passphrase, allowed fingerprints or both. Optionally set a lifetime, a download limit and a label. A private link's URL appears **once**: copy it before you close the dialog. ## Keys Create one key per machine or agent. A new key is revealed once with a copy button. Revoking removes it at once. See [Access keys and identity](concepts-keys.md). ## Admin If you are the operator and sign in with the admin key, an extra **Users** page lists accounts, with file counts, storage and how many keys each person holds. It shows no one's files and no key details. --- # Share a file safely Sharing a file means giving someone else a way to read it. This guide shows how to give exactly as much access as you intend. ## Choose the link | You want | Use | |---|---| | Anyone with the URL can read it | A public link | | Only people who know a secret | A private link with a passphrase | | Only specific FuzzyShare users | A private link with an allow-list of fingerprints | | One person, one time | Add `--max-downloads 1` | ## A public link ```sh {tab="CLI"} fuzzy share notes.md --ttl 2h ``` ```sh {tab="curl"} curl -H "Authorization: Bearer $FUZZY_KEY" \ -X POST "https://fuzzyshare.com/files/notes.md/share?ttl=2h" ``` Send the URL. Public links are read-only, and they stop working when the file expires or is replaced. ## A private link with a passphrase ```sh {tab="CLI"} FUZZY_PASSPHRASE="correct horse battery" fuzzy share report.pdf --private ``` ```sh {tab="curl"} curl -H "Authorization: Bearer $FUZZY_KEY" -X POST https://fuzzyshare.com/files/report.pdf/share \ -d '{"access":"private","passphrase":"correct horse battery"}' ``` Send the URL and the passphrase **through different channels**. Environment variables keep the passphrase out of the process list, which a `--passphrase` flag does not. ## Allow specific keys Ask your colleague for the fingerprint of their access key. They find it under **Keys** in their dashboard, or with `fuzzy keys ls`. It looks like `sha256:9f2c4ab01d3e7f58`. Fingerprints are safe to send: they identify a key but cannot be used as one. ```sh fuzzy share report.pdf --allow sha256:9f2c4ab01d3e7f58 --label "for Sam" ``` They read it with their own key: ```sh fuzzy fetch https://fuzzyshare.com/s/TOKEN ``` ## Burn after reading ```sh fuzzy share secret.txt --passphrase "correct horse battery" --max-downloads 1 ``` After one read the link answers `404`. ## Check who opened it ```sh fuzzy activity l_0123456789ab ``` See [Access activity and privacy](concepts-activity.md) for what is recorded. ## Revoke ```sh fuzzy links # find the id fuzzy unshare l_0123456789ab ``` > [!WARNING] > Anyone who already downloaded a file keeps their copy. Revoking stops future reads only. --- # Use FuzzyShare from CI A CI job needs three things: the server's address, a key, and a command. The key should belong to the job alone. ## Create a key for CI ```sh fuzzy keys add ci-bot ``` The key is printed once. Store it as a secret in your CI system, for example `FUZZY_KEY`. Store the address as `FUZZY_URL`. When the job leaks or is retired, revoke only that key: ```sh fuzzy keys rm k_37ea501438da ``` ## Install the CLI in the job ```sh curl -fsSL https://fuzzyshare.com/install.sh | FUZZY_INSTALL_DIR="$HOME/.local/bin" sh export PATH="$HOME/.local/bin:$PATH" ``` ## Upload With `FUZZY_URL` and `FUZZY_KEY` set, no `fuzzy login` is needed: ```sh fuzzy put dist/app.tar.gz --ttl 3d --share ``` The URL is the only thing printed on standard output, so you can capture it: ```sh URL=$(fuzzy put dist/app.tar.gz --ttl 3d --share) echo "Artifact: $URL" ``` ## GitHub Actions ```yaml - name: Upload build env: FUZZY_URL: ${{ vars.FUZZY_URL }} FUZZY_KEY: ${{ secrets.FUZZY_KEY }} run: | curl -fsSL "$FUZZY_URL/install.sh" | FUZZY_INSTALL_DIR="$HOME/.local/bin" sh echo "$HOME/.local/bin" >> "$GITHUB_PATH" "$HOME/.local/bin/fuzzy" put dist/app.tar.gz --ttl 3d --share ``` ## Without the CLI ```sh curl -fsS -H "Authorization: Bearer $FUZZY_KEY" \ -T dist/app.tar.gz "$FUZZY_URL/files/app.tar.gz?ttl=3d&visibility=public" ``` The response includes `public_url` and `raw_url`. > [!TIP] > Pick the shortest `--ttl` that covers the job's consumers. Artifacts that clean themselves up cannot pile up. Exit codes and more patterns are in [Scripting and exit codes](cli-scripting.md). --- # Use FuzzyShare with AI agents FuzzyShare is built so an agent can use it without a human in the loop for every step. There are three ways in. ## 1. Paste the agent prompt Open the [docs home](/docs#agent-prompt), press **Get the setup prompt** and copy it. Paste it into your assistant. It asks the agent to install the CLI, sign in and connect MCP. ## 2. Connect over MCP MCP gives the agent tools such as `upload_file` and `share_file`. Connect it with your access key: ```sh {tab="Claude Code"} claude mcp add --transport http fuzzyshare https://fuzzyshare.com/mcp \ --header "Authorization: Bearer $FUZZY_KEY" ``` ```toml {tab="Codex"} # ~/.codex/config.toml [mcp_servers.fuzzyshare] url = "https://fuzzyshare.com/mcp" bearer_token_env_var = "FUZZY_KEY" ``` ```json {tab="Cursor"} {"mcpServers":{"fuzzyshare":{"url":"https://fuzzyshare.com/mcp", "headers":{"Authorization":"Bearer ${env:FUZZY_KEY}"}}}} ``` More detail is on [Connect an agent](mcp-connect.md), and every tool is on the [tools reference](mcp-tools.md). ### An agent with no key yet Connect **without** the header. The agent can call the `register` tool once, store the key it returns, and reconnect with the header. Keep that key in a secret store, not in chat. ## 3. Give it the guide An agent that can fetch URLs can read [/llms.txt](/llms.txt) for the short version, or [/llms-full.txt](/llms-full.txt) for every documentation page as one file. See [llms.txt](mcp-llms-txt.md). ## Good practice for agents - **Give each agent its own named key** so you can see what it uploaded and revoke it alone. - **Ask for short lifetimes.** The tool descriptions already say to pick the shortest `ttl` that fits. - **Use private links** for anything sensitive, and ask the agent to tell you the passphrase separately. - **Large files go over HTTP.** MCP carries at most 5 MB; the agent can use `curl` or the CLI for more. --- # Install the CLI The `fuzzy` command uploads, shares and manages files from a terminal. It is a single binary with no dependencies, served by the FuzzyShare server itself. ## Install ```sh {tab="macOS and Linux"} curl -fsSL https://fuzzyshare.com/install.sh | sh ``` ```powershell {tab="Windows"} irm https://fuzzyshare.com/install.ps1 | iex ``` The script: 1. Detects your system (`linux` or `darwin`, `amd64` or `arm64`; Windows is `amd64`). 2. Downloads the matching binary and `checksums.txt` from `https://fuzzyshare.com/dl/`. 3. Verifies the SHA-256 checksum and refuses to install on a mismatch. 4. Installs into `$FUZZY_INSTALL_DIR`; otherwise `/usr/local/bin` if you can write there; otherwise `~/.local/bin` (and tells you to add it to your `PATH`). 5. Prints the version and the next step. It never uses `sudo` itself, and it is safe to run again: running it again installs the version the server offers. On Windows the binary goes to `%LOCALAPPDATA%\fuzzyshare\bin`, which is added to your user `PATH`. Read the script before you run it: open `https://fuzzyshare.com/install.sh` in a browser or run `curl -fsSL https://fuzzyshare.com/install.sh | less`. ### Choose the install directory ```sh curl -fsSL https://fuzzyshare.com/install.sh | FUZZY_INSTALL_DIR="$HOME/bin" sh ``` ### Other ways Build from source with Go 1.24 or newer: ```sh go install github.com/mahmoud-emad/fuzzyshare/cmd/fuzzy@latest ``` Or download a file yourself from `https://fuzzyshare.com/dl/`: `fuzzy-linux-amd64`, `fuzzy-linux-arm64`, `fuzzy-darwin-amd64`, `fuzzy-darwin-arm64`, `fuzzy-windows-amd64.exe`. Check it against `https://fuzzyshare.com/dl/checksums.txt` with `sha256sum` or `shasum -a 256`. ## Sign in ```sh fuzzy login ``` The installer remembers the server it came from, so `fuzzy login` only asks for your access key (hidden), checks it against that server and saves it. New here? Create an account instead: ```sh fuzzy register --name "Ada Lovelace" --email ada@example.com ``` Installed some other way, or using more than one server? Tell the CLI which one once with `fuzzy server https://fuzzyshare.com`, or pass `--url` to a single command. See [`fuzzy server`](cli-reference.md#server). Confirm with `fuzzy whoami`. Settings and where they are saved are on [Configuration](cli-config.md). ## Check the version ```sh fuzzy version ``` It prints the version, the commit and the operating system and architecture. ## Update ```sh fuzzy update --check # only report whether a newer version exists fuzzy update # download, verify and replace the binary ``` `fuzzy update` asks the server from your saved login (or from `--url`) for the newest build, downloads the one for your system, verifies its checksum, and replaces the running binary in one atomic step. A failed or partial download never touches the installed binary. ## Shell completion ```sh {tab="bash"} fuzzy completion bash > ~/.local/share/bash-completion/completions/fuzzy ``` ```sh {tab="zsh"} fuzzy completion zsh > "${fpath[1]}/_fuzzy" ``` ```sh {tab="fish"} fuzzy completion fish > ~/.config/fish/completions/fuzzy.fish ``` ```powershell {tab="PowerShell"} fuzzy completion powershell | Out-String | Invoke-Expression ``` ## Uninstall Delete the binary (`command -v fuzzy` shows where it is) and, if you want, the saved login at `~/.config/fuzzyshare/config.json`. ## Troubleshooting See [Troubleshooting](troubleshooting.md) if `fuzzy` is not found after installing or a checksum fails. --- # Command reference `fuzzy` is both the server and its client. `fuzzy serve` starts the server. Any other command acts as a client, and `fuzzy` alone on a terminal shows help. `fuzzy help` lists the commands, and `fuzzy help COMMAND` or `fuzzy COMMAND -h` shows one command's flags. Flags may come before or after the arguments: `fuzzy put report.pdf --ttl 1h` and `fuzzy put --ttl 1h report.pdf` are the same. ## Shared flags Every client command accepts `--url` and `--key` (all but `register`, which has no key yet). They override the environment and the saved login. See [Configuration](cli-config.md) for the order. ## login Save the server address and your key after checking them. ```sh fuzzy login echo "$KEY" | fuzzy login ``` The server is the one the installer saved, or the one you pass with `--url`. On a terminal you are asked for the access key (hidden); with no server known at all you are asked for that first. | Flag | Meaning | |---|---| | `--url URL` | Server address, for the first sign-in or to switch servers | | `--key KEY` | Your key. Without it, read from standard input when piped, or prompted (hidden when the terminal allows) | ## server Show or set the default server, so the other commands (and `fuzzy login`) know where to go. ```sh fuzzy server # print the default server fuzzy server https://fuzzyshare.com # make it the default ``` | Flag | Meaning | |---|---| | `--if-unset` | Save the address only when none is saved yet (the installer uses this) | | `--no-check` | Skip asking the server whether it answers | An access key belongs to one server. Setting a different server signs you out of the old one, so a key is never sent anywhere it was not issued. The same rule applies to `--url` and `FUZZY_URL`: a saved key is only used for the server it was saved with. ## register Create an account and print its key on standard output. The key is shown once. On a server that confirms email addresses, it prints nothing but a note: open the emailed link, copy the key it shows, then run `fuzzy login`. It is saved as your login only when none is saved yet. ```sh fuzzy register --name "Ada Lovelace" --email ada@example.com ``` | Flag | Meaning | |---|---| | `--name N` | Your full name (required) | | `--email E` | Your email address (required) | | `--key-name K` | Name for the first key (default `default`) | | `--signup-code C` | If the server requires one. Default `$FUZZY_SIGNUP_CODE` | | `--url URL` | Server address | ## whoami Show the account, the key in use (name and fingerprint) and usage. ```sh fuzzy whoami fuzzy whoami --json ``` ## put Upload a file, or standard input with `-`. ```sh fuzzy put report.pdf --ttl 7d URL=$(fuzzy put report.pdf --ttl 1h --share) tar c dir | fuzzy put - --name dir.tar --public ``` | Flag | Meaning | |---|---| | `--name N` | Name on the server. Default: the file's name. Required with `-` | | `--ttl 1h` | How long to keep the file (`90m`, `24h`, `7d`; 14 days at most) | | `--public` / `--private` | Public: anyone with the URL can read. Private: readers need the passphrase or an allowed key | | `--share` | Create a link and print its URL | | `--passphrase P` | Private link with a passphrase. Visible in process lists: prefer `FUZZY_PASSPHRASE` with `--private` | | `--allow FP` | Fingerprint of a key allowed to read (repeatable). Makes the link private | | `--max-downloads N` | The link stops working after N downloads | | `--label L` | A note shown in `fuzzy links` | How `put` decides what to do: - **No link options:** uploaded, private to you, nothing printed on standard output. - **`--public` alone:** uploaded public; the public URL is printed. - **`--private` alone:** uploaded private. - **`--share`, `--passphrase`, `--allow`, `--max-downloads` or `--label`:** uploaded, then a link is made (public unless a passphrase, an allow-list or `--private` makes it private) and its URL is printed. A private link needs a passphrase or `--allow`. ## get Download one of your files. ```sh fuzzy get report.pdf fuzzy get report.pdf -o ~/Downloads/ fuzzy get report.pdf -o - | head ``` `-o` takes a path, a directory, or `-` for standard output. The file is written under a temporary name and renamed when complete, so a failure leaves no partial file and never damages an existing one. ## ls List your files with size, visibility, link count, the key that uploaded each and time to expiry. ```sh fuzzy ls fuzzy ls --json ``` ## rm Delete files now. Their links stop working. It keeps going after a failure and exits `1` if any failed. ```sh fuzzy rm report.pdf notes.txt ``` ## share Make a link to a file and print only its URL. Without options the link is public. ```sh fuzzy share report.pdf --ttl 1h fuzzy share report.pdf --passphrase "correct horse battery" --max-downloads 1 fuzzy share report.pdf --allow sha256:9f2c4ab01d3e7f58 --label "for Sam" ``` It takes the same link flags as `put` (`--ttl` here is the link's lifetime, shorter than the file's). ## links List active links, all or one file's. Private links show no URL: it was shown once. ```sh fuzzy links fuzzy links report.pdf --json ``` The columns are `ID`, `FILE`, `ACCESS`, `VIEWS`, `DOWNLOADS`, `EXPIRES`, `LABEL`, `URL`. ## activity See who opened a link: one row per visitor session. ```sh fuzzy activity l_0123456789ab fuzzy activity l_0123456789ab --json ``` A visitor is named only when they presented their own key. Preview bots are marked "bot". The operator decides whether IPs are logged in full, masked or not at all. See [Access activity and privacy](concepts-activity.md). ## unshare Revoke links by id. ```sh fuzzy unshare l_0123456789ab l_ba9876543210 ``` ## keys Manage your named access keys. ```sh fuzzy keys ls # with fingerprints fuzzy keys add ci-bot # printed once on standard output fuzzy keys rm k_37ea501438da # not allowed for your only key ``` ## fetch Read a share link (`/s/TOKEN`, `/raw` and `/info` forms). The file is saved under the name the server gives it. ```sh fuzzy fetch https://fuzzyshare.com/s/TOKEN fuzzy fetch https://fuzzyshare.com/s/TOKEN --passphrase "correct horse battery" -o - ``` | Flag | Meaning | |---|---| | `--passphrase P` | Passphrase of a private link. Default `$FUZZY_PASSPHRASE` | | `-o PATH` | A path, a directory, or `-` for standard output | `fetch` sends your saved key to a private link only if the link asks for a key and lives on the server you are logged in to. A key is never sent to another host. ## version Print the version, the commit and the system the binary was built for. ## update Replace the binary with the newest build from the server. `--check` only reports. See [Install the CLI](cli-install.md#update). ## completion Print a completion script for `bash`, `zsh`, `fish` or `powershell`. See [Install the CLI](cli-install.md#shell-completion). ## serve Start the server. This is what the systemd unit and the Docker image run. See [Self-hosting](self-hosting-install.md). --- # Scripting and exit codes The CLI is built to be scripted. Its outputs are predictable and its exit codes mean something. ## Output streams - **Standard output** holds the result only: a link URL, a new key, JSON, a table, or the bytes of `fuzzy get -o -`. - **Standard error** holds notices, confirmations and errors. A progress line is drawn there only when it is a terminal. So `URL=$(fuzzy put report.pdf --share)` captures just the URL. ## Exit codes | Code | Meaning | |---|---| | `0` | Success | | `1` | A request or runtime error. The server's own error text is shown as is | | `2` | A usage error: unknown command or flag, wrong number of arguments, conflicting options. Options are checked before anything is uploaded | ## Patterns ```sh # upload and get the link URL=$(fuzzy put build.tar.gz --ttl 1d --share) # a one-time secret fuzzy put secret.txt --passphrase "$PASS" --max-downloads 1 # pipelines pg_dump mydb | gzip | fuzzy put - --name mydb.sql.gz --ttl 3d fuzzy get mydb.sql.gz -o - | gunzip | psql other # CI: no login needed FUZZY_URL=https://fuzzyshare.com FUZZY_KEY=$CI_KEY fuzzy put out.zip --share # machine-readable lists fuzzy ls --json | jq -r '.files[].name' fuzzy links --json | jq -r '.links[] | select(.access=="public") | .id' ``` ## Handle failures ```sh if ! URL=$(fuzzy put report.pdf --ttl 1h --share); then echo "upload failed" >&2 exit 1 fi ``` `fuzzy rm` on several names keeps going after a failure and exits `1` if any failed. ## Keep secrets out of the process list A flag such as `--passphrase` is visible to other users in `ps`. Use `FUZZY_PASSPHRASE` with `--private` instead, and `FUZZY_KEY` instead of `--key`. ```sh FUZZY_PASSPHRASE="$PASS" fuzzy put secret.txt --private --share ``` ## JSON output `whoami`, `ls`, `links`, `activity` and `keys ls` accept `--json` and print the server's answer unchanged. The shapes are the ones in the [HTTP API](api-overview.md). --- # Configuration The client needs two settings: the server's address (`url`) and your access key (`key`). ## Order of precedence Highest first: 1. The flags `--url` and `--key`. 2. The environment variables `FUZZY_URL` and `FUZZY_KEY`. 3. The file written by `fuzzy login`. ## The saved login | System | Path | |---|---| | macOS and Linux | `$XDG_CONFIG_HOME/fuzzyshare/config.json`, else `~/.config/fuzzyshare/config.json` | | Windows | `fuzzy\config.json` in the user config directory | The file holds `{"url": "...", "key": "..."}`. It is written atomically with mode `0600` in a `0700` directory. Delete it to sign out. ## Environment variables | Variable | Used by | Meaning | |---|---|---| | `FUZZY_URL` | all client commands | Server address | | `FUZZY_KEY` | all client commands | Access key | | `FUZZY_PASSPHRASE` | `fetch`, and `--private` links | Passphrase, kept out of the process list | | `FUZZY_SIGNUP_CODE` | `register` | The signup code, if the server needs one | | `FUZZY_INSTALL_DIR` | `install.sh`, `install.ps1` | Where to install the binary | ## Safety The client warns on standard error when the key would be sent over plain `http` to anything but localhost. Use `https`: the key travels in every request. --- # HTTP API overview The API is plain HTTP and JSON. Everything the dashboard and the CLI do goes through it, so anything you can do there you can do with `curl`. Base URL for this server: `https://fuzzyshare.com`. ## Authentication Send your access key on every request, reads included: ```sh curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/me ``` The only calls that do not need it are marked **public** below. A missing or unknown key returns `401`. Create a key with [`POST /register`](#register). ## Endpoints | Endpoint | What it does | |---|---| | `GET /health` | `{"status":"ok"}` (**public**) | | `GET /config` | Limits and whether a signup code is needed (**public**) | | `GET /llms.txt` | A plain-text guide for agents (**public**) | | `GET /llms-full.txt` | All documentation as one Markdown file (**public**) | | `POST /register` | Create an account (**public**) | | `GET /me` | Who the key belongs to, usage and limits | | `POST /me/key` | Replace the key used for this call | | `PATCH /me` | Edit your `full_name`, `organization` or `purpose` (the email cannot change) | | `GET /me/settings`, `PUT /me/settings` | Read or save your preferences: `theme`, `default_ttl`, `default_access` | | `DELETE /me` | Delete your account (send `{"confirm":""}`); see below | | `GET /me/keys`, `POST /me/keys`, `DELETE /me/keys/{id}` | [Named keys](api-keys.md) | | `PUT`, `GET`, `DELETE /files/{name}`, `GET /files` | [Files](api-files.md) | | `POST /files/{name}/share`, `GET /links`, `DELETE /links/{id}` | [Links](api-links.md) | | `GET /links/{id}/activity` | [Link activity](api-links.md#link-activity) | | `GET /s/{token}`, `/s/{token}/raw`, `/s/{token}/info` | Read a link (**public**, or unlocked for private links) | | `POST /mcp` | The [MCP server](mcp-connect.md) | | `GET /admin/users`, `DELETE /admin/users/{id}`, `POST /admin/users/{id}/reactivate` | Operator only | ## Register `POST /register` creates an account and its first key. ```sh curl -X POST https://fuzzyshare.com/register \ -d '{"full_name":"Ada Lovelace","email":"ada@example.com","organization":"Analytical","purpose":"reports"}' ``` | Field | Notes | |---|---| | `full_name` | Required, 2 to 100 characters | | `email` | Required. One account per email | | `organization`, `purpose` | Optional | | `key_name` | Optional name for the first key (default `default`) | | `signup_code` | Required only if the server sets one (`signup_code_required` in `/config`) | The response is `201`: ```json {"key":"fuzzy_...","note":"store this key now: it is shown once and cannot be recovered", "user":{"id":"a6bd0bd2c16b0460","full_name":"Ada Lovelace","email":"ada@example.com", "organization":"Analytical","purpose":"reports","created_at":"...","last_seen":"...","key_hint":"YJ7I"}} ``` The key is shown once. See [Access keys and identity](concepts-keys.md). **Servers that confirm email addresses.** When the operator has set up email (`email_confirmation` in `/config`), `POST /register` creates nothing and returns `202` with `{"status":"pending","message":"..."}`. The person gets a link by email. Opening it and pressing **Confirm** creates the account and shows the key once. The answer is the same whether or not the address already has an account. A link works once and expires after 24 hours. The page calls `POST /register/confirm` with `{"token":"..."}`, which returns the `201` above, or `410` if the link is used up or expired. Signing in with GitHub or Google needs no confirmation, since the provider has already verified the address. A second registration with the same email returns `409`; registrations are rate limited per IP (`429`). ## Who am I ```sh curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/me ``` ```json {"admin":false, "key":{"id":"k_2457f6de2af3","name":"default","fingerprint":"sha256:9f40a72b1a603ba8"}, "limits":{"max_size":52428800,"quota":1073741824,"default_ttl_seconds":86400, "max_ttl_seconds":1209600,"allow_public":true,"access_log":"full"}, "usage":{"files":0,"bytes":0}, "user":{"id":"...","full_name":"Ada Lovelace","email":"ada@example.com","...":"..."}} ``` ## Replace the key in use `POST /me/key` gives the same key id and name a new secret. The old secret stops working at once. ```json {"key":"fuzzy_...","info":{"id":"k_...","name":"default","fingerprint":"sha256:..."}, "note":"the previous key no longer works","user":{"...":"..."}} ``` ## Lifetimes Pass `ttl` as a query parameter or the `X-Fuzzy-TTL` header: seconds (`3600`) or a number with `s m h d w` (`90m`, `24h`, `7d`, `14d`). See [Files and expiry](concepts-files.md). ## Settings and deleting an account `PUT /me/settings` takes `{"theme":"dark|light|system","default_ttl":"7d","default_access":"private|public"}`. The theme is `dark` until you choose another. They are saved on the account and the dashboard uses them as the pre-selected values for new uploads. Uploads over the API and the CLI still use the `ttl` and visibility you send (or the server defaults). `DELETE /me` with `{"confirm":""}` is a soft delete. The account record is kept but deactivated: every access key is refused (`401`), every share link is removed, and the files can no longer be reached and are deleted when they expire. The email address stays reserved. An operator can restore the account with `POST /admin/users/{id}/reactivate`; its links do not come back. `DELETE /admin/users/{id}` still removes a user and everything they own for good. ## Header names The request headers are `X-Fuzzy-TTL`, `X-Fuzzy-Visibility` and `X-Fuzzy-Passphrase`, and file responses carry `X-Fuzzy-Expires`. Before the rename they were called `X-Siso-*`. Those names are still accepted on requests, and responses send both, so existing clients keep working. ## Cross-origin calls Requests with a foreign `Origin` header to the MCP endpoint are refused; the API is meant for programs, not for other sites' scripts. --- # Files API All of these need your access key. Names are 1 to 128 characters of letters, digits, `.`, `_`, `-`, starting with a letter or digit. ## Upload `PUT /files/{name}` takes the raw bytes as the body. They are streamed to disk, so large files do not fill memory. ```sh {tab="Upload"} curl -H "Authorization: Bearer $FUZZY_KEY" \ -T report.pdf "https://fuzzyshare.com/files/report.pdf?ttl=7d" ``` ```sh {tab="From a pipe"} echo '{"a":1}' | curl -H "Authorization: Bearer $FUZZY_KEY" \ -T - "https://fuzzyshare.com/files/data.json?ttl=1h" ``` ```sh {tab="Public"} curl -H "Authorization: Bearer $FUZZY_KEY" \ -T report.pdf "https://fuzzyshare.com/files/report.pdf?visibility=public" ``` | Parameter | Meaning | |---|---| | `ttl` | Lifetime, or header `X-Fuzzy-TTL`. Default 24h, max 14d | | `visibility` | `private` (default) or `public`, or header `X-Fuzzy-Visibility`. Public also returns `public_url` and `raw_url` | | `Content-Type` | Used for type detection, then the extension, then the first bytes | `201` for a new file, `200` when it replaced one. Replacing resets the lifetime and revokes the old file's links. ```json {"name":"report.pdf","size":184320,"content_type":"application/pdf","kind":"pdf", "uploaded_at":"2026-12-02T19:11:17Z","expires_at":"2026-12-09T19:11:17Z", "url":"https://fuzzyshare.com/files/report.pdf","uploaded_by":{"id":"k_2457f6de2af3","name":"default"}, "visibility":"private","links":0} ``` Errors: `400` for a bad name or ttl or an interrupted upload, `413` when the file is over the size limit or the upload would exceed your 1 GB, `403` for `visibility=public` when public links are off. ## List ```sh curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/files ``` Returns `{"files":[...]}`, newest first. Each item has `name`, `size`, `content_type`, `kind`, `uploaded_at`, `expires_at`, `url`, `uploaded_by`, `visibility`, `links`, and `public_url` and `raw_url` when public. ## Download ```sh curl -H "Authorization: Bearer $FUZZY_KEY" -O https://fuzzyshare.com/files/report.pdf ``` `GET` and `HEAD` work, and `Range` is honored. An expired or missing file returns `404`. ## Delete ```sh curl -H "Authorization: Bearer $FUZZY_KEY" -X DELETE https://fuzzyshare.com/files/report.pdf ``` The file and its links are removed now. ## Change visibility `PUT /files/{name}/visibility` with `{"visibility":"public"}` or `{"visibility":"private"}`. ```sh curl -H "Authorization: Bearer $FUZZY_KEY" -X PUT \ -d '{"visibility":"private"}' https://fuzzyshare.com/files/report.pdf/visibility ``` Public ensures one public link and returns `{visibility, public_url, raw_url}`. Private revokes the file's public links and leaves its private links alone. --- # Links API A link is read-only access to one version of one file. For the ideas behind it, see [Public and private links](concepts-links.md). ## Create a link `POST /files/{name}/share`. With no body you get a public link; `?ttl=1h` shortens its life. ```sh {tab="Public"} curl -H "Authorization: Bearer $FUZZY_KEY" -X POST "https://fuzzyshare.com/files/report.pdf/share?ttl=1h" ``` ```sh {tab="Private"} curl -H "Authorization: Bearer $FUZZY_KEY" -X POST https://fuzzyshare.com/files/report.pdf/share \ -d '{"access":"private","passphrase":"correct horse battery","max_downloads":1,"ttl":"1h","label":"for Sam"}' ``` The JSON body (all fields optional, unknown fields rejected): ```json {"ttl":"1h","access":"public|private","label":"for Sam", "passphrase":"...","allow":["sha256:9f2c4ab01d3e7f58"],"max_downloads":1} ``` - `access` defaults to `public`, which takes no `passphrase` or `allow`. `private` needs a passphrase (8 to 200 characters), at least one fingerprint in `allow` (max 20), or both. - `ttl` can only shorten the file's remaining life. `max_downloads` is 1 to 1000. `label` is up to 60 characters. - At most 20 active links per file and 200 per person (`409`). `403` for a public link when the server has turned them off. The response is `201`: ```json {"id":"l_6f1be9c8a665","file":"a.txt","access":"private","label":"for Sam","has_passphrase":true, "allow":[],"downloads":0,"max_downloads":2,"created_at":"...","expires_at":"...", "created_by":{"id":"k_...","name":"default"}, "url":"https://fuzzyshare.com/s/","raw_url":"https://fuzzyshare.com/s//raw"} ``` A private link's `url` is shown only here. ## List and revoke ```sh curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/links # all curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/files/report.pdf/links # one file curl -H "Authorization: Bearer $FUZZY_KEY" -X DELETE https://fuzzyshare.com/links/l_6f1be9c8a665 ``` Lists return `{"links":[...]}`. Each item has `id`, `file`, `access`, `label`, `has_passphrase`, `allow`, `downloads`, `max_downloads`, `created_at`, `expires_at`, `created_by`, `views`, `reads_logged`, and `url` and `raw_url` for public links. Revoking returns `{"revoked":"l_..."}`. ## Read a link | URL | Returns | |---|---| | `GET /s/{token}` | A preview page for browsers, the bytes for programs | | `GET /s/{token}/raw` | Always the bytes. `?download=1` forces a download | | `GET /s/{token}/info` | Name, size, type, expiry, `access`, and `reads_left` for limited links | | `POST /s/{token}/unlock` | Browsers: body `{"passphrase":"..."}` or an `Authorization` header. `204` and a 10-minute cookie | Public links answer `GET` and `HEAD` only. ### Private links Without proof, `/info` and `/raw` answer `401` and reveal nothing about the file: ```json {"error":"this link is private","locked":true,"methods":["passphrase","key"]} ``` Programs prove access on the request itself: ```sh {tab="Passphrase"} curl -H "X-Fuzzy-Passphrase: correct horse battery" https://fuzzyshare.com/s/TOKEN/raw -o report.pdf ``` ```sh {tab="Allowed key"} curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/s/TOKEN/raw -o report.pdf ``` For a key, its fingerprint must be on the allow-list and the key must still be live. Browsers call `/unlock` and carry the cookie `fuzzy_u` (`HttpOnly`, `SameSite=Strict`, `Path=/s/`, 10 minutes). After 5 wrong passphrases from one address on one link, further attempts get `429` for 10 minutes. ### Limited reads A request that serves bytes counts as one download; `/info`, the preview page and `HEAD` never do. When the limit is reached the link answers `404`. ## Link activity `GET /links/{id}/activity?limit=200` (`limit` 1 to 500 events, default 200). Only the link's owner can read it: another person's link and an unknown id return `404`, and the admin key returns `403`. ```json {"logging":"full", "link":{"id":"l_...","file":"a.txt","access":"public","...":"..."}, "summary":{"views":4,"reads":2,"sessions":3,"visitors":2,"bots":1,"last_access":"2026-12-02T18:00:00Z","by_you":1}, "sessions":[{"id":"9f2c4ab01d3e7f58","first_seen":"...","last_seen":"...","ip":"203.0.113.9", "device":"Chrome on macOS","bot":false, "user":{"name":"Sam Reader","organization":"Acme","member_since":"...","you":false,"deleted":false}, "counts":{"view":1,"read":2,"locked":0,"unlock_ok":0,"unlock_fail":0,"throttled":0}, "events":[{"at":"...","kind":"read","count":2,"last":"..."}]}], "truncated":false,"proxy_hint":false} ``` - **Events:** `view`, `read`, `locked`, `unlock_ok`, `unlock_fail`, `throttled`. Identical events from one session within 60 seconds merge into one with a `count`. - **Sessions:** the id is an HMAC of link, IP and user agent. A session splits after 30 minutes of silence. Bots and crawlers have `bot: true` and are left out of `views`, `reads` and `visitors`. - **`user`** is present only when the visitor presented their own valid key on that request. It has only `name`, `organization`, `member_since`, `you` and `deleted`. There is no `key` field: the log never records which key a visitor used. A removed account shows `deleted: true` with the name logged at the time. - **`logging`** is the server's `FUZZY_ACCESS_LOG`: `full`, `anonymous` or `off` (nothing recorded, `sessions` empty). `proxy_hint` is true when every IP is loopback or private. `truncated` means older events are not shown. See [Access activity and privacy](concepts-activity.md). --- # Keys and account API An account holds up to 20 named access keys. See [Access keys and identity](concepts-keys.md) for why a key is shown once. ## The key object ```json {"id":"k_37ea501438da","name":"ci-bot","fingerprint":"sha256:ebd50918c725db83", "hint":"bHTU","created_at":"...","last_used":null,"current":false} ``` - `id` is `k_` plus 12 hex characters and says nothing about the key. - `fingerprint` is `sha256:` plus the first 16 hex characters of the key's SHA-256. It is what you put on a private link's allow-list. - `hint` is the last four characters of the key. - `last_used` is `null` until the key is used. It is refreshed at most once a minute, so it can lag. - `current` is true for the key making the request. ## List ```sh curl -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/me/keys ``` Returns `{"keys":[...]}`. ## Create ```sh curl -H "Authorization: Bearer $FUZZY_KEY" -X POST https://fuzzyshare.com/me/keys -d '{"name":"ci-bot"}' ``` `201` with `{"key":"fuzzy_...","info":{...},"note":"..."}`. The key is shown once. Names are 1 to 40 characters (letters, digits, space, `.`, `_`, `-`), unique per account ignoring case. `400` for a bad name, `409` for a duplicate or the 21st key. ## Revoke ```sh curl -H "Authorization: Bearer $FUZZY_KEY" -X DELETE https://fuzzyshare.com/me/keys/k_37ea501438da ``` Takes effect at once. `409` if it is your only key. Revoking the key you are using is allowed when another remains. A revoked key also stops working on the allow-lists of private links. ## Replace the key in use `POST /me/key` keeps the key's id and name and gives it a new secret. The old secret stops working at once. See [the overview](api-overview.md#replace-the-key-in-use). ## Operator endpoints With the admin key (`FUZZY_ADMIN_KEY`): - `GET /admin/users` returns `{"users":[...]}`. Each row has `id`, `full_name`, `email`, `organization`, `purpose`, `created_at`, `last_seen`, `files`, `bytes` and `keys` (how many keys the person holds). It has no key hint, name or fingerprint. - `DELETE /admin/users/{id}` removes an account and its files. The admin key manages accounts only. It has no files of its own and cannot read link activity. --- # Errors Errors are JSON with a human-readable message: ```json {"error":"not found or expired"} ``` | Status | Meaning | |---|---| | `400` | Bad input: a name, a `ttl`, a JSON body or an interrupted upload | | `401` | Missing or unknown key. A private link without proof also returns `401` with `locked: true` | | `402` | The hosted service only: your plan does not include this feature. See [Plans](concepts-plans.md) | | `403` | A wrong signup code, an admin-only call, a public link while public links are off, or a cross-origin request to MCP | | `404` | Not found, expired, revoked or burned | | `405` | Wrong HTTP method. The `Allow` header lists the right ones | | `409` | That email already has a key, you hold your only key or 20 keys, or a link limit was reached | | `413` | File too large, or the upload would exceed your quota (on the hosted service the answer also names your plan) | | `429` | Too many registrations, or too many wrong link passphrases, from this address | | `503` | The server is busy hashing passphrases; try again in a moment | A `404` never says whether a file exists for someone else: files are scoped to the key that owns them. ## Handling errors in scripts ```sh code=$(curl -s -o out.json -w '%{http_code}' -H "Authorization: Bearer $FUZZY_KEY" https://fuzzyshare.com/files) [ "$code" = 200 ] || { cat out.json >&2; exit 1; } ``` The CLI shows the server's text as is and exits `1`. See [Scripting and exit codes](cli-scripting.md). --- # Connect an agent FuzzyShare runs an MCP server at `https://fuzzyshare.com/mcp`. It speaks JSON-RPC 2.0 over Streamable HTTP, with JSON responses and no sessions. Authentication is the same access key as everywhere else, in the `Authorization` header. ## Connect ```sh {tab="Claude Code"} claude mcp add --transport http fuzzyshare https://fuzzyshare.com/mcp \ --header "Authorization: Bearer $FUZZY_KEY" ``` ```toml {tab="Codex"} # ~/.codex/config.toml [mcp_servers.fuzzyshare] url = "https://fuzzyshare.com/mcp" bearer_token_env_var = "FUZZY_KEY" ``` ```json {tab="Cursor"} {"mcpServers":{"fuzzyshare":{"url":"https://fuzzyshare.com/mcp", "headers":{"Authorization":"Bearer ${env:FUZZY_KEY}"}}}} ``` ```json {tab="Claude Desktop"} {"mcpServers":{"fuzzyshare":{"command":"npx", "args":["-y","mcp-remote","https://fuzzyshare.com/mcp","--header","Authorization:Bearer ${FUZZY_KEY}"]}}} ``` The dashboard's **API and agents** page shows the same snippets with your server's address filled in. ## No key yet A connection without the header can list tools and call `register`. The agent registers once, stores the key it gets back, and reconnects with the header. The key is shown once, so the agent must save it. ## Try it by hand ```sh curl -s https://fuzzyshare.com/mcp -H "Authorization: Bearer $FUZZY_KEY" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' ``` ```sh curl -s https://fuzzyshare.com/mcp -H "Authorization: Bearer $FUZZY_KEY" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"whoami","arguments":{}}}' ``` ## Rules - Requests with an `Origin` that is not this server are refused (`403`), so a web page on another site cannot drive it. - The endpoint takes `POST`. Notifications get `202`. - Content through MCP is limited to 5 MB (text in `content`, binary in `content_base64`). Larger files go over HTTP. The tools are listed in the [tools reference](mcp-tools.md). --- # Tools reference All tools except `register` need your access key in the `Authorization` header. A failed call returns a tool error with a message, not a protocol error. | Tool | What it does | |---|---| | [`register`](#register) | Create an account and get a key | | [`whoami`](#whoami) | Who the key belongs to, usage and limits | | [`upload_file`](#upload-file) | Store a file | | [`download_file`](#download-file) | Read a file | | [`list_files`](#list-files) | List your files | | [`delete_file`](#delete-file) | Delete a file now | | [`share_file`](#share-file) | Make a read-only link | | [`list_links`](#list-links) | List active links | | [`revoke_link`](#revoke-link) | Stop a link working | | [`link_activity`](#link-activity) | Who opened a link | ## register Create an account. Only needed once, and only when you have no key. The key is shown once. | Argument | Notes | |---|---| | `full_name`, `email` | Required | | `organization`, `purpose` | Optional | | `signup_code` | Only if the operator requires one | | `key_name` | Name for the first key (default `default`) | ## whoami No arguments. Returns the account, the key's name, usage and limits. ## upload_file Store a file. Overwrites a file with the same name. | Argument | Notes | |---|---| | `name` | Required. Letters, digits, `.`, `_`, `-`; max 128 | | `content` | Text content | | `content_base64` | Binary content, base64 encoded, instead of `content` | | `content_type` | Optional MIME type; guessed from the name otherwise | | `ttl` | `15m`, `1h`, `24h`, `7d`, `14d` or seconds. Pick the shortest that fits | | `visibility` | `public` or `private` (default). Public also returns `public_url` and `raw_url` | Up to 5 MB through MCP. ## download_file `name` (required). Returns text when the file is UTF-8 and small, base64 when it is binary and under 1 MB. For larger files, call `share_file` and fetch the link with `curl`. ## list_files No arguments. Name, size, type and when each expires. ## delete_file `name` (required). Removes the file and its links now. ## share_file Make a read-only link to a file. The link hides the file's name and never outlives the file. | Argument | Notes | |---|---| | `name` | Required | | `access` | `public` (default) or `private` | | `passphrase` | Private links: 8 to 200 characters. Tell the reader separately | | `allow` | Private links: fingerprints (`sha256:...`) allowed to read, max 20 | | `max_downloads` | 1 to 1000. The link stops working after that many reads | | `ttl` | Link lifetime, shorter than the file's | | `label` | A note for yourself, up to 60 characters | A private link's URL is shown once. ## list_links Optional `name` limits it to one file. Public links include their URL; private links cannot show theirs again. ## revoke_link `id` (required), like `l_0123456789ab`. ## link_activity `id` (required) and an optional `limit` of 1 to 500 events (default 200). The same answer as [`GET /links/{id}/activity`](api-links.md#link-activity): totals and visitor sessions, with a visitor named only when they presented their own key. The server's `logging` setting says whether IPs are full, masked or off. --- # llms.txt Two plain-text files give an agent everything it needs without a browser. | URL | What it is | |---|---| | [/llms.txt](/llms.txt) | A short guide: how to register, authenticate, upload, share, and connect over MCP. It has this server's real address, limits and settings filled in | | [/llms-full.txt](/llms-full.txt) | Every documentation page as one Markdown file | Each documentation page is also available as Markdown by adding `.md` to its address, for example [/docs/quickstart.md](/docs/quickstart.md). ## Use them Point an agent at the address: ``` Read https://fuzzyshare.com/llms.txt and use FuzzyShare to store my build logs for a day. ``` Neither file needs a key. They do not contain anything private. ## Why separate files `llms.txt` is small enough to fit in any context window and always matches the server it comes from, including options such as whether a signup code is required or public links are off. `llms-full.txt` is for agents that want the whole manual. The search index behind the documentation's search box is a JSON file at `/docs/search-index.json`. --- # Install and run FuzzyShare is one static binary and a data directory. There is no database. Anything that can run a process can host it. ## Build You need Go 1.24 or newer. ```sh git clone https://github.com/mahmoud-emad/fuzzyshare && cd fuzzy make build # produces ./fuzzy ``` `make build` makes a static, stripped binary. The browser UI and these documentation pages are embedded in it. ## Run ```sh FUZZY_ADDR=:8080 FUZZY_DIR=./data ./fuzzy serve ``` The server logs to standard output. Open `http://localhost:8080` and get a key, or register from the terminal: ```sh ./fuzzy register --url http://localhost:8080 --name "Ada Lovelace" --email ada@example.com ``` `make run` builds and starts it with the defaults. ## Try it with curl ```sh curl -X POST localhost:8080/register -d '{"full_name":"Ada Lovelace","email":"ada@example.com"}' export FUZZY_KEY=fuzzy_... # the key from the response; it is shown once curl -H "Authorization: Bearer $FUZZY_KEY" -T report.pdf "localhost:8080/files/report.pdf?ttl=7d" ``` ## Before real use - Put it behind **HTTPS**: keys travel in every request. See [HTTPS and reverse proxies](self-hosting-https.md). - Set an **admin key** (`FUZZY_ADMIN_KEY`) if you want to list and remove users. - Decide who can register: set `FUZZY_SIGNUP_CODE` for a closed group. - Read [Security](self-hosting-security.md) and the [privacy page](legal-privacy.md), which you should adapt to your service. - Run it as a service: [systemd or Docker](self-hosting-docker.md). ## Serve the CLI downloads The install one-liners (`/install.sh`, `/install.ps1`) download binaries from `/dl/`. The server serves them from `FUZZY_DL_DIR` (default `/dl`): `fuzzy-linux-amd64`, `fuzzy-linux-arm64`, `fuzzy-darwin-amd64`, `fuzzy-darwin-arm64`, `fuzzy-windows-amd64.exe`, `checksums.txt` and `VERSION`. The deploy pipeline builds and ships them; see [Upgrades and backups](self-hosting-operations.md). ## Data on disk Everything is a plain file under `FUZZY_DIR`. See [Architecture](contributing-architecture.md#storage). --- # Configuration reference Everything is optional and set through environment variables. `deploy/env.example` in the repository has the same list with comments. An invalid value stops the server at startup with a clear message. Settings used to be called `SISO_*`. Those names still work, and a `FUZZY_*` value wins when both are set. | Variable | Default | Meaning | |---|---|---| | `FUZZY_ADDR` | `:8080` | Listen address | | `FUZZY_DIR` | `./data` | Storage directory | | `FUZZY_MAX_SIZE` | `50MB` | Largest single file | | `FUZZY_USER_QUOTA` | `1GB` | Live storage per person. Can be lowered, never raised above 1 GB | | `FUZZY_DEFAULT_TTL` | `24h` | Lifetime when the caller sends none | | `FUZZY_MAX_TTL` | `14d` | Longest lifetime a caller may ask for. Can be lowered, never raised above 14 days | | `FUZZY_PLANS` | `off` | `on` runs the hosted service: each account has a plan (Free, Pro or Team) with its own limits, and the settings above no longer apply. Leave it off to self-host; every account then gets the limits above and nothing is locked | | `FUZZY_DODO_KEY` | unset | Hosted service only, with `FUZZY_PLANS=on`. A Dodo Payments API key. Needs the settings below | | `FUZZY_DODO_WEBHOOK_SECRET` | unset | The signing secret (`whsec_...`) of the Dodo webhook endpoint `https://your-host/billing/webhook` | | `FUZZY_DODO_MODE` | `test` | `live` uses Dodo's live environment. A test key only works in `test` | | `FUZZY_DODO_PRODUCT_PRO_MONTH`, `_PRO_YEAR`, `_TEAM_MONTH`, `_TEAM_YEAR` | unset | The Dodo product id of each plan and billing period. A plan with no product is not on sale | | `FUZZY_ALLOW_PUBLIC` | `true` | `false` turns off public links and `visibility=public` (`403`); every link must then be private | | `FUZZY_ADMIN_KEY` | unset | Lets its holder list and remove users | | `FUZZY_SIGNUP_CODE` | unset | Require this code to register | | `FUZZY_SIGNUPS_PER_HOUR` | `10` | Registrations per IP per hour | | `FUZZY_ACCESS_LOG` | `full` | Link activity log: `full`, `anonymous` or `off` | | `FUZZY_TRUST_PROXY` | `false` | Read the client IP from `X-Forwarded-For` | | `FUZZY_PUBLIC_URL` | derived | Address used in links, snippets, `robots.txt` and the sitemap | | `FUZZY_SMTP_HOST`, `FUZZY_MAIL_FROM` | none | Send a confirmation email before an account is created. Needs `FUZZY_MAIL_FROM` such as `FuzzyShare `. See [Email confirmation](self-hosting-email.md) | | `FUZZY_SMTP_PORT` | `587` | `587` uses STARTTLS, `465` uses TLS from the start | | `FUZZY_SMTP_USER`, `FUZZY_SMTP_PASS` | none | SMTP login, set both or neither | | `FUZZY_GITHUB_CLIENT_ID`, `FUZZY_GITHUB_CLIENT_SECRET` | none | Turn on sign in with GitHub. Set both. See [Sign in with GitHub and Google](self-hosting-social-login.md) | | `FUZZY_GOOGLE_CLIENT_ID`, `FUZZY_GOOGLE_CLIENT_SECRET` | none | Turn on sign in with Google. Set both | | `FUZZY_APP_HOST` | none | A hostname such as `app.example.com` that serves the web app at its root, with no `/dashboard` in any address. The main host then sends `/dashboard`, `/access` and `/signup` there. See [HTTPS and reverse proxies](self-hosting-https.md#a-separate-app-hostname) | | `FUZZY_SWEEP_INTERVAL` | `1m` | How often expired files are deleted from disk | | `FUZZY_DL_DIR` | `/dl` | Where `/dl/` serves CLI binaries from | ## Sizes and lifetimes Sizes accept units such as `50MB` and `1GB`. Lifetimes accept seconds, or a number with `s m h d w` (`90m`, `24h`, `14d`). `FUZZY_DEFAULT_TTL` cannot exceed `FUZZY_MAX_TTL`. ## The admin key Generate one with `openssl rand -hex 24`. The admin key manages accounts only: it lists and removes users, and sees how many keys each holds. It has no files and cannot read link activity. ## Closing registration `FUZZY_SIGNUP_CODE` makes `POST /register` need `signup_code`, and the CLI needs `--signup-code` or `FUZZY_SIGNUP_CODE`. Keep `FUZZY_SIGNUPS_PER_HOUR` low. The rate limit is in memory and per address. ## Link activity `FUZZY_ACCESS_LOG` decides what link owners can see: - `full`: visitor IPs as seen. - `anonymous`: IPv4 last octet zeroed, IPv6 cut to /64. Session ids use the masked value. - `off`: nothing recorded. Visitor IPs are personal data in many places. See the [privacy page](legal-privacy.md). ## Behind a proxy Set `FUZZY_TRUST_PROXY=true` so the signup and passphrase limits and the activity log see real client addresses, and `FUZZY_PUBLIC_URL=https://fuzzyshare.example.com` so links use your domain. See [HTTPS and reverse proxies](self-hosting-https.md). --- # HTTPS and reverse proxies Access keys travel in every request, so serve FuzzyShare over HTTPS. FuzzyShare itself speaks plain HTTP: put a reverse proxy in front. > [!WARNING] > Over plain HTTP, keys and files are exposed on the network. The CLI warns when it would send a key over `http` to anything but localhost. ## Caddy Caddy gets and renews certificates for you. ``` fuzzyshare.example.com { reverse_proxy 127.0.0.1:8080 } ``` ## nginx Uploads are streamed to disk, so turn request buffering off and allow your largest file: ``` server { server_name fuzzyshare.example.com; client_max_body_size 50m; proxy_request_buffering off; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } } ``` Add your TLS certificate directives (for example with certbot). ## Tell FuzzyShare about the proxy ```sh FUZZY_TRUST_PROXY=true FUZZY_PUBLIC_URL=https://fuzzyshare.example.com ``` - `FUZZY_TRUST_PROXY=true` reads the client address from `X-Forwarded-For`. Without it every visitor looks like the proxy, which breaks the signup rate limit, the passphrase limit and the link activity log. - `FUZZY_PUBLIC_URL` is the address used in links, install snippets, `robots.txt`, the sitemap and these docs. Only enable `FUZZY_TRUST_PROXY` when a proxy you control is the sole way to reach FuzzyShare, otherwise a client can forge its address. ## Request timeouts Request bodies have no read timeout, so large uploads can be slow. For hostile networks, give the proxy its own timeouts. ## Check it ```sh curl -sS https://fuzzyshare.example.com/health ``` It returns `{"status":"ok"}`. ## A separate app hostname By default the web app lives at `/dashboard` on your main address. Set `FUZZY_APP_HOST=app.example.com` to serve it on its own hostname instead, at the root: `app.example.com/files`, `app.example.com/keys`, and no `/dashboard` anywhere. The main host keeps the site, docs and share links, and sends `/dashboard`, `/access` and `/signup` to the app host. It is the same server, so the proxy sends both hostnames to it and must keep the `Host` header (Caddy and nginx's `proxy_set_header Host $host` do): ```text example.com, www.example.com, app.example.com { reverse_proxy 127.0.0.1:8080 } ``` The API answers on both hosts. A saved access key belongs to the address it was saved on, so people sign in again on the app host once. --- # Docker ## Docker ```sh make docker docker run -d -p 8080:8080 -v fuzzy-data:/data -e FUZZY_ADMIN_KEY=your-generated-key fuzzyshare ``` The image is `FROM scratch` and runs as a non-root user (`65532`). It sets `FUZZY_ADDR=:8080` and `FUZZY_DIR=/data`; pass other settings with `-e` or `--env-file`. Keep `/data` on a volume. The build downloads one Go module (the Markdown renderer for these docs) and compiles a static binary. > [!NOTE] > The image has not been exercised in CI. Run `curl localhost:8080/health` after starting it. ### Docker Compose ```yaml services: fuzzy: image: fuzzyshare restart: unless-stopped ports: ["127.0.0.1:8080:8080"] volumes: ["fuzzy-data:/data"] environment: FUZZY_PUBLIC_URL: https://fuzzyshare.example.com FUZZY_TRUST_PROXY: "true" volumes: fuzzy-data: ``` Publish only to `127.0.0.1` and put a [reverse proxy](self-hosting-https.md) in front. ## systemd ```sh CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o fuzzy ./cmd/fuzzy sudo useradd --system --home /var/lib/fuzzyshare --shell /usr/sbin/nologin fuzzyshare sudo install -d -o fuzzyshare -g fuzzyshare -m 700 /var/lib/fuzzyshare sudo install -d /opt/fuzzyshare /etc/fuzzyshare sudo install -m 755 fuzzy /opt/fuzzyshare/fuzzy sudo install -m 600 deploy/env.example /etc/fuzzyshare/env # edit: FUZZY_DIR=/var/lib/fuzzyshare, FUZZY_ADMIN_KEY=... sudo install -m 644 deploy/fuzzyshare.service /etc/systemd/system/fuzzyshare.service sudo systemctl enable --now fuzzyshare ``` `deploy/fuzzyshare.service` runs as the unprivileged `fuzzyshare` user, may bind port 80 or 443 through `CAP_NET_BIND_SERVICE`, and writes only to `/var/lib/fuzzyshare`. Check it: ```sh systemctl status fuzzyshare journalctl -u fuzzyshare -f ``` --- # Upgrades and backups ## Backups State is the data directory (`FUZZY_DIR`). Copy it to back up. Files are short-lived, so many operators skip backups; accounts and keys are the part worth keeping. Stop writes or copy while idle for a consistent snapshot. Keys are stored as hashes, so a backup does not reveal anyone's access key. It does contain emails, names and the link activity logs: protect it like personal data. ## Servers set up before the rename A server installed when this program was called Siso keeps working as it is: the `siso` service, `/opt/siso`, `/etc/siso/env` and `/var/lib/siso` are only locations, and nothing has to be moved. `fuzzyshare-deploy` detects the layout and restarts whichever service you have. The old `SISO_*` settings in the environment file still apply. ## Upgrades Replace the binary and restart the service: ```sh sudo install -m 755 fuzzy /opt/fuzzyshare/fuzzy sudo systemctl restart fuzzyshare curl -fsS http://127.0.0.1:8080/health ``` The on-disk layout is described in [Architecture](contributing-architecture.md#storage). Accounts made before named keys get one key called `default` the first time the new server starts, and the old key keeps working. ## Rollback Keep the previous binary (for example as `fuzzy.prev`) and copy it back if a release misbehaves. ## Automatic deploys from GitHub `.github/workflows/deploy.yml` deploys after CI passes on `development`. It does nothing until you opt in. 1. On the server, install `deploy/fuzzyshare-deploy` as `/usr/local/bin/fuzzyshare-deploy`. It receives the new binary on standard input, installs it, restarts the service and rolls back if `/health` does not answer. 2. Create a key just for CI and authorize it so it can run only that script: ```sh ssh-keygen -t ed25519 -N "" -C fuzzy-ci -f fuzzy_ci # in ~/.ssh/authorized_keys on the server: command="/usr/local/bin/fuzzyshare-deploy",restrict ssh-ed25519 AAAA... fuzzy-ci ``` 3. Add repository secrets `DEPLOY_SSH_KEY`, `DEPLOY_HOST` and `DEPLOY_KNOWN_HOSTS` (the output of `ssh-keyscan -t ed25519 HOST`, checked against a fingerprint you trust). 4. Set the repository variable `DEPLOY_ENABLED` to `true`. ## CLI downloads The same pipeline builds the CLI for five platforms plus `checksums.txt` and `VERSION`, and ships them to the server, which serves them from `FUZZY_DL_DIR` at `/dl/`. This keeps the install one-liner and `fuzzy update` working for a private repository. The deploy script accepts them through the same restricted SSH command, validating every name and size. ## Logs FuzzyShare logs one line per request to standard output, using the route pattern rather than the path, so share tokens never reach the log. --- # Security ## Reporting a vulnerability Do not open a public issue for a security problem. Use GitHub's private vulnerability reporting (the **Security** tab, then **Report a vulnerability**) on the repository. Include what you found, how to reproduce it and the impact. You should get a first reply within a few days. Only the latest release receives fixes. ## What FuzzyShare protects - **Access keys are stored as SHA-256 hashes.** A copy of the data directory does not reveal anyone's key. A key is shown once and cannot be recovered. - **Files are private to their owner.** Every path is scoped to the owner's id, and names are limited to letters, digits, `.`, `_` and `-`, so there is no path traversal. - **Share tokens are 256 bits of randomness**, stored only as hashes (public links keep the token so the owner can copy it again), and tied to one version of one file. - **Public links are read-only and immutable.** `GET` and `HEAD` only. Replacing or deleting the file revokes them. `FUZZY_ALLOW_PUBLIC=false` disables them. - **Private links need proof.** A private link answers `401` with no name, size or type until the reader presents the passphrase or an allowed key. Passphrases are stored as PBKDF2-HMAC-SHA256 (600,000 iterations, random 16-byte salt) and compared in constant time. Wrong guesses are limited to 5 per link and address per 10 minutes, and the number of concurrent hashes is capped. Browsers unlock once and carry a signed, 10-minute, `HttpOnly`, `SameSite=Strict` cookie scoped to that link. - **Download limits are race-free.** Counting happens under the store lock, so two readers cannot take the last download. - **Uploaded HTML cannot reach the app.** It is served with a CSP `sandbox` (no `allow-same-origin`) and shown in a sandboxed iframe, so it cannot read a viewer's stored key or call the API as them. - **Previews build DOM nodes** rather than inserting file contents as HTML. - **Limits are enforced by the program:** 14 days per file and 1 GB per person cannot be raised by configuration. - **The admin key** is compared in constant time. It manages accounts and has no access to anyone's files, keys or link activity. ## Link activity Each link's log is readable only by the link's owner. It records time, event kind, IP, the first 200 characters of the user agent and an opaque session id, plus the account id and name only if the visitor presented their own key. It never records which key was used. Details and operator choices are on [Access activity and privacy](concepts-activity.md). ## Known limits - **Plain HTTP.** FuzzyShare does not terminate TLS. Run it behind an HTTPS proxy. See [HTTPS and reverse proxies](self-hosting-https.md). - **Uploaded content shares the site's origin.** The sandbox stops a hostile page from stealing keys, but a shared page can still imitate a login form. If you host FuzzyShare for the public, consider serving share links from a separate domain. - **Registration is open by default.** Anyone who can reach the server can create an account. Set `FUZZY_SIGNUP_CODE` to close it, and keep `FUZZY_SIGNUPS_PER_HOUR` low. The rate limit is in memory and per address. - **The passphrase limit is in memory.** It resets when the server restarts and is per address. Behind a proxy set `FUZZY_TRUST_PROXY=true`. - **A key presented to a private link is sent to this server.** Only its fingerprint is compared and nothing is stored, but present it only to a FuzzyShare you trust. - **Lost keys cannot be recovered.** The admin removes the account and the person registers again. - **Request bodies have no read timeout**, so large uploads can be slow. Use a proxy with timeouts on hostile networks. - **No antivirus or content scanning.** FuzzyShare stores and serves what it is given. --- # Admin dashboard and visitor stats `fuzzy admin` is a small dashboard for the person who runs the service. It shows how many accounts there are, who signed up when, which plans they are on, how much is stored, and, with Umami connected, who visits the public site. It is a **second process** that runs the same binary on the same machine. It never opens the data directory. It asks the file server for counts over HTTP, using the admin key, so it can be stopped, restarted or moved without touching your data. | Section | Where it comes from | |---|---| | Users, new and active accounts, paying accounts | The file server, `GET /admin/stats` | | Plans, files, storage, active links, signups per day | The file server | | Newest accounts (name, email, plan) | The file server, `GET /admin/users` | | Visitors, page views, top pages, referrers, countries | Your Umami, if connected | ## 1. Configure it Both processes can share one environment file. Add to `/etc/fuzzyshare/env`: ```sh FUZZY_ADMIN_KEY=... # you already have this; it is also the dashboard's sign-in FUZZY_ADMIN_UPSTREAM=http://127.0.0.1:8080 # must match FUZZY_ADDR ``` `FUZZY_ADMIN_ADDR` defaults to `127.0.0.1:8081`, so the dashboard is only reachable through your proxy. ## 2. Run it as a service Copy [`deploy/fuzzyshare-admin.service`](https://github.com/Mahmoud-Emad/fuzzyshare/blob/development/deploy/fuzzyshare-admin.service) to `/etc/systemd/system/` and start it: ```sh sudo systemctl daemon-reload sudo systemctl enable --now fuzzyshare-admin curl -s http://127.0.0.1:8081/health # ok ``` The deploy script restarts this service after every healthy deploy when the unit file exists, so it always runs the same version as the file server. On a machine without systemd, run `fuzzy admin` under your supervisor the same way you run `fuzzy serve`. ### On a machine with zinit A ThreeFold micro VM runs zinit as PID 1, not systemd. Add `/etc/zinit/fuzzyshare-admin.yaml` (mode 0600, since it holds the key): ```yaml exec: /opt/fuzzyshare/fuzzy admin after: - fuzzyshare env: FUZZY_ADMIN_ADDR: "127.0.0.1:8081" FUZZY_ADMIN_UPSTREAM: "http://127.0.0.1:8080" FUZZY_ADMIN_KEY: "the same key as the file server" ``` Then `zinit monitor fuzzyshare-admin`. zinit reads a service's file only when it is monitored, so after you edit a file, run `zinit stop NAME`, `zinit forget NAME` and `zinit monitor NAME`. The deploy script restarts the service when this file exists. ## 3. Give it a hostname Point a DNS record for `admin.example.com` at the machine and add it to your proxy. With Caddy: ```text admin.example.com { reverse_proxy 127.0.0.1:8081 } ``` Caddy gets the certificate by itself. Open the address and sign in with the admin key. > [!WARNING] > Anyone with the admin key can read every account's name and email here. Keep the key out of chat and shell history. After five wrong keys from one address the dashboard refuses further tries for ten minutes. To lock it down further, restrict the hostname to your own addresses in the proxy. ## 4. Visitor stats with Umami [Umami](https://umami.is) is open source and cookieless. Running it yourself keeps the data on your machine. It needs Postgres, so a small compose file is the easiest way: ```yaml services: umami: image: ghcr.io/umami-software/umami:postgresql-latest ports: ["127.0.0.1:3000:3000"] environment: DATABASE_URL: postgresql://umami:CHANGE_ME@db:5432/umami APP_SECRET: CHANGE_ME_TO_A_LONG_RANDOM_STRING depends_on: [db] restart: always db: image: postgres:15-alpine environment: { POSTGRES_DB: umami, POSTGRES_USER: umami, POSTGRES_PASSWORD: CHANGE_ME } volumes: [umami-db:/var/lib/postgresql/data] restart: always volumes: umami-db: ``` Put it on its own hostname, for example `stats.example.com`, in the proxy with `reverse_proxy 127.0.0.1:3000`. Then: 1. Sign in to Umami and **change the default administrator password** at once. 2. Add your site and copy its **website id**. 3. Create a second user with the **View only** role and give it access to that site. The dashboard signs in as this user, so it can read numbers but never change anything. Screen names differ between Umami versions: see their documentation. 4. Add the settings to `/etc/fuzzyshare/env` and restart both services: ```sh FUZZY_UMAMI_URL=https://stats.example.com FUZZY_UMAMI_ID=the-website-id FUZZY_UMAMI_USER=viewer FUZZY_UMAMI_PASS=... ``` `FUZZY_UMAMI_URL` and `FUZZY_UMAMI_ID` make the landing, pricing, sign-up and documentation pages load Umami's tracker. It is **never** loaded on share links (their address is their secret), the dashboard or the sign-in page. The tracker honors Do Not Track, and the privacy notice on the site changes to say visits are counted. See [Privacy](legal-privacy.md#visit-statistics). ## Troubleshooting - **"cannot reach the file server"**: `FUZZY_ADMIN_UPSTREAM` does not match where the file server listens. - **"the file server answered 403"**: `FUZZY_ADMIN_KEY` differs between the two processes. - **"Could not read Umami"**: check the URL, the website id and that the view-only user can see the site. - **No visitors yet**: open the public site once, then wait a minute. Pages with Do Not Track on are not counted. --- # Sign in with GitHub and Google FuzzyShare signs people in with an access key. You can also let them sign in with GitHub or Google. It is off until you give the server a client id and secret for a provider, and the two providers are independent. ## What it does 1. The person clicks **Continue with GitHub** or **Continue with Google**. 2. The provider asks them to approve. FuzzyShare asks only for their name and email address. 3. The server finds the account with that email address, or makes one, and gives the browser an access key. Only an email address the provider has **verified** counts. An account is matched by that address, ignoring case. A person who signed up with a key and later signs in with GitHub lands in the same account, with the same files. The key is handed to the page in the address fragment (`#k=...`), which never reaches a server or a log, and the page removes it from the address bar at once. Each provider holds one key per account, named `GitHub` or `Google`. Signing in again replaces it, so the browser that used the older one is signed out. Revoke it on the Keys page like any other key. ## Set it up Register an OAuth app with each provider you want. The callback address is where the server receives the answer. If you set `FUZZY_APP_HOST`, it is on that host. | Provider | Where | Callback address | | --- | --- | --- | | GitHub | Settings, Developer settings, OAuth Apps | `https://app.example.com/auth/github/callback` | | Google | Google Cloud Console, APIs and Services, Credentials, OAuth client ID (Web application) | `https://app.example.com/auth/google/callback` | Without an app host, use your main address: `https://example.com/auth/github/callback`. For Google, set the consent screen's scopes to `openid`, `email` and `profile`. Then give the server the credentials: ```text FUZZY_GITHUB_CLIENT_ID=... FUZZY_GITHUB_CLIENT_SECRET=... FUZZY_GOOGLE_CLIENT_ID=... FUZZY_GOOGLE_CLIENT_SECRET=... ``` Each id and secret go together: set both or neither, or the server will not start. Restart the server. `GET /config` then lists the providers in `oauth`, and the buttons on the sign-in page start working. ## Good to know - With `FUZZY_SIGNUP_CODE` set, a provider **cannot create** new accounts, because that would skip the code. An existing account can still sign in with it. - New accounts count towards the signup limit per address, like any other signup. - A deactivated account stays deactivated. - A provider needs no email confirmation: GitHub and Google have already verified the address. With [email confirmation](self-hosting-email.md) on, nobody can register an address they do not own, so signing in with a provider cannot land in someone else's account. Without it, someone could register an address with a key before its owner arrives, and the owner's later sign-in would reach that account. - The server keeps no provider tokens. It uses them once to read the name and address, then drops them. --- # Email confirmation By default anyone can register any address, and the account exists at once. Give the server an SMTP account and it confirms the address first. ## What changes 1. The person submits their name and email. The server creates **nothing** and emails a link. 2. They open the link and press **Confirm**. Only then are the account and its key created, and the key is shown once. 3. The link works once and expires after 24 hours. The answer to the form is the same whether or not the address already has an account, so it cannot be used to find out who is registered. An address that already has an account gets a short notice instead of a link. The same address can ask again after two minutes. This applies to the web form, `POST /register`, `fuzzy register` and the MCP `register` tool, so an agent cannot register itself: it asks the person to confirm and hand over the key. Signing in with [GitHub or Google](self-hosting-social-login.md) never needs it, since the provider has already verified the address. ## Set it up Use any SMTP service (a transactional provider is best, since mail from a home server is often rejected): ```text FUZZY_SMTP_HOST=smtp.example.com FUZZY_SMTP_PORT=587 FUZZY_SMTP_USER=... FUZZY_SMTP_PASS=... FUZZY_MAIL_FROM=FuzzyShare ``` - Port `587` upgrades to TLS with STARTTLS. Port `465` uses TLS from the start. The server will not send a password over a connection without TLS, except to the local machine. - `FUZZY_SMTP_USER` and `FUZZY_SMTP_PASS` go together, and `FUZZY_MAIL_FROM` is required. A wrong value stops the server at start. - Set up SPF and DKIM for the sending domain with your provider, or the mail lands in spam. - With `FUZZY_SMTP_HOST=log` the server prints each message to its log instead of sending it. Use it only for development: the log then holds the confirmation links. `GET /config` reports `email_confirmation: true` when it is on. ## What the emails look like The server sends three messages, each as plain text with an HTML version in the style of the app (dark header, green accent, a button, and a dark-mode variant for clients that support it): - **Confirm your email**: the link above. - **Your FuzzyShare account**: the notice to an address that already has an account. - **Welcome to FuzzyShare**: sent once when an account is created, whether by confirming an email or by signing in with GitHub or Google for the first time. It never contains the access key, which is shown once in the browser. The messages are built by the `internal/mailkit` package, so the wording and design live in one place. The logo is `/assets/mail-logo.png` on your site's address, so set `FUZZY_PUBLIC_URL` to a public https address or the logo will not load in a mail client. ## A logo next to the sender Mail clients show a photo next to the sender only through [BIMI](https://bimi.group). Gmail requires a DMARC policy of `p=quarantine` or `p=reject` (not `none`) and a Common Mark or Verified Mark certificate from a certificate authority that proves you own the logo. It cannot be done with DNS alone. The server serves a BIMI-ready square logo at `/assets/bimi.svg`. Once you have the certificate, publish a record like this and host the certificate (`.pem`) next to the logo: ```text default._bimi.example.com TXT "v=BIMI1; l=https://example.com/assets/bimi.svg; a=https://example.com/assets/bimi.pem" ``` ## Good to know - Unconfirmed sign-ups live in the data directory for at most 24 hours and are swept after that. At most 5000 can wait at once. - The server sends no other email: no newsletters and no marketing. --- # FAQ ## How do I delete my account? Open **Settings** in the dashboard, go to **Delete account** and type your email address. Your account is switched off: every access key and share link stops working, your files can no longer be reached and are deleted when their time is up, and the record is kept so the operator can restore it. See [API overview](api-overview.md#settings-and-deleting-an-account). ## Is FuzzyShare the same as Siso? Yes. Siso was the first name. The command is now `fuzzy` and settings are `FUZZY_*`, but everything under the old name keeps working: your `siso_` access keys, `SISO_*` environment variables, the `siso` command and a login saved by the old CLI. Run the installer again to get `fuzzy`. See the [changelog](changelog.md). ## I lost my access key. Can you recover it? No. FuzzyShare keeps only a hash of each key, so nobody can read it back, including the operator. Sign in with another key on the account, create a new key, and revoke the lost one. If it was your only key, ask the operator to remove the account, then register again. See [Access keys and identity](concepts-keys.md). ## How long do files live? 24 hours by default and 14 days at most. You choose per file with `ttl`. See [Files and expiry](concepts-files.md). ## Can I make a file permanent? No. FuzzyShare is for short-lived files, and the 14-day ceiling is fixed in the program. Use real storage for anything that must last. ## What are the size limits? 50 MB per file by default and 1 GB of live storage per person. See [Limits](concepts-limits.md). ## Does the person I share with need an account? Not for a public link. For a private link they need the passphrase, or an account whose key fingerprint you allowed. ## Can I see who opened my link? Yes: **Details** on the Links page, `fuzzy activity ID`, or the API. You see IP, device and time. You see a name only if the visitor presented their own key. See [Access activity and privacy](concepts-activity.md). ## What does a private link hide? Everything. Without proof it returns `401` and reveals no name, size or type. ## Is my file encrypted? FuzzyShare stores bytes as they arrive on the server's disk; it does not encrypt them itself. Use HTTPS in transit and encrypt sensitive files before upload if the operator is not someone you trust. ## Can an AI agent use it? Yes. See [Use FuzzyShare with AI agents](guides-agents.md) and the [MCP tools](mcp-tools.md). ## Where is my data? On the server of whoever runs the instance you use, in a plain directory. If you host FuzzyShare yourself it is on your machine. See the [privacy page](legal-privacy.md). ## How do I run my own? See [Self-hosting](self-hosting-install.md). It is one binary and a directory. --- # Troubleshooting ## `fuzzy: command not found` after installing The install directory is not on your `PATH`. The installer prints where it put the binary. For `~/.local/bin`: ```sh export PATH="$HOME/.local/bin:$PATH" ``` Add that line to your shell profile. On Windows, open a new terminal after installing. ## The installer refuses: checksum mismatch The downloaded binary does not match `checksums.txt`, so nothing was installed. This can be a partial download or a tampered file. Run the installer again. If it keeps failing, tell the operator of the server. ## `401`: send your key as `Authorization: Bearer KEY` The request had no key, or the key is wrong or revoked. Check `fuzzy whoami`. If it fails, run `fuzzy login` again. Make sure `FUZZY_KEY` in your environment is not an old key: the environment beats the saved login. ## `409`: this email already has a key You already registered with that email. Use your key. If you lost it, see the [FAQ](faq.md). ## `413`: the file is too large or over your quota Check the limits with `fuzzy whoami`. Delete files you no longer need with `fuzzy rm`. Expired files stop counting at once. ## `403`: public links are turned off The operator set `FUZZY_ALLOW_PUBLIC=false`. Make a private link instead, with `--passphrase` or `--allow`. ## `404` on a link that used to work A link stops working when it expires, when it is revoked, when its file is replaced or deleted, or when it reaches its download limit. ## A private link answers `401` and `locked` Provide proof: the passphrase (`X-Fuzzy-Passphrase`, or `--passphrase` with `fuzzy fetch`) or your own key whose fingerprint is on the allow-list. ## `429`: too many wrong passphrases Five wrong guesses per link and address lock further tries for 10 minutes. Wait, then try the right passphrase. ## The activity log shows only one IP address (the proxy's) Set `FUZZY_TRUST_PROXY=true` on the server. See [HTTPS and reverse proxies](self-hosting-https.md). ## The browser says the connection is not secure You are on plain `http`. Serve FuzzyShare behind HTTPS before real use. ## The server will not start Read the first log line. Typical causes: a limit above the hard maximum (`FUZZY_USER_QUOTA` over 1 GB, `FUZZY_MAX_TTL` over 14 days), `FUZZY_DEFAULT_TTL` greater than `FUZZY_MAX_TTL`, a value that does not parse, or a port already in use (`FUZZY_ADDR`). ## Still stuck Open an issue in the repository with the command you ran and the message you got. For security problems, follow [Security](self-hosting-security.md) instead. --- # Changelog ## December 2026 - **Account page:** a new profile header, usage summary (storage, files, links, keys) and a Security card, and you can now edit your name, organization and purpose. Messages from the dashboard appear as a small snackbar at the bottom. - **Settings:** a Settings page with a theme (system, dark or light), your default lifetime and access for new uploads, and **Delete account**. Deleting is a soft delete: the record is kept and deactivated, every key and share link stops working, and an operator can restore it. Theme and defaults are saved on your account, so they follow you to every browser. - **Renamed to FuzzyShare.** The command is now `fuzzy` (the installer sets it up). Nothing you set up under the old name stops working: `siso_` access keys, `SISO_*` environment variables, the `siso` command (the installer links it to `fuzzy`), a login saved under `~/.config/siso`, and the old `siso-*` download names that `siso update` uses. New keys start with `fuzzy_`, and settings use `FUZZY_*`. Request headers are now `X-Fuzzy-TTL`, `X-Fuzzy-Visibility` and `X-Fuzzy-Passphrase`; the old `X-Siso-*` names are still accepted, and responses send both. Browsers move a stored login to the new storage name automatically, so nobody is signed out. - **Documentation site** at `/docs`, with search, an agent prompt, `/llms-full.txt` and a Markdown twin of every page. - **CLI distribution:** one-line install (`/install.sh`, `/install.ps1`), `siso update`, `siso version` and shell completion. - **Privacy:** the link activity log no longer records which key a visitor used, and the operator's user list no longer shows key hints. - **Link activity:** each link keeps a capped log of views, reads and visitor sessions, readable only by its owner. `SISO_ACCESS_LOG` sets `full`, `anonymous` or `off`. - **New design:** a redesigned interface built on shared design tokens. ## Earlier in December 2026 - **Public and private links:** passphrases, allowed key fingerprints, download limits (burn after reading), labels, and managing and revoking links. - **Named keys:** up to 20 per account, with fingerprints, last used and per-file attribution. - **Command line:** the `siso` client in the same binary. - **Paste:** store text or a web address from the browser. - **Drive-style Files page** and progress feedback everywhere. - **Project layout:** the code split into small packages under `internal/`. ## First release - Upload, download, list and delete with a per-person key. - Every file expires: 24 hours by default, 14 days at most. - 1 GB per person, 50 MB per file. - Preview pages for HTML, Markdown, CSV, JSON, code, images, PDF, audio and video. - An MCP server and `llms.txt` for AI agents. --- # Privacy > [!NOTE] > This page describes what the FuzzyShare **software** does. The **operator** of each FuzzyShare server decides how it is run and is responsible, as the data controller, for the data on it. Operators should adapt this page to their service, their jurisdiction and their contact details. ## What an account stores - Your name, email address, and, if you gave them, organization and purpose. - When the account was created and when it was last seen. - If the operator confirms email addresses, your name and email are kept for up to 24 hours before you confirm, and the operator's mail service handles the confirmation message. Nothing else is emailed to you. - If you sign in with GitHub or Google, the provider tells the server your name and a verified email address, once. They are used to find or make your account. No provider token or profile is kept. - For each access key: a name, a short hint (the last four characters) and a **SHA-256 hash** of the key. The key itself is never stored and cannot be recovered, by you or by the operator. ## What files store - The bytes you upload, in a plain directory on the server. - Metadata: name, size, type, upload time, expiry time, and which of your keys uploaded it. - Files live for at most **14 days**. When a file expires, it is deleted from disk by a sweeper that runs about once a minute, along with its links. Deleting a file or replacing it removes its links at once. ## What the link activity log records For each share link, an event log is kept so the link's owner can see who opened it. Per event it records: - the time and the kind of event (view, read, locked, unlock ok or failed, throttled); - the visitor's **IP address** (as seen, masked or not at all, depending on the operator's `FUZZY_ACCESS_LOG` setting); - the first 200 characters of the visitor's user agent; - an opaque session id (an HMAC, not reversible to the visitor); - **only if the visitor presented their own access key** on that request: their account id and their name at that time. It never records passphrases or keys, or which key a visitor used. A visitor is never identified silently: opening a public link does not send a key. **Who can read it:** only the link's owner. The operator's admin key cannot. **Retention:** the newest 500 events per link; the log is deleted with the link when it is revoked, burned or expired, or when its file is replaced or deleted. ## What the operator can see The operator can see account records (name, email, organization, purpose, times, how many files and keys you have) and has the data directory, including file bytes and link logs, on the server. The operator's admin tool does not show your files or keys. The operator's dashboard shows totals (accounts, plans, storage, signups per day, visits) and the newest accounts by name and email. The server's request log records the route, status and duration, not the address or the link token. ## Cookies and browser storage FuzzyShare sets only short-lived cookies for links: a 10-minute unlock cookie (`fuzzy_u`) after a correct passphrase, and a 10-minute read ticket (`fuzzy_r`) that makes a preview followed by a download count as one read. They are `HttpOnly`, scoped to the link, and contain no personal data. If the operator turned on sign in with GitHub or Google, a 10-minute `fz_oauth` cookie exists while you sign in. It holds a random value that ties the answer to your browser, and is removed when you finish. There are no advertising cookies and no cookies for statistics. The web app keeps your access key in this browser's local storage so you stay signed in. The CLI saves it in `~/.config/fuzzyshare/config.json`. Sign out, or delete the file, to remove it. ## Visit statistics The software has no analytics of its own. An operator can connect a self-hosted [Umami](https://umami.is) with `FUZZY_UMAMI_URL` and `FUZZY_UMAMI_ID`. When they do, the landing, pricing, sign-up and documentation pages load Umami's small tracker, which counts page views, referrers, countries and browsers. It sets no cookies, builds no profile of you, and honors your browser's **Do Not Track** setting. The numbers stay on the operator's own server and are not sent to a third party. It never loads on share links, the dashboard, the sign-in page or the API, so a link's address (which is its secret) is never recorded. The privacy notice on a server says whether the tracker is on. ## Your choices - Delete any file or link at any time. Expiry deletes the rest. - Revoke any key at any time. - Ask the operator to delete your account. Self-service account deletion is not available. ## Operators If you run FuzzyShare, visitor IP addresses are personal data in many places. Choose `FUZZY_ACCESS_LOG` deliberately (`anonymous` or `off` reduce what you hold), say what you log, state a contact address, and review backups, which contain account records and link logs. See [Configuration](self-hosting-configuration.md). --- # Terms of use > [!WARNING] > This is a **template**. It is not legal advice. The operator of a FuzzyShare server should review it, adapt it to their service and jurisdiction, and replace the placeholders before relying on it. By using this FuzzyShare server you agree to these terms. The operator ("we") runs the service. ## Using the service - You are responsible for the files you upload and the links you share. - You are responsible for keeping your access key secret. We cannot recover it. - One account per person. Do not share an account; create named keys instead. ## Acceptable use Do not use the service to: - store or share anything illegal, or that infringes someone else's rights; - distribute malware, or run phishing or other fraud, including pages that imitate a login form; - harass people or expose their private information; - attack the service, evade its limits or rate limits, or probe other people's links; - store data you cannot afford to lose, or that must be kept for a legal or business reason. We may remove files or accounts that break these rules, without notice. ## Short-lived by design Files are deleted when they expire, within 14 days at most. Expired and deleted files cannot be recovered. We do not promise to keep any file for any length of time. ## Privacy How we handle data is described on the [privacy page](legal-privacy.md). ## No warranty The service is provided **as is**, without warranties of any kind. We do not guarantee that it is available, error free, secure or fit for a purpose. To the extent the law allows, we are not liable for any loss, including lost files or data, arising from its use. ## Changes and contact We may change these terms or the service. Continued use means you accept the changes. Contact: `[operator contact address]` --- # Share a file from the terminal You are on a server over SSH, or deep in a shell, and someone needs a file. FuzzyShare turns that into one line. ## One command ```sh fuzzy put report.pdf --ttl 1h --share ``` The only thing printed is the link, so you can paste it into chat or capture it: ```sh URL=$(fuzzy put report.pdf --ttl 1h --share) ``` ## Share a whole folder Send a stream instead of a file. Nothing is written to disk first: ```sh tar c project/ | fuzzy put - --name project.tar --share ``` ## Share the output of a command ```sh journalctl -u nginx --since "1 hour ago" | fuzzy put - --name nginx.log --ttl 1d --share ``` ## Install ```sh curl -fsSL https://fuzzyshare.com/install.sh | sh ``` Then follow the [Quickstart](quickstart.md). Every flag is on the [command reference](cli-reference.md), and [Scripting](cli-scripting.md) covers using the link in other tools. ## Related - [Share a link that expires](use-temporary-links.md) - [Share build logs and artifacts](use-ci-artifacts.md) --- # Send large files Email stops at a few tens of megabytes. A link has no such limit, so the file goes to FuzzyShare and the person gets a URL. ## Limits | | Free | Pro | |---|---|---| | Largest file | 1 GB | 50 GB | | Live storage | 5 GB | 128 GB | | Longest lifetime | 14 days | 30 days | See [Plans](concepts-plans.md) for the full table. A server you host yourself has the limits its operator sets. ## Upload ```sh fuzzy put footage.mov --ttl 3d --share ``` The same upload works in the dashboard by dragging the file into the page. ## Make sure it arrives - Pick a lifetime longer than the person needs. They cannot get the file after it expires. - For a file that matters, add a passphrase: `fuzzy share footage.mov --passphrase "..."`. See [Share a file privately](use-private-sharing.md). - Check that it was opened with `fuzzy activity LINK_ID`. See [Access activity](concepts-activity.md). ## If a file is too big A file larger than your plan's limit is refused with a `413 file_too_large` error that includes your limit. See [Limits](concepts-limits.md). --- # Share a link that expires Most files you share only need to exist for a short while. FuzzyShare is built around that: a file always has an expiry, and its links never outlive it. ## Choose a lifetime ```sh fuzzy put draft.docx --ttl 2h --share # two hours fuzzy put draft.docx --ttl 7d --share # a week ``` The default is 24 hours. The ceiling is 14 days on Free and 30 days on Pro. There is no way to make a file permanent. See [Files and expiry](concepts-files.md). ## Burn after reading Stop a link after a set number of downloads (Pro): ```sh fuzzy share draft.docx --passphrase "correct horse battery" --max-downloads 1 ``` ## Cut a link early ```sh fuzzy links fuzzy unshare l_0123456789ab ``` Revoking a link does not delete the file. Deleting the file revokes all its links. ## Why short lifetimes help A link left in a chat history is a door left open. With an expiry, the door closes by itself. Use the shortest time that works. ## Related - [Public and private links](concepts-links.md) - [Share a file safely](guides-sharing.md) --- # Share a file privately A public link works for anyone who has the URL. When that is not enough, make the link private. ## With a passphrase ```sh fuzzy share contract.pdf --passphrase "correct horse battery" --ttl 2d ``` Send the link in one channel and the passphrase in another. A private link shows nothing, not even the file name, until the passphrase is right. ## With an allow-list If the reader has a FuzzyShare key, allow only that key: ```sh fuzzy share contract.pdf --allow sha256:9f2c4ab01d3e7f58 --label "for Sam" ``` The reader presents their own key, and its fingerprint must be on the list. ## Read it ```sh fuzzy fetch https://fuzzyshare.com/s/TOKEN --passphrase "correct horse battery" -o contract.pdf ``` Or open the link in a browser and type the passphrase. ## See who opened it ```sh fuzzy activity l_0123456789ab ``` You see time, IP and device, and a name only if the visitor used their own key. See [Access activity and privacy](concepts-activity.md). ## Related - [Public and private links](concepts-links.md) - [Share a file safely](guides-sharing.md) --- # Share build logs and artifacts A failed build leaves a 200 MB log that no one wants to scroll through in the CI UI. Upload it and share the link. ## The idea 1. Give the job its own key: `fuzzy keys add ci-bot`. 2. Store it as a secret. 3. Upload at the end of the job and print the URL. ```sh URL=$(fuzzy put test-report.html --ttl 3d --share) echo "Report: $URL" ``` Because the key belongs to the job alone, you can revoke it without touching anything else. ## Where to go next The full setup, with a GitHub Actions example, is in [Use FuzzyShare from CI](guides-ci.md). To let an assistant do the same, see [Use FuzzyShare with AI agents](guides-agents.md). ## Related - [Share a file from the terminal](use-terminal.md) - [Share a link that expires](use-temporary-links.md) --- # FuzzyShare vs WeTransfer Both services let you send a file by link without the other person needing an account. They are built for different people. | | FuzzyShare | WeTransfer | |---|---|---| | Upload from a terminal or script | Yes, `fuzzy put` and an HTTP API | Not the main way to use it | | AI agents | MCP server and `/llms.txt` | No | | Self-hosting | Yes, one binary or Docker | No | | Passphrase and key allow-lists | Yes | Check their current plans | | Who opened the link | Yes, with IP, device and time | Check their current plans | | File lifetime | 24 hours by default, 14 days (Free) or 30 days (Pro) at most | Set by their plan | WeTransfer's limits and features change, so check their site before you decide. The rows above that point to it are the ones to confirm. ## When to choose FuzzyShare - You send files from servers, scripts or CI. - You want an agent to upload and share on your behalf. - You want to run the service yourself. ## When WeTransfer may suit you better - You only ever send files from a browser and want a familiar tool for non-technical people. Start with the [Quickstart](quickstart.md). --- # FuzzyShare vs transfer.sh and similar curl tools Tools in the transfer.sh style let you `curl --upload-file` and get a URL back. That is convenient, and FuzzyShare covers the same ground and goes further. | | curl-upload tools | FuzzyShare | |---|---|---| | One-line upload | Yes | Yes: `fuzzy put FILE --share` | | Accounts and revocable keys | Usually none | Yes, one key per person, job or agent | | Choose the lifetime | Often a header or fixed | `--ttl`, up to 14 or 30 days | | Private links | Rarely | Passphrase or key allow-list | | See who opened a link | No | Yes | | Agents | No | MCP and `/llms.txt` | | Self-hosting | Often | Yes | ## Plain curl works too ```sh curl -X PUT https://fuzzyshare.com/files/report.pdf \ -H "Authorization: Bearer $FUZZY_KEY" --data-binary @report.pdf ``` See the [HTTP API](api-overview.md). ## Choose FuzzyShare when You want the same speed, but with revocable keys, private links and an audit trail, and you do not want to run a bare upload endpoint open to everyone. --- # FuzzyShare vs email attachments | | Email attachment | FuzzyShare link | |---|---|---| | Size | A few tens of MB at most | 1 GB (Free) or 50 GB (Pro) | | Take it back | No, it sits in their inbox | Revoke the link or let it expire | | Passphrase | No | Yes | | Know it was opened | Only if they reply | Yes, with time and device | | Cleans itself up | No | Yes, on expiry | ## When email is fine A small, harmless file to someone who expects it. For everything else, send a link: ```sh fuzzy put proposal.pdf --ttl 3d --share ``` Then paste the link in the email. See [Share a file privately](use-private-sharing.md) and [Send large files](use-large-files.md). --- # Architecture FuzzyShare is one Go module, standard library plus one dependency (goldmark, which renders these docs), built into a single binary: the server, its web UI, the MCP endpoint and the command-line client. The code is split into small packages with one-way dependencies. ## Code map ``` cmd/fuzzy/ the binary: the version variable and the choice between server and client internal/config/ settings from FUZZY_* variables, the hard limits, size and lifetime parsing and printing internal/docsite/ the documentation: front matter, Markdown rendering, navigation, search index internal/filetype/ content-type detection and the file kinds used for previews (pure functions) internal/store/ everything on disk: files, users, keys, links, the unlock secret, the sweeper internal/server/ the HTTP application internal/server/servertest/ throwaway servers for tests in other packages internal/cli/ the command-line client; talks to a server only over HTTP web/ the browser UI, embedded into the binary docs/ the documentation pages (Markdown), embedded into the binary ``` ### Dependencies ``` cmd/fuzzy ---> internal/server ---> internal/store ---> (nothing internal) | | | | | +--------> internal/config | +-----------> internal/filetype | +-----------> web +--------> internal/cli (imports nothing else from this module) +--------> internal/config (to load the settings it hands to the server) ``` Arrows point at what a package imports. `internal/cli` never imports the server: it is tested end to end against `servertest`, but at run time it only speaks HTTP. ### cmd/fuzzy | File | Responsibility | |---|---| | `main.go` | `version` (stamped with `-ldflags "-X main.version=..."`), loads the config and starts the server when the arguments ask for it; everything else goes to `cli` | ### internal/config | File | Responsibility | |---|---| | `config.go` | `Config`, `Load` from the environment, the 14-day and 1 GB hard limits, `ParseTTL`, `FormatTTL`, `FormatSize` | ### internal/filetype | File | Responsibility | |---|---| | `filetype.go` | `Detect` (declared type, then extension, then the first bytes), `KindOf` (html, svg, image, pdf, video, audio, markdown, link, csv, json, text, other), `BaseType` | ### internal/store `Store` owns the data directory and its locking. Nothing in it knows about HTTP. | File | Responsibility | |---|---| | `store.go` | `Open`, the injectable clock (`Now`, `SetClock`), atomic JSON writes, shared errors | | `files.go` | File bytes and `Meta`: `OpenFile`, `Put`, `Remove`, `List`, `Usage`, `NewTemp` | | `users.go` | Accounts: `CreateUser`, `UserByKey`, `UserByID`, `Touch`, `ListUsers`, `DeleteUser` | | `keys.go` | Named keys: `AddKey`, `RemoveKey`, `RotateKey`, naming rules, migration of old accounts | | `links.go` | Link records: create, list, revoke, resolve, count reads (`ReadLink`), the link limits | | `access.go` | The per-link access log: capped append-only JSONL, collapse, totals, cleanup | | `fingerprint.go` | Key fingerprints (`sha256:` and 16 hex characters) | | `secret.go` | The secret that signs unlock cookies | | `sweep.go` | `Sweep` and `SweepLoop`: expired files, dead links, orphans, stale temp files | | `ids.go` | Hashing, random tokens and account-id validation | ### internal/server | File | Responsibility | |---|---| | `server.go` | `Server`, `New(cfg, st)`, `Handler()` | | `run.go` | `Run`: open the store, start the sweeper, serve until SIGINT or SIGTERM | | `routes.go` | The URL table and `method`, which turns a wrong method into a JSON `405` | | `httputil.go` | Request logging, JSON helpers, the public base address, the client IP | | `info.go` | `/health`, `/config` and the limits reported to clients | | `auth.go` | Identity: bearer keys, registration, `/me`, key rotation, the signup rate limit | | `keys.go` | `/me/keys`: list, create, revoke | | `admin.go` | Admin-only user listing and removal | | `files.go` | Upload, download, list and delete of a person's files | | `links.go` | Creating, listing and revoking links, public/private visibility | | `share.go` | Reading a link: the preview page route, `/raw` and `/info` | | `access.go` | Link activity: recording hooks at the read points and `GET /links/{id}/activity` | | `device.go` | Device and bot labels from the user agent | | `unlock.go` | Private links: passphrase hashing, rate limit, unlock cookie, key allow-list | | `serve.go` | Serving file bytes with the right headers for each kind of file | | `pages.go` | Embedded pages: landing, 404, `llms.txt`, `robots.txt`, `sitemap.xml` | | `docs_*.go` | The documentation site: routes, page template, the search index and `llms-full.txt` | | `llms.txt.tmpl` | The agent guide served at `/llms.txt` | | `mcp.go` | The MCP server: JSON-RPC handling and the tools | ### internal/cli `App` carries the streams, environment, clock and HTTP client of one run, so tests can swap them. `cli.go` holds dispatch, help and flag parsing; `client.go` the HTTP client; the other files one command group each (`account.go`, `put.go`, `files.go`, `links.go`, `keys.go`, `transfer.go`, `config.go` for the saved login). Every command is documented in the [command reference](cli-reference.md). ### web `web/` holds the HTML, CSS and JavaScript of the UI (no build step). `embed.go` exports it as `web.FS`; only `*.html`, `*.css`, `*.js`, `*.svg` and the fonts are embedded, so the Go file is never served. `internal/server/pages.go` and `aliases.go` map the addresses to pages. | Address | Page | Files | |---|---|---| | `/` | marketing landing (static, crawlable) | `landing.html`, `landing.css`, `landing.js` | | `/access`, `/signup` | sign in with an access key; get an access key | `access.html`, `signup.html`, `auth.js`, `pages.css` | | `/dashboard`, `/dashboard/...` | the app shell; every path gets the same HTML and the browser routes with the History API | `app.html`, `dashboard.css`, the scripts below | | `/status` | health check page | `status.html`, `status.js` | | `/s/{token}` | share viewer; unknown pages get `404.html` | `view.html`, `view.js`, `404.html` | | `/login`, `/app`, `/cli`, `/api`, ... | permanent redirects (a table in `aliases.go`) | | Pages are served with `https://fuzzyshare.com` replaced by the server's address and a strict CSP (no inline script or style). `boot.js` runs in `` and sends people with a saved access key from `/`, `/access` and `/signup` to `/dashboard`, and people without one from `/dashboard*` to `/access?next=`. Stylesheets: `theme.css` (design tokens), `base.css`, `components.css` (button, input, card, badge, tabs, table, dialog, states), `dashboard.css`, `landing.css`, `pages.css`. Scripts share `window.Siso`: | File | Responsibility | |---|---| | `core.js` | DOM helper `h`, formatting, requests with the progress bar, icons, the saved key | | `ui.js` | reusable components (button, field, table, tabs, code block, dialog, empty and error states) | | `shell.js` | frame (icon rail, sidebar, top bar, user menu, slide-over) and the router | | `sec-*.js`, `keys.js` | one file per dashboard section; each pushes `{id, path, group, title, icon, render}` onto `FuzzyShare.sections` | | `links.js`, `paste.js` | the share dialog, access badge and activity dialog; the paste panel | | `auth.js`, `landing.js`, `status.js`, `view.js` | the public pages and the share viewer | ## Tests Tests sit next to the code they check. The server's own tests run the real handlers through `httptest` with an injectable clock (`Store.SetClock`), so expiry is tested without waiting. Tests in other packages use `internal/server/servertest`, which starts a real server on a temporary directory and exposes its URL, data directory and clock; the CLI's end-to-end and cross-feature tests (`internal/cli/e2e_test.go`, `integration_test.go`) are built on it. ## Storage Everything is a plain file under `FUZZY_DIR`. There is no database. ``` users/.json profile and its keys (id, name, hash, hint, times) keys/ the uid that key belongs to, one file per key data// file bytes meta//.json size, type, upload and expiry times, a per-upload id share/ link record: owner, file version, expiry, access mode, passphrase hash, allow-list, read counts access/.jsonl capped access log of one link, deleted with the link secret 32 random bytes that sign unlock cookies (mode 0600) tmp/ uploads and writes in flight ``` - Files are written to `tmp/` and renamed into place, so readers never see a partial file. Metadata is written the same way. - One `sync.RWMutex` in the store guards reads against commits and sweeps. It is held briefly: bytes are streamed to `tmp/` outside the lock and moved in under it. - A link id is `l_` plus the first 12 hex characters of the record's file name, so finding a link by id needs no index. Public links keep their token in the record so the URL can be shown again; private links keep only hashes. - A share record stores the upload id of the file version it points at. Replacing or deleting the file changes the id, which revokes the link without tracking links per file. ## Request flow 1. `logged` (`httputil.go`) wraps the mux and logs the route pattern, never the path, so share tokens stay out of logs. 2. `method` (`routes.go`) dispatches by HTTP method so a wrong method returns a JSON `405`. 3. Handlers call `requireUser` (`auth.go`), which hashes the bearer key and looks it up in `keys/`. 4. File handlers work in the caller's own `data//` and `meta//`, so one person can never address another's files by name. ## Expiry Expiry is checked on every read: an expired file is invisible immediately. The sweeper (`Store.SweepLoop`, at startup and then every `FUZZY_SWEEP_INTERVAL`) deletes expired files, share records pointing at nothing, files without metadata, files of removed users, and stale temp files. ## Previews `filetype.KindOf` maps a content type to a kind. Share links serve a preview page to browsers (`Accept: text/html`) and bytes to everything else. The page renders by building DOM nodes, never by inserting HTML. HTML files are shown in an iframe with `sandbox` and without `allow-same-origin`, and their bytes are served with a CSP that does the same, so an uploaded page runs in an opaque origin. ## Design choices - **No database.** The data is small, short-lived and keyed by name; the filesystem is enough and a backup is a copy. - **Keys as identity.** One bearer key per person, hashed at rest, sent on every call. It keeps clients trivial (`curl -H`) and gives agents and people the same model. - **Hard limits in code.** The 14-day and 1 GB ceilings are constants, so a misconfiguration cannot turn FuzzyShare into long-term storage. - **Embedded docs.** The pages are Markdown in `docs/`, rendered on the server so every URL is crawlable and works without JavaScript. - **Embedded UI.** `go:embed` (in `web/embed.go`) keeps deployment to one file. The UI has no build step and no dependencies.