A runtime is one entry in one file. Add it there and it appears in the picker on Desktop, ai.allternit.com, the PWA, the iPhone and Android apps and Gizzi Code, with its own Runtime view, and it is served by GET /api/v1/runtimes. There is no second list to update. Both servers build the file into their binary, so a new runtime ships with the next release. Clients cache the last good copy and fall back to a built-in list when the server can’t be reached.

Before you start

  • The runtime needs a CLI. If it is not in the catalog yet, add a tools[] entry first (id, binary, sign-in, install). See Add a connection.
  • An LLM-only CLI (one with no agent loop, such as llm) is a brain, not a runtime. Leave it in tools[] with category llm.

1. Write the registry entry

File: cmd/gizzi-code/src/runtime/providers/discovery/cli-catalog.json, array runtimes, catalog version 3.

Fields

Brain compatibility

A brain fits when brains is "any" or the brain’s provider is in the list. The check accepts a vendor id (anthropic), a subscription id (subs-anthropic) or a CLI provider id (claude-cli), and a runtime always runs its own CLI’s models (its tool, id and aliases). When a brain doesn’t fit, clients switch to the runtime CLI’s default model and show one line. gizzi’s runtime-registry.ts is the reference for this rule; every client uses the same one.

Adapter kinds

acp and stream-json runtimes also need a CLI_ADAPTERS key for their tool in cmd/gizzi-code/src/runtime/drivers/local-cli-driver.ts. Prefer ACP when the CLI has it: you get live steps and the broker with no CLI-specific code.

2. Pick the system layer

systemLayer.via says how Allternit adds its layer. The driver only ever appends; the vendor’s own prompt stays. See System layers for how each one is applied and which runtimes are brokered. If your runtime has no permission channel, say so in its docs: it runs under its own permissions and Allternit can’t stop a tool call.

3. Add look tokens

The Runtime view is drawn from data, so the web renderer and the native RuntimeLookView on iPhone and Android draw the same thing. A token set:
  • Colors: bg, fg, mu (muted), ac (accent), optional ac2, ok, err. light overrides them for light mode; dark: true marks a look whose real screen is dark.
  • A Line is a list of [text, role] segments. Roles: fg, mu, ac, ac2, ok, err, b (bold), pill.
  • Slots: in steps, {a} is the step’s argument (a path, a command) and {r} its result (“42 lines”, “12 passed”).
  • Steps: one entry each for Read, Edit and Run. pre adds lines before the steps (Hermes “Thought for 3s”); stepBox: true draws them in a box.
  • Banner: banner lines, with bannerBox and boxRole for a box around them.
  • Input and footer: input, inputGlyph, placeholder, and footer slots l, m, r.
  • Desktop looks use kind: "app" and add header and status.
Set look.default to terminal or desktop; that side must have tokens (except allternit). look.pack names a TypeScript look pack for extra drawing on the web; the tokens must still stand on their own for the phone apps. Renderers ignore fields they don’t know. Check the look against the real screen side by side before you ship it, and note in the PR whether the reference was the installed CLI or a public screenshot.

4. Optional: a live web app

If the runtime ships its own web app, add liveUi:
allternit-api starts it on the user’s computer (cmd/allternit-api/src/runtime_live.rs), bound to that computer only, in the session’s folder, waits up to 20 seconds for health to answer, and returns a ui://allternit/live-app resource that Desktop shows in the MCP Apps frame. If the app can’t be bound to the computer (OpenHands runs in Docker on a fixed port), the route answers 501 live_unsupported and apps show the look. Add the binding flags your CLI needs in runtime_live.rs.

5. Check it

It is a quick consistency check, not a build. It fails when:
  • a non-LLM tool has no runtime;
  • an id or alias repeats;
  • an acp or stream-json runtime has no CLI_ADAPTERS key;
  • tool points to a missing tools[].id;
  • a Line uses an unknown role, or look.default has no tokens.
Then add the runtime to the Runtimes catalog table and, if it is brokered or not, to the table in System layers.

The endpoints

Full shapes and errors: Runtimes API.