OneDrive Integration for Openclaw

A specialized tool for AI agents to automatically move and rename local files to Microsoft OneDrive for seamless sharing on mobile chat platforms.

moodykong
v0.1.0
Feb 22, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install onedrive-integration

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 onedrive-integration 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 OneDrive Integration?

The OneDrive Integration is a robust utility designed for users of Openclaw Skills who need to share large documents, long logs, or complex files through chat interfaces like Telegram and WhatsApp. Since these platforms often struggle with large text pastes, this skill automates the process of copying files to a local OneDrive synchronization folder, ensuring they are available in the cloud for immediate sharing.

This skill is particularly valuable for maintaining a bridge between a headless development environment and a user's mobile device. By leveraging the automated renaming and organization features of Openclaw Skills, developers can ensure that their agents can provide full documentation and assets without manual intervention or file size constraints.

OneDrive Integration Use Cases

  • Sharing expansive log files or data exports that exceed message character limits in chat apps.
  • Automatically synchronizing documents generated by an AI agent to a central Openclaw Skills folder on OneDrive.
  • Providing a structured way to access local files from a mobile device using cloud storage as an intermediary.
  • Uploading temporary browser downloads to a permanent cloud location for long-term accessibility.

How OneDrive Integration Works

  1. The AI agent identifies a file or set of files that the user needs to view or share.
  2. The system checks the local Openclaw Skills configuration to identify the OneDrive root and target subdirectory.
  3. The skill applies specific renaming rules to the source files, converting absolute paths into unique, safe filenames to prevent collisions.
  4. The copy_to_onedrive.py script copies the files while preserving original timestamps and creating necessary directories.
  5. Once the copy is complete, the skill provides the new location details back to the agent for user notification.

OneDrive Integration Setup

To integrate this capability into your Openclaw Skills environment, ensure you have Python 3 installed. You must configure your environment variables in a config.env file within the skill folder:

# Example configuration
ONEDRIVE_ROOT="/mnt/c/Users/Username/OneDrive"
ONEDRIVE_SUBDIR="openclaw"

For a guided setup, run the interactive onboarding script provided in the Openclaw Skills directory:

~/.openclaw/skills/onedrive-integration/scripts/onboard.sh

To make the command available globally, you can create a symlink:

mkdir -p ~/.local/bin
ln -sf ~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py ~/.local/bin/copy-to-onedrive

OneDrive Integration Data Schema & Taxonomy

The skill utilizes a flat hierarchy within the OneDrive directory to simplify access while maintaining source context through filename transformation as part of the Openclaw Skills standard.

Component Detail
Root Directory Defined by ONEDRIVE_ROOT in config
Target Subfolder Defaults to openclaw unless overridden
Filename Transformation Leading slashes removed, path separators replaced with hyphens, lowercased
Configuration Storage Machine-specific config.env file

OneDrive Integration Advanced Features

  • Path-to-filename sanitization that converts complex directory structures into safe, unique strings.
  • Automatic directory creation for the OneDrive target folder if it does not already exist.
  • Support for command-line overrides for root paths and subdirectories, allowing for flexible Openclaw Skills automation.
  • Integration with temporary storage to handle browser-only documents that lack a permanent local path.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*