ClawLink

How to connect Microsoft OneDrive to Hermes Agent

Connect Microsoft OneDrive to Hermes Agent with ClawLink: no Azure app registration, no client secret, no admin consent to chase. 60 OneDrive tools your agent calls from chat.

Get started for free
Hermes Agent
Hermes Agent
ClawLink
ClawLink
Microsoft OneDrive
Microsoft OneDrive
Microsoft OneDriveOAUTH2MCP

Browse, search, and manage OneDrive files. Once connected, Hermes Agent can read and act on Microsoft OneDrive from chat — pairing, token refresh, and tool wiring handled for you.

60 tools

Most guides for giving Hermes Agent Microsoft OneDrive access start with registering your own OAuth app or pasting API keys into env files, then leave the token refresh and tool wiring to you. ClawLink gives Hermes a more practical Microsoft OneDrive setup: pair once in the browser and your always-on Hermes agent can act on Microsoft OneDrive for you, reading and doing real work on your behalf with no auth, token refresh, or tool wiring to build yourself.

Copy this prompt into Hermes to install the plugin and pair your account.

Prompt for Hermes
Set up ClawLink for Hermes and tell me when it's ready.

1. Install the plugin:
hermes plugins install ClawLink-HQ/hermes-plugin --enable

2. Start pairing. It prints an approval link, so show me the link and stop, don't wait:
hermes clawlink begin

3. I'll approve it in my browser, then reply "approved".

4. When I say approved, finish setup:
hermes clawlink finish

5. Then run `hermes clawlink test` and tell me whether ClawLink is ready.

Setup

It takes three steps to connect Hermes to Microsoft OneDrive.

  1. 1

    Install and pair

    Install the ClawLink plugin, then pair Hermes with a one-time browser approval:

    hermes plugins install ClawLink-HQ/hermes-plugin --enable
  2. 2

    Connect Microsoft OneDrive

    One-click OAuth in the dashboard.

  3. 3

    Use it from chat

    Ask Hermes Agent: "What can you do with Microsoft OneDrive?"

Install by command

The prompt above walks Hermes through this. By hand, it is four commands and a browser approval:

hermes plugins install ClawLink-HQ/hermes-plugin --enable
hermes clawlink begin    # prints an approval link — open it and approve
hermes clawlink finish   # after approving in the browser
hermes clawlink test

Then connect Microsoft OneDrive in the ClawLink dashboard — a one-click OAuth approval, no API keys.

Verify the connection by asking Hermes:

Use one_drive_search_items to find files mentioning "renewal forecast" in my OneDrive. Show me the name, folder path, and last modified date for each, and tell me which one is most recent.

Using a different agent?

The Hermes plugin is one client of ClawLink's MCP server. Claude Code, Cursor, Codex, or any agent that can run a shell command pairs with the same ClawLink account through the CLI:

npx -y @useclawlink/cli login

login opens the same browser approval and stores a credential locally. Once Microsoft OneDrive is connected in the dashboard, that agent calls the same 60 Microsoft OneDrive tools over MCP. Full setup for MCP clients and shell agents: connect apps to any AI agent.

Microsoft OneDrive MCP for Hermes

Looking for a Microsoft OneDrive MCP server for Hermes Agent? ClawLink connects Microsoft OneDrive to Hermes Agent and exposes 60 Microsoft OneDrive tools your agent can call over MCP, with hosted auth and nothing to run or maintain yourself. Using OpenClaw instead? The OpenClaw Microsoft OneDrive integration works the same way.

Microsoft now ships its own no-code agents for OneDrive, so "no API key" on its own is no longer a distinguishing promise. The distinction that still holds is where the work happens. Copilot's agents live inside Microsoft 365 and answer inside Microsoft's surfaces; building your own means registering an application in Entra ID, requesting Files.ReadWrite, chasing admin consent, and managing a client secret that expires. ClawLink connects through Microsoft's sign-in with an application that is already registered, and puts the 60 tools below inside Hermes chat, next to whatever else your agent is doing. The access is delegated, so the agent reaches exactly the files your account reaches and nothing beyond them.

What the Hermes Agent Microsoft OneDrive integration can do

60 Microsoft OneDrive tools are ready for Hermes Agent once the account is connected. The 30 below are the ones people reach for most; your agent can call all 60.

30 of 60 Microsoft OneDrive tools for Hermes

ToolWhat it does
One drive copy item one_drive_copy_itemCopy a OneDrive file or folder
One drive create link one_drive_create_linkCreate a sharing link for a OneDrive file or folder
One drive download file one_drive_download_fileDownload a OneDrive file
One drive get drive one_drive_get_driveGet a OneDrive drive by ID
One drive get item one_drive_get_itemGet OneDrive file or folder metadata by ID
One drive get recent items one_drive_get_recent_itemsGet recently accessed OneDrive items
One drive get root one_drive_get_rootGet the root folder of a OneDrive drive
One drive list drives one_drive_list_drivesList drives available to the connected OneDrive account
One drive list folder children one_drive_list_folder_childrenList files and folders inside a OneDrive folder
One drive move item one_drive_move_itemMove a OneDrive file or folder
One drive onedrive create folder one_drive_onedrive_create_folderCreate a new folder in OneDrive
One drive onedrive find file one_drive_onedrive_find_fileFind a OneDrive file by name
One drive onedrive find folder one_drive_onedrive_find_folderFind a OneDrive folder by name
One drive onedrive upload file one_drive_onedrive_upload_fileUpload a file to OneDrive
One drive search items one_drive_search_itemsSearch OneDrive files and folders
One drive download file by path one_drive_download_file_by_pathDownloads the contents of a file from OneDrive by its path
One drive download item as format one_drive_download_item_as_formatDownload the contents of a driveItem converted to a specific format (e.g., PDF or HTML)
One drive download item version one_drive_download_item_versionDownload the contents of a specific previous version of a drive item (file)
One drive get drive item by sharing URL one_drive_get_drive_item_by_sharing_urlResolve a OneDrive/SharePoint sharing URL (or shareId) to a DriveItem with driveId and itemId
One drive get followed item one_drive_get_followed_itemRetrieve a specific followed driveItem from a drive
One drive get group drive one_drive_get_group_driveRetrieve the document library (drive) for a Microsoft 365 group
One drive get item permissions one_drive_get_item_permissionsRetrieves the permissions of a DriveItem by its unique ID within a specific Drive
One drive get item thumbnails one_drive_get_item_thumbnailsRetrieve the thumbnails associated with a DriveItem
One drive get item versions one_drive_get_item_versionsRetrieve the version history of a DriveItem by its unique ID
One drive get share one_drive_get_shareAccess a shared DriveItem or collection of shared items using a shareId or encoded sharing URL
One drive get shared items one_drive_get_shared_itemsRetrieve items shared with the authenticated user (not items the user has shared with others)
One drive get sharepoint list items one_drive_get_sharepoint_list_itemsGet the items (list items) within a specific SharePoint list on a site
One drive get site one_drive_get_siteRetrieves metadata for a specific SharePoint site by its ID
One drive get site page content one_drive_get_site_page_contentGets the content of a modern SharePoint site page
One drive get special folder one_drive_get_special_folderRetrieve a special folder in OneDrive by name

Try it: find the Microsoft OneDrive tool you need

Browse the 30 Microsoft OneDrive tools

Click any tool to see exactly what Hermes can do and copy a ready-to-use prompt.

Example prompts

Use one_drive_search_items to find files mentioning "renewal forecast" in my OneDrive. Show me the name, folder path, and last modified date for each, and tell me which one is most recent.

List everything in my Documents folder with one_drive_list_folder_children, including sizes and last modified dates. Tell me which files are over 100 MB or untouched for more than a year. Do not delete anything, just give me the list.

Find the file called "Q3 board deck" with one_drive_onedrive_find_file, show me who currently has access using one_drive_list_share_permissions, then create a view-only link with one_drive_create_link. Confirm the file and the permission level with me before you create it.

Read the contents of the file I name, write a one-page summary, and save it as "Summary - board deck.txt" in the same folder using one_drive_onedrive_create_text_file. Tell me the path when it exists.

How the OneDrive tools behave

Argument-level detail from the manifest. The first two save the most wasted calls.

  • Item ids are opaque and cannot be guessed. one_drive_search_items, one_drive_onedrive_find_file, and one_drive_list_folder_children are the discovery calls. Everything that reads, moves, or shares takes an id from one of them.
  • Search beats walking the tree. one_drive_search_items finds a file across the drive in one call. Repeated one_drive_list_folder_children calls down a deep hierarchy is what triggers the throttling described above.
  • Sharing has four distinct tools. one_drive_create_link makes a link, one_drive_invite_user_to_item invites a person, one_drive_grant_share_permission grants against an existing share, and one_drive_list_share_permissions shows what is already in place. "Share this file" spans at least two of them, so name the one you want.
  • Version history is reachable. one_drive_get_item_versions, one_drive_download_item_version, and one_drive_restore_drive_item_version let an agent recover an earlier copy without you opening the web app.
  • Deletion has two levels. one_drive_delete_item is recoverable through one_drive_restore_drive_item; one_drive_delete_item_permanently is not.
  • Format conversion exists. one_drive_download_item_as_format converts on the way out, which is the shortest route from a Word document to a PDF without opening anything.
  • Some tools reach SharePoint. one_drive_get_site, one_drive_list_site_lists, and one_drive_get_sharepoint_list_items cross into SharePoint sites, because Microsoft stores both on the same Graph endpoints. For real SharePoint work, the Hermes SharePoint integration has 86 tools aimed at it.

The alternative to ClawLink is usually manual OAuth app setup plus your own token handling, permission troubleshooting, and tool plumbing for Hermes Agent. That is fine if you want to build and maintain the integration yourself. Most teams just want Microsoft OneDrive working from chat.

ManualClawLink
Connection flowRegister a Microsoft OneDrive app, configure redirect URLs, manage consent details, and reconnect users when auth settings drift.Users connect Microsoft OneDrive through the hosted browser flow and ClawLink keeps the token lifecycle out of your app code.
Ongoing maintenanceYou own refresh logic, permission debugging, environment config, and every provider-specific edge case for Microsoft OneDrive.ClawLink handles the repetitive integration plumbing so your team can focus on the workflow instead of the infrastructure.
Agent usabilityYou still need to expose the right Microsoft OneDrive actions to the runtime in a format your agent can reliably use.60 tools for Microsoft OneDrive are already exposed through ClawLink, so the agent can read and act from chat immediately.

Composio also exposes Microsoft OneDrive to AI agents. It is developer infrastructure: Python and TypeScript SDKs, an MCP server, and a catalog past 1,000 apps, aimed at teams shipping agent products. ClawLink is built for Hermes Agent users instead. You install the plugin once, connect Microsoft OneDrive in the browser, and the 60 tools above work from chat. There is no SDK, no config file, and no API key handling. Choosing between them? Read the full Composio alternatives comparison.

Troubleshooting

Hermes paired but still can't use Microsoft OneDrive

Pairing is a two-step handshake: run hermes clawlink begin, approve the link in your browser, then run hermes clawlink finish. If you ran finish before approving, or the approval link expired, run hermes clawlink begin again to get a fresh link. Confirm the plugin was installed with --enable, then verify with hermes clawlink test.

Connection succeeds but no tools appear

Reconnect Microsoft OneDrive from the dashboard, then start a fresh chat if the runtime still has the old tool catalog loaded.

"Tool schema not loaded yet" error when calling Microsoft OneDrive tools

Microsoft OneDrive tool schemas load on demand the first time a tool runs and are cached after that, so this error usually clears on its own: wait a few seconds and retry the same request. If every Microsoft OneDrive call keeps failing with it in a fresh chat, reconnect from the dashboard, and contact support if it still persists — that pattern points to a configuration problem on our side, not something you can fix by reconnecting again.

Microsoft OneDrive returns 403 or "permission denied" on one action while others work

Two usual causes. The connected account may not have access to the specific workspace, inbox, store, or project in the request — check that first. If access looks right, the agent may have sent a placeholder value (like "YOUR_ID" or an example id from documentation) instead of a real one: ask it to run a list or search tool first, then retry the action with a real id from those results. Most failures at this stage are one of these two, not ClawLink bugs.

OneDrive returns 403 "accessDenied" or Microsoft Graph returns "Authorization_RequestDenied"

Search results answer this by sending you to the Azure Portal to add Files.ReadWrite.All, grant admin consent, and inspect your token at jwt.ms. None of that applies here, because the permissions were fixed at sign-in and there is no token for you to decode. Two causes account for it instead. The first is real access: the connection acts as you, so a file or folder you cannot open in the OneDrive web app is not reachable from chat either, and files shared with you can have their sharing revoked without warning. The second is a placeholder argument: item ids in OneDrive are opaque strings, and an agent that has not listed anything yet will invent one, which reaches Microsoft and returns a permissions-shaped error rather than a bad-argument error. Ask for one_drive_list_folder_children or one_drive_search_items first, then retry with a real id.

Ask the agent to diagnose it:

Run one_drive_get_drive and tell me which account and drive you are connected to. Then run one_drive_list_folder_children on the root and show me what you can see. Do not retry the failing call until both have returned.
OneDrive returns 507 "insufficientStorage" or 429 with a Retry-After header

These look similar in chat and mean different things. A 507 is storage: the drive is full, and OneDrive counts items in the online recycle bin against your quota, so emptying it in the web app frees space that deleting files alone did not. A 429 is throttling: Microsoft Graph is rate-limiting the requests and the response carries a Retry-After value telling you how long to wait. Retrying a 429 immediately makes it worse, and reconnecting does nothing for either. If an agent is walking a large folder tree, the practical fix is to narrow the work: search for what you need with one_drive_search_items instead of enumerating everything with repeated one_drive_list_folder_children calls.

Ask the agent to diagnose it:

Report the exact status code and any Retry-After header from the failed OneDrive call. Do not retry it.
A OneDrive tool returns "tool not found" on a working connection

Tool schemas load on demand, so the first OneDrive call in a fresh session can arrive before the catalog is available. Retry once. If the same name fails twice, the name is wrong rather than missing, and the error lists the closest real tools. Note that several tools in this integration carry a doubled prefix by design, including one_drive_onedrive_upload_file and one_drive_onedrive_create_folder, so a name that looks like a mistake may be correct. The failures described in most search results, where an MCP server fails to initialize or an IDE needs restarting, do not apply here; there is no local server and no config JSON.

Ask the agent to diagnose it:

List the OneDrive tools you actually have available and tell me which one uploads a file. Use that exact name.
OAuth finished in the browser but the account is still missing

Try reconnecting Microsoft OneDrive and complete the consent flow in the same browser session. Partial OAuth approvals or switching accounts mid-flow can leave the connection incomplete.

FAQ

Is there a Hermes Agent Microsoft OneDrive integration?

Yes. ClawLink is the fastest way to connect Hermes to Microsoft OneDrive: link your Microsoft OneDrive account once in the browser and Hermes Agent can call the Microsoft OneDrive API through 60 ready-made tools — no custom code or token handling.

How do I connect Microsoft OneDrive to Hermes with ClawLink?

Install the plugin with hermes plugins install ClawLink-HQ/hermes-plugin --enable, then pair once: run hermes clawlink begin, approve the link in your browser, and run hermes clawlink finish. Connect Microsoft OneDrive in the dashboard and Hermes can use it from the next message — no config files or API keys to manage.

How long does it take to connect Microsoft OneDrive to Hermes Agent?

About two minutes. Sign in, click Connect next to Microsoft OneDrive in the dashboard, authenticate, and Hermes Agent can use it from the next chat message.

Why use ClawLink instead of wiring Microsoft OneDrive up myself?

The alternative to ClawLink is usually manual OAuth app setup plus your own token handling, permission troubleshooting, and tool plumbing for Hermes Agent. That is fine if you want to build and maintain the integration yourself. Most teams just want Microsoft OneDrive working from chat.

Can I connect OneDrive to an AI agent without an Azure app registration?

Yes. The registration step belongs to building the integration yourself: create an application in Entra ID, add Microsoft Graph permissions, get consent, then rotate a secret before it expires. ClawLink connects through an application that is already registered, so your part is a Microsoft sign-in. The access is delegated rather than application-level, which means the agent acts as you and inherits your permissions instead of holding tenant-wide reach of its own. If your organization routes new applications through an approval queue, an administrator approves it once and everyone in the tenant is covered.

How is this different from Microsoft's own OneDrive agents?

Microsoft's agents run inside Microsoft 365 and are configured there, which is the right answer when the work starts and ends in OneDrive and everyone involved has the relevant Copilot licensing. This connection puts OneDrive tools into Hermes, so a single prompt can pull a spreadsheet from OneDrive, cross-reference something from another connected service, and write a summary somewhere else. The practical question is whether your workflow is OneDrive-shaped or agent-shaped. If the agent only ever touches OneDrive, Microsoft's own tooling is worth a look first.

Can the agent see files shared with me, or only my own?

Both, because the connection acts as your account and your account sees both. one_drive_get_shared_items lists what other people have shared with you, and one_drive_get_drive_item_by_sharing_url opens a specific file from a sharing link someone sent you. Anything nobody shared with you stays out of reach, which is the same boundary you experience in the OneDrive web app.

Can it share files with other people?

Yes, and this is the group of tools worth being deliberate about. one_drive_create_link generates a sharing link, one_drive_invite_user_to_item sends an invitation, and one_drive_grant_share_permission and one_drive_update_drive_items_permissions change who can reach what. A sharing link created without thought is a file handed to whoever holds the URL, so keep an approval step in the prompt before the agent shares anything, and use one_drive_list_share_permissions to review what already exists.

Hermes paired but still can't use Microsoft OneDrive

Pairing is a two-step handshake: run hermes clawlink begin, approve the link in your browser, then run hermes clawlink finish. If you ran finish before approving, or the approval link expired, run hermes clawlink begin again to get a fresh link. Confirm the plugin was installed with --enable, then verify with hermes clawlink test.