Paperclip Security on Your Own Server
A Paperclip server holds your API keys, your code and a company of agents that can run commands. On the internet, that needs a few protections in the right order: who becomes the owner, who can sign up, where keys are kept, and what the agents themselves can see. This page goes through each, for a self-hosted install and for Hosting for Paperclip on Flux.
Authenticated mode with public exposure
Paperclip has a local mode with no login, meant for one person on localhost. An internet-facing server runs in authenticated mode with public exposure instead: every person signs in, the public URL is explicit, and Paperclip applies stricter deployment checks. Every Hosting for Paperclip app runs this way from its first start.
The owner: a one-time invite
The riskiest moment for any self-hosted app is the gap between starting it and creating the admin account. Paperclip closes it for public instances: there is no browser claim, and the first admin comes from a high-entropy one-time invite created with the paperclipai auth bootstrap-ceo command.
Hosting for Paperclip does this at deploy. A random token is generated with your other secrets, and once Paperclip reports that it is waiting for its first admin, the image stores the token's hash as the owner invite, the same record the command writes. The panel's Paperclip tab shows the link. Open it, create your account, and the invite is spent. Until then, keep the link private: whoever opens it first becomes the owner. The image never creates a second one, so nobody can become the owner by reaching the address.
Open sign-up, and turning it off
By default anyone who reaches the address can create an account. That sounds worse than it is: an account without an invitation belongs to no company and sees nothing. Our image test checks exactly this, that a stranger who signs up gets nothing.
Still, there is no reason to leave the door open. Once your team has joined:
- Set
PAPERCLIP_AUTH_DISABLE_SIGN_UP=true. On Hosting for Paperclip, add it in Deployment Settings; the app restarts with sign-up off. - Invite new people from your company's settings, where Paperclip keeps its member and invite pages. Paperclip's invite flow works with sign-up disabled.
Where API keys live
Paperclip encrypts the secrets it stores, such as provider API keys and tokens, with a master key. Decrypted values are never returned to the UI; they are injected into an agent's process only when a run starts, and each use is recorded without the value. Authenticated instances also turn on strict mode by default, so sensitive variables such as *_API_KEY must be stored as secret references rather than plain text.
The master key is the one thing to protect. Paperclip's docs are direct about it: back it up with the database, because a database without the key cannot decrypt its secrets. On Hosting for Paperclip, PAPERCLIP_SECRETS_MASTER_KEY is generated once at deploy and kept in your app's specification, together with the session secret, the tool-action signing secret and the database password.
The app specification is encrypted
On Flux, an app's specification travels across a decentralized network of nodes. Hosting for Paperclip deploys every app with its whole specification encrypted, so the generated secrets, the database password and any API key you enter at deploy are not readable on the network.
Telemetry is off
Paperclip collects anonymous usage telemetry by default. The project says it never includes personal information, task content, prompts, file paths or secrets. The image we run sets PAPERCLIP_TELEMETRY_DISABLED=1, so none is sent. Your prompts and code still go to the AI providers your agents use; that is how agents work.
What the agents can see
Agents are powerful by design. A Claude Code or Codex agent runs commands in its working directory on the server, and any secret bound to it is in its environment. Paperclip masks bound secret values in stored run logs, but its docs call that a guard against accidents, not a security boundary. Practical rules:
- Bind each key only to the agents that need it.
- Use provider keys with their own spending limits, and Paperclip budgets on top.
- Use review gates and approvals for actions you want a person to confirm.
- Rotate a key if a transcript or a downstream system may have captured it.
What we do not do
Your companies, tasks and conversations stay in your app's own database, and we do not resell model usage. Our support covers the server, deployment, billing and domains; Paperclip's features and their security model are documented by the Paperclip project. The custom domain guide explains why the public address matters for sign-in, and the backup guide covers keeping the key and the data together.
See how Hosting for Paperclip on Flux sets this up from the first start.
Frequently Asked Questions
Can someone become the owner if they find my address first?
No. On Hosting for Paperclip the owner is whoever opens the one-time invite created at deploy, and the link contains a long random token. Reaching the address is not enough, and the invite stops working once used.
Can strangers sign up?
They can create an account until you turn sign-up off, but an account without an invitation sees no company. Once your team is in, set PAPERCLIP_AUTH_DISABLE_SIGN_UP to true in Deployment Settings.
How do I add people after sign-up is off?
Invite them from your company’s settings in Paperclip. Paperclip’s invite flow works with sign-up disabled.
What happens if the secrets master key is lost?
Every secret Paperclip stored, such as API keys, can no longer be decrypted and must be entered again. On Hosting for Paperclip the key is generated at deploy and kept in your app’s encrypted specification.
Does Paperclip send data anywhere?
Paperclip collects anonymous usage telemetry by default; it is turned off in the image we run. Your prompts and code go to the AI providers your agents use, and nowhere else from us.
Can an agent read the API keys I give it?
Yes. Paperclip keeps secrets encrypted until a run starts, then injects them into the agent’s process, and its docs say to treat any bound secret as exposed to that agent. Bind only what each agent needs.
Paperclip is open-source software (MIT) by the Paperclip project (https://github.com/paperclipai/paperclip). Flux is not affiliated with or endorsed by the Paperclip project.