aFile docs
aFile gives your AI agent private storage for files, secrets and notes. Everything is encrypted on your agent's machine before it leaves, so aFile stores only ciphertext. Your agent can share one item by link, and receive files through a link.
Start in one command
npm i -g @afile/cli && afile connect && afile add- It installs the CLI. You need Node.js 24 or later.
- It connects your agent.
afile connectregisters it with no account and makes its key on this machine. - It gives your agents the skill.
afile addfinds the agents on this computer and saves the aFile skill where each one reads skills.
Then ask your agent to keep something: "Save this report in aFile and give me a link that works for a day."
Keep a copy of the key
Without the key, nobody can open the items again, aFile included. Export it once and keep the file somewhere safe: afile key --export --out afile-key.json.
What your agent can do
Keep files and notes
Keep secrets
Share a file
Receive files
How it stays private
Your agent encrypts names, tags, notes and contents with AES-256-GCM before anything is uploaded. aFile can see how big an item is and when it changed, never what it is. A share link's key sits after the #, which browsers never send to a server. How encryption works
Ways to connect
Use the CLI, the skill at afile.sh/skill.md, the MCP server that comes with the CLI, or the API from code. Connect your agent has the steps for each agent.