Skip to content

The open-source app everyone uses to manage agents at work

feat: add Hermes Agent adapter (hermes_local)

teknium197d628d7847d
diff --git a/packages/shared/src/constants.ts b/packages/shared/src/constants.ts
index ba75dc8efa..c78d1dd044 100644
--- a/packages/shared/src/constants.ts
+++ b/packages/shared/src/constants.ts
@@ -30,6 +30,7 @@ export const AGENT_ADAPTER_TYPES = [
"pi_local",
"cursor",
"openclaw_gateway",
+ "hermes_local",
] as const;
export type AgentAdapterType = (typeof AGENT_ADAPTER_TYPES)[number];
diff --git a/server/package.json b/server/package.json
index aeb0994451..63585fae16 100644
--- a/server/package.json
+++ b/server/package.json
@@ -40,6 +40,7 @@
"@paperclipai/adapter-opencode-local": "workspace:*",
"@paperclipai/adapter-pi-local": "workspace:*",
"@paperclipai/adapter-openclaw-gateway": "workspace:*",
+ "@nousresearch/paperclip-adapter-hermes": "github:NousResearch/hermes-paperclip-adapter",
"@paperclipai/adapter-utils": "workspace:*",
"@paperclipai/db": "workspace:*",
"@paperclipai/shared": "workspace:*",
diff --git a/server/src/adapters/registry.ts b/server/src/adapters/registry.ts
index 9fe536a086..571d81317d 100644
--- a/server/src/adapters/registry.ts
+++ b/server/src/adapters/registry.ts
@@ -45,6 +45,14 @@ import {
import {
agentConfigurationDoc as piAgentConfigurationDoc,
} from "@paperclipai/adapter-pi-local";
+import {
+ execute as hermesExecute,
+ testEnvironment as hermesTestEnvironment,
+} from "@nousresearch/paperclip-adapter-hermes/server";
+import {
+ agentConfigurationDoc as hermesAgentConfigurationDoc,
+ models as hermesModels,
+} from "@nousresearch/paperclip-adapter-hermes";
import { processAdapter } from "./process/index.js";
import { httpAdapter } from "./http/index.js";
@@ -111,6 +119,15 @@ const piLocalAdapter: ServerAdapterModule = {
agentConfigurationDoc: piAgentConfigurationDoc,
};
+const hermesLocalAdapter: ServerAdapterModule = {
+ type: "hermes_local",
+ execute: hermesExecute,
+ testEnvironment: hermesTestEnvironment,
+ models: hermesModels,
+ supportsLocalAgentJwt: false,
+ agentConfigurationDoc: hermesAgentConfigurationDoc,
+};
+
const adaptersByType = new Map<string, ServerAdapterModule>(
[
claudeLocalAdapter,
@@ -119,6 +136,7 @@ const adaptersByType = new Map<string, ServerAdapterModule>(
piLocalAdapter,
cursorLocalAdapter,
openclawGatewayAdapter,
+ hermesLocalAdapter,
processAdapter,
httpAdapter,
].map((a) => [a.type, a]),