im4codes/imcodes
A self-hosted relay and daemon for remote coding sessions and cross-agent context
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
IM.codes separates client access, connection relaying, and execution. Browser and mobile clients reach a self-hosted relay over WebSocket; a second WebSocket leg reaches the developer-host daemon. The daemon owns agent sessions, using tmux for process-backed sessions and provider-specific transports or SDKs for other sessions, such as the Claude Agent SDK, Codex SDK, and OpenClaw gateway. The TypeScript package targets Node.js 22+ and exposes imcodes, imcodes-launch, and imcodes-launch-preflight as CLI entrypoints.
The extension point is a daemon-managed stdio MCP server for supported SDK-backed runtimes. It binds memory, messaging, and scheduling calls to the active session, project, user, and server instead of letting the agent supply those identities. The package includes ws and @modelcontextprotocol/sdk; imcodes send provides an agent-to-agent messaging path beyond the managed tool interface. Compatibility needs to be checked per backend: starting a session, exposing MCP tools, and supporting supervised workflows are separate capabilities.
Key Capabilities & Differentiators
IM.codes provides remote terminal access, file and Git views, localhost previews, and notifications for coding sessions across providers such as Claude Code, Codex, Gemini CLI, and OpenCode. Automatic memory capture uses final assistant.text, not streaming deltas or tool-call traces. Multilingual semantic recall runs locally and through server-side pgvector; recalled items can be injected at startup or per message, with timeline explanations and source snippets available when a summary is insufficient.
Supervision evaluates sessions at completed-turn boundaries and can continue, ask for human input, or start an audit-and-rework loop. On eligible transport-backed sessions, OpenSpec Auto Deliver adds task tracking and structured Team audit verdicts without staging, committing, or pushing code. Controlled Nodes are separately enrolled and revocable: authorized sessions can use scoped commands, transfer individual files, and invoke typed Computer Use actions. Capable Windows nodes also expose browser-based viewing and control.
Trade-offs & Limitations
SSH and tmux are a smaller operational commitment when you only need to reconnect to a terminal. A provider’s native CLI is simpler when one backend is enough. IM.codes adds value when browser or mobile access, role-based collaboration, cross-provider recall, and structured review need to coexist. In return, operators maintain a relay, PostgreSQL, a developer-host daemon, and the agent integrations. Self-hosting the relay does not make an external model provider offline, and optional summary sync changes where derived context is stored.
Treat host permissions, memory publication scopes, and rollout stability as adoption gates. Scoped credentials and revocation help limit Controlled Node access, but they do not replace host isolation and least-privilege configuration. Enterprise shared context is still under active development and has not been fully production-tested. This is a source-available personal project without an SLA or compatibility guarantees. The presence of LICENSE and COMMERCIAL-LICENSE.md is not enough to establish commercial-use rights; review the applicable terms before adoption.
Hardware & Deployment Guide
The Compose stack pairs ghcr.io/im4codes/imcodes:latest with pgvector/pgvector:pg18, persists PostgreSQL data in pgdata, and publishes the server only on 127.0.0.1:19138. Plan for an HTTPS front end: SERVER_URL and ALLOWED_ORIGINS use https://${DOMAIN}, and the WebAuthn RP ID defaults to that domain. Configure POSTGRES_PASSWORD and JWT_SIGNING_KEY, and ensure the HTTPS front end passes WebSocket connections. A root Caddyfile is present. For a reproducible rollout, pin a tested image version instead of tracking latest.
Developer hosts need Node.js 22+, tmux on macOS or Linux, and at least one supported agent. Native Windows session hosting via ConPTY is experimental; WSL is also supported. The December 2, 2026 releases include development builds for Controlled Nodes and Android variants with or without Firebase Cloud Messaging; the FCM build requires Google Play Services. Size the relay and PostgreSQL separately from agent hosts, where builds, embeddings, and concurrent sessions determine much of the load.
get_memory_sources retrieves evidence snippets.Developers and teams running multiple coding agents on infrastructure they control who need to resume work remotely, reuse context across providers, and keep review and release decisions visible.
SSH and tmux already solve the access problem, one native CLI meets your needs, or you require an SLA and production-proven shared context out of the box.
Quick Start & Installation
# Webhook → agent: GitHub webhook handler triggers code review curl -X POST https://your-server/webhook -d '{"pr": 42}' \ && imcodes send "Gemini" "review PR #42, write summary to /tmp/review.md" # CI → agent: post-build trigger imcodes send "Claude" "tests failed on main, check CI log at /tmp/ci.log and fix" --reply
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| imcodes ★ | 965 | — | TypeScript | — | A self-hosted relay and daemon for remote coding sessions and cross-agent contex |
| cc-switch | 159.1k | +1.7k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| herdr | 54.1k | +871 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| claude-code-router | 38.5k | +101 | TypeScript | MIT | Local model gateway for routing coding agents across providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/im4codes/imcodes.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about imcodes
Where do agent sessions run, and how do they get MCP tools?
Do I need a GPU, and how should I size the deployment?
Does self-hosting permit commercial use?
When is IM.codes worth running instead of SSH, tmux, or a native agent CLI?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy