Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Import skills and MCP tools from Hermes Agent and OpenClaw

Azad Jagtap0dab70285609
diff --git a/docs/custom-mcp-servers.md b/docs/custom-mcp-servers.md
index e09a69d9b1..8755eabdca 100644
--- a/docs/custom-mcp-servers.md
+++ b/docs/custom-mcp-servers.md
@@ -237,8 +237,15 @@ already use** step (`server/setup-import.ts`). On the computer running
OpenMausBot, and only for the desktop app's own window there, it reads the
`mcpServers` of Claude Code (only the top-level key of `~/.claude.json`),
Claude Desktop, Cursor (`~/.cursor/mcp.json`) and Gemini CLI
-(`~/.gemini/settings.json`), and the `[mcp_servers.*]` tables of Codex's
-`config.toml`. Each server goes through the import parser, switched off;
+(`~/.gemini/settings.json`), the `[mcp_servers.*]` tables of Codex's
+`config.toml`, the `mcp_servers:` of Hermes Agent's `config.yaml`
+(`$HERMES_HOME`, else `~/.hermes`, or `%LOCALAPPDATA%\hermes` on Windows) and
+the `mcp.servers` of OpenClaw's `openclaw.json` (`$OPENCLAW_CONFIG_PATH`, else
+`$OPENCLAW_STATE_DIR` or `~/.openclaw`; its JSON5 comments and trailing commas
+are accepted, and a config that still can't be read brings no tools).
+OpenClaw's `transport: "sse"` stays SSE; `streamable-http` comes in as HTTP.
+Neither tool's `.env`, `auth.json`, `mcp-tokens/`, `secrets.json`,
+`credentials/`, sessions, state databases or memory files are ever opened. Each server goes through the import parser, switched off;
one already here by command or address is left alone, a different server
under a name already taken is skipped and named in the result, a name
OpenMausBot keeps for itself (`browser`, `computer`, `data`…) gets an `mcp-`
@@ -250,7 +257,9 @@ Claude bots already run them. Token variables (Codex `bearer_token_env_var`)
are not resolved: add the token as a header when you test the server.
The step also brings in the person's own skills (`~/.claude/skills`,
-`~/.codex/skills`). Each one is copied once, read-only except on Windows, into
+`~/.codex/skills`, Hermes Agent's `skills/` with its category folders, and
+OpenClaw's `skills/` and `workspace/skills/`). The skills Hermes ships itself,
+listed in its `skills/.bundled_manifest`, are left out. Each one is copied once, read-only except on Windows, into
`<data>/imported-skills` (`server/imported-skills.ts`), and every bot uses
that copy on every engine that works with files: the bot the tour sets up,
and any bot made later with New bot, the API, a template, a Chief
diff --git a/server/imported-skills.ts b/server/imported-skills.ts
index c394ab4641..c332dd1fee 100644
--- a/server/imported-skills.ts
+++ b/server/imported-skills.ts
@@ -32,7 +32,7 @@ const choicesPath = (botId: string) => join(DATA_DIR, "skill-state", botId, "imp
const sha256Hex = z.string().regex(/^[a-f0-9]{64}$/);
const entrySchema = z.object({
description: z.string(),
- source: z.enum(["claudeCode", "codex"]),
+ source: z.enum(["claudeCode", "codex", "hermes", "openclaw"]),
/** The folder it was read from, such as ~/.claude/skills: an engine that loads that folder itself skips the copy. */
root: z.string(),
/** Its own folder there, which the engine loads only while it is still there. */
diff --git a/server/setup-import.e2e.test.ts b/server/setup-import.e2e.test.ts
index c9bbb8e593..3c73e8e778 100644
--- a/server/setup-import.e2e.test.ts
+++ b/server/setup-import.e2e.test.ts
@@ -182,4 +182,37 @@ describe("bringing in another AI tool's setup through the desktop app's own serv
// "Also use my Claude Code skills" is still on from above: Claude has release-notes from its own folder.
expect(system).not.toContain("release-notes");
});
+
+ it("brings Hermes Agent's and OpenClaw's skills and MCP servers in, and never their secrets or Hermes' own skills", async () => {
+ const skill = (name: string) => `---\nname: ${name}\ndescription: The ${name} skill.\n---\n\nDo the ${name} steps.\n`;
+ put(".hermes/skills/devops/deploy-k8s/SKILL.md", skill("deploy-k8s"));
+ put(".hermes/skills/research/arxiv/SKILL.md", skill("arxiv"));
+ put(".hermes/skills/.bundled_manifest", "arxiv:0f3a\n");
+ put(".hermes/config.yaml", "mcp_servers:\n linear:\n url: https://mcp.linear.app/mcp\n");
+ put(".hermes/.env", `OPENROUTER_API_KEY=${SENTINEL}\n`);
+ put(".openclaw/workspace/skills/triage/SKILL.md", skill("triage"));
+ put(".openclaw/openclaw.json", '{\n // JSON5\n "mcp": { "servers": { "events": { "url": "https://events.example.test/stream", "transport": "sse" }, } },\n}\n');
+ put(".openclaw/secrets.json", SENTINEL);
+
+ const found = await api("GET", "/api/setup-import");
+ expect(JSON.parse(found.text)).toEqual({
+ skills: [{ name: "deploy-k8s", source: "hermes" }, { name: "triage", source: "openclaw" }],
+ tools: [{ name: "linear", source: "hermes" }, { name: "events", source: "openclaw" }],
+ });
+ const brought = await api("POST", "/api/setup-import", { skills: true, tools: true });
+ expect(JSON.parse(brought.text)).toMatchObject({ skills: { added: ["deploy-k8s", "triage"] }, tools: { added: ["linear", "events"] } });
+ const starter = (JSON.parse((await api("GET", "/api/bots")).text) as { bots: Array<{ id: string; name: string }> }).bots.find((bot) => bot.name !== "Later Bot")!;
+ const skills = JSON.parse((await api("GET", `/api/bots/${starter.id}/skills`)).text).skills as Array<{ name: string; source: string }>;
+ expect(skills).toEqual(expect.arrayContaining([
+ expect.objectContaining({ name: "deploy-k8s", source: "~/.hermes/skills/devops/deploy-k8s", origin: "imported" }),
+ expect.objectContaining({ name: "triage", source: "~/.openclaw/workspace/skills/triage", origin: "imported" }),
+ ]));
+ expect(skills.map((one) => one.name)).not.toContain("arxiv");
+ const mcp = await api("GET", "/api/mcp/servers");
+ expect(JSON.parse(mcp.text).servers).toEqual(expect.arrayContaining([
+ expect.objectContaining({ name: "linear", url: "https://mcp.linear.app/mcp", enabled: false }),
+ expect.objectContaining({ name: "events", type: "sse", enabled: false }),
+ ]));
+ for (const said of [found.text, brought.text, mcp.text]) expect(said).not.toContain(SENTINEL);
+ });
});
diff --git a/server/setup-import.test.ts b/server/setup-import.test.ts
index ab0dd86f10..6db1f41445 100644
--- a/server/setup-import.test.ts
+++ b/server/setup-import.test.ts
@@ -131,6 +131,9 @@ function plantPrivateFiles(home: string): string[] {
".claude/projects/-Users-someone-app/0b1c.jsonl", ".codex/sessions/2026/10/16/rollout-1.jsonl",
".codex/archived_sessions/rollout-0.jsonl", ".claude/logs/claude.log", ".gemini/oauth_creds.json",
".gemini/google_accounts.json", ".claude/statsig/cache.json",
+ ".hermes/.env", ".hermes/auth.json", ".hermes/mcp-tokens/linear.json", ".hermes/state.db", ".hermes/sessions/s1.json",
+ ".hermes/memories/USER.md", ".hermes/SOUL.md", ".openclaw/.env", ".openclaw/secrets.json", ".openclaw/credentials/oauth.json",
+ ".openclaw/state/openclaw.sqlite", ".openclaw/agents/main/agent/auth-profiles.json", ".openclaw/workspace/MEMORY.md", ".openclaw/workspace/USER.md",
].map((path) => put(home, path, SENTINEL));
}
@@ -316,11 +319,11 @@ describe("finding what another AI tool already set up on this computer", () => {
// Opened or listed: the tools' config files and what is inside their skills folders, nothing else.
expect(ops.filter(({ op, path }) => (op === "read" || op === "readdir") && !files.has(path) && !inRoot(path))).toEqual([]);
// Only looked at, never opened: also the home folder and the tools' own folders on the way.
- const passed = new Set([home, ...[".claude", ".codex", ".gemini", ".cursor"].map((folder) => join(home, folder))]);
+ const passed = new Set([home, ...[".claude", ".codex", ".gemini", ".cursor", ".hermes", ".openclaw", join(".openclaw", "workspace")].map((folder) => join(home, folder))]);
expect(ops.filter(({ path }) => !files.has(path) && !inRoot(path) && !passed.has(path))).toEqual([]);
for (const path of planted) expect(touched()).not.toContain(path);
const inSkills = touched().filter((path) => roots.some((root) => path.startsWith(root + sep))).map((path) => relative(home, path));
- expect(inSkills.filter((path) => path.split(sep).some((part) => part.startsWith(".") && part !== ".claude" && part !== ".codex"))).toEqual([]);
+ expect(inSkills.filter((path) => path.split(sep).some((part) => part.startsWith(".") && ![".claude", ".codex", ".hermes", ".openclaw"].includes(part)))).toEqual([]);
expect(inSkills.filter((path) => path.split(sep).some(secretName))).toEqual([]);
const said = JSON.stringify({ detection, result, saved: servers() });
@@ -657,3 +660,102 @@ describe("bringing MCP servers in", () => {
expect(saves).toEqual([]);
});
});
+
+describe("Hermes Agent and OpenClaw on this computer", () => {
+ function plantAgents(home: string) {
+ put(home, ".hermes/config.yaml", [
+ "model:",
+ " default: anthropic/claude-sonnet-4",
+ "mcp_servers:",
+ " github:",
+ " command: npx",
+ ' args: ["-y", "@modelcontextprotocol/server-github"]',
+ " env:",
+ " GITHUB_PERSONAL_ACCESS_TOKEN: ghp_hermes_secret",
+ " linear:",
+ " url: https://mcp.linear.app/mcp",
+ " auth: oauth",
+ ].join("\n"));
+ put(home, ".hermes/skills/.bundled_manifest", "arxiv:0f3a\nplan:9bc1\n");
+ put(home, ".hermes/skills/research/arxiv/SKILL.md", skillMd("arxiv"));
+ put(home, ".hermes/skills/devops/deploy-k8s/SKILL.md", skillMd("deploy-k8s", "Deploy to the team cluster."));
+ put(home, ".hermes/skills/standup/SKILL.md", skillMd("standup"));
+ put(home, ".hermes/skills/.hub/quarantine/bad/SKILL.md", skillMd("quarantined"));
+ put(home, ".openclaw/openclaw.json", `{
+ // OpenClaw's config is JSON5
+ agents: undefined,
+ "mcp": { "servers": {
+ "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] },
+ "docs": { "url": "https://mcp.example.test/mcp", "transport": "streamable-http" },
+ "events": { "url": "https://events.example.test/stream", "transport": "sse" },
+ } },
+ }`.replace("agents: undefined,", ""));
+ put(home, ".openclaw/skills/image-lab/SKILL.md", skillMd("image-lab"));
+ put(home, ".openclaw/workspace/skills/triage/SKILL.md", skillMd("triage"));
+ }
+
+ it("finds their skills, nested or not, leaving out what Hermes ships and its Hub folder, and their MCP servers", () => {
+ const home = fixtureHome();
+ plantAgents(home);
+ const { machine } = machineFor(home);
+ const detection = detectSetup(machine, hostFor().host);
+ expect(detection.skills).toEqual([
+ { name: "deploy-k8s", source: "hermes" },
+ { name: "standup", source: "hermes" },
+ { name: "image-lab", source: "openclaw" },
+ { name: "triage", source: "openclaw" },
+ ]);
+ expect(detection.tools).toEqual([
+ { name: "github", source: "hermes" },
+ { name: "linear", source: "hermes" },
+ { name: "fetch", source: "openclaw" },
+ { name: "docs", source: "openclaw" },
+ { name: "events", source: "openclaw" },
+ ]);
+ });
+
+ it("brings them in switched off, with OpenClaw's transport kept, and never opens their secrets", () => {
+ const home = fixtureHome();
+ plantAgents(home);
+ const planted = plantPrivateFiles(home);
+ const { machine, touched } = machineFor(home);
+ const { host, servers } = hostFor();
+ const result = applySetupImport(machine, host, { skills: true, tools: true });
+ expect(result.skills?.added.sort()).toEqual(["deploy-k8s", "image-lab", "standup", "triage"]);
+ expect(result.tools?.added).toEqual(["github", "linear", "fetch", "docs", "events"]);
+ const saved = servers();
+ expect(Object.values(saved).every((server: any) => server.enabled === false)).toBe(true);
+ expect(saved.docs).toMatchObject({ type: "http", url: "https://mcp.example.test/mcp" });
+ expect(saved.events).toMatchObject({ type: "sse", url: "https://events.example.test/stream" });
+ expect(saved.github).toMatchObject({ command: "npx", args: ["-y", "@modelcontextprotocol/server-github"] });
+ for (const path of planted) expect(touched()).not.toContain(path);
+ expect(JSON.stringify(result)).not.toContain("ghp_hermes_secret");
+ expect(readImportedSkills()["deploy-k8s"]).toMatchObject({ source: "hermes" });
+ expect(readImportedSkills()["image-lab"]).toMatchObject({ source: "openclaw" });
+ });
+
+ it("follows HERMES_HOME, OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH, and Hermes' Windows home", () => {
+ const home = fixtureHome();
+ put(home, "agents/hermes/skills/standup/SKILL.md", skillMd("standup"));
+ put(home, "agents/claw/skills/triage/SKILL.md", skillMd("triage"));
+ put(home, "agents/claw.json", '{ "mcp": { "servers": { "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] } } } }');
+ const { machine } = machineFor(home, "darwin", {
+ HERMES_HOME: join(home, "agents", "hermes"), OPENCLAW_STATE_DIR: join(home, "agents", "claw"), OPENCLAW_CONFIG_PATH: join(home, "agents", "claw.json"),
+ });
+ const detection = detectSetup(machine, hostFor().host);
+ expect(detection.skills.map((skill) => [skill.name, skill.source])).toEqual([["standup", "hermes"], ["triage", "openclaw"]]);
+ expect(detection.tools).toEqual([{ name: "fetch", source: "openclaw" }]);
+ // Windows keeps Hermes under %LOCALAPPDATA%, and falls back to the profile's AppData\\Local without it.
+ expect(setupPaths({ home: "/u/ada", platform: "win32", env: { LOCALAPPDATA: "/u/ada/Local" } }).hermesHome).toBe(join("/u/ada/Local", "hermes"));
+ expect(setupPaths({ home: "/u/ada", platform: "win32", env: {} }).hermesHome).toBe(join("/u/ada", "AppData", "Local", "hermes"));
+ });
+
+ it("reads no tools from an OpenClaw config it can't parse, and leaves Hermes' alone", () => {
+ const home = fixtureHome();
+ plantAgents(home);
+ put(home, ".openclaw/openclaw.json", "{ mcp: { servers: { fetch: { command: 'uvx' } } } }");
+ const { machine } = machineFor(home);
+ expect(detectSetup(machine, hostFor().host).tools.map((tool) => tool.source)).toEqual(["hermes", "hermes"]);
+ });
+});
+
diff --git a/server/setup-import.ts b/server/setup-import.ts
index 3704efbb1e..989e7b07ad 100644
--- a/server/setup-import.ts
+++ b/server/setup-import.ts
@@ -15,6 +15,7 @@ import { parseSkillMd, SKILL_FILE_MAX_BYTES, type ParsedSkill } from "../shared/
import { importedSkillIntact, readImportedSkills, storeImportedSkills, type ImportedSkillEntry, type ImportedSkillInput } from "./imported-skills.ts";
import { scanSkillFolder } from "./skill-folder.ts";
import { importedMcpServerName, isRemoteMcpServer, MAX_MCP_SERVERS, parseMcpServersImport, parseStoredMcpServer, type StoredMcpServer } from "./mcp-registry.ts";
+import { parse as parseYaml } from "yaml";
import { parseToml } from "./toml-lite.ts";
/** The file operations finding and copying use, so tests can see every path touched. Each answers null on failure. */
@@ -91,7 +92,7 @@ export function thisMachine(): SetupMachine {
return { home: homedir(), platform: process.platform, env: process.env, fs: nodeFs };
}
-type ToolFormat = "claudeJson" | "json" | "toml";
+type ToolFormat = "claudeJson" | "json" | "toml" | "yaml";
const CONFIG_MAX_BYTES = 1024 * 1024;
/** ~/.claude.json also keeps every project's history, so it can be large; only its mcpServers member is parsed. */
@@ -106,19 +107,34 @@ export function setupPaths(machine: Pick<SetupMachine, "home" | "platform" | "en
: platform === "win32" ? join(absolute(env.APPDATA) ?? join(home, "AppData", "Roaming"), "Claude")
: join(home, ".config", "Claude");
const codexLabel = codexHome === join(home, ".codex") ? "~/.codex/skills" : "$CODEX_HOME/skills";
+ // Hermes Agent (hermes_constants.get_hermes_home) and OpenClaw (docs.openclaw.ai/help/environment) homes.
+ const hermesDefault = platform === "win32" ? join(absolute(env.LOCALAPPDATA) ?? join(home, "AppData", "Local"), "hermes") : join(home, ".hermes");
+ const hermesHome = absolute(env.HERMES_HOME) ?? hermesDefault;
+ const hermesLabel = hermesHome === hermesDefault ? (platform === "win32" ? "%LOCALAPPDATA%/hermes/skills" : "~/.hermes/skills") : "$HERMES_HOME/skills";
+ const openclawHome = absolute(env.OPENCLAW_STATE_DIR) ?? join(home, ".openclaw");
+ const openclawLabel = openclawHome === join(home, ".openclaw") ? "~/.openclaw" : "$OPENCLAW_STATE_DIR";
return {
codexHome,
+ hermesHome,
+ openclawHome,
skills: [
{ source: "claudeCode", root: join(home, ".claude", "skills"), label: "~/.claude/skills" },
{ source: "codex", root: join(codexHome, "skills"), label: codexLabel },
- ] satisfies Array<{ source: SkillSource; root: string; label: string }>,
+ // Hermes files skills under category folders, and lists the ones it ships (not the person's) in .bundled_manifest.
+ { source: "hermes", root: join(hermesHome, "skills"), label: hermesLabel, nested: true, bundled: join(hermesHome, "skills", ".bundled_manifest") },
+ { source: "openclaw", root: join(openclawHome, "skills"), label: `${openclawLabel}/skills`, nested: true },
+ { source: "openclaw", root: join(openclawHome, "workspace", "skills"), label: `${openclawLabel}/workspace/skills`, nested: true },
+ ] satisfies Array<{ source: SkillSource; root: string; label: string; nested?: boolean; bundled?: string }>,
tools: [
{ source: "claudeCode", path: join(home, ".claude.json"), format: "claudeJson", max: CLAUDE_JSON_MAX_BYTES },
{ source: "claudeDesktop", path: join(desktop, "claude_desktop_config.json"), format: "json", max: CONFIG_MAX_BYTES },
{ source: "cursor", path: join(home, ".cursor", "mcp.json"), format: "json", max: CONFIG_MAX_BYTES },
{ source: "codex", path: join(codexHome, "config.toml"), format: "toml", max: CONFIG_MAX_BYTES },
{ source: "gemini", path: join(home, ".gemini", "settings.json"), format: "json", max: CONFIG_MAX_BYTES },
- ] satisfies Array<{ source: SetupSource; path: string; format: ToolFormat; max: number }>,
+ { source: "hermes", path: join(hermesHome, "config.yaml"), format: "yaml", max: CONFIG_MAX_BYTES, key: "mcp_servers" },
+ // OpenClaw's config is JSON5; the comments and trailing commas the json format already strips are what it adds in practice.
+ { source: "openclaw", path: absolute(env.OPENCLAW_CONFIG_PATH) ?? join(openclawHome, "openclaw.json"), format: "json", max: CONFIG_MAX_BYTES, key: "mcp.servers" },
+ ] satisfies Array<{ source: SetupSource; path: string; format: ToolFormat; max: number; key?: string }>,
};
}
@@ -215,7 +231,7 @@ function placesFor(machine: SetupMachine): Places {
return [...new Set([...spellings, ...(found ? [found.path] : [])])];
};
const paths = setupPaths(machine);
- const toolHomes = [join(machine.home, ".claude"), paths.codexHome, join(machine.home, ".gemini"), join(machine.home, ".cursor")].flatMap(forms);
+ const toolHomes = [join(machine.home, ".claude"), paths.codexHome, join(machine.home, ".gemini"), join(machine.home, ".cursor"), paths.hermesHome, paths.openclawHome].flatMap(forms);
const roots = new Map<string, string>();
for (const { root } of paths.skills) {
const found = locate(machine, { homes, darwin }, root);
@@ -235,28 +251,47 @@ function skillFolderAllowed(places: Places, real: string): boolean {
const sha256 = (text: string) => createHash("sha256").update(text).digest("hex");
+const MANIFEST_MAX_BYTES = 256 * 1024;
+
+/** The skills Hermes seeded from its own install: one `name:hash` line each (tools/skills_sync.py). */
+function bundledSkillNames(machine: SetupMachine, manifest: string): Set<string> {
+ const bytes = machine.fs.read(manifest, MANIFEST_MAX_BYTES, false);
+ const text = bytes ? utf8(bytes) : null;
+ if (!text) return new Set();
+ return new Set(text.split(/\r?\n/).map((line) => line.split(":")[0]!.trim()).filter(Boolean));
+}
+
/** Skill folders with a valid SKILL.md, Claude Code's first; a name found twice keeps its first folder. */
function findSkills(machine: SetupMachine): FoundSkill[] {
const places = placesFor(machine);
const found: FoundSkill[] = [];
const names = new Set<string>();
- for (const { source, root, label } of setupPaths(machine).skills) {
+ for (const skillRoot of setupPaths(machine).skills) {
+ const { source, root, label } = skillRoot;
const real = places.roots.get(root);
if (!real) continue;
- // Dot folders hold the tools' own built-in skills (Codex's .system), not the person's.
- const folders = (machine.fs.readdir(real) ?? []).filter((folder) => !folder.startsWith(".")).sort().slice(0, MAX_SKILL_FOLDERS);
- for (const folder of folders) {
- const dir = locate(machine, places, join(real, folder));
- if (!dir?.info.isDirectory() || !skillFolderAllowed(places, dir.path)) continue;
+ const shipped = "bundled" in skillRoot && skillRoot.bundled ? bundledSkillNames(machine, skillRoot.bundled) : new Set<string>();
+ // Dot folders hold the tools' own built-in skills (Codex's .system, Hermes' .hub), not the person's.
+ const listed = (dir: string) => (machine.fs.readdir(dir) ?? []).filter((folder) => !folder.startsWith(".")).sort();
+ let budget = MAX_SKILL_FOLDERS;
+ const visit = (relativeFolder: string, deeper: boolean) => {
+ if (budget-- <= 0) return;
+ const dir = locate(machine, places, join(real, relativeFolder));
+ if (!dir?.info.isDirectory() || !skillFolderAllowed(places, dir.path)) return;
const bytes = machine.fs.read(join(dir.path, "SKILL.md"), SKILL_FILE_MAX_BYTES, false);
- const text = bytes ? utf8(bytes) : null;
+ if (!bytes) {
+ if (deeper) for (const inner of listed(dir.path)) visit(join(relativeFolder, inner), false);
+ return;
+ }
+ const text = utf8(bytes);
const parsed = text === null ? null : parseSkillMd(text);
- if (!parsed || "error" in parsed || names.has(parsed.name)) continue;
+ if (!parsed || "error" in parsed || names.has(parsed.name) || shipped.has(parsed.name)) return;
names.add(parsed.name);
found.push({
- name: parsed.name, source, parsed, folder: dir.path, root, origin: join(root, folder), label: `${label}/${folder}`, text: text!, sha256: sha256(text!),
+ name: parsed.name, source, parsed, folder: dir.path, root, origin: join(root, relativeFolder), label: `${label}/${relativeFolder.split(/[\\/]/).join("/")}`, text: text!, sha256: sha256(text!),
});
- }
+ };
+ for (const folder of listed(real)) visit(folder, "nested" in skillRoot && skillRoot.nested === true);
}
return found;
}
@@ -571,7 +606,9 @@ function pasteEntry(source: SetupSource, raw: Record<string, unknown>): Record<s
if (typeof raw.httpUrl === "string") return remote("http", raw.httpUrl);
if (typeof raw.url === "string") return remote(raw.type === "http" ? "http" : "sse", raw.url);
} else if (typeof raw.url === "string") {
- return remote(typeof raw.type === "string" && /sse/i.test(raw.type) ? "sse" : "http", raw.url);
+ // OpenClaw names it transport ("streamable-http" or "sse"); the others, type.
+ const kind = typeof raw.type === "string" ? raw.type : typeof raw.transport === "string" ? raw.transport : "";
+ return remote(/sse/i.test(kind) ? "sse" : "http", raw.url);
}
const env = textValues(raw.env);
return {
@@ -600,8 +637,12 @@ function toolEntries(machine: SetupMachine, tool: ReturnType<typeof setupPaths>[
const servers = topLevelJsonMember(text, "mcpServers");
return isRecord(servers) ? servers : null;
}
- const parsed: unknown = tool.format === "toml" ? parseToml(text) : JSON.parse(withoutTrailingCommas(withoutJsonComments(text)));
- const servers = isRecord(parsed) ? parsed[tool.format === "toml" ? "mcp_servers" : "mcpServers"] : undefined;
+ const parsed: unknown = tool.format === "toml" ? parseToml(text)
+ : tool.format === "yaml" ? parseYaml(text, { maxAliasCount: 100 })
+ : JSON.parse(withoutTrailingCommas(withoutJsonComments(text)));
+ const key = "key" in tool && tool.key ? tool.key : tool.format === "toml" ? "mcp_servers" : "mcpServers";
+ let servers: unknown = parsed;
+ for (const part of key.split(".")) servers = isRecord(servers) ? servers[part] : undefined;
return isRecord(servers) ? servers : null;
} catch {
return null;
diff --git a/shared/setup-import.ts b/shared/setup-import.ts
index 7bf994f851..6a323ac4d1 100644
--- a/shared/setup-import.ts
+++ b/shared/setup-import.ts
@@ -1,8 +1,8 @@
// "Bring what you already use": the skills and MCP servers of a person's other AI tools that the welcome flow finds
// on this computer and brings in.
-export type SetupSource = "claudeCode" | "claudeDesktop" | "cursor" | "codex" | "gemini";
-export type SkillSource = Extract<SetupSource, "claudeCode" | "codex">;
+export type SetupSource = "claudeCode" | "claudeDesktop" | "cursor" | "codex" | "gemini" | "hermes" | "openclaw";
+export type SkillSource = Extract<SetupSource, "claudeCode" | "codex" | "hermes" | "openclaw">;
/** Names only, never a file's contents or an env or header value. Everything listed is new here. */
export interface SetupDetection {
diff --git a/src/components/ImportSettings.test.ts b/src/components/ImportSettings.test.ts
index 84ae45bbb9..101a30ab94 100644
--- a/src/components/ImportSettings.test.ts
+++ b/src/components/ImportSettings.test.ts
@@ -25,7 +25,7 @@ describe("Settings → Import", () => {
expect(markup).toContain('data-import-section="grok"');
const shown = text(markup);
expect(shown).toContain("From your AI apps");
- expect(shown).toContain("Claude Code, Codex, Cursor, Claude Desktop and Gemini");
+ expect(shown).toContain("Claude Code, Codex, Cursor, Claude Desktop, Gemini, Hermes Agent and OpenClaw");
expect(shown).toContain("Tools arrive switched off; logins and history are never read.");
expect(shown).toContain("Move from Grok Bot");
expect(markup).toContain("data-grok-move-open");
diff --git a/src/components/ImportSettings.tsx b/src/components/ImportSettings.tsx
index 38eec5801a..435e231732 100644
--- a/src/components/ImportSettings.tsx
+++ b/src/components/ImportSettings.tsx
@@ -10,7 +10,9 @@ import { importOutcome, localSetupImport, setupImportApi, skillsSummary, toolsSu
import { useStore } from "@/state/store";
import { detectionCount, detectionSources, type SetupDetection, type SetupImportResult, type SetupSource } from "../../shared/setup-import";
import { GrokBotMark } from "./GrokBotMark";
+import { HermesMark } from "./HermesMark";
import { GrokMoveDialog } from "./lazy-screens";
+import { OpenClawMark } from "./OpenClawMark";
import { ClaudeMark, CodexMark, CursorMark, PresetProviderMark } from "./ProviderIcons";
function SourceMarks({ sources }: { sources: readonly SetupSource[] }) {
@@ -22,6 +24,8 @@ function SourceMarks({ sources }: { sources: readonly SetupSource[] }) {
case "codex": return <CodexMark key={source} size={12} />;
case "cursor": return <CursorMark key={source} size={12} />;
case "gemini": return <PresetProviderMark key={source} preset="google" size={12} />;
+ case "hermes": return <HermesMark key={source} size={12} />;
+ case "openclaw": return <OpenClawMark key={source} size={12} />;
default: return <ClaudeMark key={source} size={12} />;
}
})}
diff --git a/src/components/OpenClawMark.tsx b/src/components/OpenClawMark.tsx
new file mode 100644
index 0000000000..568806a832
--- /dev/null
+++ b/src/components/OpenClawMark.tsx
@@ -0,0 +1,18 @@
+// OpenClaw's lobster mark (openclaw/openclaw, MIT), drawn in one colour like the other marks.
+import { cn } from "@/lib/cn";
+
+interface IconProps {
+ size?: number;
+ className?: string;
+}
+
+export function OpenClawMark({ size = 16, className }: IconProps) {
+ return (
+ <svg width={size} height={size} viewBox="0 0 120 120" fill="currentColor" className={cn("text-ink", className)} aria-hidden>
+ <path fillRule="evenodd" d="M60 10 C30 10 15 35 15 55 C15 75 30 95 45 100 L45 110 L55 110 L55 100 C55 100 60 102 65 100 L65 110 L75 110 L75 100 C90 95 105 75 105 55 C105 35 90 10 60 10Z M45 29 a6 6 0 1 0 0.01 0Z M75 29 a6 6 0 1 0 0.01 0Z" />
+ <path d="M20 45 C5 40 0 50 5 60 C10 70 20 65 25 55 C28 48 25 45 20 45Z" />
+ <path d="M100 45 C115 40 120 50 115 60 C110 70 100 65 95 55 C92 48 95 45 100 45Z" />
+ <path d="M45 15 Q35 5 30 8 M75 15 Q85 5 90 8" fill="none" stroke="currentColor" strokeWidth={6} strokeLinecap="round" />
+ </svg>
+ );
+}
diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx
index eb16c07ec3..29c09ff9b4 100644
--- a/src/components/SettingsModal.tsx
+++ b/src/components/SettingsModal.tsx
@@ -104,7 +104,7 @@ export const SECTIONS: Array<{
{ id: "organization", group: "account", labelKey: "settings.section.organization", icon: Building2, keywords: ["company", "organization", "organisation", "sign in", "enroll", "managed", "models", "disconnect"] },
{ id: "usage", group: "account", labelKey: "settings.section.usage", icon: Coins, keywords: ["tokens", "cost", "billing", "plan", "quota", "remaining", "weekly", "5-hour", "model", "used"] },
{ id: "backups", group: "account", labelKey: "settings.section.backups", icon: Archive, keywords: ["export", "import", "restore", "full backup", "password", "recovery"] },
- { id: "import", group: "account", labelKey: "settings.section.import", icon: Download, keywords: ["import", "grok", "grok bot", "move", "cursor", "claude code", "codex", "gemini", "skills", "mcp", "tools", "bring"] },
+ { id: "import", group: "account", labelKey: "settings.section.import", icon: Download, keywords: ["import", "grok", "grok bot", "move", "cursor", "claude code", "codex", "gemini", "hermes", "openclaw", "skills", "mcp", "tools", "bring"] },
{ id: "people", group: "account", labelKey: "settings.section.people", icon: Users, keywords: ["people", "users", "invite", "sign in", "members", "admins", "access"] },
{ id: "botAccess", group: "account", labelKey: "settings.section.botAccess", icon: Users, keywords: ["access", "share", "sharing", "who can", "view", "chat", "edit", "permissions", "team", "members", "bots"] },
{ id: "activity", group: "account", labelKey: "settings.section.activity", icon: ScrollText, keywords: ["activity", "audit", "log", "history", "who changed", "approvals", "decisions", "admin"] },
diff --git a/src/lib/setup-import.test.ts b/src/lib/setup-import.test.ts
index 01f115327d..de52c22073 100644
--- a/src/lib/setup-import.test.ts
+++ b/src/lib/setup-import.test.ts
@@ -83,6 +83,7 @@ describe("what the step says", () => {
expect(toolsSummary({ ...FOUND, tools: [
{ name: "a", source: "claudeCode" }, { name: "b", source: "claudeCode" }, { name: "c", source: "claudeDesktop" }, { name: "d", source: "gemini" },
] })).toBe("4 MCP servers from Claude Code, Claude Desktop, and Gemini CLI");
+ expect(skillsSummary({ ...FOUND, skills: [{ name: "a", source: "hermes" }, { name: "b", source: "openclaw" }] })).toBe("2 from Hermes Agent and OpenClaw");
});
it("sums up in one line, with a note only for what was left out", () => {
diff --git a/src/locales/en.json b/src/locales/en.json
index 1354da1a07..942ebc3805 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -3407,6 +3407,8 @@
"onboarding.import.source.cursor": "Cursor",
"onboarding.import.source.codex": "Codex",
"onboarding.import.source.gemini": "Gemini CLI",
+ "onboarding.import.source.hermes": "Hermes Agent",
+ "onboarding.import.source.openclaw": "OpenClaw",
"onboarding.import.bring": "Bring them in",
"onboarding.import.bringing": "Bringing them in…",
"onboarding.import.error": "Couldn't bring them in. Try again, or skip.",
@@ -6024,7 +6026,7 @@
"settings.section.backups": "Backups",
"settings.section.import": "Import",
"settings.import.appsTitle": "From your AI apps",
- "settings.import.appsSubtitle": "Skills and MCP tools from Claude Code, Codex, Cursor, Claude Desktop and Gemini on this computer. Tools arrive switched off; logins and history are never read.",
+ "settings.import.appsSubtitle": "Skills and MCP tools from Claude Code, Codex, Cursor, Claude Desktop, Gemini, Hermes Agent and OpenClaw on this computer. Tools arrive switched off; logins and history are never read.",
"settings.import.appsLooking": "Looking on this computer…",
"settings.import.appsNothing": "Nothing new to bring in from your AI apps.",
"settings.import.appsLocalOnly": "Only the desktop app on the computer running {app} can bring in that computer's skills and tools.",
diff --git a/src/locales/it.json b/src/locales/it.json
index a392be238a..f95b2eb329 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -5002,7 +5002,6 @@
"settings.section.backups": "Backup",
"settings.section.import": "Importazione",
"settings.import.appsTitle": "Dalle tue app AI",
- "settings.import.appsSubtitle": "Abilità e strumenti MCP da Claude Code, Codex, Cursor, Claude Desktop e Gemini su questo computer. Gli strumenti arrivano disattivati; accessi e cronologia non vengono mai letti.",
"settings.import.appsLooking": "Ricerca su questo computer…",
"settings.import.appsNothing": "Niente di nuovo da portare dalle tue app AI.",
"settings.import.appsLocalOnly": "Solo l'app desktop sul computer dove gira {app} può portare le abilità e gli strumenti di quel computer.",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 53a386f3f2..b9026f6c08 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -5793,7 +5793,6 @@
"settings.section.backups": "バックアップ",
"settings.section.import": "インポート",
"settings.import.appsTitle": "お使いの AI アプリから",
- "settings.import.appsSubtitle": "このコンピューター上の Claude Code、Codex、Cursor、Claude Desktop、Gemini からスキルと MCP ツールを取り込みます。ツールはオフの状態で取り込まれ、ログイン情報や履歴は読み取りません。",
"settings.import.appsLooking": "このコンピューターを検索しています…",
"settings.import.appsNothing": "AI アプリから取り込める新しい項目はありません。",
"settings.import.appsLocalOnly": "そのコンピューターのスキルとツールを取り込めるのは、{app} を実行しているコンピューターのデスクトップアプリだけです。",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 0ce06a1c98..baae3726ad 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -5563,7 +5563,6 @@
"settings.section.backups": "백업",
"settings.section.import": "가져오기",
"settings.import.appsTitle": "내 AI 앱에서",
- "settings.import.appsSubtitle": "이 컴퓨터의 Claude Code, Codex, Cursor, Claude Desktop, Gemini에서 스킬과 MCP 도구를 가져와요. 도구는 꺼진 상태로 들어오고, 로그인 정보와 기록은 절대 읽지 않아요.",
"settings.import.appsLooking": "이 컴퓨터에서 찾는 중…",
"settings.import.appsNothing": "AI 앱에서 새로 가져올 것이 없어요.",
"settings.import.appsLocalOnly": "{app}이 실행 중인 컴퓨터의 데스크톱 앱만 그 컴퓨터의 스킬과 도구를 가져올 수 있어요.",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 692be53fa3..b90d2449e9 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -5139,7 +5139,6 @@
"settings.section.backups": "Kopie zapasowe",
"settings.section.import": "Import",
"settings.import.appsTitle": "Z aplikacji AI",
- "settings.import.appsSubtitle": "Umiejętności i narzędzia MCP z Claude Code, Codex, Cursor, Claude Desktop i Gemini na tym komputerze. Narzędzia są dodawane wyłączone; dane logowania i historia nigdy nie są odczytywane.",
"settings.import.appsLooking": "Szukanie na tym komputerze…",
"settings.import.appsNothing": "Brak nowych rzeczy do zaimportowania z aplikacji AI.",
"settings.import.appsLocalOnly": "Tylko aplikacja na komputerze, na którym działa {app}, może zaimportować umiejętności i narzędzia z tego komputera.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 3cc07ce43b..8db7a951d0 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -5755,7 +5755,6 @@
"settings.section.backups": "Backups",
"settings.section.import": "Importar",
"settings.import.appsTitle": "Dos seus apps de IA",
- "settings.import.appsSubtitle": "Habilidades e ferramentas MCP do Claude Code, Codex, Cursor, Claude Desktop e Gemini neste computador. As ferramentas chegam desligadas; logins e histórico nunca são lidos.",
"settings.import.appsLooking": "Procurando neste computador…",
"settings.import.appsNothing": "Nada novo para trazer dos seus apps de IA.",
"settings.import.appsLocalOnly": "Só o app para computador na máquina onde o app {app} roda pode importar as habilidades e ferramentas dela.",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index bedfb3dcce..3b1a405bec 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -5193,7 +5193,6 @@
"settings.section.backups": "Резервные копии",
"settings.section.import": "Импорт",
"settings.import.appsTitle": "Из ваших AI-приложений",
- "settings.import.appsSubtitle": "Навыки и инструменты MCP из Claude Code, Codex, Cursor, Claude Desktop и Gemini на этом компьютере. Инструменты импортируются выключенными; учётные данные и история никогда не считываются.",
"settings.import.appsLooking": "Поиск на этом компьютере…",
"settings.import.appsNothing": "Из ваших AI-приложений нечего нового импортировать.",
"settings.import.appsLocalOnly": "Только настольное приложение на компьютере, где запущен {app}, может импортировать навыки и инструменты этого компьютера.",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 5fc3eec69f..7dd92cb40c 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -5985,7 +5985,6 @@
"settings.section.backups": "備份",
"settings.section.import": "匯入",
"settings.import.appsTitle": "從你的 AI 應用程式匯入",
- "settings.import.appsSubtitle": "匯入這台電腦上 Claude Code、Codex、Cursor、Claude Desktop 和 Gemini 的技能與 MCP 工具。工具匯入後預設關閉;絕不讀取登入資訊和歷史紀錄。",
"settings.import.appsLooking": "正在這台電腦上尋找…",
"settings.import.appsNothing": "你的 AI 應用程式沒有可匯入的新內容。",
"settings.import.appsLocalOnly": "只有執行 {app} 那台電腦上的桌面應用程式,才能匯入該電腦的技能和工具。",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 425207c199..41ac0fc4b6 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -5770,7 +5770,6 @@
"settings.section.backups": "备份",
"settings.section.import": "导入",
"settings.import.appsTitle": "从你的 AI 应用导入",
- "settings.import.appsSubtitle": "从这台电脑上的 Claude Code、Codex、Cursor、Claude Desktop 和 Gemini 导入技能和 MCP 工具。导入的工具默认关闭;不会读取登录信息或历史记录。",
"settings.import.appsLooking": "正在这台电脑上查找…",
"settings.import.appsNothing": "你的 AI 应用里没有可导入的新内容。",
"settings.import.appsLocalOnly": "只有运行 {app} 的那台电脑上的桌面版,才能导入该电脑上的技能和工具。",