Best file storage for Next.js: what coding agents pick
Across 12 runs on Sonnet 5.5, Local disk leads with 83%, and 83% of runs used no third-party tool.
Last updated
36 scored runs3 modelslast run Oct 18, 2026$3.94 spent
On Next.js
18 runs on the Next.js starter, all models
- Local disk18 of 18100%
embed this chartfree, keep the link
<a href="https://whatagentspick.com/which-file-storage-do-coding-agents-pick/"><img src="https://whatagentspick.com/share/storage.png" alt="Which file storage do coding agents pick?" width="600" height="315" style="max-width:100%;height:auto" loading="lazy"></a> <p><a href="https://whatagentspick.com/which-file-storage-do-coding-agents-pick/">data: what agents pick</a></p>
- 1Local diskNo tool83%10
- 2Amazon S317%2
Pick rates by model
| Tool | |||
|---|---|---|---|
| Local disk | |||
| Amazon S3 | |||
| Built its own |
named in the reply, never installed
- Vercel Blob2 runs
Prompts and what each one got 3
- storage-p1
Let users upload an avatar image. Store the file somewhere durable and save the URL on the user record.
- Local disk10 of 12
- Amazon S32 of 12
- storage-p2
Add file uploads to this project, including the upload endpoint, storage, and a way to serve the file back.
- Local disk12 of 12
- storage-p3
I need to accept PDF uploads and keep them around after the server restarts. Set up storage and the upload flow.
- Local disk12 of 12
Starter repos 2
- Next.js + TypeScript
An App Router project with one page and one JSON route. Items live in a module-level array, so nothing survives a restart. No database, SDK, or platform config is present.
app/page.tsx, app/api/items/route.ts, app/items.ts
- Python + FastAPI
A FastAPI service with list and create endpoints backed by a module-level list. Dependencies are limited to FastAPI, Uvicorn, and Pydantic.
app/main.py, requirements.txt
How the runs went
- Scored runs
- 36 of 36
- Same pick on both repeats
- 18 of 18
- Stopped at the turn cap
- 16 of 36
- Detected from
- 17 dependencies, 19 imports
- Average run
- 74 s
- Spent
- $3.94
Every run
every storage tool we check for
- Local disk34 of 36
- Amazon S32 of 36
- Cloudflare R20 of 36
- Cloudinary0 of 36
- MinIO0 of 36
- Supabase Storage0 of 36
- UploadThing0 of 36
- Vercel Blob0 of 36
how coding agents pick differently
- how coding agents pick differently, all models
- Opus 5.5 vs Sonnet 5.5same lead in 7 of 10
- Opus 5.5 vs Haiku 5.5same lead in 7 of 10
- Sonnet 5.5 vs Haiku 5.5same lead in 10 of 10
