OneDrive
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
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
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
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
You: Find documents mentioning the mergerAssistant: Found 3 files referencing "merger":⢠Merger_FAQ_Internal.docx⢠Board_Presentation_Q3.pptx⢠Legal_Review_Notes.docxSetup Guide
Prerequisites
- Microsoft account (personal or work/school)
- OpenClaw installed (Cloud or self-hosted)
- Microsoft Graph API access
Step 1: Register a Microsoft App
- Go to portal.azure.com
- Navigate to Azure Active Directory ā App registrations
- Click "New registration"
- Name it "OpenClaw" ā choose "Personal Microsoft accounts" or "All accounts"
- Set redirect URI to
http://localhost:8080/callback - Note your Application (client) ID and Tenant ID
Step 2: Add API Permissions
- In your app, go to API Permissions
- Add Microsoft Graph permissions:
Files.Read(read OneDrive files)Files.ReadWrite(optional ā to create/edit files)
- For personal accounts, grant admin consent (or user consent)
Step 3: Create a Client Secret
- Go to Certificates & Secrets
- Create a new client secret
- Copy the secret value immediately (only shown once)
Step 4: Configure OpenClaw
Add to ~/.openclaw/config.yaml:
skills: onedrive: enabled: true clientId: "your-app-client-id" clientSecret: "your-client-secret" tenantId: "common" # or your specific tenant ID scopes: - files.readStep 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:
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
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
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.
Add API Permissions
In your Azure app, add Microsoft Graph permissions: Files.Read (and optionally Files.ReadWrite). Grant admin consent.
Create a Client Secret
Go to Certificates & Secrets, create a new secret. Copy the value immediately ā it's only shown once.
Configure OpenClaw
Add OneDrive skill config to ~/.openclaw/config.yaml with your client ID, secret, and tenant ID.
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 filesLimitations
- ā ļø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.
Related Integrations
š Learn More
Context Separation in OpenClaw: How One Channel Per Workflow Prevents Data Leakage
Around week five of running OpenClaw continuously, something breaks.
How to Update OpenClaw (3 Easy Methods)
Keep your AI assistant running the latest version. Three ways to update ā from one-word commands to manual CLI.
OpenClaw vs Notion AI
Your assistant, everywhere - not just in one app
AI Assistant for Solopreneurs
Run a one-person business without burning out trying to be 10 people
š 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 ā