You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
jsclaw integration — agent containers on Solid pods #199
agenticIssues and PRs related to agentic / LLM-builder / agent-friendly use casesnostrNostr relay, did:nostr auth, NIP-relatedpluginCould be implemented as a plugin (#206); core/plugin line defined in #564
jsclaw is a pure JavaScript ESM library for running Claude agents in isolated Docker containers with streaming output, filesystem IPC, and built-in MCP tools. Zero dependencies, no build step — same philosophy as JSS.
Why it fits
Same stack — both are pure ESM JavaScript, zero dependencies, no transpilation
Container isolation — each agent runs sandboxed but can authenticate to the pod via NIP-98
Filesystem IPC — agents co-located with a pod can coordinate without network overhead
MCP tools — jsclaw's built-in MCP server can expose pod operations as agent tools
Concurrency control — per-group queuing means multiple agents can share a pod safely
Integration concept
A JSS pod + jsclaw = self-hosted data and self-hosted agents:
Pod provides data storage, auth, and API endpoints
jsclaw spins up agent containers with nostr keypairs
Agents authenticate via NIP-98 and interact with pod REST endpoints
Filesystem IPC for fast local coordination when co-located
Update 2026-06-11 — jsclaw moved a lot today; the integration is now substantially easier than when this was filed, and some terminology above is stale.
agent-micro: a zero-dependency runner (~1,000 lines, AGPL, Anthropic-compatible API over fetch — works with GLM/Kimi too) that speaks jsclaw's container contract natively. This is the natural runner for pod-resident agents: no Claude Code image, ~50 kB.
Licensing aligned: jsclaw and agent-micro are now AGPL-3.0-or-later, matching JSS.
Concrete integration sketch
JSS depends on jsclaw (git URL; npm registry is intentionally stale) and adds one adapter module:
Pod as workspace — the agent's agents/<id>/ folder lives inside (or is mounted from) the pod storage: SOUL.md, memory/*.md, sessions are just pod resources, readable/writable over Solid like everything else. Identity files become documents the owner can edit from any Solid app.
Inbox as Channel — jsclaw has a formal Channel interface + ChannelManager; an LdpInboxChannel receives POSTs to the pod inbox and routes them to the agent, replies go back as inbox responses. Per-agent bindings (channel/peer → agent) already exist in jsclaw.
Auth — JSS's WebID/Nostr (NIP-98) auth replaces jsclaw's gateway token for the chat/WS surface. jsclaw's startGateway(deps, config, {port, token}) currently owns its own http.createServer; either run it on a loopback port behind a JSS route, or (cleaner, needs a small jsclaw PR) accept an existing server/upgrade hook so it mounts into fastify via @fastify/websocket.
Pod tools via MCP passthrough — jsclaw forwards mcp.servers config into agents; JSS's MCP tooling (cf. feat(mcp): read_acl / write_acl convenience tools #496) gives agents pod-read/pod-write/pod-inbox without new tool plumbing in jsclaw.
Sandbox posture per trust level — sandboxMode: "non-main": the pod owner's main agent on the host, visitor/automation agents in containers.
Suggested first milestone
Smallest demonstrable slice: JSS route POST /agents/<id>/chat → jsclaw runContainerAgent with the pod folder as workspace, agent-micro as runner, sandboxMode: off. One file, no gateway embedding, proves the pod-as-workspace model end-to-end.
agenticIssues and PRs related to agentic / LLM-builder / agent-friendly use casesnostrNostr relay, did:nostr auth, NIP-relatedpluginCould be implemented as a plugin (#206); core/plugin line defined in #564
Activity
melvincarvalho commentedon Jun 11, 2026
Update 2026-06-11 — jsclaw moved a lot today; the integration is now substantially easier than when this was filed, and some terminology above is stale.
What changed in jsclaw since March
group→agenteverywhere (Rename 'group' to 'agent' across the API (openclaw alignment) jsclaw/jsclaw#36): wire protocol ischat.send {agentId}, disk layout isagents/<id>/, types areAgentConfig. "Per-group queuing" above is now per-agent queuing.sandboxMode: auto | all | non-main | offwith a per-agentsandboxoverride. Agents can run as plain node processes via alocalRunner.Concrete integration sketch
JSS depends on jsclaw (git URL; npm registry is intentionally stale) and adds one adapter module:
agents/<id>/folder lives inside (or is mounted from) the pod storage:SOUL.md,memory/*.md, sessions are just pod resources, readable/writable over Solid like everything else. Identity files become documents the owner can edit from any Solid app.Channelinterface +ChannelManager; anLdpInboxChannelreceives POSTs to the pod inbox and routes them to the agent, replies go back as inbox responses. Per-agent bindings (channel/peer → agent) already exist in jsclaw.startGateway(deps, config, {port, token})currently owns its ownhttp.createServer; either run it on a loopback port behind a JSS route, or (cleaner, needs a small jsclaw PR) accept an existing server/upgrade hook so it mounts into fastify via@fastify/websocket.mcp.serversconfig into agents; JSS's MCP tooling (cf. feat(mcp): read_acl / write_acl convenience tools #496) gives agentspod-read/pod-write/pod-inboxwithout new tool plumbing in jsclaw.sandboxMode: "non-main": the pod owner's main agent on the host, visitor/automation agents in containers.Suggested first milestone
Smallest demonstrable slice: JSS route
POST /agents/<id>/chat→ jsclawrunContainerAgentwith the pod folder as workspace, agent-micro as runner,sandboxMode: off. One file, no gateway embedding, proves the pod-as-workspace model end-to-end.