Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(society): pick Jarvis, Hermes or OpenClaw in an agent's model menu
rubenluetke10-beep0dd3078e691e
diff --git a/jarvis/agent_runtimes/base.py b/jarvis/agent_runtimes/base.pyindex e19489d807..22b3ef3878 100644--- a/jarvis/agent_runtimes/base.py+++ b/jarvis/agent_runtimes/base.py@@ -106,6 +106,9 @@ class RuntimeStatus:ready: bool = False#: Why it is not ready, in plain words ("" when ready).problem: str = ""+ #: The same, as a key the UI translates: ``not_installed`` / ``outdated``+ #: / ``node`` (OpenClaw needs a newer Node.js) / ``no_version``.+ problem_kind: str = ""#: The official install/update command, for display.install_hint: str = ""@@ -118,6 +121,7 @@ class RuntimeStatus:"minimum_version": self.minimum_version,"ready": self.ready,"problem": self.problem,+ "problem_kind": self.problem_kind,"install_hint": self.install_hint,}diff --git a/jarvis/agent_runtimes/hermes.py b/jarvis/agent_runtimes/hermes.pyindex 7ced97be8e..ecf53d7b02 100644--- a/jarvis/agent_runtimes/hermes.py+++ b/jarvis/agent_runtimes/hermes.py@@ -98,6 +98,7 @@ class HermesRuntime:installed=False,minimum_version=minimum,problem="Hermes is not installed.",+ problem_kind="not_installed",install_hint=_install_hint(),))@@ -110,6 +111,7 @@ class HermesRuntime:installed=True,minimum_version=minimum,problem="Hermes is installed but did not report its version.",+ problem_kind="no_version",install_hint=_install_hint(),))@@ -123,6 +125,7 @@ class HermesRuntime:minimum_version=minimum,ready=ready,problem="" if ready else f"Hermes {minimum} or newer is needed. Update it.",+ problem_kind="" if ready else "outdated",install_hint=_install_hint(),))diff --git a/jarvis/agent_runtimes/model_map.py b/jarvis/agent_runtimes/model_map.pyindex f0f279fa02..0730f335cf 100644--- a/jarvis/agent_runtimes/model_map.py+++ b/jarvis/agent_runtimes/model_map.py@@ -17,9 +17,12 @@ extra usage. Vertex needs service-account auth neither runtime receives here.from __future__ import annotations+import loggingfrom dataclasses import dataclassfrom typing import Any, Final, Literal+log = logging.getLogger(__name__)+Transport = Literal["chat_completions", "anthropic_messages"]#: The environment variable both runtimes read the model key from.@@ -83,6 +86,26 @@ def supports(provider: str) -> bool:return provider in _ENDPOINTS+def usable_providers(config: Any) -> list[str]:+ """Supported providers that can run right now: a saved key, or a keyless+ local server with an address. Blocking (keyring): call it in a thread.++ The model picker offers only these on Hermes / OpenClaw, so a Claude+ subscription without an Anthropic API key never looks like a choice.+ """+ usable: list[str] = []+ for provider in sorted(_ENDPOINTS):+ try:+ route_for(config, provider, "probe")+ except RouteUnavailable:+ continue+ except Exception: # noqa: BLE001 — one unreadable provider must not empty the list+ log.warning("agent runtimes: provider %s could not be checked", provider, exc_info=True)+ continue+ usable.append(provider)+ return usable++def _default_model(config: Any, provider: str) -> str:providers = getattr(getattr(config, "brain", None), "providers", None) or {}configured = str(getattr(providers.get(provider), "model", "") or "")diff --git a/jarvis/agent_runtimes/openclaw.py b/jarvis/agent_runtimes/openclaw.pyindex edb217e6b4..84d6b6a77c 100644--- a/jarvis/agent_runtimes/openclaw.py+++ b/jarvis/agent_runtimes/openclaw.py@@ -201,15 +201,19 @@ class OpenClawRuntime:installed=False,minimum_version=minimum,problem="OpenClaw is not installed.",+ problem_kind="not_installed",install_hint=_install_hint(),))version = parse_version(run_version([*launcher, "--version"]))problem = ""+ kind = ""if version is None:problem = "OpenClaw is installed but did not report its version."+ kind = "no_version"elif version < MINIMUM_VERSION:problem = f"OpenClaw {minimum} or newer is needed. Update it."+ kind = "outdated"else:node = which("node", "node.exe")node_version = parse_version(run_version([node, "--version"])) if node else None@@ -218,6 +222,7 @@ class OpenClawRuntime:"OpenClaw needs Node.js 24.16+ or 26.1+. Run the OpenClaw ""installer once; it adds a suitable Node.js for OpenClaw only.")+ kind = "node"return self._detect.put(RuntimeStatus(NAME,@@ -227,6 +232,7 @@ class OpenClawRuntime:minimum_version=minimum,ready=not problem,problem=problem,+ problem_kind=kind,install_hint=_install_hint(),))diff --git a/jarvis/ui/web/agent_runtime_routes.py b/jarvis/ui/web/agent_runtime_routes.pyindex 3f28b5d9a8..b868ca97a2 100644--- a/jarvis/ui/web/agent_runtime_routes.py+++ b/jarvis/ui/web/agent_runtime_routes.py@@ -8,19 +8,33 @@ own official tools and only when the person presses the button.from __future__ import annotations+import asynciofrom typing import Any, Literal-from fastapi import APIRouter, HTTPException+from fastapi import APIRouter, HTTPException, Requestfrom jarvis.agent_runtimes import RUNTIME_NAMES, manager+from jarvis.agent_runtimes.model_map import supported_providers, usable_providersrouter = APIRouter(prefix="/api/agent-runtimes", tags=["agent-runtimes"])@router.get("")-async def list_agent_runtimes(refresh: bool = False) -> dict[str, Any]:- """Every external runtime: installed, version, ready, problem, setup job."""- return {"runtimes": await manager.statuses(refresh=refresh)}+async def list_agent_runtimes(request: Request, refresh: bool = False) -> dict[str, Any]:+ """Every external runtime: installed, version, ready, problem, setup job,+ plus the Jarvis providers an agent on such a runtime can use right now+ (``supported_providers``: saved key or local server; ``all_providers``:+ every provider the runtimes can drive once connected)."""+ config = getattr(request.app.state, "config", None)+ if config is None:+ from jarvis.core.config import load_config++ config = await asyncio.to_thread(load_config)+ return {+ "runtimes": await manager.statuses(refresh=refresh),+ "supported_providers": await asyncio.to_thread(usable_providers, config),+ "all_providers": sorted(supported_providers()),+ }@router.post("/{runtime}/{action}")diff --git a/jarvis/ui/web/frontend/src/assets/providers/LOGOS.md b/jarvis/ui/web/frontend/src/assets/providers/LOGOS.mdindex 3df4210ff0..d015e2af15 100644--- a/jarvis/ui/web/frontend/src/assets/providers/LOGOS.md+++ b/jarvis/ui/web/frontend/src/assets/providers/LOGOS.md@@ -59,6 +59,7 @@ Two render paths, chosen per file and recorded in the table:| gemini | lobehub/lobe-icons `gemini-color.svg` | MIT | colour | 2026-08-23 || google-cloud | lobehub/lobe-icons `googlecloud-color.svg` (Vertex AI cards) | MIT | colour | 2026-08-23 || groq | lobehub/lobe-icons `groq.svg` | MIT | mono | 2026-08-23 |+| hermes | lobehub/lobe-icons 1.95.1 `hermesagent.svg` (Hermes agent runtime) | MIT | mono | 2026-10-06 || hetzner | simple-icons `hetzner.svg` (Computers section, cloud import) | CC0-1.0 | mono | 2026-09-28 || hostinger | simple-icons `hostinger.svg` (Computers section, cloud import) | CC0-1.0 | mono | 2026-09-28 || inworld | Inworld's own site icon, `https://inworld.ai/icon.png` (PNG, 180 px) | vendor asset | own ground | 2026-08-23 |@@ -67,6 +68,7 @@ Two render paths, chosen per file and recorded in the table:| nvidia | lobehub/lobe-icons `nvidia-color.svg` | MIT | colour | 2026-08-23 || ollama | lobehub/lobe-icons `ollama.svg` | MIT | mono | 2026-08-23 || openai | lobehub/lobe-icons `openai.svg` (also Codex cards) | MIT | mono | 2026-08-23 |+| openclaw | lobehub/lobe-icons 1.95.1 `openclaw-color.svg` (OpenClaw agent runtime) | MIT | colour | 2026-10-06 || openrouter | lobehub/lobe-icons `openrouter.svg` | MIT | mono | 2026-08-23 || oracle | simple-icons `oracle.svg` (Computers section, provider gallery) | CC0-1.0 | mono | 2026-09-28 || ovhcloud | simple-icons `ovh.svg` (Computers section, provider gallery) | CC0-1.0 | mono | 2026-09-28 |diff --git a/jarvis/ui/web/frontend/src/assets/providers/hermes.svg b/jarvis/ui/web/frontend/src/assets/providers/hermes.svgnew file mode 100644index 0000000000..318388fea9--- /dev/null+++ b/jarvis/ui/web/frontend/src/assets/providers/hermes.svg@@ -0,0 +1 @@+<svg fill="currentColor" fill-rule="evenodd" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Hermes Agent</title><path d="M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z"></path><path d="M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z"></path><path clip-rule="evenodd" d="M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"></path></svg>\ No newline at end of filediff --git a/jarvis/ui/web/frontend/src/assets/providers/openclaw.svg b/jarvis/ui/web/frontend/src/assets/providers/openclaw.svgnew file mode 100644index 0000000000..c5aed27d86--- /dev/null+++ b/jarvis/ui/web/frontend/src/assets/providers/openclaw.svg@@ -0,0 +1 @@+<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>OpenClaw</title><path d="M12 2.568c-6.33 0-9.495 5.275-9.495 9.495 0 4.22 3.165 8.44 6.33 9.494v2.11h2.11v-2.11s1.055.422 2.11 0v2.11h2.11v-2.11c3.165-1.055 6.33-5.274 6.33-9.494S18.33 2.568 12 2.568z" fill="url(#lobe-icons-open-claw-0-_R_0_)"></path><path d="M3.56 9.953C.396 8.898-.66 11.008.396 13.118c1.055 2.11 3.164 1.055 4.22-1.055.632-1.477 0-2.11-1.056-2.11z" fill="url(#lobe-icons-open-claw-1-_R_0_)"></path><path d="M20.44 9.953c3.164-1.055 4.22 1.055 3.164 3.165-1.055 2.11-3.164 1.055-4.22-1.055-.632-1.477 0-2.11 1.056-2.11z" fill="url(#lobe-icons-open-claw-2-_R_0_)"></path><path d="M5.507 1.875c.476-.285 1.036-.233 1.615.037.577.27 1.223.774 1.937 1.488a.316.316 0 01-.447.447c-.693-.693-1.279-1.138-1.757-1.361-.475-.222-.795-.205-1.022-.069a.317.317 0 01-.326-.542zM16.877 1.913c.58-.27 1.14-.323 1.616-.038a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.069-.478.223-1.064.668-1.756 1.361a.316.316 0 11-.448-.447c.714-.714 1.36-1.218 1.936-1.487z" fill="#FF4D4D"></path><path d="M8.835 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532zM15.165 9.109a1.266 1.266 0 100-2.532 1.266 1.266 0 000 2.532z" fill="#050810"></path><path d="M9.046 8.16a.527.527 0 100-1.056.527.527 0 000 1.055zM15.376 8.16a.527.527 0 100-1.055.527.527 0 000 1.054z" fill="#00E5CC"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-0-_R_0_" x1="-.659" x2="27.023" y1=".458" y2="22.855"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-1-_R_0_" x1="0" x2="4.311" y1="9.672" y2="14.949"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-open-claw-2-_R_0_" x1="19.385" x2="24.399" y1="9.953" y2="14.462"><stop stop-color="#FF4D4D"></stop><stop offset="1" stop-color="#991B1B"></stop></linearGradient></defs></svg>\ No newline at end of filediff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsxindex b75f79a10f..1bec5612a5 100644--- a/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderLogo.tsx@@ -34,6 +34,8 @@ const PROVIDER_FAMILY_LOGOS: Record<string, FamilyLogo> = {claude: { file: "claude.svg", render: "colour" },contabo: { file: "contabo.svg", render: "mono" },elevenlabs: { file: "elevenlabs.svg", render: "mono" },+ hermes: { file: "hermes.svg", render: "mono" },+ openclaw: { file: "openclaw.svg", render: "colour" },gemini: { file: "gemini.svg", render: "colour" },"google-cloud": { file: "google-cloud.svg", render: "colour" },groq: { file: "groq.svg", render: "mono" },@@ -90,6 +92,9 @@ export function providerFamily(providerId: string): string | null {if (id.includes("cartesia")) return "cartesia";if (id.includes("inworld")) return "inworld";if (id.includes("nvidia") || id.includes("nemotron")) return "nvidia";+ // Society agent runtimes (docs/agent-runtimes.md).+ if (id === "hermes" || id === "hermes-cli") return "hermes";+ if (id === "openclaw" || id === "openclaw-cli") return "openclaw";// Hosting providers (Settings -> Computers cloud import).if (id.includes("hostinger")) return "hostinger";if (id.includes("hetzner")) return "hetzner";diff --git a/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.test.tsx b/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.test.tsxnew file mode 100644index 0000000000..8bad7bcaa7--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.test.tsx@@ -0,0 +1,92 @@+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";+import { afterEach, describe, expect, test, vi } from "vitest";+import type { AgentRuntimesResponse } from "@/lib/agentRuntimesApi";+import type { SocietyAgent } from "../data";+import { RuntimePicker } from "./RuntimePicker";++vi.mock("@/i18n", () => ({ useT: () => (key: string) => key }));+const { updateModel, runtimes, setup } = vi.hoisted(() => ({+ updateModel: vi.fn(),+ setup: vi.fn(),+ runtimes: { value: null as unknown },+}));+vi.mock("../data", () => ({ useUpdateAgentModel: () => updateModel }));+vi.mock("@/lib/agentRuntimesApi", () => ({+ fetchAgentRuntimes: () => Promise.resolve(runtimes.value),+ startAgentRuntimeSetup: setup,+}));++function status(runtime: "hermes" | "openclaw", ready: boolean, installed = ready) {+ return {+ runtime, label: runtime, installed, version: installed ? "1.0.0" : "", minimum_version: "1.0.0",+ ready, problem: "", problem_kind: installed ? (ready ? "" : "outdated") : "not_installed",+ install_hint: "", job: null,+ };+}++function mount(agent: Partial<SocietyAgent>, data: AgentRuntimesResponse) {+ runtimes.value = data;+ const full = {+ agentId: "scout", name: "Scout", provider: "openai", model: "gpt-5.2", effort: "",+ accountId: "", runtime: "jarvis", computerId: null, ...agent,+ } as SocietyAgent;+ return render(+ <QueryClientProvider client={new QueryClient()}>+ <RuntimePicker agent={full} />+ </QueryClientProvider>,+ );+}++const READY: AgentRuntimesResponse = {+ runtimes: [status("hermes", true), status("openclaw", true)] as AgentRuntimesResponse["runtimes"],+ supported_providers: ["openai", "ollama"],+};++afterEach(() => { cleanup(); vi.clearAllMocks(); });++describe("RuntimePicker", () => {+ test("switching keeps the agent's model and names the runtime", async () => {+ updateModel.mockResolvedValue(undefined);+ mount({}, READY);+ const hermes = await screen.findByRole("radio", { name: /society.runtime.hermes$/ });+ await waitFor(() => expect((hermes as HTMLButtonElement).disabled).toBe(false));+ fireEvent.click(hermes);+ await waitFor(() => expect(updateModel).toHaveBeenCalledWith("scout", {+ provider: "openai", model: "gpt-5.2", effort: "", account_id: "", runtime: "hermes",+ }));+ });++ test("a subscription model cannot move to an external runtime", async () => {+ mount({ provider: "openai-codex" }, READY);+ expect(await screen.findByText("society.runtime.model_hint")).toBeTruthy();+ const openclaw = screen.getByRole("radio", { name: /society.runtime.openclaw$/ });+ await waitFor(() => expect((openclaw as HTMLButtonElement).disabled).toBe(true));+ });++ test("a missing runtime offers its installer", async () => {+ setup.mockResolvedValue({});+ mount({}, {+ runtimes: [status("hermes", false), status("openclaw", true)] as AgentRuntimesResponse["runtimes"],+ supported_providers: ["openai"],+ });+ const install = await screen.findByRole("button", { name: "society.runtime.install" });+ expect(screen.getByText("society.runtime.not_installed")).toBeTruthy();+ fireEvent.click(install);+ await waitFor(() => expect(setup).toHaveBeenCalledWith("hermes", "install"));+ });++ test("an outdated runtime offers its updater", async () => {+ mount({}, {+ runtimes: [status("hermes", true), status("openclaw", false, true)] as AgentRuntimesResponse["runtimes"],+ supported_providers: ["openai"],+ });+ expect(await screen.findByRole("button", { name: "society.runtime.update" })).toBeTruthy();+ });++ test("an agent on another computer stays on Jarvis", async () => {+ mount({ computerId: "box-1" }, READY);+ expect(await screen.findByText("society.runtime.remote_hint")).toBeTruthy();+ await waitFor(() => expect((screen.getByRole("radio", { name: /society.runtime.hermes$/ }) as HTMLButtonElement).disabled).toBe(true));+ });+});diff --git a/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.tsx b/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.tsxnew file mode 100644index 0000000000..47e04b119c--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/card/RuntimePicker.tsx@@ -0,0 +1,171 @@+/**+ * The agent's runtime: Jarvis (default), Hermes or OpenClaw+ * (docs/agent-runtimes.md). Hermes and OpenClaw are installed and updated+ * here with their own official tools, only when the person presses the+ * button; switching keeps the agent's model, memory and one chat.+ */+import { useState } from "react";+import { useQuery, useQueryClient } from "@tanstack/react-query";+import { Loader2 } from "lucide-react";+import { ProviderLogo } from "@/components/providers/ProviderLogo";+import { useT } from "@/i18n";+import {+ fetchAgentRuntimes,+ startAgentRuntimeSetup,+ type AgentRuntimeStatus,+ type ExternalRuntime,+} from "@/lib/agentRuntimesApi";+import { AGENT_RUNTIMES, type AgentRuntime } from "@/lib/societyApi";+import { cn } from "@/lib/utils";+import { useUpdateAgentModel, type SocietyAgent } from "../data";++export const AGENT_RUNTIMES_QUERY_KEY = ["agent-runtimes"] as const;++/** Status of both external runtimes; polls while an install or update runs. */+export function useAgentRuntimes() {+ return useQuery({+ queryKey: AGENT_RUNTIMES_QUERY_KEY,+ queryFn: () => fetchAgentRuntimes(),+ staleTime: 60_000,+ refetchInterval: (query) =>+ query.state.data?.runtimes?.some((row) => row.job?.state === "running") ? 2_000 : false,+ });+}++function fill(text: string, ...values: string[]): string {+ return values.reduce((out, value, index) => out.replace(`{${index}}`, value), text);+}++export function RuntimePicker({ agent }: { agent: SocietyAgent }) {+ const t = useT();+ const client = useQueryClient();+ const updateModel = useUpdateAgentModel();+ const runtimes = useAgentRuntimes();+ const [saving, setSaving] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const current: AgentRuntime = agent.runtime ?? "jarvis";+ const byName = new Map<string, AgentRuntimeStatus>(+ (Array.isArray(runtimes.data?.runtimes) ? runtimes.data.runtimes : []).map((row) => [row.runtime, row]),+ );+ const supported = new Set(runtimes.data?.supported_providers ?? []);+ const remote = Boolean(agent.computerId);+ // Unknown until the list loaded: no hint flashes up meanwhile.+ const modelFits = !runtimes.data?.supported_providers || !agent.provider || supported.has(agent.provider);++ async function choose(runtime: AgentRuntime) {+ if (runtime === current || saving) return;+ setSaving(true);+ setError(null);+ try {+ await updateModel(agent.agentId, {+ provider: agent.provider,+ model: agent.model,+ effort: agent.effort,+ account_id: agent.accountId ?? "",+ runtime,+ });+ } catch (exc) {+ setError(fill(t("society.runtime.switch_failed"), exc instanceof Error ? exc.message : String(exc)));+ } finally {+ setSaving(false);+ }+ }++ async function setup(runtime: ExternalRuntime, action: "install" | "update") {+ setError(null);+ try {+ await startAgentRuntimeSetup(runtime, action);+ } catch (exc) {+ setError(fill(t("society.runtime.setup_failed"), exc instanceof Error ? exc.message : String(exc)));+ }+ await client.invalidateQueries({ queryKey: AGENT_RUNTIMES_QUERY_KEY });+ }++ const chosen = byName.get(current);+ return (+ <div className="flex flex-col gap-1.5" data-testid="runtime-picker">+ <span className="text-xs text-muted-foreground">{t("society.runtime.title")}</span>+ <div className="flex flex-wrap gap-1" role="radiogroup" aria-label={t("society.runtime.title")}>+ {AGENT_RUNTIMES.map((runtime) => {+ const status = runtime === "jarvis" ? null : byName.get(runtime);+ const external = runtime !== "jarvis";+ const blocked = external && (remote || !modelFits || !status?.ready);+ return (+ <button+ key={runtime}+ type="button"+ role="radio"+ aria-checked={current === runtime}+ disabled={saving || (blocked && current !== runtime)}+ onClick={() => void choose(runtime)}+ title={t(`society.runtime.${runtime}_hint`)}+ className={cn(+ "inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs transition-colors disabled:opacity-50",+ current === runtime+ ? "border-border-strong bg-secondary text-foreground"+ : "border-border text-muted-foreground hover:bg-secondary",+ )}+ >+ {external ? (+ <ProviderLogo providerId={runtime} label={t(`society.runtime.${runtime}`)} size="sm" />+ ) : null}+ {t(`society.runtime.${runtime}`)}+ </button>+ );+ })}+ {saving ? <Loader2 className="size-3.5 animate-spin self-center text-muted-foreground" aria-hidden /> : null}+ </div>+ <p className="text-xs text-muted-foreground">+ {t(`society.runtime.${current}_hint`)}+ {chosen?.version ? ` · ${fill(t("society.runtime.version"), chosen.version)}` : ""}+ </p>+ {remote ? <p className="text-xs text-muted-foreground">{t("society.runtime.remote_hint")}</p> : null}+ {!remote && !modelFits ? (+ <p className="text-xs text-muted-foreground">{t("society.runtime.model_hint")}</p>+ ) : null}+ {(["hermes", "openclaw"] as const).map((runtime) => {+ const status = byName.get(runtime);+ if (!status || status.ready) return null;+ const job = status.job;+ const running = job?.state === "running";+ // OpenClaw's own installer also adds the Node.js it needs.+ const action: "install" | "update" =+ status.installed && status.problem_kind !== "node" ? "update" : "install";+ const label = t(`society.runtime.${runtime}`);+ const problem =+ status.problem_kind === "outdated"+ ? fill(t("society.runtime.needs_update"), label, status.minimum_version)+ : status.problem_kind === "node"+ ? t("society.runtime.node_hint")+ : status.problem_kind === "no_version"+ ? fill(t("society.runtime.no_version"), label)+ : fill(t("society.runtime.not_installed"), label);+ return (+ <div key={runtime} className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">+ <span>{problem}</span>+ <button+ type="button"+ disabled={running}+ onClick={() => void setup(runtime, action)}+ className="inline-flex items-center gap-1 rounded-full border border-border px-2 py-0.5 text-xs text-foreground hover:bg-secondary disabled:opacity-60"+ >+ {running ? <Loader2 className="size-3 animate-spin" aria-hidden /> : null}+ {running+ ? t(job?.kind === "update" ? "society.runtime.updating" : "society.runtime.installing")+ : t(`society.runtime.${action}`)}+ </button>+ {job?.state === "failed" ? (+ <span role="alert" className="w-full text-destructive">+ {fill(t("society.runtime.setup_failed"), job.message || job.log_tail.at(-1) || "")}+ </span>+ ) : null}+ {running && job?.log_tail.length ? (+ <span className="w-full truncate font-mono text-[11px]">{job.log_tail.at(-1)}</span>+ ) : null}+ </div>+ );+ })}+ {error ? <p role="alert" className="text-xs text-destructive">{error}</p> : null}+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsxindex d700e29a2f..4ec7b022d8 100644--- a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx@@ -786,6 +786,12 @@ function NoticeLine({ item }: { item: NoticeItem }) {{t("society.chat.message_not_sent").replace("{0}", item.text)}</p>;}+ if (item.kind === "runtime_changed") {+ const runtime = String(item.data.runtime ?? "jarvis");+ return <p className="py-1 text-center text-[11px] text-muted-foreground">+ {t("society.chat.runtime_changed").replace("{0}", t(`society.runtime.${runtime}`))}+ </p>;+ }if (item.kind === "context_rollover") {return <p className="py-1 text-center text-[11px] text-muted-foreground">{t("society.chat.context_rollover")}</p>;}diff --git a/jarvis/ui/web/frontend/src/components/society/chat/AgentModelPicker.tsx b/jarvis/ui/web/frontend/src/components/society/chat/AgentModelPicker.tsxindex 67bbf51187..fdaa0c1a1a 100644--- a/jarvis/ui/web/frontend/src/components/society/chat/AgentModelPicker.tsx+++ b/jarvis/ui/web/frontend/src/components/society/chat/AgentModelPicker.tsx@@ -12,6 +12,7 @@ import { useUpdateAgentModel, type SocietyAgent } from "../data";import { collapsibleModels, matchesModel, modelEffort, modelGroupOrder, modelSeats, providerTitle, visibleModels } from "./modelChoices";import { useModelMenuData } from "./useModelMenuData";+import { RuntimePicker, useAgentRuntimes } from "../card/RuntimePicker";type Submenu = { provider: string; model?: CuratedModel; anchor: DOMRect };const menuRow = "flex w-full items-center gap-2 px-3 py-1.5 text-left text-[13px] text-popover-foreground hover:bg-secondary focus-visible:bg-secondary focus-visible:outline-none disabled:opacity-45";@@ -46,7 +47,18 @@ export function AgentModelPicker({ agent, busy, onSavingChange }: {const chatConnections = useAgentChat((state) => state.connections);const { options, providers, live, loading, refreshing, failed, refresh: refreshData } = useModelMenuData(chatCatalog, chatConnections, { [agent.provider]: agent.accountId ?? "", ...accounts });const defaultModelLabel = t("agent_chat.model_default");- const seats = useMemo(() => modelSeats(options, providers ?? [], live, defaultModelLabel), [options, providers, live, defaultModelLabel]);+ const runtimes = useAgentRuntimes();+ const external = Boolean(agent.runtime && agent.runtime !== "jarvis");+ const supportedKey = (Array.isArray(runtimes.data?.supported_providers) ? runtimes.data.supported_providers : []).join(",");+ const seats = useMemo(() => {+ const all = modelSeats(options, providers ?? [], live, defaultModelLabel);+ // Hermes / OpenClaw run on an API key or a local model, never a subscription CLI.+ if (!external || !supportedKey) return all;+ const supported = new Set(supportedKey.split(","));+ // A dual row (Claude: subscription CLI or API key) runs on its API key here.+ return all.filter((seat) => supported.has(seat.provider.id))+ .map((seat) => seat.kind === "subscription" ? { ...seat, kind: "api" as const, accounts: [] } : seat);+ }, [options, providers, live, defaultModelLabel, external, supportedKey]);const currentAccount = (seat: BrainSeat) => accounts[seat.provider.id] ?? (agent.provider === seat.provider.id ? agent.accountId ?? "" : "");const preferredEffort = (seat: BrainSeat, model: CuratedModel) => modelEffort(seat, model.id, seat.provider.id === agent.provider ? agent.effort : seat.provider.default_effort);// useT returns a new function each render; memoize by its actual labels.@@ -180,6 +192,7 @@ export function AgentModelPicker({ agent, busy, onSavingChange }: {disabled={busy || saving} title={busy ? t("society.chat.model_busy") : t("society.chat.model")}onClick={() => { if (open) close(); else { setSearch(""); setAccounts({}); setExpanded({}); setError(null); setOpen(true); } }}className="flex max-w-full items-center gap-1.5 rounded-full px-2 py-1 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50">+ {external ? <ProviderLogo providerId={agent.runtime!} label={t(`society.runtime.${agent.runtime}`)} size="sm" /> : null}{agent.provider ? <ProviderLogo providerId={agent.provider} label={agent.providerLabel} size="sm" /> : null}<span className="truncate">{agent.model || agent.providerLabel || t("society.chat.model_default")}</span>{agent.effort ? <span className="shrink-0 opacity-70">{effortLabel(agent.effort, t)}</span> : null}@@ -188,6 +201,11 @@ export function AgentModelPicker({ agent, busy, onSavingChange }: {{host && (open || !loading) ? createPortal(<><div ref={panel} id={menuId} aria-hidden={!open} style={{ ...position, visibility: open ? "visible" : "hidden", contain: "layout paint style" }} className="fixed z-[80] flex flex-col overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-float"onKeyDown={(event) => moveFocus(event, panel.current)}>+ {agent.tier !== "lead" ? (+ <div className="shrink-0 border-b border-border px-3 py-2.5">+ <RuntimePicker agent={agent} />+ </div>+ ) : null}<div className="flex shrink-0 items-center gap-2 border-b border-border px-3 py-2.5"><Search className="h-3.5 w-3.5 text-muted-foreground" aria-hidden /><input ref={input} aria-label={t("society.chat.model_search")} placeholder={t("society.chat.model_search")}diff --git a/jarvis/ui/web/frontend/src/components/society/data.ts b/jarvis/ui/web/frontend/src/components/society/data.tsindex cec4e2e3a6..db36c843b3 100644--- a/jarvis/ui/web/frontend/src/components/society/data.ts+++ b/jarvis/ui/web/frontend/src/components/society/data.ts@@ -16,7 +16,7 @@ import { useCallback, useEffect } from "react";import { useQuery, useQueryClient, type QueryClient } from "@tanstack/react-query";import type { MentionPlugin } from "./chat/mentionItems";-import type { AgentApprovalMode, Checkpoint, SocietyAgentRow } from "@/lib/societyApi";+import type { AgentApprovalMode, AgentRuntime, Checkpoint, SocietyAgentRow } from "@/lib/societyApi";import { NEUTRAL_ASSISTANT_NAME } from "@/lib/assistantNameCache";import { useEventStore } from "@/store/events";@@ -105,6 +105,8 @@ export interface SocietyAgent {accountId?: string;/** Where the agent runs: null/absent = this computer, else a connected computer id. */computerId?: string | null;+ /** The agent loop that runs its turns (docs/agent-runtimes.md); absent = Jarvis. */+ runtime?: AgentRuntime;/** The character: archetype, base, parts, palette. null = the palette tile. */figure: FigureRecipe | null;palette: AgentPalette;@@ -203,6 +205,7 @@ export function rowToAgent(row: SocietyAgentRow): SocietyAgent {model: row.model,accountId: row.account_id,computerId: row.computer_id ?? null,+ runtime: row.runtime ?? "jarvis",effort: row.effort,figure,palette: paletteFor(figure),@@ -472,13 +475,19 @@ export function useUpdateAgentModel() {const client = useQueryClient();return useCallback(async (agentId: string, choice: {provider: string; model: string; effort: string; account_id: string;+ /** Switch the agent loop with the model; omitted keeps the current one. */+ runtime?: AgentRuntime;}) => {const res = await fetch(`/api/society/agents/${encodeURIComponent(agentId)}/model`, {method: "POST",headers: { "Content-Type": "application/json" },body: JSON.stringify(choice),});- if (!res.ok) throw new Error(`HTTP ${res.status}`);+ if (!res.ok) {+ // A 422 explains itself ("Hermes and OpenClaw run on an API key…").+ const body = (await res.json().catch(() => null)) as { detail?: unknown } | null;+ throw new Error(typeof body?.detail === "string" ? body.detail : `HTTP ${res.status}`);+ }const body = await res.json() as { agent: SocietyAgentRow };const updated = rowToAgent(body.agent);client.setQueryData<RosterData>(ROSTER_QUERY_KEY, (previous) => previous ? {diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 0678b8918b..05c76c7288 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -5398,6 +5398,7 @@"message_waiting": "Wartet, bis die aktuelle Aufgabe fertig ist","message_not_sent": "Nicht gesendet: {0}","context_rollover": "Frischer Arbeitskontext – Gedächtnis und letzte Nachrichten übernommen",+ "runtime_changed": "Läuft jetzt auf {0} – Gedächtnis und letzte Nachrichten übernommen","allow_always": "Immer erlauben","history_chats": "Chats","history_voice": "Sprache",@@ -5533,6 +5534,28 @@"monitor": "Beobachten","ask": "Erst fragen"},+ "runtime": {+ "title": "Laufzeit",+ "jarvis": "Jarvis",+ "hermes": "Hermes",+ "openclaw": "OpenClaw",+ "jarvis_hint": "Jarvis' eigene Agenten-Schleife auf dem Modell unten.",+ "hermes_hint": "Der Hermes-Agent mit seinen eigenen Werkzeugen, auf dem Modell unten, mit Gedächtnis, Skills und Jarvis-Werkzeugen dieses Agenten.",+ "openclaw_hint": "Der OpenClaw-Agent mit seinen eigenen Werkzeugen, auf dem Modell unten, mit Gedächtnis, Skills und Jarvis-Werkzeugen dieses Agenten.",+ "install": "Installieren",+ "update": "Aktualisieren",+ "installing": "Wird installiert …",+ "updating": "Wird aktualisiert …",+ "version": "Version {0}",+ "not_installed": "{0} ist auf diesem Computer nicht installiert.",+ "needs_update": "{0} {1} oder neuer wird gebraucht.",+ "setup_failed": "Einrichtung nicht abgeschlossen: {0}",+ "model_hint": "Hermes und OpenClaw laufen mit einem API-Schlüssel oder einem lokalen Modell. Wähle unten zuerst eines davon.",+ "node_hint": "OpenClaw braucht Node.js 24.16 oder neuer. Sein Installer richtet eines nur für OpenClaw ein.",+ "no_version": "{0} ist installiert, meldet aber keine Version. Installiere es neu.",+ "remote_hint": "Hermes- und OpenClaw-Agenten laufen auf diesem Computer.",+ "switch_failed": "Wechsel nicht möglich: {0}"+ },"approval_mode": {"title": "Agentenberechtigungen","bypass": "Berechtigungen umgehen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex cf32d54172..5231b868e0 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -5398,6 +5398,7 @@"message_waiting": "Waits until the current task is done","message_not_sent": "Not sent: {0}","context_rollover": "Fresh working context — memory and recent messages carried over",+ "runtime_changed": "Now running on {0} — memory and recent messages carried over","allow_always": "Always allow","history_chats": "Chats","history_voice": "Voice",@@ -5533,6 +5534,28 @@"monitor": "Monitor","ask": "Ask first"},+ "runtime": {+ "title": "Runtime",+ "jarvis": "Jarvis",+ "hermes": "Hermes",+ "openclaw": "OpenClaw",+ "jarvis_hint": "Jarvis' own agent loop on the model below.",+ "hermes_hint": "The Hermes agent with its own tools, on the model below, with this agent's memory, skills and Jarvis tools.",+ "openclaw_hint": "The OpenClaw agent with its own tools, on the model below, with this agent's memory, skills and Jarvis tools.",+ "install": "Install",+ "update": "Update",+ "installing": "Installing…",+ "updating": "Updating…",+ "version": "Version {0}",+ "not_installed": "{0} is not installed on this computer.",+ "needs_update": "{0} {1} or newer is needed.",+ "setup_failed": "Setup did not finish: {0}",+ "model_hint": "Hermes and OpenClaw run on an API key or a local model. Pick one of those below first.",+ "node_hint": "OpenClaw needs Node.js 24.16 or newer. Its installer adds one for OpenClaw only.",+ "no_version": "{0} is installed but did not report its version. Reinstall it.",+ "remote_hint": "Hermes and OpenClaw agents run on this computer.",+ "switch_failed": "Could not switch: {0}"+ },"approval_mode": {"title": "Agent permissions","bypass": "Bypass permissions",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 0ba606bc74..25a99735bf 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -5398,6 +5398,7 @@"message_waiting": "Espera a que termine la tarea actual","message_not_sent": "No enviado: {0}","context_rollover": "Contexto de trabajo nuevo: se conservan la memoria y los mensajes recientes",+ "runtime_changed": "Ahora funciona con {0}; memoria y mensajes recientes conservados","allow_always": "Permitir siempre","history_chats": "Chats","history_voice": "Voz",@@ -5533,6 +5534,28 @@"monitor": "Supervisar","ask": "Preguntar primero"},+ "runtime": {+ "title": "Motor",+ "jarvis": "Jarvis",+ "hermes": "Hermes",+ "openclaw": "OpenClaw",+ "jarvis_hint": "El bucle de agente propio de Jarvis con el modelo de abajo.",+ "hermes_hint": "El agente Hermes con sus propias herramientas, con el modelo de abajo, la memoria, las habilidades y las herramientas de Jarvis de este agente.",+ "openclaw_hint": "El agente OpenClaw con sus propias herramientas, con el modelo de abajo, la memoria, las habilidades y las herramientas de Jarvis de este agente.",+ "install": "Instalar",+ "update": "Actualizar",+ "installing": "Instalando…",+ "updating": "Actualizando…",+ "version": "Versión {0}",+ "not_installed": "{0} no está instalado en este equipo.",+ "needs_update": "Se necesita {0} {1} o posterior.",+ "setup_failed": "La instalación no terminó: {0}",+ "model_hint": "Hermes y OpenClaw funcionan con una clave de API o un modelo local. Elige primero uno de ellos abajo.",+ "node_hint": "OpenClaw necesita Node.js 24.16 o posterior. Su instalador añade uno solo para OpenClaw.",+ "no_version": "{0} está instalado pero no indica su versión. Vuelve a instalarlo.",+ "remote_hint": "Los agentes Hermes y OpenClaw funcionan en este equipo.",+ "switch_failed": "No se pudo cambiar: {0}"+ },"approval_mode": {"title": "Permisos del agente","bypass": "Omitir permisos",diff --git a/jarvis/ui/web/frontend/src/lib/agentRuntimesApi.ts b/jarvis/ui/web/frontend/src/lib/agentRuntimesApi.tsnew file mode 100644index 0000000000..73aeae0749--- /dev/null+++ b/jarvis/ui/web/frontend/src/lib/agentRuntimesApi.ts@@ -0,0 +1,68 @@+/**+ * `/api/agent-runtimes` (jarvis/ui/web/agent_runtime_routes.py): whether+ * Hermes and OpenClaw are installed and new enough, and their install /+ * update jobs. Docs: docs/agent-runtimes.md.+ */+import type { AgentRuntime } from "./societyApi";++export type ExternalRuntime = Exclude<AgentRuntime, "jarvis">;++export interface AgentRuntimeJob {+ runtime: ExternalRuntime;+ kind: "install" | "update";+ state: "running" | "done" | "failed";+ started_ms: number;+ finished_ms: number | null;+ exit_code: number | null;+ message: string;+ log_tail: string[];+}++export interface AgentRuntimeStatus {+ runtime: ExternalRuntime;+ label: string;+ installed: boolean;+ version: string;+ minimum_version: string;+ /** Installed and new enough to run a turn. */+ ready: boolean;+ /** Why it is not ready, in plain words ("" when ready). */+ problem: string;+ /** The same as a key the UI translates. */+ problem_kind: "" | "not_installed" | "outdated" | "node" | "no_version";+ install_hint: string;+ job: AgentRuntimeJob | null;+}++export interface AgentRuntimesResponse {+ runtimes: AgentRuntimeStatus[];+ /** Jarvis providers an agent on Hermes or OpenClaw can run on right now+ * (a saved API key or a local server). */+ supported_providers: string[];+ /** Every provider the runtimes can drive once it is connected. */+ all_providers?: string[];+}++async function json<T>(url: string, init?: RequestInit): Promise<T> {+ const res = await fetch(url, init);+ if (!res.ok) {+ const body = (await res.json().catch(() => null)) as { detail?: unknown } | null;+ throw new Error(typeof body?.detail === "string" ? body.detail : `HTTP ${res.status}`);+ }+ return (await res.json()) as T;+}++export function fetchAgentRuntimes(refresh = false): Promise<AgentRuntimesResponse> {+ return json<AgentRuntimesResponse>(`/api/agent-runtimes${refresh ? "?refresh=true" : ""}`);+}++export async function startAgentRuntimeSetup(+ runtime: ExternalRuntime,+ action: "install" | "update",+): Promise<AgentRuntimeJob> {+ const body = await json<{ job: AgentRuntimeJob }>(+ `/api/agent-runtimes/${encodeURIComponent(runtime)}/${action}`,+ { method: "POST" },+ );+ return body.job;+}diff --git a/tests/unit/agent_runtimes/test_runtime_manager.py b/tests/unit/agent_runtimes/test_runtime_manager.pyindex e59228e207..132358e737 100644--- a/tests/unit/agent_runtimes/test_runtime_manager.py+++ b/tests/unit/agent_runtimes/test_runtime_manager.py@@ -5,6 +5,7 @@ from __future__ import annotationsimport asyncioimport sysfrom pathlib import Path+from types import SimpleNamespaceimport pytestfrom fastapi import FastAPI@@ -13,6 +14,7 @@ from fastapi.testclient import TestClientimport jarvis.agent_runtimes as runtimesfrom jarvis.agent_runtimes import base, managerfrom jarvis.agent_runtimes.base import RuntimeStatus+from jarvis.core.config import override_provider_secretsfrom jarvis.ui.web.agent_runtime_routes import router@@ -86,8 +88,19 @@ async def test_unknown_runtimes_are_refused(fakes):def test_routes_list_status_and_start_jobs(fakes):app = FastAPI()app.include_router(router)+ app.state.config = SimpleNamespace(brain=SimpleNamespace(providers={}))client = TestClient(app)- rows = client.get("/api/agent-runtimes").json()["runtimes"]+ with override_provider_secrets(+ {"openai": "sk-" + "x", "claude-api": None, "openrouter": None, "grok": None,+ "nvidia": None, "gemini": None}+ ):+ body = client.get("/api/agent-runtimes").json()+ # Usable now: a saved key or a local server; every supported one otherwise.+ assert "openai" in body["supported_providers"]+ assert "claude-api" not in body["supported_providers"]+ assert "claude-api" in body["all_providers"]+ assert "openai-codex" not in body["all_providers"]+ rows = body["runtimes"]assert [row["runtime"] for row in rows] == ["hermes", "openclaw"]assert rows[0]["ready"] is True and rows[0]["job"] is Noneassert client.post("/api/agent-runtimes/skynet/install").status_code == 404