feat: HTTP/SSE Transport for Multi-Instance Deployments #34

Closed
opened 2026-01-21 20:45:40 +00:00 by jack · 1 comment
Owner

Origin

Issue #752 from upstream

Problem

  • Current stdio transport limits to single instance
  • Can't share memory across multiple Claude instances
  • No remote access to worker

Solution

  • Add HTTP transport option alongside stdio
  • SSE for real-time updates (already have this!)
  • WebSocket option for bidirectional
  • Authentication for remote access
  • Configurable transport in settings

Use Cases

  • Team sharing memories
  • Multi-machine setups
  • Cloud deployment

Migrated-From: jack/claude-mem-fork#12

## Origin Issue #752 from upstream ## Problem - Current stdio transport limits to single instance - Can't share memory across multiple Claude instances - No remote access to worker ## Solution - Add HTTP transport option alongside stdio - SSE for real-time updates (already have this!) - WebSocket option for bidirectional - Authentication for remote access - Configurable transport in settings ## Use Cases - Team sharing memories - Multi-machine setups - Cloud deployment --- Migrated-From: jack/claude-mem-fork#12
Author
Owner

This feature is already implemented:

HTTP Transport:

  • Backend exposes REST API at :37777
  • Hooks can connect to remote backend via CLAUDE_MEM_REMOTE_URL
  • Authentication via CLAUDE_MEM_REMOTE_TOKEN

SSE:

  • /api/stream endpoint for real-time updates
  • Used by UI for live session updates

WebSocket:

  • Worker connects to backend via WebSocket (/ws)
  • Bidirectional communication for task assignment/completion

Remote Access Settings:

  • CLAUDE_MEM_REMOTE_MODE - Enable remote mode
  • CLAUDE_MEM_REMOTE_URL - Backend URL
  • CLAUDE_MEM_REMOTE_TOKEN - Authentication token
  • CLAUDE_MEM_REMOTE_VERIFY_SSL - SSL verification
  • CLAUDE_MEM_REMOTE_TIMEOUT_MS - Request timeout

See packages/shared/src/settings.ts for full configuration.

This feature is already implemented: **HTTP Transport:** - Backend exposes REST API at `:37777` - Hooks can connect to remote backend via `CLAUDE_MEM_REMOTE_URL` - Authentication via `CLAUDE_MEM_REMOTE_TOKEN` **SSE:** - `/api/stream` endpoint for real-time updates - Used by UI for live session updates **WebSocket:** - Worker connects to backend via WebSocket (`/ws`) - Bidirectional communication for task assignment/completion **Remote Access Settings:** - `CLAUDE_MEM_REMOTE_MODE` - Enable remote mode - `CLAUDE_MEM_REMOTE_URL` - Backend URL - `CLAUDE_MEM_REMOTE_TOKEN` - Authentication token - `CLAUDE_MEM_REMOTE_VERIFY_SSL` - SSL verification - `CLAUDE_MEM_REMOTE_TIMEOUT_MS` - Request timeout See `packages/shared/src/settings.ts` for full configuration.
jack closed this issue 2026-01-24 09:20:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#34
No description provided.