šŸ¦žOpenClaw Guide
← All Integrations
ā˜ļø

OneDrive

Mediumā±ļø 15-20 minutes

Your cloud files, instantly searchable

OpenClaw OneDrive Integration

OneDrive stores your files — but finding and using them is still manual work. The OpenClaw OneDrive integration gives you an AI layer on top of your entire cloud storage. Find any file instantly, read documents without opening them, and get summaries of complex reports on demand.

What You Can Do

Find Files Fast

bash
You: Find the contract I signed with Acme CorpAssistant: Found: Acme_Corp_MSA_2025.docx — last modified Jan 10, 2025. Want me to summarize it?

Read & Summarize Documents

bash
You: What are the key points in the Q4 report?Assistant: Q4 Report highlights:• Revenue up 23% YoY• Top 3 markets: US (45%), EU (30%), APAC (25%)• Main risk flagged: supply chain delays in Q1• Recommended action: increase buffer stock by 15%

Find Recent Files

bash
You: What did I work on last week?Assistant: Files modified last week:• Budget_2026_draft.xlsx (Monday)• Client_Proposal_v2.docx (Wednesday)• Meeting_Notes_Mar15.docx (Friday)

Search by Content

bash
You: Find documents mentioning the mergerAssistant: Found 3 files referencing "merger":• Merger_FAQ_Internal.docx• Board_Presentation_Q3.pptx• Legal_Review_Notes.docx

Setup Guide

Prerequisites

  • Microsoft account (personal or work/school)
  • OpenClaw installed (Cloud or self-hosted)
  • Microsoft Graph API access

Step 1: Register a Microsoft App

  1. Go to portal.azure.com
  2. Navigate to Azure Active Directory → App registrations
  3. Click "New registration"
  4. Name it "OpenClaw" — choose "Personal Microsoft accounts" or "All accounts"
  5. Set redirect URI to http://localhost:8080/callback
  6. Note your Application (client) ID and Tenant ID

Step 2: Add API Permissions

  1. In your app, go to API Permissions
  2. Add Microsoft Graph permissions:
    • Files.Read (read OneDrive files)
    • Files.ReadWrite (optional — to create/edit files)
  3. For personal accounts, grant admin consent (or user consent)

Step 3: Create a Client Secret

  1. Go to Certificates & Secrets
  2. Create a new client secret
  3. Copy the secret value immediately (only shown once)

Step 4: Configure OpenClaw

Add to ~/.openclaw/config.yaml:

yaml
skills:  onedrive:    enabled: true    clientId: "your-app-client-id"    clientSecret: "your-client-secret"    tenantId: "common"  # or your specific tenant ID    scopes:      - files.read

Step 5: Authenticate

On first use, OpenClaw will prompt you to sign in with your Microsoft account. The OAuth flow opens in your browser. Sign in and grant permissions.

Advanced Features

Document Q&A

OpenClaw can read the content of Word documents, PDFs, and text files stored in OneDrive and answer questions about them:

bash
You: In the employee handbook, what's the vacation policy?Assistant: According to Employee_Handbook_2025.docx:Employees receive 15 days PTO in year 1, 20 days from year 2 onwards. Unused days can be carried over up to a maximum of 5 days per year.

Shared Files & SharePoint

OneDrive integration also covers SharePoint shared libraries (for Microsoft 365 users), giving you access to team files.

File Organization

bash
You: Create a folder called "2026 Projects" in my OneDriveAssistant: Folder "2026 Projects" created in your OneDrive root.

Privacy & Security

  • Microsoft OAuth 2.0 — your password is never shared with OpenClaw
  • Tokens stored locally and encrypted
  • Revoke access anytime at account.microsoft.com/permissions
  • Self-hosted OpenClaw: all processing stays on your server

Troubleshooting

Authentication fails

  • Verify your client ID and secret are correct in config
  • Check that redirect URI matches exactly (including http vs https)
  • Personal accounts: use tenantId: "consumers" instead of "common"

Files not found

  • Confirm Files.Read permission is granted
  • Check if file is in a shared library (may need SharePoint permissions)

Work account blocked

  • Your IT admin may have blocked third-party app access
  • Ask them to approve the app in Azure AD or use personal OneDrive

Features

Natural Language File Search

Find any file by describing it. "The contract with Acme from January" works better than any search box.

Document Summarization

Get key points from Word docs, PDFs, and text files without opening them.

Recent Files

"What did I work on last week?" — see your recently modified files at a glance.

Content Search

Search by content inside documents, not just file names.

SharePoint Access

Microsoft 365 users get access to team SharePoint libraries alongside personal OneDrive.

Document Q&A

Ask questions about document contents — OpenClaw reads and answers without you opening the file.

Use Cases

→

Contract Review

Ask OpenClaw to summarize contract terms, find specific clauses, and flag key dates.

→

Report Briefing

Get the key takeaways from a long report before a meeting — in 30 seconds.

→

File Recovery

"Find that spreadsheet I was working on before the holiday" — no more manual folder diving.

→

Knowledge Base Search

Store your SOPs and docs in OneDrive and ask OpenClaw questions about your own knowledge base.

Setup Guide

Requirements

  • āœ“Microsoft account (personal, work, or school)
  • āœ“OpenClaw installed (Cloud or self-hosted)
  • āœ“Azure app registration with Microsoft Graph permissions
  • āœ“Files.Read permission granted
1

Register a Microsoft App

Go to portal.azure.com → Azure Active Directory → App registrations. Create a new app, set redirect URI to http://localhost:8080/callback, and note your client ID.

2

Add API Permissions

In your Azure app, add Microsoft Graph permissions: Files.Read (and optionally Files.ReadWrite). Grant admin consent.

3

Create a Client Secret

Go to Certificates & Secrets, create a new secret. Copy the value immediately — it's only shown once.

4

Configure OpenClaw

Add OneDrive skill config to ~/.openclaw/config.yaml with your client ID, secret, and tenant ID.

5

Authenticate

OpenClaw will prompt you to sign in on first use. A browser opens — sign in with your Microsoft account and grant permissions.

Configuration Example

skills:
  onedrive:
    enabled: true
    clientId: "your-application-client-id"
    clientSecret: "your-client-secret-value"
    tenantId: "common"  # use 'consumers' for personal accounts
    scopes:
      - files.read
      - files.readwrite  # optional, for creating/editing files

Limitations

  • āš ļøLarge files (>10MB) may take longer to process
  • āš ļøWork accounts may require IT admin approval
  • āš ļøWriting to files requires Files.ReadWrite permission

Frequently Asked Questions

Does this work with personal OneDrive or only Microsoft 365?

Both. Personal Microsoft accounts (outlook.com, hotmail.com, live.com) and Microsoft 365 work/school accounts are supported. Use tenantId: 'consumers' for personal accounts.

Can OpenClaw read the content inside my Word documents?

Yes. OpenClaw can read and summarize Word (.docx), PDF, and plain text files stored in OneDrive. Ask it to summarize a document or answer questions about its content.

Does this also give access to SharePoint?

Yes, for Microsoft 365 users. OneDrive and SharePoint share the same Microsoft Graph API, so team library files are accessible too.

Is my data secure?

Yes. Microsoft OAuth 2.0 is used — your password is never shared. Self-hosted OpenClaw users keep all data on their own server. You can revoke access at any time from your Microsoft account settings.

šŸ”„ Your AI should run your business, not just answer questions.

We'll show you how.Free to join.

Join Vibe Combinator →

šŸ™ Your AI should run your business.

Weekly live builds + template vault. We'll show you how to make AI actually work.Free to join.

Join Vibe Combinator →