Best Laptop for Claude Code

Feel free to comment (at the bottom) if you have any questions!

Updated November 18, 2026. Originally published April 28, 2026.

Claude 3D Printed Logo on MacBook Air M5Summary: For most people, the MacBook Air M5 with 16GB gets my vote as the best laptop for Claude Code. Windows buyers should get the ThinkPad T14 Gen 7 with 32GB. Get enough RAM first, since CPU speed seldom holds you back.

For mostly desk work, my best computer for Claude Code guide covers Mac minis, monitors and the rest of the desk setup.

Jump to: Quick picks | What Claude Code needs | Mac laptops | Windows and Linux | What I use | What to skip


Quick picks: best laptop for Claude Code

Prices checked November 18, 2026 on Amazon.

I also cover monitors for your laptop at home in the best computer for Claude Code guide.


What Claude Code needs from a laptop

Claude Code has two halves. The reasoning happens on Anthropic’s servers, in the cloud. Every file read, every test, every git operation, every build it triggers happens on your machine or the machine you are deploying to. RAM usually runs out first. A recent CPU handles the local work fine.

How much RAM? Anthropic lists 4GB as the minimum, which is less than I want to work with. Here is what I recommend:

  • Mac: Get at least 16GB, or 24GB for regular Docker use or several Claude sessions at once.
  • Windows: Get 32GB. In my experience, WSL 2 and Docker Desktop use a lot of memory.

Anthropic’s docs say a session warns you when heap memory goes over 2.5GB. Each parallel session gets its own process, so 3 sessions leave you running 3 processes alongside your editor and browser.

These other things matter too:

  • A reliable internet connection. Claude streams tokens. Latency and jitter show up as visible stutter.
  • A keyboard you like typing on. You are typing thousands of words of prompts a day. Bad keyboard, fewer prompts, less output. ThinkPads still set the bar IMHO.
  • Screen real estate. This is the highest-ROI upgrade you can make, a second monitor (or a largeish 16-inch screen if you stay laptop-only) so you can see your editor, terminal, and Claude’s output at the same time.

What about Cowork and Codex?

Since October 6, 2026, new Cowork tasks on Pro and Max run in the cloud on Anthropic’s servers. Cowork on desktop and web still needs the Claude desktop app open and connected for local files, browser actions and computer use. For computer use, keep the machine awake too.

OpenAI puts Codex inside the ChatGPT desktop app, with Mac requirements starting at macOS 14. OpenAI recommends Windows 11. Windows 10 gets best-effort support with a recent, fully updated installation. The Codex Windows sandbox runs natively, while Claude Code sandboxing needs WSL 2.


Mac laptops

MacBook Air M5: my pick for most people

I use this one myself. What I notice using it for Claude Code: it never gets warm. It never spins up a fan, obviously because there is no fan lol. The 18-hour battery claim is overoptimistic for real coding work, but I’ve gotten 8-10 hours out of it on a normal travel day with Claude Code, VS Code, a browser, and Slack open. That is not amazing on a spec sheet. It is amazing in practice when most Windows laptops in the same weight class are needing a charger by afternoon or mid late day meeting.

16GB is enough for Claude Code alongside VS Code, a browser full of documentation and a small Docker container. Get 24GB if you run Docker daily or keep several Claude sessions going, because you can’t add memory later.

You get two Thunderbolt 4 ports but no HDMI, and the lack of a fan slows long builds. I would get one now despite the early 2027 M6 Air rumor. My Apple CPU comparison has the chip-by-chip detail.

See the MacBook Air M5 16GB on Amazon

MacBook Pro 14″ M5 Pro: long builds, all-day Docker

You’ll want extra RAM for Postgres and containers running all day. The 15-core CPU/16-core GPU model starts at 24GB and offers 48GB, while 64GB requires the 18-core CPU/20-core GPU chip. Along with a fan for long builds, you get three Thunderbolt 5 ports, HDMI and SD. In Tom’s Hardware’s Xcode test, the fanless M5 Air took 165 seconds versus 145 seconds for a base M5 MacBook Pro with a fan, not an M5 Pro. I haven’t tested the M5 Pro, so I’m going by Apple’s specs and reviews.

The new 14-inch M6 MacBook Pro tops out at 32GB and has Thunderbolt 4. I’d get the M5 Pro for long builds.

Skip Apple’s touchscreen OLED option unless you want touch: its PROLED XDR display adds $400 over the matching mini-LED configuration at Apple (checked November 18, 2026).

See the MacBook Pro 14″ M5 Pro on Amazon


Windows and Linux laptops

Not everyone wants a Mac. Some of us spent 30 years building muscle memory on the ThinkPad TrackPoint and Windows or Linux workflow.

ThinkPad T14 Gen 7: my Windows pick

My current daily-driver Windows laptop is a ThinkPad T14 Gen 4 with a Ryzen 7 PRO 7840U and 32GB of RAM. It handles Claude Code sessions, VS Code, a browser with 20+ tabs, PDFs, spreadsheets, and terminal tasks without breaking a sweat.

I haven’t tested the Gen 7, but it’s the Windows laptop I’d buy today. Away from a desk, you get a 14-inch touchscreen and 75Wh battery. Back at the desk, two Thunderbolt 4 ports, two USB-A, HDMI and Ethernet cover connections. RAM isn’t soldered: Lenovo lists a 64GB maximum on one LPCAMM2 module. When I checked, a Lenovo reseller sold this configuration, Amazon handled shipping, and the listing stated a 1-year Lenovo onsite warranty.

Heads Up

Several different laptops carry the T14 Gen 7 name. AMD models offer two SODIMM slots and up to 96GB with Ryzen AI 400-series chips. I found them on Amazon through third-party resellers. The T14s Gen 7 has soldered memory. Check the model and seller before ordering!

T14 or T14s? The T14 is my pick unless you need a lighter laptop. The T14s Gen 7 starts around 2.35 lb, compared with about 3 lb for the T14 with a 75Wh battery. Besides its soldered memory, the T14s has a smaller 58Wh battery and no Ethernet.

See the ThinkPad T14 Gen 7 on Amazon

ThinkPad P14s Gen 6 AMD: my local-model laptop

ThinkPad P14s Gen 6 laptop with backlit keyboard and wildflower wallpaper on the 14-inch display
96GB of DDR5 in a 3-pound chassis. This is the machine I use for local LLM testing.

I run LM Studio and Ollama with two 48GB SODIMMs, well past the usual laptop limit of 32GB or 64GB. The Gen 7 AMD has the same 96GB limit and memory speed, and I haven’t found a 96GB Gen 7 on Amazon. I stick with the Gen 6 I own and test. For scale, OpenAI’s gpt-oss launch announcement from August 2025 describes gpt-oss-20b fitting in 16GB of memory and gpt-oss-120b using one 80GB GPU.

Large models can fit but still run slowly because memory bandwidth is often the limit. The P14s offers roughly 90GB/s on paper, a specification rather than a measured speed. I am retesting my P14s local model benchmarks and will add measurements when I finish.

I haven’t tested the ASUS ROG Flow Z13 with 128GB, but it’s worth considering if local-model speed matters more than a regular laptop keyboard. It’s a 13.4-inch tablet with a detachable keyboard. AMD’s chip specifications list roughly 256GB/s of bandwidth, almost three times the P14s figure.

Read the warranty terms before ordering this 96GB configuration from its third-party reseller. See the P14s Gen 6 96GB on Amazon

Linux and WSL

Run Claude Code directly on Windows, or set up WSL 2 for sandboxed commands and keep repositories in the Linux filesystem instead of /mnt/c. Lenovo lists factory Ubuntu and Fedora options for the T14 Gen 7 in its spec sheet. Skip Windows on Arm for heavy Docker work while Docker Desktop for Windows labels Arm support Early Access.


What I use, and what I’d buy

I own these laptops and run Claude Code on them:

  • MacBook Air M5: I run sessions for weeks, using VS Code, Cursor, Ghostty and Docker through colima.
  • ThinkPad T14 Gen 4 (Ryzen 7 PRO 7840U, 32GB): I’ve used it daily for years on Windows, with VS Code, WSL 2 and Docker Desktop.
  • ThinkPad P14s Gen 6 (96GB): I use it for everyday Claude Code work and local models in LM Studio and Ollama.
  • ThinkPad L14 Gen 3 (32GB): I keep it at the remote office as a backup for lighter sessions.
  • MacBook Neo (8GB): I tested Claude Code on it, but I can’t recommend it with only 8GB.

I picked the T14 Gen 7, M5 Pro and Z13 from specs and reviews, without testing them myself.

If I were buying one laptop today, I would get the MacBook Air M5. Mine stays silent and lasts a full travel day.

I revisit these picks monthly as hardware arrives and prices change. If you have a Claude Code laptop setup that works well and I missed it, drop a comment. The best recommendations come from the community, not just one person’s desk.


What to skip

  • 8GB laptops, including the MacBook Neo. Projects can outgrow 8GB, and the Neo’s memory is fixed. My MacBook Neo Claude Code test has the details.
  • 16GB Windows laptops. Claude Code works, but WSL 2 plus Docker makes memory tight. Get 32GB.
  • Windows on Arm, if you’re Docker-heavy. Docker Desktop for Windows on Arm remains in Early Access.
  • The touchscreen OLED MacBook Pro, unless touch is useful to you. Mini-LED models offer the same M5 Pro and M5 Max chips.

Sources

This post contains affiliate links. I only recommend laptops I own, have tested, or would buy myself.


Accurate at time of writing. Something off? Drop a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *