pidrive
Private file storage for AI agents. Files are stored in AWS S3 and accessed via WebDAV mount.
Install
Install via Homebrew (recommended):
brew tap abhishek203/pidrive
brew install pidrive
Or download directly from GitHub releases:
https://github.com/abhishek203/pi-drive/releases
On Linux, davfs2 is also needed for WebDAV mount support:
sudo apt install davfs2
macOS has WebDAV built in — nothing extra needed.
Source code: https://github.com/abhishek203/pi-drive
Homebrew tap: https://github.com/abhishek203/homebrew-pidrive
Get started
pidrive register --email you@company.com --name "My Agent" --server https://pidrive.ressl.ai
pidrive verify --email you@company.com --code
pidrive mount
After mount, your drive has two folders:
/drive/my/ Your files (read/write)
/drive/shared/ Files others shared with you (read-only)
On macOS the path is ~/drive/ instead of /drive/.
Use standard unix commands:
ls /drive/my/
echo "hello" > /drive/my/notes.txt
cat /drive/my/notes.txt
grep -r "error" /drive/my/logs/
cp local-file.txt /drive/my/
Shared files are organized by sender:
ls /drive/shared/
ls /drive/shared/alice@company.com/
cat /drive/shared/alice@company.com/report.txt
Every read/write goes through WebDAV over HTTPS (TLS encrypted in transit) to the server, then to S3. The WebDAV client (davfs2 on Linux, mount_webdav on macOS) uses a small local cache for recently accessed files to improve read performance. The cache is temporary and cleared on unmount. All persistent data lives in S3. If the VM dies, nothing is lost.
Share
pidrive share report.txt --to other-agent@company.com
pidrive share data.csv --link
pidrive share data.csv --link --expires 7d
pidrive shared
pidrive revoke
pidrive pull [destination]
Link shares produce a public URL: https://pidrive.ressl.ai/s/
WARNING: Anyone with the URL can download the file without authentication. Do not use link shares for sensitive data. Use direct shares (--to email) for private sharing.
You can share with anyone — even if they are not on pidrive yet. They get an invite email. When they sign up, the shared file appears in their drive automatically.
Shared files are not copies. The recipient sees your live file. If you update it, they see the update. If you revoke, it disappears instantly.
Search
pidrive search "quarterly revenue"
Full-text search across all your files. The server indexes text files in the background.
Trash
pidrive trash
pidrive restore
Deleted files are kept for 30 days.
Account
pidrive whoami
pidrive status
pidrive usage
pidrive plans
pidrive upgrade --plan pro
pidrive login --email you@company.com
pidrive unmount
Plans
free: 1 GB storage, 100 MB bandwidth/month
pro: 100 GB storage, 10 GB bandwidth/month — $5/mo
team: 1 TB storage, unlimited bandwidth — $20/mo
Activity
pidrive activity
Shows mount, share, revoke, restore events.
How it works
- 1. pidrive mount connects your machine to the pidrive server via WebDAV over HTTPS
- Your API key authenticates the connection (HTTP Basic Auth over TLS)
- The server maps your session to your private directory
- All file data is stored in AWS S3 (encrypted in transit via HTTPS)
- Each agent is isolated — you can only see your own files under /my/
- Sharing creates a reference, not a copy. Recipients read from your live file via /shared/. Revoking removes access instantly.
Credentials
On registration, you receive an API key (pk_ prefix, 32 random characters).
It is stored locally at ~/.pidrive/credentials (file permissions 0600, owner-only read).
The API key is sent as HTTP Basic Auth password over HTTPS on every WebDAV request.
To revoke access, delete ~/.pidrive/credentials and re-register or re-login.
What gets installed
Homebrew installs the pidrive CLI binary to the Homebrew prefix (typically /opt/homebrew/bin/pidrive on macOS or /home/linuxbrew/.linuxbrew/bin/pidrive on Linux). SHA-256 checksums are verified by Homebrew automatically.
No background services, daemons, or cron jobs are installed. Source code: https://github.com/abhishek203/pi-drive
Frequently asked questions
Q: What is pidrive?
A: pidrive is private file storage for AI agents. It gives agents a mounted filesystem backed by S3. Agents use standard unix commands (ls, cat, grep, cp) to read and write files. No SDKs or API calls needed.
Q: How is pidrive different from S3?
A: S3 is an API — you need SDKs, presigned URLs, and credentials management. pidrive is a filesystem. You just write to /drive/file.txt and it is stored in S3 automatically.
Q: How is pidrive different from Google Drive?
A: Google Drive requires OAuth2, browser-based auth, and REST API calls. pidrive uses a simple API key and unix commands. It is built for AI agents, not humans.
Q: Can agents see each other's files?
A: No. Each agent has isolated private storage. Sharing is explicit — you choose what to share and with whom.
Q: Where are files stored?
A: All persistent data is in AWS S3. The WebDAV client keeps a small temporary cache of recently accessed files for performance. The cache is cleared on unmount.
Q: What happens if my agent's VM dies?
A: Nothing is lost. All data is in S3. Mount again from a new VM and all files are there.
Q: What file operations are supported?
A: All standard unix operations: ls, cat, echo, cp, mv, rm, mkdir, grep, head, tail, wc, find, pipes, and redirects.
Q: How do I share a file?
A: Run pidrive share file.txt --link to get a public URL, or pidrive share file.txt --to other@company.com to share directly with another agent.
Q: Is there a free tier?
A: Yes. The free plan includes 1 GB storage and 100 MB bandwidth per month.
Q: What languages/frameworks does pidrive work with?
A: Any. pidrive is a filesystem, not a library. If your agent can run unix commands, it can use pidrive. Works with Python, Node.js, Go, Rust, bash scripts, LangChain, CrewAI, AutoGPT, or any other framework.
pidrive
AI代理的私有文件存储。文件存储在AWS S3中,通过WebDAV挂载访问。
安装
通过Homebrew安装(推荐):
brew tap abhishek203/pidrive
brew install pidrive
或直接从GitHub发布页下载:
https://github.com/abhishek203/pi-drive/releases
在Linux上,WebDAV挂载还需要davfs2:
sudo apt install davfs2
macOS内置WebDAV支持——无需额外安装。
源代码:https://github.com/abhishek203/pi-drive
Homebrew tap:https://github.com/abhishek203/homebrew-pidrive
快速开始
pidrive register --email you@company.com --name My Agent --server https://pidrive.ressl.ai
pidrive verify --email you@company.com --code
pidrive mount
挂载后,你的驱动器包含两个文件夹:
/drive/my/ 你的文件(读写)
/drive/shared/ 他人与你共享的文件(只读)
在macOS上,路径为~/drive/而非/drive/。
使用标准Unix命令:
ls /drive/my/
echo hello > /drive/my/notes.txt
cat /drive/my/notes.txt
grep -r error /drive/my/logs/
cp local-file.txt /drive/my/
共享文件按发送者组织:
ls /drive/shared/
ls /drive/shared/alice@company.com/
cat /drive/shared/alice@company.com/report.txt
每次读写操作都通过HTTPS上的WebDAV(传输中TLS加密)到达服务器,然后到S3。WebDAV客户端(Linux上的davfs2,macOS上的mount_webdav)使用小型本地缓存存储最近访问的文件以提高读取性能。缓存是临时的,卸载时清除。所有持久数据存储在S3中。如果虚拟机崩溃,不会丢失任何数据。
共享
pidrive share report.txt --to other-agent@company.com
pidrive share data.csv --link
pidrive share data.csv --link --expires 7d
pidrive shared
pidrive revoke
pidrive pull [destination]
链接共享生成一个公共URL:https://pidrive.ressl.ai/s/
警告:任何拥有该URL的人都可以在无需认证的情况下下载文件。不要将链接共享用于敏感数据。使用直接共享(--to email)进行私有共享。
你可以与任何人共享——即使他们尚未注册pidrive。他们会收到邀请邮件。当他们注册后,共享文件会自动出现在他们的驱动器中。
共享文件不是副本。接收者看到的是你的实时文件。如果你更新文件,他们会看到更新。如果你撤销共享,文件会立即消失。
搜索
pidrive search quarterly revenue
在所有文件中进行全文搜索。服务器在后台为文本文件建立索引。
回收站
pidrive trash
pidrive restore
删除的文件保留30天。
账户
pidrive whoami
pidrive status
pidrive usage
pidrive plans
pidrive upgrade --plan pro
pidrive login --email you@company.com
pidrive unmount
套餐
免费:1 GB存储空间,100 MB/月带宽
专业版:100 GB存储空间,10 GB/月带宽 — 5美元/月
团队版:1 TB存储空间,无限带宽 — 20美元/月
活动
pidrive activity
显示挂载、共享、撤销、恢复事件。
工作原理
- 1. pidrive mount通过HTTPS上的WebDAV将你的机器连接到pidrive服务器
- 你的API密钥认证连接(基于TLS的HTTP基本认证)
- 服务器将会话映射到你的私有目录
- 所有文件数据存储在AWS S3中(通过HTTPS传输加密)
- 每个代理相互隔离——你只能看到/my/下的自己的文件
- 共享创建的是引用,而非副本。接收者通过/shared/读取你的实时文件。撤销共享立即移除访问权限。
凭证
注册时,你会收到一个API密钥(pk_前缀,32个随机字符)。
它本地存储在~/.pidrive/credentials(文件权限0600,仅所有者可读)。
API密钥作为HTTPS上的HTTP基本认证密码,在每个WebDAV请求中发送。
要撤销访问权限,删除~/.pidrive/credentials并重新注册或重新登录。
安装内容
Homebrew将pidrive CLI二进制文件安装到Homebrew前缀目录(macOS上通常为/opt/homebrew/bin/pidrive,Linux上为/home/linuxbrew/.linuxbrew/bin/pidrive)。Homebrew会自动验证SHA-256校验和。
不安装任何后台服务、守护进程或定时任务。源代码:https://github.com/abhishek203/pi-drive
常见问题
问:什么是pidrive?
答:pidrive是AI代理的私有文件存储。它为代理提供由S3支持的挂载文件系统。代理使用标准Unix命令(ls、cat、grep、cp)读写文件。无需SDK或API调用。
问:pidrive与S3有何不同?
答:S3是一个API——你需要SDK、预签名URL和凭证管理。pidrive是一个文件系统。你只需写入/drive/file.txt,它就会自动存储在S3中。
问:pidrive与Google Drive有何不同?
答:Google Drive需要OAuth2、基于浏览器的认证和REST API调用。pidrive使用简单的API密钥和Unix命令。它是为AI代理而非人类构建的。
问:代理能看到彼此的文件吗?
答:不能。每个代理都有隔离的私有存储。共享是显式的——你选择共享什么以及与谁共享。
问:文件存储在哪里?
答:所有持久数据存储在AWS S3中。WebDAV客户端保留最近访问文件的小型临时缓存以提高性能。卸载时清除缓存。
问:如果我的代理的虚拟机崩溃了怎么办?
答:不会丢失任何数据。所有数据都在S3中。从新虚拟机重新挂载,所有文件都在那里。
问:支持哪些文件操作?
答:所有标准Unix操作:ls、cat、echo、cp、mv、rm、mkdir、grep、head、tail、wc、find、管道和重定向。
问:如何共享文件?
答:运行pidrive share file.txt --link获取公共URL,或运行pidrive share file.txt --to other@company.com直接与其他代理共享。
问:有免费套餐吗?
答:有。免费套餐包括1 GB存储空间和每月100 MB带宽。
问:pidrive支持哪些语言/框架?
答:任何语言/框架。pidrive是一个文件系统,而非库。如果你的代理可以运行Unix命令,它就可以使用pidrive。适用于Python、Node.js、Go、Rust、bash脚本、LangChain、CrewAI、AutoGPT或任何其他框架。