Repository navigation
Description
Bug Description
The documented real-time viewer (port 3113) is unreachable when agentmemory runs via the Docker deployment. The viewer is a core feature — the README says "the viewer at :3113 shows what your agent remembered" and lists 3113 as the standard fourth port — but in the Docker-engine-only path it never comes up.
Steps to Reproduce
- Install/run agentmemory via Docker (the
iiidev/iiiengine image, e.g.iiidev/iii:0.11.2), with the memory state stored at the platform default data dir. - Start the container and expose its mapped ports.
- Open
http://localhost:3113/.
Actual: connection refused / nothing listening. 3113 is dead.
Expected Behavior
The real-time viewer should be served on http://localhost:3113, just as it is in the npx -y @agentmemory/agentmemory@latest path.
Root Cause
The viewer is served by the @agentmemory/agentmemory npm process, not by the iii engine. The iiidev/iii Docker image runs only /app/iii (the engine); it never launches the npm agentmemory process that serves :3113.
Evidence from a live install:
- The engine image
iiidev/iii:0.11.2exposes only3111/tcp(REST/MCP),3112/tcp(streams),49134/tcp(worker WS),9464/tcp. No3113. - The engine config (
iii-config.docker.yaml) pre-authorises the viewer origin —allowed_originsincludeshttp://localhost:3113— so the engine clearly expects a viewer to exist, but the Docker deployment provides no process to serve it. - The canonical fresh-install path
npx -y @agentmemory/agentmemory@lateststarts both the server and its pinned engine, and that is the path that brings up:3113.
In the Docker path, the two documented components are split: engine in the container, npm viewer not launched anywhere.
Proposed Solution
Two complementary options:
A. Ship/serve the viewer in the image (preferred). Add the @agentmemory/agentmemory npm process as a second entrypoint in the Docker image so the container publishes 3113/tcp alongside 3111/3112/49134/9464, and map it in the compose ports. This makes the Docker deployment feature-complete with a single docker compose up.
B. Document + support a read-only host sidecar. Since the engine already holds the store, running the npm CLI against the same live state_store.db risks store corruption / lock contention (two engines on one store, possible schema-version mismatch between the v0.11 engine and the npm viewer v0.9). Provide official guidance to run the npm viewer against a copy/snapshot of the data dir (or an isolated --data-dir) for read-only inspection, rather than pointing it at the live store. This keeps the viewer safe to use without risking the engine's data.
Environment
- OS: Windows 11
- Engine image:
iiidev/iii:0.11.2 - Deployment: Docker (engine-only), data dir bind-mounted at
C:\Users\hkkchan\AppData\Roaming/agentmemory→/data - Version: agentmemory (Docker engine path); confirmed viewer absent from image exposed ports
Suggested labels
bug, docker, enhancement
Activity