This policy covers afile.sh, including its signed-in Console, the hosted storage API at api.afile.sh with its share and receive pages, and the afile command line and MCP server. I run aFile, so where this policy says “I”, “me” or “my”, it means aFile. For anything about your privacy, write to contact@afile.sh.
Who decides
aFile decides how the information here is used, which makes it the controller of it. The agents that use aFile, and the people and services they work for, are separate, and their privacy practices are their own. An aFile server someone runs for themselves is theirs, not aFile’s.
What aFile can’t read
An agent encrypts every file and note on its own machine before it reaches aFile. What api.afile.sh keeps is ciphertext: the item, its name, type, tags and note (sealed together as its metadata), and its key, wrapped with a key only the agent holds. aFile has no key that opens them.
If you link an agent at afile.sh and turn on agent recovery, your browser makes a recovery key, and only its public half reaches aFile. The agent seals its own key to it, so your browser can open what the agent keeps, and aFile still can’t.
A share link carries its own key after the #. Browsers don’t send that part to a server, so aFile never sees it. A receive link’s page encrypts each file in the sender’s browser, to a key only the agent that made the link can open.
What aFile keeps
- Agents. A random id for each agent, a hash of its storage token (never the token), when it was created, and the public half of its receive key. An agent has no account: no name, email address or password.
- Items. For each encrypted item: its size, version, when it was created, changed and will expire, and whether it came through a receive link. A replaced version is kept for 30 days.
- Links. For each share or receive link: which agent made it, when it expires, how many times it may be used and has been used, and, for a share link, a sealed copy of the item.
- Retried writes. The answer to a write, so a retried request isn’t done twice, for one day.
- Rate limits. To stop abuse, requests that create an agent or open a share or receive page are counted per minute under the IP address they came from. These counts are deleted within about 20 minutes.
- Technical. My hosting provider logs requests and errors, which include IP addresses.
If you sign in at afile.sh, it also keeps:
- Your account. You sign in through aGroup (agroup.sh), where you choose Google or X. afile.sh keeps the id aGroup gives you, your name and email address as aGroup shares them, and when your account was made. There is no aFile password.
- Your sign-ins. For each browser signed in: when, its IP address and its browser name, so you can see and end it under Devices.
- Linked agents. Which agents you linked, and since when. If you turn on agent recovery, the public half of your recovery key (the private half stays in your browser), and each linked agent’s key sealed to it.
afile.sh sets cookies only to sign you in and keep you signed in, and one that only tells its pages you’re signed in. It runs no analytics or advertising trackers, and neither does api.afile.sh.
aFile doesn’t keep API keys, passwords or your own details, like your address. Those are kept in aSecret (asecret.sh), aFile’s sibling, under its own privacy policy.
The command line
The afile command keeps the agent’s token and key in files on its own machine. It talks to api.afile.sh, or to the aFile server you point it at, and downloads the aFile skill from afile.sh when you run afile add. It sends no analytics.
Self-hosted servers
Someone can run an aFile server for themselves. It keeps agents’ items and links, and no person accounts: linking an agent to a person is on afile.sh only. Whoever runs a server decides what it keeps, and this policy doesn’t cover it.
Why it’s used
To store and return what agents save, run their links, stop abuse, fix failures and meet legal obligations. Nothing is sold, used for ads, or used to train AI models, and aFile can’t read the contents anyway.
If you use aFile from the EU, UK or a similar jurisdiction: running the service you asked for rests on my agreement with you; security, abuse prevention and reliability rest on my legitimate interests, which I weigh against your rights; and some records I keep because the law requires it.
Who else gets it
Cloudflare hosts afile.sh and api.afile.sh, their database and file storage. aGroup, which aFile is part of, runs the sign-in at agroup.sh; Google or X, whichever you choose there, tell aGroup who you are, and aGroup’s privacy policy covers what it keeps. Google (Gmail) receives and stores email sent to contact@afile.sh, which is forwarded there. Beyond them, information may be disclosed when the law requires it, to deal with fraud or threats, or to protect legal rights. Since the contents are encrypted, what could be disclosed is the ciphertext and the records above.
Where it is stored
api.afile.sh’s database and file storage are stored in the United States, in Cloudflare’s eastern North America region. Cloudflare runs aFile on its global network, so requests can be handled in any country where Cloudflare operates. If you use aFile from outside the United States, your information is transferred to and stored in the US. Where the law requires a safeguard for a transfer, I rely on the standard contractual clauses in Cloudflare’s data processing terms.
How long it’s kept
- Items stay until their agent deletes them or they expire. Deleting an item erases it, its earlier versions and its share links’ copies at once. An expired item is erased within about 15 minutes.
- Earlier versions: 30 days.
- Agents stay until they delete themselves with
afile erase. An agent that keeps nothing, with no items and no open links, and hasn’t been used for 90 days is removed with its records. I note when an agent was last used, to the day, only for this. - Links close when they expire (one day by default, 30 days at most), are used up or are closed by their agent. Their sealed copy is erased then. A record that the link existed, without its contents, stays with the agent’s records.
- Your account stays until you delete it, under Data & privacy. Deleting it unlinks your agents, which keep their storage, and deletes your sign-ins, your recovery key and the agents’ keys sealed to it. A sign-in ends after 7 days without use, or when you sign out.
- Retried writes: one day. Rate limit counts: about 20 minutes. Logs: 7 days.
- Backups. The database can be restored to any minute in the last 30 days, so something deleted can stay recoverable that long; it is restored only after a failure.
Your choices and rights
Signed in at afile.sh, you can download a summary of what it keeps about you, and delete your account, under Data & privacy. An agent can delete its items and close its links at any time with afile delete and afile close, and delete itself with everything it keeps with afile erase. If you can no longer run it, you can also have an agent’s records erased: write to contact@afile.sh; since there are no accounts, you may be asked to show you hold the agent’s token, for example by deleting an item with it.
Depending on where you live, you may have the right to see your information, correct it, have it erased or restricted, get a portable copy, object to certain uses, and withdraw consent. Write to contact@afile.sh and you’ll get an answer within 30 days. You can also complain to your local data protection authority. If you live in a US state with a privacy law, you have these rights too, and can appeal a refusal the same way. Personal information is never sold or shared for advertising.
Security, children and changes
Contents are encrypted before they leave the agent’s machine, and everything is encrypted in transit and at rest. No system is perfectly secure, and anyone who has a whole share link can open what it shares. aFile is made for AI agents. aFile is not meant for children under 13; if you believe a child under 13 has given me personal information, write to me and it will be removed. If this policy changes in a way that matters, this page will say so at least 14 days before it takes effect.
See also the Terms of Service.