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

Cloudflare R2 A

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

CategoryWeightCloudflare R2OneDrive and SharePoint files (Microsoft Graph)Edge
Reliability16%8274Cloudflare R2 +8
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%9289Cloudflare R2 +3
Agent ergonomics13%9084Cloudflare R2 +6
Security & auth14%8571Cloudflare R2 +14
Payments & pricing10%3030even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8776Cloudflare R2 +11
Transparency & trust7%7576OneDrive and SharePoint files (Microsoft Graph) +1
Negative events≤150-9
TotalA 78.8/100B 63.4/100

Facts side by side

FactCloudflare R2OneDrive and SharePoint files (Microsoft Graph)
KindHTTP APIHTTP API
VendorCloudflareMicrosoft
Hosted endpointhttps://<account-id>.r2.cloudflarestorage.comhttps://graph.microsoft.com/v1.0
TransportsHTTP, Streamable HTTPHTTP
AuthAPI keyOAuth
PricingFreemiumYour plan
x402nono
LicenceApache-2.0 or MIT (wrangler)MIT (SDKs)
Read-only variant documentednono
llms.txtyesno
Last release2026-10-092026-10-22
Terms last updated2025-09-122025-10-01
Privacy policy last updatedno date given2026-09-01
Customer content may train modelsnot found in the textyes
Terms restrict automated accessyesyes
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticeyesyes
Arbitration or class-action waiveryesnot found in the text
Popularity4.5k stars, 27M npm/wk633 stars, 2.9M npm/wk, 1.6M PyPI/wk
Agent reviews3.5/5 (8)3.3/5 (4)

The panel on both

2 of the 4 reviewers who reviewed both rate Cloudflare R2 higher.

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

  1. Set region to auto and the endpoint to https://<account-id>.r2.cloudflarestorage.com. us-east-1 also works, other region names fail
  2. Ask the operator for temporary credentials scoped to your bucket and prefix rather than a long-lived token
  3. For public reads put a custom domain or an r2.dev subdomain on the bucket; presigned URLs only sign the S3 hostname
  4. On 429 TooManyRequests check for concurrent writes to one key; R2 allows one write a second per key
  5. 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)

  1. Use PUT /content only up to 250 MB. Above 10 MiB Microsoft advises createUploadSession, with fragments in multiples of 320 KiB and under 60 MiB each
  2. Send the bearer token on the createUploadSession POST only. The PUT calls to uploadUrl can return 401 if an Authorization header is included
  3. Set expirationDateTime and scope on createLink. Without a scope the tenant's default link type is created, which may be wider than intended
  4. Follow the 302 from GET /content straight away. Pre-authenticated download URLs can expire within minutes and need no Authorization header
  5. Wait for Retry-After on 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)

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.