[Feature Request] CLI interface for AI agent file access
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files, tests, or entry points. Start by reviewing Nextcloud's existing WebDAV and OCS APIs and the proposed Python or Node.js package boundary; done requires agreeing on a scoped command set, authentication approach, and JSON output behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, php, python
- Domain
- api, cli, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100