Small Local Models as My AI Agent's Eyes: 76% Fewer Tokens
Watch the video on YouTubeMy browser agent used to send every screenshot to a big model. I gave it small local "eyes" instead, and it used 76% fewer tokens with the same success rate.
Key takeaways
- The big model (Gemma 4 31B) plans. A tiny 0.4B model picks the next click from the page text, and a 3B vision model finds the button on the screenshot when text is not enough.
- Solved: 163 of 180 tasks vs 154 of 180 for the big model alone. The difference is within noise.
- Input tokens of the big model: 75K instead of 306K (-76%). On task types it had never seen: 104K vs 197K (-47%).
- A one-question check before any irreversible click stopped 92 of 93 premature clicks.
- The small model answers in about 0.4 s on my Mac. The vision model needs a GPU, so it runs in the cloud.
The test
I used 36 kinds of web tasks, 5 runs each, the same tasks for both agents. Both agents faced the same pages and goals, so the comparison is like for like.
How the three models share the work
- The planner is the big model. It decides what to do and does not look at every screenshot.
- The text picker is a tiny 0.4B model. It reads the page text and picks the next click.
- The vision helper is a 3B vision model. It is used only when the text does not show where the button is.
Because the big model reads short text instead of a stream of screenshots, it receives far fewer input tokens. The same idea appears among the fixes in Stop Burning Your Claude Tokens.
Results
| Measure | Big model alone | With small local eyes |
|---|---|---|
| Tasks solved | 154 of 180 | 163 of 180 |
| Input tokens, all tasks | 306K | 75K (-76%) |
| Input tokens, unseen task types | 197K | 104K (-47%) |
The safety check
Before any irreversible click, the agent asks one question. In my runs this stopped 92 of 93 premature clicks.
Where the Mac comes in
The tiny text model answers in about 0.4 s on my Mac, which is why it works as a fast first pass. The 3B vision model needs a GPU, so it runs in the cloud. To see which local models fit your Mac, try the local LLM Mac calculator.
Source and caveats
This is my own test on my own agent and my own tasks, so treat the numbers as one data point, not a benchmark.
FAQ
Did the small models hurt success?
No. 163 of 180 versus 154 of 180, a difference within noise.
Why use a separate vision model?
Page text is cheaper than screenshots. The vision model is used only when the text does not show where to click.
Can I run this on a Mac?
The text model, yes: it takes about 0.4 s per answer on my Mac. The 3B vision model needs a GPU, so I run it in the cloud.