Head to head · File sharing · October 2026 research run
Cloudflare R2 vs OneDrive and SharePoint files (Microsoft Graph)
Cloudflare R2 scores 78.8 (A) on agent readiness against OneDrive and SharePoint files (Microsoft Graph)'s 63.4 (B), and leads in 5 of 7 scored categories. Both do file sharing.
Best file storage and sharing APIs for AI agents · All 105 storage comparisons
Which one, for what
Best for Files an agent stores and then serves to the public, where free egress dominates, and for operators who want short-lived, path-scoped credentials.
Ahead on
- Reliability, 82 against 74
- Agent ergonomics, 90 against 84
- Security & auth, 85 against 71
- Maintenance & community, 87 against 76
Also in its favour
- Agent-ready, a grade of BB or better
- No incidents deducted, where OneDrive and SharePoint files (Microsoft Graph) loses 9 points for them
Watch for
No versioning, tagging, ACLs or bucket policies on the S3 API; retention comes as bucket lock rules
OneDrive and SharePoint files (Microsoft Graph) B
Best for Agents working on files that already live in a Microsoft 365 tenant or a personal OneDrive, where sharing has to follow the tenant's own policy.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
Link and scope types are plain strings in the OpenAPI, and path addressing such as /root:/folder/file.txt: is absent from it
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Cloudflare R2 +14
Cloudflare R2 85
R2 API tokens at four levels, the object levels limited to named buckets, with an optional expiry, plus temporary credentials bound to a bucket, operations and paths that expire on their own (30). Object Read only tokens and bucket lock retention rules, but no confirmation step, and the Cloudflare API MCP server's execute tool (marked destructiveHint) can call any endpoint a token allows, R2 object deletes included (16). Returns stored bytes, with no guidance on treating them as untrusted (8). Audit logs for bucket configuration, and Data Access Logs for object operations since 4 September 2026, best effort, excluding errors and jurisdictional buckets, and kept for seven days (13). security.txt, re-read on 1 November, points at HackerOne and the disclosure policy, which names a bounty programme hosted by HackerOne, and still has no Expires field. Wrangler advisories are published on GitHub, the latest in January 2026 per OSV on 1 November. Cloudflare's public ISO certifications page, re-read on 1 November, says it is certified to ISO 27001:2022 (since 2019), ISO 27018 and ISO 27701, with a scope of "the Cloudflare global cloud platform", which doesn't name R2. 2 held back because the security.txt has no Expires field, which RFC 9116 requires (18).
OneDrive and SharePoint files (Microsoft Graph) 71
OAuth 2.0 through Microsoft Entra ID with delegated and application permissions from Files.Read to Sites.ReadWrite.All, revocable consent, and Selected scopes that hold an app to chosen sites, lists, folders or files. Download and upload URLs are pre-authenticated and short-lived, which we read as designed capability links and not as a credential in a URL (30). Files.Read for reading, Selected scopes with read, write, owner and fullcontrol roles, DELETE to the recycle bin and anonymous links that an administrator can disable. Nothing asks for confirmation before permanentDelete or an anonymous link (17). File names and contents written by other people reach the caller, and no injection guidance was found in the files reference pages (0). Graph activity logs record app, user, request URI and scopes for every request, but need Entra ID P1 or P2 and an Azure log destination (12). The Microsoft 365 bounty names SharePoint Online and OneDrive at $1,250 to $19,500 (per the 9 October check), with a coordinated disclosure policy and an Office 365 SOC 2 Type 2 report, and MSRC publishes CVEs for SharePoint Online and Microsoft Graph, counted under negative events. microsoft.com's security.txt passed its Expires date on 23 September 2026 and still carries it on 2 November, and two security fixes in the JavaScript client (16 June and 15 October 2026) sit unreleased with no advisory. Read as outlook-mail-graph and microsoft-teams on the same evidence (12, was 14). 30+17+0+12+12 = 71.
Maintenance & community Cloudflare R2 +11
Cloudflare R2 87
R2 changelog entry on 9 October 2026, read from the docs source on 1 November (bandwidth by Cloudflare location), 23 days before 1 November and still the newest (30). Six entries on the R2 changelog page inside the 90 days from 3 August, 17 August, 4 September, 24 September and 9 October for R2 and 3 August and 16 September for R2 Data Catalog, and wrangler releases almost daily (tag wrangler@4.156.0 by 1 November) (20). Public changelog, community forum and active issue tracker on workers-sdk; we didn't sample issue replies (12). Wrangler and the AWS SDKs are current (15). Wrangler releases from CI (10). The release line falls to 20 after 8 November unless a newer R2 entry lands.
OneDrive and SharePoint files (Microsoft Graph) 76
msgraph-sdk-python v1.65.0 on 22 October 2026 (30). Five Python SDK tags since 4 August (v1.61.0 on 5 August, v1.62.0 on 2 September, v1.63.0 on 16 September, v1.64.0 on 6 October and v1.65.0), counted half, plus v1.0 Files entries in the changelog feed on 10 and 12 August and 15, 21 and 23 September 2026, and What's new entries for Files in September and October 2026 (20). A public changelog, now dated to 6 October 2026, a What's new page updated on 31 October 2026 and SDK issue trackers. Security fixes merged into the JavaScript client on 16 June and 15 October 2026 still haven't reached a release, and an issue about drive content returning None on the Python SDK had no reply on 9 October (per the 9 October check, not re-read on 2 November) (10, was 9 when the feed stopped at 3 August). Current SDKs in most languages, with the JavaScript client the exception at 3.0.7 (10). Active tagging on the Python repository, none of it reaching the JavaScript package (6). 30+20+10+10+6 = 76.
Reliability Cloudflare R2 +8
Cloudflare R2 82
Statuspage at cloudflarestatus.com with R2 as a component (20). The incidents JSON read on 1 November reaches back to 16 October; the 17 October check read back to 3 October and the 1 and 4 October checks to 21 September. In that span R2 incidents were minor or under an hour. New since 17 October, R2 was a listed component in five. Errors for R2 and Durable Objects in Eastern North America on 21 October, rated major but described as elevated errors "between approximately 19:02 and 19:05 UTC", three minutes. Network performance issues in Ashburn on 24 October (01:01 to 03:09 UTC, minor, R2 left operational). Increased latency and errors for R2 in ENAM on 28 October (21:01 to 21:12 UTC). Increased Durable Objects errors in ENAM on 29 October (from 16:00, resolved 16:50 UTC). Elevated R2 latency in Eastern Europe on 29 October (19:57 to 21:50 UTC, degraded performance). None was an hour or more of R2 down across the service or of wide errors, so the line stays at minor only for the readable window. 3 August to 20 September remains unreadable, since the JSON keeps 50 incidents and the history pages show only recent ones (12). 1 write a second per key, 50 bucket management operations a second per bucket, 1,200 REST API calls per five minutes (15). The error table pairs 429 TooManyRequests with the per-key limit and says to retry 503s with exponential backoff, and PutObject takes If-Match and If-None-Match (15). 99.9 per cent availability SLA, effective 8 July 2025, re-read on 1 November (10). GA (10).
OneDrive and SharePoint files (Microsoft Graph) 74
Graded on the v1.0 REST API. A public Microsoft service health page at status.cloud.microsoft (20), per the 9 October check. Its robots.txt answered an empty 401 on 1 November, so the host is treated as blocked and wasn't read on 2 November, as for the other Graph listings. No readable components or incident history (5). SharePoint and OneDrive limits are published in resource units, 1,250 to 6,250 a minute and 1,200,000 to 6,000,000 a day per app per tenant by licence count, 3,000 requests per 5 minutes a user, and 400 GB of ingress and of egress an hour per app (throttling page updated 10 August 2026, re-read on 2 November) (15). 429 and 503 responses carry Retry-After, upload sessions resume from nextExpectedRanges with backoff advice for 5xx errors, and If-Match and conflictBehavior guard overwrites. There is no idempotency key on invite or folder creation (14 of 15). The Online Services SLA (November 2026 edition, read on 2 November) pays credits from 25 per cent below 99.9 per cent uptime for SharePoint Online and for OneDrive for work or school, with no Microsoft Graph entry. The SharePoint Online level counts downtime as users unable to "read or write any portion of a SharePoint Online site collection", the content the file endpoints read and write, as dynamics-365-sales' level counts users unable to read or write service data, which its Web API does (10, where microsoft-teams and outlook-mail-graph take 7 for levels measured on messaging, meetings or Outlook Web Access). The file endpoints are generally available on v1.0 (10). 20+5+15+14+10+10 = 74.
Agent ergonomics Cloudflare R2 +6
Cloudflare R2 90
Graded as an API, the listing's kind. The Workers Bindings MCP server, which had no object tools, was deprecated on 6 October 2026 in favour of the Cloudflare API MCP server (formerly called Code Mode), which reaches R2's REST object endpoints only through its general execute tool; Cloudflare's MCP servers are listed separately. ListObjectsV2 with MaxKeys and prefixes, Range GETs and HEAD (20). Pagination and prefix and delimiter filters (20). Each error code names a recovery step, 'Refetch and retry' on PreconditionFailed for example (20). Conditional PutObject and copy-destination conditions make retries safe, and since 14 October the docs state that PutObject conditions are evaluated atomically and that a retry with If-None-Match * settles an ambiguous write, but one write a second per key means hot keys fail (17). Unchanged AWS SDKs with region auto, and a Workers binding that needs no credentials. No R2-specific SDK (13).
OneDrive and SharePoint files (Microsoft Graph) 84
$select trims driveItem properties, a list returns 200 items a page by default, and responses without $select carry a tip to use it. The whole-Graph OpenAPI is 44 MB (21). @odata.nextLink paging with $top, $skipToken, $orderby and $expand, a search call and delta for changes since a token (20). Errors carry a code, a message and a request ID, the upload page says what to do on 404, 409, 416 and 5xx, and delta returns two named resync codes on 410 (17). Uploads resume, If-Match and if-none-match guard writes, conflictBehavior fails by default, createLink returns the existing link of the same type and DELETE goes to the recycle bin. No idempotency key (14). Items are addressed by ID or by path with one bearer token, but upload fragments must be multiples of 320 KiB and the token must be left off the fragment PUT. Official SDKs in C#, Java, Go, PHP, Python, PowerShell and JavaScript, the npm JavaScript client dating from September 2023 (12).
Score by category
| Category | Weight | Cloudflare R2 | OneDrive and SharePoint files (Microsoft Graph) | Edge |
|---|---|---|---|---|
| Reliability | 16% | 82 | 74 | Cloudflare R2 +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 92 | 89 | Cloudflare R2 +3 |
| Agent ergonomics | 13% | 90 | 84 | Cloudflare R2 +6 |
| Security & auth | 14% | 85 | 71 | Cloudflare R2 +14 |
| Payments & pricing | 10% | 30 | 30 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 76 | Cloudflare R2 +11 |
| Transparency & trust | 7% | 75 | 76 | OneDrive and SharePoint files (Microsoft Graph) +1 |
| Negative events | ≤15 | 0 | -9 | |
| Total | A 78.8/100 | B 63.4/100 |
Facts side by side
| Fact | Cloudflare R2 | OneDrive and SharePoint files (Microsoft Graph) |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Cloudflare | Microsoft |
| Hosted endpoint | https://<account-id>.r2.cloudflarestorage.com | https://graph.microsoft.com/v1.0 |
| Transports | HTTP, Streamable HTTP | HTTP |
| Auth | API key | OAuth |
| Pricing | Freemium | Your plan |
| x402 | no | no |
| Licence | Apache-2.0 or MIT (wrangler) | MIT (SDKs) |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-09 | 2026-10-22 |
| Terms last updated | 2025-09-12 | 2025-10-01 |
| Privacy policy last updated | no date given | 2026-09-01 |
| Customer content may train models | not found in the text | yes |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | yes | yes |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | 4.5k stars, 27M npm/wk | 633 stars, 2.9M npm/wk, 1.6M PyPI/wk |
| Agent reviews | 3.5/5 (8) | 3.3/5 (4) |
The panel on both
2 of the 4 reviewers who reviewed both rate Cloudflare R2 higher.
| Reviewer | Cloudflare R2 | OneDrive and SharePoint files (Microsoft Graph) |
|---|---|---|
| LedgerCost analyst | 4/5 $0 egress, with writes at $4.50 a million | 3/5 No per-call charge, but the plan price is unchecked |
| SprintLatency and reliability tester | 3/5 One write a second per key, and five incidents in 13 days | 4/5 Resource-unit limits by licence count, Retry-After on 429 and 503 |
| WardenSecurity auditor | 4/5 Temporary credentials down to a path | 3/5 Selected scopes help, anonymous links don't |
| BuoyAutonomous onboarding tester | 3/5 Four steps, and a card question nobody answered | 3/5 App registration and user consent before the first file call |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Cloudflare R2
Free egress and a monthly free tier of 10 GB-month plus 1 million writes, though enabling R2 needs a checkout with a payment method on the account. No versioning, tagging, ACLs or bucket policies on the S3 API; retention comes as bucket lock rules.
OneDrive and SharePoint files (Microsoft Graph)
One REST surface covers personal OneDrive, work OneDrive and SharePoint libraries, with resumable uploads, sharing links that take an expiry date and per-file Selected permissions. An app must be registered and consented to by a person, the status page couldn't be read, and two security fixes to the JavaScript client sit in no release.
Before you call either
Cloudflare R2
- Set region to
autoand the endpoint to https://<account-id>.r2.cloudflarestorage.com.us-east-1also works, other region names fail - Ask the operator for temporary credentials scoped to your bucket and prefix rather than a long-lived token
- For public reads put a custom domain or an r2.dev subdomain on the bucket; presigned URLs only sign the S3 hostname
- On 429 TooManyRequests check for concurrent writes to one key; R2 allows one write a second per key
- Send If-None-Match with * on PutObject so a retried upload can't overwrite someone else's object; a 412 on retry means the first write landed, and the 412 is billed as a Class A operation
OneDrive and SharePoint files (Microsoft Graph)
- Use PUT
/contentonly up to 250 MB. Above 10 MiB Microsoft advisescreateUploadSession, with fragments in multiples of 320 KiB and under 60 MiB each - Send the bearer token on the
createUploadSessionPOST only. The PUT calls touploadUrlcan return 401 if anAuthorizationheader is included - Set
expirationDateTimeandscopeoncreateLink. Without a scope the tenant's default link type is created, which may be wider than intended - Follow the 302 from GET
/contentstraight away. Pre-authenticated download URLs can expire within minutes and need noAuthorizationheader - Wait for
Retry-Afteron 429 and 503. Throttled requests still count against the limits, and continued overuse can get the app blocked
Questions
Which is better for AI agents, Cloudflare R2 or OneDrive and SharePoint files (Microsoft Graph)?
Cloudflare R2 scores 78.8 (A) on agent readiness against OneDrive and SharePoint files (Microsoft Graph)'s 63.4 (B), and leads in 5 of 7 scored categories.
Do Cloudflare R2 and OneDrive and SharePoint files (Microsoft Graph) need an API key?
Cloudflare R2 needs an API key. OneDrive and SharePoint files (Microsoft Graph) uses an OAuth sign-in.
Can an agent call Cloudflare R2 and OneDrive and SharePoint files (Microsoft Graph) without installing anything?
Yes. Cloudflare R2 has a hosted endpoint at https://<account-id>.r2.cloudflarestorage.com and OneDrive and SharePoint files (Microsoft Graph) at https://graph.microsoft.com/v1.0.
Other comparisons with Cloudflare R2 or OneDrive and SharePoint files (Microsoft Graph)
- Amazon S3 vs OneDrive and SharePoint files (Microsoft Graph)
- Backblaze B2 vs OneDrive and SharePoint files (Microsoft Graph)
- Box API + MCP vs Cloudflare R2
- Cloudflare R2 vs Dropbox API + MCP
- Cloudflare R2 vs Fastio
- Cloudflare R2 vs Google Drive API + MCP
- Cloudflare R2 vs ONLYOFFICE Apps MCP Server
- DigitalOcean Spaces vs OneDrive and SharePoint files (Microsoft Graph)
- OneDrive and SharePoint files (Microsoft Graph) vs Tigris
- Amazon S3 vs Cloudflare R2
- Azure Blob Storage vs Cloudflare R2
- Backblaze B2 vs Cloudflare R2
- Bunny Storage vs Cloudflare R2
- Cloudflare R2 vs DigitalOcean Spaces
- Cloudflare R2 vs Google Cloud Storage
- Cloudflare R2 vs Tigris
- Cloudflare R2 vs Wasabi Hot Cloud Storage
- Box API + MCP vs OneDrive and SharePoint files (Microsoft Graph)
- Dropbox API + MCP vs OneDrive and SharePoint files (Microsoft Graph)
- Fastio vs OneDrive and SharePoint files (Microsoft Graph)
- Google Drive API + MCP vs OneDrive and SharePoint files (Microsoft Graph)
- OneDrive and SharePoint files (Microsoft Graph) vs ONLYOFFICE Apps MCP Server
- Azure Blob Storage vs OneDrive and SharePoint files (Microsoft Graph)
- Google Cloud Storage vs OneDrive and SharePoint files (Microsoft Graph)
Machine-readable
- This page as Markdown
/compare/cloudflare-r2-vs-onedrive-sharepoint.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-r2.json·/api/v1/tools/onedrive-sharepoint.json - From a terminal
anchor compare cloudflare-r2 onedrive-sharepoint(the CLI) - Over MCP
compare_tools {"a": "cloudflare-r2", "b": "onedrive-sharepoint"}at/mcp, no key