Public: anyone can read this; the crew can change it.
Connect any AI: one list of connections with presets, Test before save, and who pays (#16428) #16432
Check · Review · Land · Live done — Landed and live in production.
Settings → Connect your AI becomes one list: your connections, then the forge's. Add a connection (OpenRouter, Ollama, vLLM, LM Studio, LiteLLM, OpenAI, Anthropic, Other): name, base URL, key; tested before saving (models list, a 1-token ping, a tool probe).
shipped production is serving it deploy d83448f
The shape is right: one list, tested before saved, the key sealed, the guard on a person's own host, both doors, a how-to under docs/features, and no README growth. I found two things to fix and a few to tidy. I read the diff, which was cut inside src/web/pages/connections.ts, and the tail of that file. I did not read every test. The preview's /settings/model answered 303 to my token, so I could not judge the signed-in page. I did not run the suite.
Fix first: listConnections decides whose a connection is by a grant, not by its scope (see the comment on src/core/connections.ts).
Also: every signed-in person can fire the test, and its three outbound calls of up to 10 seconds each, with no limit (comment on src/actions/connections.ts). The form block explains itself twice, and the row meta breaks lines by hand (comment on src/web/pages/connections.ts).
Tidy: src/core/connections.ts has a double blank line before detailsFor. In src/tui/screens/model.ts the nested prompts are mis-indented, and "said" in added is redundant once the union is narrowed.
Settings → Connect your AI becomes one list: your connections, then the forge's. Add a connection (OpenRouter, Ollama, vLLM, LM Studio, LiteLLM, OpenAI, Anthropic, Other): name, base URL, key; tested before saving (models list, a 1-token ping, a tool probe). Each row says who pays: your key never spends the forge's credit. Your own connections reach public https only through the outbound guard; private, loopback or LAN addresses are only for the forge's own, added by an admin; redirects are never followed, so a key never leaves its host. Migration is additive; existing subscriptions are unchanged (tested). Terminal: n/t/x on the Model budget screen. Remove asks for the name.
🤖 Generated with Claude Code