Download for Mac Sign in

Run a cluster

How do many apps, people and agents share the same Macs?

Every model call from every app, person and API key waits in one fair line, a queue on the main, so one app or agent can't starve the others. There's no ranking between people, keys and scheduled work: the app or key that has used the least of the Mac's time lately goes next, weighted by the share an owner or administrator gives it. Usage shows what runs and waits right now.

View as MarkdownUpdated
On this page

One line

  • Everyone takes turns in one line, one queue on the main: a person's request, a coding tool's call through an API key, and an app's scheduled work alike.
  • No ranking between people, keys and scheduled work. The app or key that has used the least of the Mac's time lately goes next, weighted by its share (Less counts half, More twice); then the person served least recently; then whoever arrived first.
  • Calls run side by side when the Mac that runs their model has room for both.
  • Nothing running is stopped for a call that waits: once a call runs, it runs to its end.
  • A request its app gives up stops at once (you close its window, or stop what it was doing), on whichever computer was answering it, and its row leaves Usage within a few seconds. Since 0.4.19.
  • Nothing goes to a hosted AI service. Every call runs on one of the group's own computers.

Shares

When a Mac is busy and several apps are waiting, each gets a share of its time:

ForChoicesSet where
An appLess (about half the time of the others), Equal, or More (about twice)Members, under Share of this Mac's time
An API keyPriority Low, Normal or Highthe key's row in the API app

Apps and keys take turns in the same line, so a share weighs each one against all the others, whoever is waiting.

Usage

Usage, in NativeCluster's window, is for owners and administrators:

  • what is running now and what is waiting: each request's app, the model, the computer, whose it is, and how long it has run, or its place in line;
  • how fast the cluster writes, in tokens per second (since 0.4.17), such as "2 running · 0 waiting · 76 tokens/s now";
  • what each computer holds in memory, and why;
  • this week's usage by app, with each API key on a row of its own.

Owners and administrators can pause a row, run a waiting row next, move it in line, or stop it. Usage never holds a word of what anyone asked: only who, which app, counts and times. Since 0.4.23 each row says whose it is, work an app does on its own for someone (their scheduled job, say) included; work an app does for no one says the app's name.

Terminal
nativecluster usage now
nativecluster usage calls --since 1h
  • usage now (since 0.4.17, for owners and administrators) prints what the cluster runs and holds waiting now.
  • usage calls (since 0.4.19, for owners and administrators) lists the cluster's recent model calls, newest first, from the main's records, on any computer of the cluster: when each came, the app or key, whom it was for (a person's own calls, and since 0.4.23 an app's own work for someone, such as their scheduled job; a key's calls show the key), the computer it ran on, the model, how long it waited and ran, its tokens and how it ended. It's metadata only: NativeCluster's records of its calls hold no prompt or answer. --since, --limit (50 unless you say, up to 500), --app and --person narrow it. Away from the main, a computer lists its own calls and says so. Since 0.4.22, a call the main placed among its inference computers has a placed: line saying why it ran there (below). See The nativecluster command.

Limits for a key

Each key runs one call at a time on each Mac that runs its model, with up to 8 waiting beside them; past that, 429 with Retry-After. There's no quota: no calls a minute and no minutes a day. See The API.

Which computer runs a call (since 0.4.22)

The main sends each call to an inference computer that has its model and is free. When two or more are free, it picks the one that has been fastest for that model, by each computer's own record: every computer times every call it runs, so nothing is guessed. A computer with no record yet for the model takes the call the way NativeCluster placed calls before, and records it. A faster computer that is busy is never waited for: the call goes to the next free one. Since 0.4.23, a free computer that is faster for a call by its record, but holds another model nobody is using, sets that model aside to run it. A conversation stays on the computer it started on while that computer is free. There's no switch for this; it's how the line works. (Before 0.4.22, placing calls by measured speed was a testing switch, and Usage showed New placement (testing) and Memory sections; both are gone.)

nativecluster usage calls says, under each call the main placed, why it ran where it did, for example: placed: Ran on Eder's Mac Studio: free, as was Pablo's MacBook Pro, and by each computer's own record of qwen3.8:27b about 9 s there against 31 s on Pablo's MacBook Pro.

Since 0.4.23 the line also says when the main was free but held another model with no room beside it: placed: Ran on Pablo's MacBook Pro: Eder's Mac Studio holds gemma4:31b-q8, with no room for qwen3.8:27b beside it, and Pablo's MacBook Pro was the least busy computer with qwen3.8:27b loaded. And a call that waits says why, with an estimate from your computers' own records: nativecluster run --verbose shows Waiting in line: 2 calls ahead on the Mac Studio, about 40 s, then reading the prompt, about 12 s left.