15 AI agents on a Mac mini, without letting the costs run away

Watercolor of a silver mini computer on a workbench surrounded by small robot figures.

Other languages: Deutsch · Français

The honest answer to what a Mac mini with fifteen AI agents costs me did not come out of an invoice. It came out of measurements.

Fifteen agents sit on my team roster. That is a headcount, not an operating state: it does not mean fifteen sessions run at once, and it says nothing about the machine the roster lives on. The mini orchestrates, the models hang off a gateway. The real load is somewhere else entirely, and it lands on every single turn.

Model requests go through Bifrost. I use OpenObserve to inspect traces.

Context is the load

I measured this on September 19, 2026, in the request log of my gateway. A review agent carrying a diff and several repository files in its context needed ten requests for roughly two million tokens, about 200,000 per request. A measurement that only reads three system values needed eleven requests for roughly 200,000 tokens, about 18,000 per request. The same measurement as a script: zero model requests, zero tokens.

In the token model, what decides is not the size of the model but the number of requests multiplied by the size of the context. Swapping the model barely moves it. Dropping a work step changes everything.

And whatever you read once, you pay for again: a single ls of a large directory lands in the history and gets sent again with every following turn. In the measurement above, the largest part of those ~200,000 tokens per request was exactly that — history, not the current output.

Where the model traffic goes

On November 24, 2026, OpenObserve recorded about 785 million tokens across six providers in the Bifrost traces. That counts tokens from spans that reported token usage, not sessions or jobs. It is one day of gateway traffic, not a bill or a count of traffic outside the gateway.

I want the infrastructure in between to stay open and self-hosted. The models themselves mostly run in the cloud. When the market changes, I can switch providers at the gateway without rebuilding the agent stack.

Recorded gateway tokens by provider on November 24, 2026 (UTC). All bars start at zero.
ProviderTokens
OpenAI (subscription)364,385,122
MiniMax353,560,337
xAI29,775,805
DeepSeek23,528,161
Z.ai (GLM)13,464,128
Claude371,415

When local makes sense

My Mac Studio runs Qwen through Ollama, as well as image and 3D models for visualization, locally. Most of my agent work still runs in the cloud. Whether moving more of it locally pays off is a separate question. In their cost model, Pan et al. (Section VI and Table IV) show that smaller open-weight models can break even quickly on local hardware. It depends on the model, utilization, and the cloud API used for comparison.

For the quality I need today, buying additional hardware does not pay off for me yet. I expect I’d have to replace it for this work in two or three years. That’s my assumption, not a finding from the study.

Run your own numbers. First check that the model meets your quality needs. Measure tokens per day, split into input and output, and scale each at its own API rate to a month. For a subscription, use what you actually pay per month instead. Compare that with the hardware price divided by its useful life in months, plus monthly electricity and operating costs. The roughly 785 million gateway tokens above show how to measure usage, not how much it costs.

Six measures

Four of them I have measured. The fifth is my house rule, the sixth I only know qualitatively.

  1. Fetch data, do not let it be invented. If the answer comes from a command, a query or a log file, it belongs in a script. While fetching: zero tokens, zero model requests. The agent only reviews the result afterwards.

  2. Keep the tool catalog out of every turn. Measured on September 27, 2026: a full catalog of 30 tools with schemas was 28,787 bytes, roughly 7,200 tokens — in every turn. Just the tool names were 644 bytes, roughly 161 tokens. A command-line tool named in a skill line with an absolute path costs a single line per turn. The agent carrying the full catalog pays 144,000 tokens over twenty turns, before it has done anything at all.

  3. Measure the baseline before you pick the model. On November 9, 2026, I ran the same trivial task, answer “ok”: 28,769 tokens per turn in the standard setup, 7,096 with three tools, 4,424 with one read tool. That was a separate test, not a comparison of providers or model sizes.

  4. Keep the memory small. The core text the harness injects on every turn measured 65,006 bytes on September 8, 2026, against a hard wall of 65,535 bytes. Roughly 15 KB of it are permanent lessons that get paid for again in every session. My target is a core around 10 KB — that is a rule, not a measurement yet. What is measured so far is the order of magnitude: 15 KB that ride along on every turn.

  5. Sort work by size and effort. My house rule: coding goes through the GLM, MiniMax and xAI routes I already have, Claude where it makes sense, bigger models reserved for hard problems. No blanket savings percentages derived from list prices — that is arithmetic, not measurement. For the hardest jobs I reserve a deliberately deployed model; a fresh session per job is documented for exactly that model.

  6. Mentions wake work even when nobody answers. For us, an unnecessary agent mention can trigger a run. That belongs to the mistakes I want to avoid in day-to-day team work. I have not measured how large that share of the total is; I track it as known but unquantified.

What did not work

ApproachResultCountermeasure
launchctl submit restart39 kills, 45 s per cycleJob removes itself
Preview copy with links resolved575 GB in one folderPreserve the links
3D render inside an agent run6× abort after 320 sOwn session

The restart was a mistake. The job starts again the moment it ends, like a KeepAlive. In the recurring tact of about 45 seconds it killed a running session 39 times, 38 of the events landed in the dead-letter queue, and not one session survived. A one-shot restart has to remove itself at the end, or be started from another session.

The preview copy was the loudest mistake. A preview of a 3D model contains links to its own snapshots. Copy it with the links resolved and you copy every snapshot into itself: one folder grew to 575 GB, the 931 GB disk was full, and every render stood still for about 80 minutes. Those 575 GB are the size of a single folder, not the free space. The symptom pointed somewhere else: the sum of the folders I could still count lay about 590 GB below the reported usage, and the copying tool was crawling inside a tree nobody could get through. For an hour we blamed the wrong thing.

The third failure looks like a hardware problem. A long 3D render aborts when an agent produces no output for 320 seconds — six times, always at the same spot, and not a single error in the render log. In the harness where this happened, the idle limit of the agent run triggered the abort; another runtime got long renders through on the same day. We first took it for a memory or graphics problem. The cause was in the agent log, not in the render. Long jobs need a session of their own, with their own process group.

The Mac mini is not the trick

None of these six measures depends on the device. The same rules hold on a server in the cellar, and they weigh exactly as little on the hardware as they do in the cloud. The mini is a convenient place to run the thing that generates the traffic. The load lands one step before the model.

What is still open

None of my sources puts a number on francs or dollars. I measured tokens, not money. The title of this post promises costs, and the unit I can back up is tokens per turn. Turning tokens into a weekly total would be arithmetic on rounded assumptions, not a measured result — so I leave it out until I know which total I actually want to claim.