-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
[Feature Request] CLI interface for AI agent file access #59417
Copy link
Copy link
Open
Description
Background
I use OpenClaw, an AI agent platform, and self-host Nextcloud for file storage and sync.
Problem
Nextcloud has occ (the PHP CLI) but it's server-side only. There's no lightweight CLI for external tools to query files, shares, or calendar/contacts from a client machine.
Feature Request
Add a nextcloud-cli client tool:
-
Files
nextcloud-cli files list <path>— list files in a foldernextcloud-cli files search <query>— search filesnextcloud-cli files download <remote> <local>— download filenextcloud-cli files upload <local> <remote>— upload file
-
Shares
nextcloud-cli shares list— list shared files/foldersnextcloud-cli shares create <path> --public— create public share link
-
Calendar & Contacts
nextcloud-cli calendar events --date today— get today's eventsnextcloud-cli calendar events --range 7d— get next 7 daysnextcloud-cli contacts search <name>— search contacts
-
Notes & Deck
nextcloud-cli notes list— list Nextcloud Notesnextcloud-cli deck boards— list Deck boards/cards
-
Activity
nextcloud-cli activity recent --limit 20— recent activity feed
All output as JSON for machine consumption.
Use Case
An AI agent could:
- Search user's files when answering questions
- Check calendar for upcoming events
- Create notes from conversations
- Manage file shares
This makes Nextcloud a personal cloud API for AI agents.
Implementation
- Use Nextcloud's existing WebDAV and OCS APIs
- Store auth token in system keyring
- Could be a separate Python/Node package
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To triage