Connections
Settings, Connect your AI (/settings/model) lists every model backend you can use as one list:
your own connections first, then the forge's. Each row says its protocol (Anthropic or
OpenAI-compatible), its address, whose it is, who pays, how many models its last test listed, and that
test's words, with a status badge (working, not working, not tested yet), Test and Remove.
Add a connection takes a kind (OpenRouter, OpenAI, Anthropic, LiteLLM, Ollama, vLLM, LM Studio, or another OpenAI-compatible server), a name, a base URL (empty takes the kind's own) and a key. The key is sealed on the forge, never shown again, and sent only to the address it was saved for.
Saving tests first, and keeps nothing that does not answer:
GET <base>/modelslists the models (prices too, where the server gives them).- One model is asked for a one-token reply.
- It is asked to call one tool, answering in at most 32 tokens; a model that does not is saved with words saying Talk needs one that does.
On the forge's own network the probe's prompt is long (about 3,000 tokens), as Talk's is: a server
that reads under half of it (Ollama's default context keeps 2,048 tokens of a prompt) is said, with
the fix (a context of 32,768 tokens or more; Ollama: OLLAMA_CONTEXT_LENGTH=32768), and nothing is
saved. A server on the internet is asked with a short prompt, since its tokens cost money.
Reasoning effort (none, minimal, low, medium, high, or not asked) is kept with the connection and
sent as reasoning_effort with its test's calls and its Talk turns. A small local model is often
fastest at low.
Each call has 10 seconds. What the test sent and heard is not kept: only the models listed and the result's words.
A person's tests run one at a time: while one of theirs runs, another is refused at once ("One of your tests is still running"), and the next goes as soon as it ends. The forge's own connections are tested again only by an admin.
Whose it is, and who pays
Whose a connection is, is stored with it when it is added and never changes: granting the forge's own to an admin's repositories keeps it the forge's.
- Yours: spends your key, never the forge's credit. Its address must be public https, and the
forge reaches it only through its outbound guard (
src/kernel/outbound.ts): the name is resolved and refused if it points at a private, loopback or LAN address, the vetted address is pinned for the call, and a redirect is never followed. You may keep eight. A forge that runs in a cell reaches the internet only through its egress gate, so a person's own connection may be on the hosts itsforge.jsonegressdeclares for them: openrouter.ai, api.openai.com and api.anthropic.com (the add form names them). Another host is refused by the gate before anything is saved, and the form says so with the ask to allow it, which an admin answers by adding the host toforge.jsonegress. - The forge's: added by an admin (the "The forge's own" box), and following today's credit, grants
and budgets unchanged. Only these may be on a private address or plain http: a model on the forge's
own machine or network, such as Ollama at
http://…:11434/v1. A redirect is still never followed.
The forge's own credential (the row "The forge's own") is listed and cannot be removed here.
Removing
Remove opens the confirm page, which asks for the connection's name typed exactly. Its sealed key is deleted, and its grants go with it.
In the terminal
The Model budget screen lists the same connections. n adds one (kind, name, base URL, then the key
typed masked; an admin ends the key with ! to make it the forge's own), t tests one again by name,
and x removes one with its name typed exactly.
What is unchanged
Every subscription from before connections is the Anthropic connection it was: the migration only adds columns, and a crew run still picks only Anthropic accounts. Talk's model picker (docs/features/talk.md, "The model picker") offers each working connection's models.