XO Docs

OneDrive

Connect Microsoft OneDrive so your agent can read your files.

Connect a Microsoft account to your XO project so your agent can read files from OneDrive. Credentials live in your project's workspace, not on the XO platform.

What You'll Need

  • An XO project that has finished provisioning
  • A Microsoft account with access to the OneDrive files you want your agent to read

Connect OneDrive

Open Setup → Data

From your project page, open the Setup tab and select Data.

Setup → Data

Click Connect OneDrive

On the OneDrive row, click Connect OneDrive.

Click Connect OneDrive

Name the Connection

Enter a name for the connection — e.g. onedrive-cowork — and click Continue. This is how the connection appears in your project.

Enter a name and click Continue

Accept Permissions

Sign in to your Microsoft account if prompted, then click Accept to grant OneDrive access.

Click Accept

Paste the Verification Code

After granting permissions, Microsoft redirects to a 127.0.0.1/callback?...&code=... URL. Your browser will show "This site can't be reached" — that's expected. The URL itself contains the auth code.

Copy the full URL from your browser's address bar.

Copy the callback URL from the address bar

Switch back to the XO tab and paste it into the Verification code or URL field.

Paste the verification code

Don't worry about the connection error — XO doesn't run a local callback server. The auth code lives in the URL, not on the page.

Click Finish.

Click Finish

Connection Confirmed

OneDrive is now connected. Your remote shows as ready in the Data list.

OneDrive connected

Your OneDrive is now connected. Your agent can read from it on subsequent runs.

On this page