| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Multi-agent harness for AI coding agents — multi-session, multi-frontend, with cross-session memory.
Run N parallel coding-agent sessions across repos — Claude Code by default, with Codex, Gemini, OpenAI, and pi as drop-in backends. Switch between them from a terminal cockpit, a web UI, or Telegram. Memory persists across sessions, so each agent inherits what the last one learned. Every action is auditable, and with ZeroID every agent and sub-agent carries a cryptographic identity.
bun install -g @highflame/codeoid
codeoid start --local # no account, no login, no config — running in secondsThat's the whole first run. Add real identities whenever you're ready.
Terminal client lives in its own repo. The recommended cockpit is codeoid-tui — a native Rust/Ratatui client that speaks the daemon's WebSocket protocol. A built-in codeoid tui (Ink/React) ships in this repo as a zero-install fallback. See Terminal client.
codeoid-tui, the native Rust cockpit, tracking 12 parallel sessions at once. The same sessions open in a browser and on Telegram — one daemon, one source of truth.
That's it for the local path. No account, no identity provider, nothing to sign up for.
Pick one path. This guide writes every command as codeoid <cmd> (the global install); from a source checkout, run bun src/cli.ts <cmd> instead — they're interchangeable. Don't mix the two.
A. From npm — recommended, to just use it. Codeoid runs on Bun, so install it with Bun (npm also works, as long as Bun is on your PATH — it's the runtime):
bun install -g @highflame/codeoid # or: npm install -g @highflame/codeoid
codeoid --help # confirm it's on your PATHIf codeoid isn't found afterward, your global-bin directory isn't on PATH — add Bun's (~/.bun/bin) to it, or use path B.
Renamed. codeoid used to publish as the unscoped codeoid package. It now ships from the Highflame org as @highflame/codeoid; the old package is frozen at 0.3.4 and gets no further releases. The command is still codeoid. npm cannot move a package between scopes, so this is a new package rather than a transfer — bun update will not carry you across, and neither will anything still depending on the old name.
B. From source — to hack on it. Clone, then run bun install before anything else:
git clone https://github.com/highflame-ai/codeoid.git
cd codeoid
bun install # REQUIRED first — pulls commander and the rest⚠️ Skipping bun install and running bun src/cli.ts … straight from a fresh clone fails with error: ENOENT while resolving package 'commander'. Run bun install once in the checkout and it's fixed.
Codeoid has exactly two, and you pick at startup. Start with local; graduate when you need identity.
| Local — codeoid start --local | ZeroID — codeoid start | |
|---|---|---|
| Setup | none | codeoid login with a key |
| Best for | trying it, solo work on your own machine, demos | real work, teams, anything audited or shared |
| Identity per agent + sub-agent | ❌ self-asserted operator | ✅ cryptographic (SPIFFE/WIMSE) |
| Delegation, scope attenuation, revocation | ❌ | ✅ |
| Audit attribution | records every action; principal self-asserted | cryptographically attributable |
| Reachable from other machines | loopback only | ✅ |
| Telegram frontend | ❌ | ✅ |
| Memory, every backend, fork, conductor, telemetry, TUI + web | ✅ | ✅ |
Everything that isn't about identity works identically in both. Scope enforcement is the same code path in both — local mode changes the issuer, not the mechanism.
codeoid start --localThe daemon mints a one-off token, prints it, publishes it to ~/.codeoid/local-token-<port> (mode 0600), and binds 127.0.0.1 only. Then, from another terminal:
codeoid tui # the cockpit — token picked up automaticallyor drive it one command at a time:
codeoid new demo . # a session in the current directory
codeoid send demo "what does this repo do?"
codeoid lsor open http://localhost:7400/ui/ — already signed in, because the daemon hands the page its token.
What --local is and isn't. It is not "auth off": the daemon runs agents with shell and file-write access, so a token-less port would be an RCE surface for any local process. The minted token, the 0600 file, and the loopback bind are the Jupyter model — and none of them cost you a setup step. A non-loopback --host is refused unless you explicitly pass --local-allow-remote.
Two things to know before you invest work in it:
→ Full local-mode reference — trust model, the tenant boundary, how clients find the token, and the design invariant.
You need a ZeroID key. Two ways to get one.
Option 1 — Highflame SaaS (recommended, no infra)
Sign up at highflame.ai and open Studio → Code Agents.
Create a code agent and mint its key — you'll get a zid_sk_..., shown once, so copy it now.
Log in — Codeoid ships pointing at the Highflame SaaS issuer, so there's nothing else to configure:
codeoid login # prompts for the key (hidden), verifies it, saves to ~/.codeoid/config.jsonOption 2 — Self-hosted ZeroID (local, ~2 min)
ZeroID is open source. Bring it up with Docker, mint a key, then point Codeoid at it.
First, in a directory outside your Codeoid checkout, run ZeroID:
git clone https://github.com/highflame-ai/zeroid
cd zeroid
make setup-keys # generate the ECDSA/RSA signing keys
docker compose up -d # starts Postgres + ZeroID on :8899
curl http://localhost:8899/health # → {"status":"healthy",...}
# Then register an agent to mint a key (zid_sk_…, shown once) — use the
# ZeroID SDK / API from its quickstart, e.g.
# client.agents.register(name="codeoid", created_by="you@example.com")Then, back in Codeoid, log in against your local issuer with that key:
codeoid login --zeroid local # localhost:8899
# ...or any deployment:
codeoid login --zeroid https://zeroid.mycorp.com--zeroid accepts a preset (highflame, highflame-dev, local) or any URL. The issuer is pinned to whatever you log in against — a token minted by any other issuer is rejected. login exchanges the key on the spot and prints the subject + granted scopes so you know it works before the daemon ever starts.
The daemon fetches the issuer's JWKS to verify tokens, so wherever ZeroID runs must be reachable from the daemon.
Then start it:
codeoid start # no --localEach client authenticates itself — not just the daemon. codeoid login authorizes the daemon (saved to ~/.codeoid/config.json). A browser or Telegram client is a separate client under the same zero-trust model, so the web UI's first-run splash asks for a credential too — paste the same zid_sk_... key (or a scoped share token) once; the browser remembers it and exchanges it for a short-lived JWT to talk to the daemon. Logging in on the CLI does not carry over to the browser. (In local mode this step disappears: the daemon hands the browser its token directly.)
Any of these, against either posture:
# Recommended: the native Rust cockpit (separate repo).
# git clone https://github.com/highflame-ai/codeoid-ui && cd codeoid-ui
# cargo run -p codeoid-tui --release
#
# Or the built-in fallback TUI (Ink/React, no extra install):
codeoid tuiOr browse to http://localhost:7400/ui/ for the web UI. Telegram is available on the ZeroID path — set TELEGRAM_BOT_TOKEN + TELEGRAM_ALLOWED_USER_IDS in ~/.codeoid/.env.
codeoid new feat-a . --worktree feat-a # a session in its own git worktree
codeoid new feat-b . --worktree feat-b # a second one, in parallel — same workspace memoryThen, in a session: ask it something, and in the next session ask what did we learn about X yesterday? — recall returns the real bytes, not a summary. /who prints the identity chain (rich on the ZeroID path, honest about being self-asserted on the local one).
You're orchestrating AI coding agents. Codeoid solves the things Claude Code's single-terminal experience can't:
Codeoid isn't a general-purpose IDE assistant. It's built for long-horizon, multi-session agent work, where context continuity and token economics matter more than inline code actions — so it optimizes for what the tools you already use don't: verbatim cross-session memory, parallel sessions on one control plane, a cryptographic identity per agent and sub-agent, and per-turn token economics.
Its closest peer is Omnigent, another multi-harness meta-harness — both run Claude, Codex, Gemini, OpenAI, and pi. They optimize for different things. Omnigent leans on breadth and isolation: the widest harness set (incl. Cursor, OpenCode, Hermes), an OS-level sandbox, and credential brokering. Codeoid leans on memory and identity: workspace-scoped verbatim recall, a cryptographic identity per agent and sub-agent (ZeroID), and per-turn token economics — reachable from a terminal, a browser, or your phone. Rule of thumb: reach for Omnigent when you need OS-level isolation and the broadest harness set; reach for Codeoid when you want persistent cross-session memory and per-agent audit for long-horizon work.
📊 Full capability matrix → — feature by feature against Claude Code CLI, the VSCode extension, Cursor, Aider, and Omnigent.
Claude is the default and always available. Every other backend is opt-in and auto-detected:
Pick a backend per session with codeoid new <name> --provider <id>, or switch a live session with /provider <id>. Set keys from the Settings screen (⚙ / /settings) or by editing ~/.codeoid/.env — see Configuration for every variable.
Claude — default, always on (Anthropic)Gemini needs an API key (or Vertex) — a consumer Google (AI Pro/Ultra) subscription can't be used with Codeoid. Both Gemini backends authenticate with GEMINI_API_KEY / GOOGLE_API_KEY (from AI Studio) or Vertex. The difference is capability: gemini-cli runs the full Gemini CLI over ACP (streaming + its own tools/MCP), while gemini is a lightweight in-daemon API client.
Nothing to install — it runs in-process via the Claude Agent SDK. Just authenticate one of two ways:
Models: the aliases opus / sonnet / haiku, or any full claude-* id (codeoid new work --provider claude, then /model opus).
Gemini CLI (gemini-cli) — the richer Gemini backend (API key / Vertex)Runs the full Gemini CLI over ACP — streaming plus its own tools/MCP — so it's a fuller Gemini experience than the lightweight in-daemon gemini backend.
Override the binary with providers.geminiCli.command, or disable it with providers.geminiCli.enabled: false in config.json. Driven over ACP (gemini --acp).
Codex (codex) — OpenAI Codex CLIOverride with providers.codex.command, disable with providers.codex.enabled: false. Codex's native approval/sandbox default is derived from the session mode; pin it with CODEX_APPROVAL_POLICY (untrusted / on-request / never) and CODEX_SANDBOX_POLICY (read-only / workspace-write / danger-full-access).
pi (pi) — the pi coding agentOverride with providers.pi.command, disable with providers.pi.enabled: false. PI_CONFIG_DIR relocates pi's config/credential directory.
OpenAI (openai) — API keyAn in-daemon backend that talks to the OpenAI API. Set OPENAI_API_KEY=sk-… in ~/.codeoid/.env (or via the Settings screen). The backend registers only when the key is present. Billed against the key.
Gemini (gemini) — API keyA lightweight in-daemon backend that talks to the Gemini API. Set GOOGLE_API_KEY=… (or GEMINI_API_KEY) in ~/.codeoid/.env; it registers only when the key is present. For a fuller agent (streaming + tools) on the same key, use gemini-cli above.
Claude is the default backend; Codex, Gemini, OpenAI, pi, and the Gemini CLI plug into the same session interface.
In one Bun process the daemon brokers everything between your clients and Claude, and owns three subsystems:
Each session drives its own provider backend — the Claude Agent SDK by default, or Codex, Gemini, OpenAI, pi, or the Gemini CLI, all behind one SessionProvider interface (adding a backend is one factory + one register()). The diagram above shows how the pieces fit.
Auth is a single seam: one TokenVerifier converts a bearer token into an AuthContext, and every enforcement site downstream reads that data without knowing which issuer produced it. That's what lets local mode be a second implementation rather than a bypass — see the design invariant.
Sessions are daemon-owned. Clients are stateless; they attach, receive scrollback replay, and stream live deltas. Detach and re-attach from anywhere.
Full detail — keybindings, slash commands, ranking weights, rotation thresholds — lives in docs/FEATURES.md. The highlights:
Memory & context
Sessions & control
Identity & resilience
One daemon, one source of truth, three ways in: the terminal cockpit (shown at the top), a browser, and Telegram. Device handoff lets you start on one and pick the session up on another — scrollback replays.
The SolidJS web UI at localhost:7400/ui — session list on the left, live log in the center, a metrics strip on top (turns, tokens, cache reads, cumulative cost).
The same session on a phone, in the Telegram mini app — identical scrollback, a live header, served by the bot over the same WebSocket.
Full keybindings, slash commands, and the Telegram command set → docs/FEATURES.md.
Codeoid reads ~/.codeoid/config.json and environment variables; env-only secrets (like the Telegram bot token) live in ~/.codeoid/.env so they survive daemon restarts. Every client action is gated by a permission scope — identically in both auth postures — and on the ZeroID path scopes attenuate into revocable read-only share tokens for teammates.
→ Configuration & permission scopes — every environment variable, the config.json schema, the ~/.codeoid/.env file, and the full scope list. → Local mode — the no-ZeroID posture in full.
Commands below use the global install (codeoid). From a source checkout, replace codeoid with bun src/cli.ts.
codeoid start [--port 7400] [--host 127.0.0.1] [--no-telegram] [--no-web]
--local # no ZeroID: mint a token, loopback only, no login
--local-allow-remote # allow --local on a non-loopback bind (unsafe)
codeoid login [key] [--zeroid <preset|url>] # save + verify a ZeroID key
codeoid tui # Launch the cockpit TUI
codeoid ls # List sessions
codeoid new <name> [workdir] # Create session
--worktree <branch> # auto-spawn a git worktree
--repo <path> # worktree source (default: cwd)
--worktree-dir <path> # override target dir
--provider <id> # pick a backend for this session
codeoid attach <session> # Readline streaming attach
codeoid send <session> <message...> # One-shot send
codeoid interrupt <session> # Interrupt
codeoid approve <session> [--deny] # Approve / deny pending tool
codeoid destroy <session> # Destroybun install # install deps
bun run dev # run daemon with --watch
bun run build # build to dist/
bun run typecheck # type check
bun run lint # lint with biome
bun test # run unit tests (memory, attachments, etc.)| Area | File |
|---|---|
| CLI + command routing | src/cli.ts |
| Daemon HTTP + WebSocket | src/daemon/server.ts |
| Auth seam (verifier interface) | src/daemon/verifier.ts |
| ZeroID verification | src/daemon/auth.ts |
| Local mode (no-ZeroID posture) | src/daemon/local-auth.ts |
| Session orchestration | src/daemon/session-manager.ts, src/daemon/session.ts |
| Memory engine | src/daemon/memory/ |
| Attachments + limits | src/daemon/attachments.ts |
| Git worktree helper | src/worktree.ts |
| Web UI server (serves web/dist at /ui) | src/frontends/web-ui/index.ts |
| Web UI app (SolidJS) | web/ |
| Telegram bot | src/frontends/telegram/index.ts |
| Built-in TUI (Ink, legacy fallback) | src/tui/ |
| Native TUI (Rust, recommended) | highflame-ai/codeoid-ui |
| Protocol types | packages/protocol/src/types.ts |
PRs welcome — see CONTRIBUTING.md. For vulnerabilities, see SECURITY.md (please don't open public issues for security).
MIT © Codeoid
Powered by ZeroID with pluggable agent backends (default Claude Agent SDK). Terminal cockpit: codeoid-tui.
| Back | FazBrowse Home | New Git URL |