OPTXOPTX DOCS
JOE β€” Jett Optics Engine

Hermes OPTX API

Enhanced API bridge for Hermes Agent β€” Sessions, Skills, Memory, Config, Task Orchestration, and Gateway proxy.

The Hermes OPTX API is a FastAPI sidecar that extends Hermes Agent v0.7.0+ with enhanced endpoints for the Hermes Workspace UI. Open source at joe-optx-hermes-api.

Why It Exists

Hermes Workspace expects /api/sessions, /api/skills, /api/memory, and /api/config endpoints that upstream Hermes Agent doesn't provide. Rather than forking the agent, the Hermes OPTX API sits alongside it as a sidecar β€” extending capabilities without modifying the core.

Architecture

Hermes Workspace
    ↓
Hermes OPTX API
    β”œβ”€β”€ /api/sessions    β†’ reads Hermes state.db
    β”œβ”€β”€ /api/skills      β†’ scans SKILL.md files
    β”œβ”€β”€ /api/memory      β†’ pluggable backend (holographic / SpacetimeDB)
    β”œβ”€β”€ /api/config      β†’ reads/writes Hermes config.yaml
    β”œβ”€β”€ /api/tasks       β†’ SpacetimeDB task orchestration
    └── /v1/*            β†’ proxy passthrough to Hermes Agent

Endpoints

Sessions

MethodPathDescription
GET/api/sessionsList all sessions
GET/api/sessions/{id}Get session details
GET/api/sessions/{id}/messagesGet session messages
DELETE/api/sessions/{id}Delete a session

Skills

MethodPathDescription
GET/api/skillsList all skills (with category/search filtering)

Memory

MethodPathDescription
POST/api/memoryStore a memory
GET/api/memoryList/search memories
GET/api/memory/{id}Get specific memory
DELETE/api/memory/{id}Delete a memory
GET/api/memory/statsMemory statistics
GET/api/memory/healthBackend health check

Config

MethodPathDescription
GET/api/configRead config (sensitive values redacted)
PATCH/api/configUpdate config with dot-notation keys

Tasks (Orchestration)

MethodPathDescription
POST/api/tasksCreate a task
GET/api/tasksList tasks (filterable by status, agent, capabilities)
GET/api/tasks/{id}Get task details
POST/api/tasks/{id}/claimClaim task for an agent
POST/api/tasks/{id}/completeComplete with result data
DELETE/api/tasks/{id}Cancel a task
POST/api/tasks/swarmDecompose a goal into a DAG of subtasks
GET/api/tasks/statsTask statistics and queue depth

Gateway

MethodPathDescription
GET/healthHealth check + upstream status
GET/api/gateway-statusFeature flags and connection mode
*/v1/*Proxy all requests to Hermes Agent

Configuration

Set via environment variables or .env file:

VariableDefaultDescription
HERMES_AGENT_URLhttp://localhost:8642Hermes Agent upstream URL
HERMES_HOME~/.hermesPath to Hermes config directory
OPTX_API_PORT8643API server port
MEMORY_BACKENDholographicMemory backend: holographic, spacetimedb, or custom

Installation

pip install -e .
hermes-optx-api

Or with Docker:

docker build -t hermes-optx-api .
docker run -p 8643:8643 hermes-optx-api

On this page