Lightpanda vs Chrome for AI Agents: Speed, Memory, and the Catch

By Beau Johnson··6 min read

Quick answer

Lightpanda is an open-source browser built from scratch for AI agents that never lays out the page. In its own test it ran nine times faster than Chrome and used 123 MB of memory where Chrome used 2 GB, but agents that work from screenshots gain nothing.

In this video I look at Lightpanda, an open-source browser built from scratch for AI agents. I asked it for a screenshot and it sent back a picture of the words, and that's on purpose. If you run AI agents that read pages and click buttons, this post walks through what Lightpanda does differently from Chrome, the numbers from its own test, and where it falls short.

What I cover in this video

  • 0:00 I ask Lightpanda for a screenshot and get a picture of the words, and why that's on purpose
  • 0:00 What Lightpanda is: an open-source browser built from scratch for AI agents, with over 41,000 stars
  • 0:00 How a browser works as a stack, and which part Lightpanda cuts
  • 0:00 The numbers from Lightpanda's own test: nine times faster than Chrome, and 123 MB of memory against 2 GB
  • 0:00 The catch: agents that work from screenshots gain nothing, and telemetry is on by default
  • 0:46 The AGPL license, and the question of whether you'd swap out Chrome

What Lightpanda is and why the screenshot is only words

Lightpanda is an open-source browser that was built from scratch for AI agents. It has over 41,000 stars on GitHub.

The thing that got my attention is what happens when you ask it for a screenshot. I asked for one and got a picture of the words. That can look like a bug the first time you see it, but it's on purpose. Lightpanda never lays out the page, so the words are what it has to show you.

My point in the video is that for a lot of agents this is fine. If your agent reads text and clicks buttons, it doesn't need pictures. That picture of the words is all a text reading agent needs.

How Lightpanda cuts the browser stack

The easiest way to understand Lightpanda is to think of a browser as a stack of jobs that happen in order:

  1. Fetch the page.
  2. Run the JavaScript.
  3. Lay the page out and paint it.

Lightpanda keeps the bottom of that stack and cuts the top. It still fetches the page and it still runs the JavaScript. What it skips is the last job, where the page gets laid out and painted.

The way I think about it, Lightpanda is a telegram and Chrome is a magazine. A telegram gives you the words and stops there. A magazine gives you the same words with all the layout around them. If your agent only reads the words, the magazine part is work it never uses.

Lightpanda vs Chrome: the numbers

Both of these numbers come from Lightpanda's own test, so treat them as the project's results and check them on your own setup.

  • Speed: with 25 running at once, Lightpanda ran nine times faster than Chrome.
  • Memory: in the same test, Chrome used 2 GB of memory and Lightpanda used 123 MB.

That gap is why I point this at people running a lot of agents. My advice in the video is short: if you're running agents at scale, test it. If your agents only read pages and click buttons, it's worth a test this week.

The catch

There are three things to know before you swap anything out.

  • Screenshot agents gain nothing. If your agent works from screenshots, Lightpanda won't help. It never lays out the page, so the only picture it can hand back is the words.
  • Telemetry is on by default. Know that before you set it up.
  • It's AGPL. That's the license it ships under, so check that it fits what you're building before you build on top of it.

The question I ask at the end of the video is whether you'd swap out Chrome. For an agent that reads text and clicks buttons, the picture of the words covers what it needs, and the speed and memory numbers make a test worth your time. For an agent that works from screenshots, there's nothing to gain here.

Key takeaways

  • Lightpanda is an open-source browser built from scratch for AI agents, with over 41,000 stars.
  • It fetches the page and runs the JavaScript but never lays out or paints the page, which is why its screenshot is a picture of the words.
  • In Lightpanda's own test with 25 running at once, it ran nine times faster than Chrome and used 123 MB of memory where Chrome used 2 GB.
  • Agents that work from screenshots gain nothing from it.
  • Telemetry is on by default and the license is AGPL, so look at both before you build on it.

FAQ

What is Lightpanda?

Lightpanda is an open-source browser built from scratch for AI agents. It fetches the page and runs the JavaScript but never lays out or paints the page, and it has over 41,000 stars.

Is Lightpanda faster than Chrome?

In Lightpanda's own test with 25 running at once, it ran nine times faster than Chrome. In the same test Chrome used 2 GB of memory and Lightpanda used 123 MB.

Can Lightpanda take screenshots?

When I asked it for a screenshot I got a picture of the words, because Lightpanda never lays out the page. That's enough for an agent that reads text and clicks buttons, but agents that work from screenshots gain nothing.

What are the downsides of Lightpanda?

Agents that work from screenshots gain nothing from it, telemetry is on by default, and it's licensed under AGPL.

Transcript

Read the full transcript

0:00I asked this browser for a screenshot and got a picture of the words. That's on purpose. It never lays out the page. And in its own test, 25 at once, it ran nine times faster than Chrome. It's Light Panda, an open- source browser built from scratch for AI agents. Over 41,000 stars. If your agent reads text and clicks buttons, it doesn't need pictures. A browser is a stack. Fetch the page, run the JavaScript, then lay it out and paint it. Light Panda keeps the bottom and cuts the top. A telegram, not a magazine. Same test. Chrome 2 gigs of memory. Light Panda 123 megs. Running agents at scale. Test it. The catch. Agents that work from screenshots gain nothing. Telemetry is on by default and

0:46it's AGPL. That picture of the words, it's all a text reading agent needs. Would you swap out Chrome? Comment guide and I'll send you the free setup guide.

Ready to start building with AI?

Join the Shipping Skool community free. Paid members get live bootcamp calls every week and weekly-updated courses.

Join Shipping Skool

Keep reading