Skip to content

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

  1. 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>
12 runs
  1. 1Local diskNo tool83%10
  2. 2Amazon S317%2

Pick rates by model

Tool
Local disk
Amazon S3
Built its own

named in the reply, never installed

  • Vercel Blob2 runs
next.js gets resend, python gets raw smtp. 11 of 18 next.js runs used resend, 17 of 18 python runs used raw smtp

get told when the storage pick moves

weekly at most. free.

read issue 2archive

Prompts and what each one got 3
  1. 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
  2. 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
  3. 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

loading 36 runs

every storage tool we check for

how coding agents pick differently