
CodexMonitor is a Web app for orchestrating multiple Codex agents across local workspaces, backed by a local Rust service. It provides a sidebar to manage projects, a home screen for quick actions, and a conversation view backed by the Codex app-server protocol.
codex app-server per workspace, resume threads, and track unread/running state..codex-worktrees supported).$), prompts (/prompts:), reviews (/review), and file paths (@).gh (lists, diffs, comments) and open commits/PRs in the browser.codex in PATHgh) for the Issues panel (optional)Local backend options (choose one):
codex-monitor download a prebuilt codex_monitor_web binary on first run (no Rust needed).codex-monitor at it via --backend-path / CODEX_MONITOR_BACKEND_PATH.cargo (requires Rust toolchain).If the codex binary is not in PATH, update the backend to pass a custom path per workspace.
If you build the backend from source and hit native build errors, run:
npm run doctor
npm install -g @abigmiu/codex-monitor codex-monitor
Runtime requirements:
codex) available in PATHUseful flags:
--backend-only / --frontend-only--listen 127.0.0.1:4732--data-dir ~/.codexmonitor-web--token dev-token (or --no-token)--frontend-host 0.0.0.0--frontend-port 5176--default-workspace /workspace (or --no-default-workspace)--backend-path /path/to/codex_monitor_web--backend-cache-dir ~/.codexmonitor-web (where the backend binary is cached)User config (recommended for npm/global install):
~/.miu-codex-monitor.json to set defaults (CLI flags still override).{ "frontend": { "host": "0.0.0.0", "port": 5176 }, "backend": { "listen": "127.0.0.1:4732" }, "defaultWorkspacePath": "/workspace" }MIU_CODEX_MONITOR_CONFIG=/path/to/config.jsonDist artifact config (optional):
dist/codex-monitor.server.json can provide default host/port for the static frontend server when no CLI/user-config override is present.Backend download configuration:
CODEX_MONITOR_BACKEND_URL: direct URL to a platform-specific backend binaryCODEX_MONITOR_BACKEND_RELEASE_BASE: base URL for release downloads (by default taken from package.json codexMonitor.backendReleaseBase)CODEX_MONITOR_BACKEND_RELEASE_TAG: defaults to v<package-version>CODEX_MONITOR_BACKEND_ASSET: defaults to codex_monitor_web-<platform>-<arch>[.exe]CODEX_MONITOR_BACKEND_CACHE_DIR: where to store downloaded binariesCODEX_MONITOR_SKIP_BACKEND_DOWNLOAD=1: disable auto-download (CI/offline)CODEX_MONITOR_BACKEND_INSTALL_STRICT=1: make install-time download failures fail the npm installBackend release asset naming (recommended):
codex_monitor_web-darwin-arm64, codex_monitor_web-darwin-x64codex_monitor_web-linux-arm64, codex_monitor_web-linux-x64codex_monitor_web-win32-x64.exeNote: the npm install step runs a postinstall hook that downloads the backend binary. If you install with --ignore-scripts, the download is skipped and the backend will be fetched on first run instead (unless you disable downloads).
npm install
npm run build
npm install -g .
# or: npm link
codex-monitor
If you use npm link, logs can show your local repo path (symlink behavior). A published npm install will run from global node_modules.
cd src-tauri
TMPDIR=../.tmp cargo run --bin codex_monitor_web -- \
--listen 127.0.0.1:4732 \
--data-dir ~/.codexmonitor-web \
--token dev-token
VITE_CODEX_MONITOR_API_BASE=http://127.0.0.1:4732 \ VITE_CODEX_MONITOR_TOKEN=dev-token \ npm run dev
npm run build
If you access the frontend from another machine via a server domain, do not hardcode ws://127.0.0.1:4732 in the browser: 127.0.0.1 would point to the visitor's own machine.
Recommended: run backend on the server (can bind to 127.0.0.1:4732) and reverse-proxy /api/* and /rpc from your public web server (Nginx/Caddy) to the backend.
For a simple all-in-one static server (dev-friendly), scripts/serve-frontend.mjs can also proxy:
node scripts/serve-frontend.mjs --root dist --host 0.0.0.0 --port 5176 \ --proxy-backend http://127.0.0.1:4732 --token dev-token
Note: the codex-monitor launcher enables this reverse proxy by default (it passes --proxy-backend pointing at --listen).
npm login npm run pack:check npm publish --access public
Run the TypeScript checker (no emit):
npm run typecheck
Note: npm run build also runs tsc before bundling the frontend.
src/ features/ feature-sliced UI + hooks platform/ web platform adapters (rpc/dialog/opener/file src/etc.) services/ RPC wrapper used by features styles/ split CSS by area types.ts shared types src-tauri/ src/bin/codex_monitor_web.rs web backend (WS JSON-RPC + HTTP file endpoint) src/shared/ shared backend logic reused from daemon
workspaces.json under the app data directory.settings.json under the app data directory (Codex path, default access mode, UI scale).$CODEX_HOME/config.toml (or ~/.codex/config.toml) on load/save. Stable: Collaboration modes (features.collaboration_modes), personality (personality), Steer mode (features.steer), and Background terminal (features.unified_exec). Experimental: Collab mode (features.collab) and Apps (features.apps).thread/list results using the workspace cwd.thread/resume to refresh messages from disk.cwd matches the workspace path; they are not live-streamed unless resumed.codex app-server over stdio; see src-tauri/src/bin/codex_monitor_web.rs.~/.codex); if a legacy .codexmonitor/ exists in a workspace, it is used for that workspace.worktrees/<workspace-id>); legacy .codex-worktrees/ paths remain supported, and the app no longer edits repo .gitignore files.localStorage.$CODEX_HOME/prompts (or ~/.codex/prompts) with optional frontmatter description/argument hints.Frontend calls live in src/services/tauri.ts and map to RPC methods handled by src-tauri/src/bin/codex_monitor_web.rs. Core commands include:
list_workspaces, add_workspace, add_worktree, remove_workspace, remove_worktree, connect_workspace, update_workspace_settings.start_thread, list_threads, resume_thread, archive_thread, send_user_message, turn_interrupt, respond_to_server_request.start_review, model_list, account_rate_limits, skills_list.get_git_status, get_git_diffs, get_git_log, get_git_remote, list_git_branches, checkout_git_branch, create_git_branch, list_workspace_files.