Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
0.7.3: NVIDIA preset for custom servers (#365)
Oleksandr Ivanchenko15b24f6702ce
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3f9f21ac..b2ebd716 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).## Unreleased+### Added+- NVIDIA preset for custom servers: free models from build.nvidia.com (#365).++### Fixed+- A custom server's models that have no name now show their id in the model picker instead of "[redacted]" (#365).+## [Mac 0.7.2] - 2026-11-06### Addeddiff --git a/docs/llm-profiles.md b/docs/llm-profiles.mdindex ce51eb38..5286a54d 100644--- a/docs/llm-profiles.md+++ b/docs/llm-profiles.md@@ -34,7 +34,8 @@ A profile that ran out of usage is skipped until its reset time (or one hour whedidn't say). Overloads and rate limits are retried, not failed over.**Custom API accounts.** Engine `custom`, kind `custom_api`: any server that speaks the OpenAI-chat API (`openai-chat`: OpenRouter, LM Studio, Agent Maestro's `/api/openai/v1`, …) or the+chat API (`openai-chat`: OpenRouter, NVIDIA's `https://integrate.api.nvidia.com/v1`, LM Studio, Agent+Maestro's `/api/openai/v1`, …) or theAnthropic Messages API (`anthropic-messages`: Agent Maestro's `/api/anthropic`). A space can haveseveral; they belong to that space only. The base URL is cut back to the API root (a pasted`…/chat/completions` or `…/messages` is removed; Anthropic gets `/v1` added), must be http(s), anddiff --git a/frontend/src/components/EngineAccounts.tsx b/frontend/src/components/EngineAccounts.tsxindex 9a0585a0..89ac9d2f 100644--- a/frontend/src/components/EngineAccounts.tsx+++ b/frontend/src/components/EngineAccounts.tsx@@ -5,6 +5,7 @@ import { editorProps } from '../escape';import type { EngineInfo, Tone } from '../engines';import {CUSTOM_PRESETS,+ customKeyRequired,CustomProtocol,KIND_LABELS,Login,@@ -423,7 +424,7 @@ export const CustomServerForm: React.FC<{{!editing && (<div><label htmlFor={`${id}-key`} className="block text-[11px] font-medium text-zinc-400 mb-1">- API key <span className="text-zinc-600 font-normal">· optional, never shown again</span>+ API key <span className="text-zinc-600 font-normal">{customKeyRequired(baseUrl) ? '· never shown again' : '· optional, never shown again'}</span></label><input id={`${id}-key`} type="password" autoComplete="off" spellCheck={false} value={apiKey} onChange={(e) => setApiKey(e.target.value)} className={input} /></div>diff --git a/frontend/src/engines.ts b/frontend/src/engines.tsindex 395f7232..e72a295b 100644--- a/frontend/src/engines.ts+++ b/frontend/src/engines.ts@@ -347,7 +347,7 @@ export function engineSummary(e: EngineInfo, accounts: SummaryAccount[] = []): {if (e.id === 'custom_api')return accounts.length? { text: 'None of its servers answered · Check them below', tone: 'warn' }- : { text: 'Add a server below: Agent Maestro (GitHub Copilot), OpenRouter, LM Studio or any OpenAI- or Anthropic-compatible one', tone: 'muted' };+ : { text: 'Add a server below: Agent Maestro (GitHub Copilot), OpenRouter, NVIDIA, LM Studio or any OpenAI- or Anthropic-compatible one', tone: 'muted' };if (e.kind === 'api') return { text: 'No key yet · Add a key below to use it', tone: 'muted' };return { text: e.detail ?? (e.kind === 'local' ? 'Not running on this computer' : 'Not installed on this computer'), tone: 'muted' };case 'error':diff --git a/frontend/src/profiles.ts b/frontend/src/profiles.tsindex deb420eb..7fe149be 100644--- a/frontend/src/profiles.ts+++ b/frontend/src/profiles.ts@@ -86,9 +86,23 @@ export const CUSTOM_PRESETS: Array<{ id: string; label: string; name: string; urnote: 'GitHub Copilot models from VS Code. Keep VS Code open with Agent Maestro running.',},{ id: 'openrouter', label: 'OpenRouter', name: 'OpenRouter', urls: { 'openai-chat': 'https://openrouter.ai/api/v1' }, needsKey: true, note: 'Needs an OpenRouter API key.' },+ {+ id: 'nvidia',+ label: 'NVIDIA',+ name: 'NVIDIA',+ urls: { 'openai-chat': 'https://integrate.api.nvidia.com/v1' },+ needsKey: true,+ note: 'Free models from build.nvidia.com. Needs an NVIDIA API key (starts with nvapi-).',+ },{ id: 'lmstudio', label: 'LM Studio', name: 'LM Studio', urls: { 'openai-chat': 'http://localhost:1234/v1' }, needsKey: false, note: 'Start LM Studio’s local server first.' },];+/** True when the address is a preset server that needs a key (NVIDIA, OpenRouter); the form drops "optional" then. */+export function customKeyRequired(baseUrl: string): boolean {+ const url = baseUrl.trim().replace(/\/+$/, '');+ return !!url && CUSTOM_PRESETS.some((p) => p.needsKey && Object.values(p.urls).some((u) => u === url));+}+/** The engine a kwant's model runs on, like the server's `Engine::from_model`; null for auto and Ollama. */export function engineOfModel(model: string | null | undefined): Engine | null {if (!model) return null;diff --git a/frontend/tests/customApi.test.mjs b/frontend/tests/customApi.test.mjsindex aef1056c..76500eb0 100644--- a/frontend/tests/customApi.test.mjs+++ b/frontend/tests/customApi.test.mjs@@ -6,7 +6,7 @@ globalThis.localStorage ??= { getItem: () => null, setItem: () => {} };const m = await loadBundled(`export * from './src/engines';- export { accountState, engineOfModel, readyCustomAccounts, accountUsable, CUSTOM_PRESETS, customKindText, customModelText } from './src/profiles';+ export { accountState, engineOfModel, readyCustomAccounts, accountUsable, CUSTOM_PRESETS, customKeyRequired, customKindText, customModelText } from './src/profiles';export { EnginesPanel } from './src/components/EnginesPanel';export { CustomServerForm } from './src/components/EngineAccounts';export { ModelPicker } from './src/components/ModelPicker';@@ -125,6 +125,38 @@ test('the form offers both formats, the Agent Maestro preset and a password keyassert.doesNotMatch(edit, /type="password"/);});+test('the form offers an NVIDIA preset for build.nvidia.com, with a key', () => {+ const ids = m.CUSTOM_PRESETS.map((p) => p.id);+ assert.deepEqual(ids, ['maestro', 'openrouter', 'nvidia', 'lmstudio']);+ const nv = m.CUSTOM_PRESETS.find((p) => p.id === 'nvidia');+ assert.deepEqual(nv.urls, { 'openai-chat': 'https://integrate.api.nvidia.com/v1' });+ assert.equal(nv.needsKey, true);+ assert.equal(nv.name, 'NVIDIA');+ assert.match(nv.note, /build\.nvidia\.com/);+ assert.match(nv.note, /nvapi-/);+ const html = m.renderToStaticMarkup(h(m.CustomServerForm, { onCancel: () => {}, onSaved: () => {} }));+ assert.match(html, />NVIDIA<\/button>/);+ assert.match(m.engineSummary(customEngine(), []).text, /OpenRouter, NVIDIA, LM Studio/);+});++test('the key reads required for NVIDIA and OpenRouter', () => {+ assert.equal(m.customKeyRequired('https://integrate.api.nvidia.com/v1'), true);+ assert.equal(m.customKeyRequired(' https://integrate.api.nvidia.com/v1/ '), true);+ assert.equal(m.customKeyRequired('https://openrouter.ai/api/v1'), true);+});++test('the key stays optional for Agent Maestro, LM Studio and hand-entered servers', () => {+ assert.equal(m.customKeyRequired('http://localhost:23333/api/openai/v1'), false);+ assert.equal(m.customKeyRequired('http://localhost:23333/api/anthropic'), false);+ assert.equal(m.customKeyRequired('http://localhost:1234/v1'), false);+ assert.equal(m.customKeyRequired('https://llm.example.test/v1'), false);+ assert.equal(m.customKeyRequired(''), false);+ // A new form starts hand-entered, so its key says optional; saving never waits on a key.+ const html = m.renderToStaticMarkup(h(m.CustomServerForm, { onCancel: () => {}, onSaved: () => {} }));+ assert.match(html, /API key <span[^>]*>· optional, never shown again</);+ assert.doesNotMatch(html, /id="new-custom-key"[^>]*required/);+});+test('the bot editor offers custom models grouped and labelled by account', () => {const html = m.renderToStaticMarkup(h(m.ModelPicker, {value: 'custom:claude-sonnet-4', onChange: () => {}, engines: [customEngine({ ready: true })],diff --git a/src/drivers/custom.rs b/src/drivers/custom.rsindex 0807aa8f..c0114f70 100644--- a/src/drivers/custom.rs+++ b/src/drivers/custom.rs@@ -175,10 +175,16 @@ pub fn parse_models(body: &serde_json::Value, model: Option<&str>) -> Option<Vecif id.is_empty() || id.len() > MAX_MODEL_LEN {return None;}- let label = m["display_name"].as_str().or_else(|| m["name"].as_str()).unwrap_or(id);+ // A server-sent name is masked like any server text. Without one the label is the id,+ // which is kept and shown as is anyway: masking it would turn long ids such as+ // NVIDIA's `nvidia/nemotron-3.5-super-vl-120b-a12b` into "[redacted]".+ let label = match m["display_name"].as_str().or_else(|| m["name"].as_str()) {+ Some(name) => crate::profiles::classify::redact_detail(name, 120),+ None => id.to_string(),+ };Some(EngineModel {id: id.to_string(),- label: crate::profiles::classify::redact_detail(label, 120),+ label,default: model.is_some_and(|d| d.eq_ignore_ascii_case(id)),tier: tier_from_name(id),})@@ -373,4 +379,23 @@ mod tests {assert_eq!(models[2].tier, Some(super::super::engines::Tier::Fast));assert!(parse_models(&serde_json::json!({"error": "nope"}), None).is_none());}++ #[test]+ fn nvidia_model_list_parses() {+ // Trimmed from GET https://integrate.api.nvidia.com/v1/models (public, no key), 2026-11-06.+ let body = serde_json::json!({"object": "list", "data": [+ {"id": "01-ai/yi-large", "object": "model", "created": 735790403, "owned_by": "01-ai"},+ {"id": "nvidia/nemotron-3.5-super-vl-120b-a12b", "object": "model", "created": 735790403, "owned_by": "nvidia"},+ {"id": "nvidia/nemotron-3-ultra-550b-a55b", "object": "model", "created": 735790403, "owned_by": "nvidia"},+ {"id": "deepseek-ai/deepseek-v4.1-flash", "object": "model", "created": 735790403, "owned_by": "deepseek-ai"},+ {"id": "moonshotai/kimi-k2.6", "object": "model", "created": 735790403, "owned_by": "moonshotai"}+ ]});+ let models = parse_models(&body, Some("moonshotai/kimi-k2.6")).unwrap();+ let ids: Vec<&str> = models.iter().map(|m| m.id.as_str()).collect();+ assert_eq!(ids[1], "nvidia/nemotron-3.5-super-vl-120b-a12b");+ assert_eq!(models.len(), 5);+ // No `name` in NVIDIA's list: the label is the id, never "[redacted]".+ assert!(models.iter().all(|m| m.label == m.id));+ assert!(models[4].default && !models[0].default);+ }}