Nextcloud for Openclaw

A comprehensive Nextcloud integration for Openclaw Skills that enables AI agents to manage files, folders, and metadata via WebDAV and OCS APIs.

romain-grosos
v1.2.2
Feb 26, 2026
2
639
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install nextcloud-files

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install nextcloud-files using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Nextcloud?

The Nextcloud skill for Openclaw Skills provides a robust interface for interacting with self-hosted cloud storage. It leverages WebDAV for core file operations like creating, reading, and moving documents, while utilizing the OCS API to manage system tags, favorites, and storage quotas. Designed with a focus on simplicity and security, it uses Python's standard library to avoid external dependencies, making it a lightweight addition to any agentic workflow.

This tool allows developers to extend the capabilities of their AI agents, providing them with a persistent file system in the cloud. By integrating with Openclaw Skills, users can automate document organization, log activities directly to their private servers, and maintain a secure bridge between their local agents and remote data storage.

Nextcloud Use Cases

  • Uploading documents, reading file contents, and moving files within a Nextcloud instance.
  • Creating and managing directory structures for automated project organization.
  • Searching for specific files or listing folder contents to retrieve context for the agent.
  • Monitoring storage quotas to ensure cloud resources are managed effectively.
  • Tagging files for better categorization or marking critical documents as favorites.

How Nextcloud Works

  1. The skill authenticates with the Nextcloud instance using an app-specific password and URL provided via environment variables or a secrets file.
  2. When a command is triggered, the skill uses the standard urllib library to send WebDAV or OCS requests to the server.
  3. The skill evaluates local configuration settings, such as base_path and write permissions, to ensure actions stay within defined security boundaries.
  4. Server responses are parsed and converted into structured data for the agent to interpret or display to the user.
  5. Advanced operations like tagging use the OCS API to interact with file IDs and metadata beyond basic file system properties.

Nextcloud Setup

To get started with this skill within the Openclaw Skills ecosystem, follow the interactive setup process:

python3 scripts/setup.py
python3 scripts/init.py

Alternatively, you can manually configure your credentials in ~/.openclaw/secrets/nextcloud_creds with the following format:

NC_URL=https://cloud.example.com
NC_USER=username
NC_APP_KEY=app-password

Ensure you generate an app password in your Nextcloud Settings under the Security tab.

Nextcloud Data Schema & Taxonomy

The skill manages its operational data and security settings through two primary local files:

Path Purpose
~/.openclaw/secrets/nextcloud_creds Stores sensitive access credentials (URL, User, App Key) with chmod 600 permissions.
~/.openclaw/config/nextcloud/config.json Stores behavioral flags such as base_path for sandboxing, allow_write, and allow_delete.

The config.json file allows users to restrict the agent to a specific subdirectory, ensuring it only interacts with authorized data.

Nextcloud Advanced Features

  • Sandbox Control: Restrict the agent's scope to a specific subtree using the base_path configuration.
  • Safety Mechanisms: Granular control over write and delete permissions to prevent unauthorized modifications.
  • Zero-Dependency Core: Built entirely on Python's standard library for maximum stability and easy auditing.
  • Cross-Skill Integration: Seamlessly works with other Openclaw Skills like Ghost for publishing or Gmail for archiving attachments.
  • JSON Handling: Includes optimized methods for reading and updating JSON state files directly on the cloud storage.

SKILL.md


Loading

Related Openclaw Skills

Featured*