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 intools[]with categoryllm.
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 whenbrains 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 nativeRuntimeLookView on iPhone and Android draw the same thing. A token set:
- Colors:
bg,fg,mu(muted),ac(accent), optionalac2,ok,err.lightoverrides them for light mode;dark: truemarks 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,EditandRun.preadds lines before the steps (Hermes “Thought for 3s”);stepBox: truedraws them in a box. - Banner:
bannerlines, withbannerBoxandboxRolefor a box around them. - Input and footer:
input,inputGlyph,placeholder, andfooterslotsl,m,r. - Desktop looks use
kind: "app"and addheaderandstatus.
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, addliveUi:
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
- a non-LLM tool has no runtime;
- an id or alias repeats;
- an
acporstream-jsonruntime has noCLI_ADAPTERSkey; toolpoints to a missingtools[].id;- a Line uses an unknown role, or
look.defaulthas no tokens.
The endpoints
Full shapes and errors: Runtimes API.