Skip to content
项目

关于

Self-hosted web UI & PWA for Claude Code, Codex, Gemini (ACP) & opencode — Multi-Repo Coding Workspaces, 11 languages + RTL, Skill & MCP Firewall, Adversarial Verification, OpenSpec, Web PTY, Telegram approvals, OS sandbox & Temporal pipelines.

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Teleharness: self-hosted web UI for Claude Code, Codex, Gemini (ACP) and opencode, with optional mobile PWA

Teleharness — Self-Hosted Web UI for Claude Code, Codex, Gemini (ACP), and opencode

Run your local coding CLIs from one browser tab using the subscriptions you already pay for. Multi-repo coding workspaces, 11 UI languages with Arabic RTL (English default), Skill & MCP Firewall + Taint Mode, Adversarial Cross-Model Verification, OpenSpec & MCP Control Plane, Web Terminal (PTY), Telegram approvals, OS sandboxing, Cross-CLI relay, and self-healing Temporal pipelines.

Multi-CLI Chat · Coding Workspaces · 11 Languages + RTL · Skill & MCP Firewall · Adversarial Verify · OpenSpec & MCP · PTY & Telegram · Temporal Pipelines

npm Docker Release CI SAST & OSS OpenSSF Scorecard License: MIT Node Platforms

Website • Live Demo • Try in 10s • Comparison • Features • Visual tour • Quick start • Security • Architecture • Configuration • Русский

Teleharness desktop walkthrough: Multi-CLI Chat, Multi-Repo Coding Workspaces, Dev Services Radar, Skill & MCP Firewall, 11 Languages + Arabic RTL, Attention Board, OpenSpec Workbench, Cross-CLI MCP Control Plane, Web Terminal PTY, Telegram Bridge, and Temporal Pipelines

Try it in 10 seconds

Runs on synthetic demo chats in a temporary directory. No agent CLIs, no API keys, nothing written to your home folder.

1. Instant browser demo (0 seconds, no install):

👉 Open Teleharness Live Demo — interactive SPA sandbox right in your browser (chats, Multi-Repo Coding Workspaces & Dev Services Radar, Skill & MCP Security Firewall, 11 languages + Arabic RTL, Attention Board, Adversarial Verification, OpenSpec Workbench, MCP Control Plane, Telegram Bridge, Web Terminal PTY, Systemd UI, Security Sandbox 11/11, diff review, worktrees, costs, Temporal pipelines).

2. Node.js ≥ 22:

npx teleharness --demo
# → http://127.0.0.1:4180/teleharness/  (token: demo-demo-demo-demo)

3. Docker (pre-built multi-arch image — amd64 / arm64):

docker run --rm -p 4180:4180 al3x4kov/teleharness
# → http://127.0.0.1:4180/teleharness/  (token: demo-demo-demo-demo)
# Mirror: ghcr.io/al3x4kov/teleharness · Full self-hosted stack: docs/docker.md

4. Free-tier cloud sandbox (read-only demo via render.yaml):

Deploy to Render


How Teleharness compares

Teleharness launches the real local CLIs installed on your machine (keeping their skills, MCP servers, hooks, and project files) instead of proxying requests through a metered API.

Capability Teleharness T3 Code Paseo Happy CloudCLI AionUi OpenChamber
Uses existing CLI subscriptions Yes (4 families) Yes Yes (+40 ACP) Yes (+ACP) Yes Yes (20+ CLI) OpenCode + Claude
Cross-CLI handoff on quota limit Manual & Auto-Relay Switch in thread No No No No Multi-run compare
Durable pipelines & schedules Yes (Temporal + Verify Gate + Self-Healing Supervisor + GitHub Taint) No No No No No No
Workspaces, Attention Board, Diff Review & Worktrees Yes (Multi-Repo Coding Workspaces + Dev Services Radar, Cross-Model Verify, dry-run conflicts) Threads + Worktrees Split diff + Worktrees Session list Git + editor Chat + channels Guided diff
Multi-tenant OS sandbox, Firewall & privacy MIT, 0 telemetry, OS sandbox + Skill/MCP Firewall + Egress Proxy + 11/11 selftest, SAST MIT, telemetry on Custom, 0 telemetry MIT, E2E relay AGPL-3.0 Apache-2.0 MIT
Clients, localization & instant tryout Web/PWA (11 langs + RTL), Web Terminal (PTY), Telegram Bridge, 0-click Demo, Docker Hub/GHCR Web, Desktop, iOS/Android Web, Desktop, iOS/Android Web, Desktop, iOS/Android Web + PTY terminal Desktop, Web, Telegram/Lark Web/PWA, Desktop, VS Code

Honest trade-offs: T3 Code, Paseo, and Happy ship native iOS/Android apps (and Happy offers an E2E cloud relay); AionUi also supports Lark/Feishu channels. Teleharness's edge is durable Temporal pipelines with Adversarial Cross-Model Verification & a self-healing Supervisor Agent, Auto-Relay across CLI subscriptions, Multi-Repo Coding Workspaces & Dev Services Radar, 11-language UI with Arabic RTL, OpenSpec Workbench + Cross-CLI MCP Control Plane, Web Terminal (PTY) + Telegram approval bridge + Systemd UI, multi-tenant OS sandbox with Skill/MCP Security Firewall, Taint Mode, egress proxy, memory guard, 11/11 selftest & SAST CI, and 0-click browser demo + multi-arch Docker.


What it does

  • Four CLI families in one window (11 languages + Arabic RTL, English default): Claude Code, Codex, Gemini/Copilot (ACP), and opencode run side by side with live tool steps, subagent cards, an MCP/Skills/Plan/Dev Services side panel, SQLite FTS5 search, Office/PPTX preview, Obsidian vault cache, optional local CPU voice, and 11 UI languages (en default, ru, zh-CN, ja, ko, de, fr, es, pt, hi, ar with RTL) synced per user across devices.
  • Multi-Repo Coding Workspaces & Dev Services Radar: server-side Workspace Registry auto-discovers Git/OpenSpec repositories across multiple programming languages and stacks (TypeScript/Node, Python, Go, Java, Docker, and more) and disambiguates duplicate folder names; multi-branch Git (fetch/switch/create) + cross-repo OpenSpec overview; admin-only Dev Services & Debugger Radar (local dev servers, Docker containers, Node/Python/Go/LLDB/GDB debuggers, .teleharness/services.json) with one-click SSH tunnels and IDE attach snippets.
  • Attention Board, Diff Review, Adversarial Verification & Plan-First: all sessions and runs are grouped into Waiting, Working, Done, and Failed with a side preview pane, inline diff comments by line range, read-only plan approval before files are edited, and one-click Adversarial Cross-Model Verification (an independent CLI family checks the diff in an ephemeral read-only context against optional OpenSpec criteria, returning a fail-closed pass/fail/needs_human verdict with findings you can turn into inline review comments).
  • Git worktrees and cost accounting: parallel chats work in separate git worktrees with file-overlap warnings and dry-run conflict checks. Cost tracking compares API-equivalent token spend against your flat subscriptions.
  • Cross-CLI Relay (manual and automatic): when a Claude or Codex quota limit hits mid-task, continue the same thread in the same folder on another CLI or fallback model. (Details)
  • OpenSpec Workbench + Beads & Cross-CLI MCP Control Plane: track OpenSpec changes, canonical specs, drift, and toggle tasks.md checklists across repositories from the UI; manage MCP servers across Claude Code, Codex, OpenCode, and ACP with drift diffing, live token budget meter, profiles, and snapshot rollbacks.
  • Mobile Web Terminal (PTY), Telegram Bridge & Systemd Lite UI: admin-only interactive browser shell (WebSocket + SSE fallback, mobile modifier bar), one-tap Telegram approval/question notifications with secret redaction & danger guard, and Linux systemd units/timers/journald inspection.
  • Shared Portal Security & Skill/MCP Firewall: fail-closed tenant OS sandbox (Linux Docker / macOS Seatbelt), host egress proxy with domain approval workflow, Memory Guard for protected instruction files, 11-probe sandbox selftest, Codex gate, redacted audit journal, plus Skill & MCP Security Firewall (16-rule static scanner for BiDi/zero-width/prompt-injection/curl-pipe/secret-harvest/unsafe-MCP, SHA-256 lockfile rug-pull detection, fail-closed MCP sync gate, and external GitHub trigger Taint Mode approval gates).
  • Temporal pipelines, Adversarial Verify Gate, Self-Healing Supervisor & GitHub background agents (optional): chain Claude, Codex, Gemini (ACP), opencode, allowlisted shell commands, cross-family Verify gates (block / approve + rework loop / report), and human approval gates into durable workflows that survive restarts, resume from any step, and trigger from GitHub issues or failed CI. An optional detached Pipeline Supervisor Agent (TeleharnessPipelineSupervisorV1) watches each run with zero LLM quota usage while healthy; on FAILED/TIMED_OUT it opens a scoped healing agent chat, diagnoses and fixes the root cause, and automatically resumes from the failed step (1–5 attempts, recursion-guarded, one-click Stop) or escalates to the Attention Board, Telegram, and Web Push. (Details)

Full screen-by-screen walkthrough and feature table: Visual Tour (docs/tour.md).


Quick start

[!TIP] Step-by-step setup for Linux, macOS, and Windows (all 4 engines, Worktrees, Obsidian cache, Temporal, GitHub triggers, HTTPS + QR PWA, autostart): docs/installation.md (по-русски).

Requirements

Version For
Node.js ≥ 22.5 (22 LTS / 24 LTS) portal server & built-in SQLite FTS5 search/costs/board
Git ≥ 2.20 Git screen, diff review, isolated Worktrees
opencode 2.x (tested with 2.2.6+ / 2.3.0) opencode engine
Claude Code 2.x Claude engine
Codex CLI 0.169+ optional, Codex engine
ACP CLI (gemini / copilot / custom) latest optional, configured in Settings → ACP Agents
Python 3.11+ optional, local CPU voice & Temporal pipeline worker

You only need at least one engine installed (or none for --demo).

One command

npx teleharness                                # → http://127.0.0.1:4180/teleharness/

Checks Node, stores state in ~/.teleharness, serves the prebuilt UI bundle (or rebuilds on demand), detects installed CLIs, and prints the admin login token. Flags: --demo, --port N, --host 0.0.0.0, --rebuild.

From source

macOS / Linux
git clone --branch v2.24.9 https://github.com/al3x4kov/teleharness.git
cd teleharness
npm ci && npm run build

cp .env.example .env               # every value is optional

opencode auth login                # opencode
claude setup-token                 # put token into .env as CLAUDE_CODE_OAUTH_TOKEN

./ops/opencode/serve-v2.sh &       # opencode 2.x on 127.0.0.1:4196
./ops/web-v2.sh                    # → http://127.0.0.1:4170/teleharness/
Windows (PowerShell)
git clone --branch v2.24.9 https://github.com/al3x4kov/teleharness.git
cd teleharness
npm ci; npm run build

Copy-Item .env.example .env        # every value is optional

opencode auth login
claude setup-token

$env:OPENCODE_SERVER_PASSWORD = [guid]::NewGuid().ToString('N')
Start-Process opencode -ArgumentList 'serve','--hostname','127.0.0.1','--port','4196'

$env:TELEHARNESS_OC_API = 'v2'; $env:TELEHARNESS_UPSTREAM = 'http://127.0.0.1:4196'; $env:TELEHARNESS_OC_PASSWORD = $env:OPENCODE_SERVER_PASSWORD
node server.js                     # → http://127.0.0.1:4170/teleharness/
Docker (full self-hosted stack)
git clone --branch v2.24.9 https://github.com/al3x4kov/teleharness.git && cd teleharness
docker compose --profile selfhosted up -d --build
docker compose --profile selfhosted logs teleharness | grep -i "admin token"
# → http://127.0.0.1:4170/teleharness/  (Temporal UI: http://127.0.0.1:8233)

Includes Claude Code CLI, Codex CLI, bundled OpenCode 2.x server, Git/Worktrees, gh, offline Voice runtime (Piper TTS + GigaAM v2 STT), and Temporal durable pipelines with PostgreSQL ledger. Engine logins (claude login, codex login, gh auth login) persist in /data/home. Optional: --profile voice-init (download voice models), --profile tls (Caddy HTTPS), INSTALL_RENDER=1 (LibreOffice + Chromium). Full guide: docs/docker.md.

[!NOTE] The portal is served under /teleharness/; all options are TELEHARNESS_* environment variables (.env.example). macOS launchd notes: docs/macos.md. Linux systemd unit: ops/linux/teleharness.service.

Platform support

macOS Linux Windows
Portal, opencode, Claude, Codex, ACP, diff review, worktrees, push yes yes yes
Temporal pipelines & GitHub Background Agents (optional) yes yes —
Obsidian active cache, local CPU voice yes yes yes
Multi-user non-admin shell sandbox disabled (fail-closed) optional per-user runner AppContainer sandbox

Security model

  • Single-user on localhost / Tailscale: Teleharness runs under your own OS user over your local CLIs. No tenant sandbox is needed, and all engines work the same on macOS, Linux, and Windows.
  • Multi-user / shared server: non-admin accounts get isolated folders, quotas, and MCP sets; shell execution is fail-closed unless you configure the Linux per-user runner (ops/sandbox/linux) or Windows AppContainer. See SECURITY.md.
  • Skill & MCP Security Firewall + Taint Mode: built-in 16-rule static scanner for skills, MCP definitions, and external trigger payloads (Unicode BiDi/Tags/zero-width smuggling, prompt injection, curl|sh / base64 remote exec, secret harvesting, insecure MCP transports), atomic 0600 SHA-256 lockfile rug-pull detection, fail-closed MCP sync gate, and mandatory human approval before command / pull_request steps run on tainted external GitHub triggers.
  • Continuous SAST & OSS supply-chain CI: every push and PR runs CodeQL (JS/TS, Python, Actions), Trivy, OSV-Scanner, npm audit, Gitleaks, and OpenSSF Scorecard (Scorecard report), with weekly Dependabot updates and SHA-pinned workflows/Docker base images.

Architecture

Teleharness components: desktop web UI and optional mobile PWA, portal with SQLite FTS5/costs/board, Multi-Repo Coding Workspaces & Dev Services Radar, Skill & MCP Firewall, four CLI engine families, Obsidian, voice, sandbox, GitHub and Temporal pipelines

  • Backend (server.js, lib/, routes/): zero-dependency Node.js stdlib (node:http, SSE with replay, built-in node:sqlite FTS5, attention board, costs, Multi-Repo Workspace Registry, Dev Services Radar, Skill & MCP Firewall, Git/Worktrees) and one adapter per engine family (lib/oc-client.js, claude CLI runner, codex-shim.mjs, lib/acp-chat.js).
  • Frontend (src/ → public/): Preact + Signals bundled with esbuild, light/dark themes, 11 UI languages with Arabic RTL (English default, lazy-loaded public/locales/*.json), optional mobile PWA.
  • Optional add-ons: Obsidian vault cache, local Python CPU voice worker (Piper TTS / GigaAM STT), Temporal pipeline worker (docs/temporal.md).

Layer diagram and search pipeline: docs/tour.md#architecture-diagrams. Architecture notes: docs/architecture.md, specs: openspec/specs/.


Configuration

Settings are schema-validated in lib/config.js; template in .env.example.

Variable Default Purpose
PORT 4170 (4180 via CLI) portal port
TELEHARNESS_DEMO 0 set 1 to run instant synthetic demo mode
TELEHARNESS_UPSTREAM http://127.0.0.1:4196 opencode serve 2.x URL
TELEHARNESS_OC_API v1 v2 for opencode 2.x
TELEHARNESS_OC_PASSWORD — HTTP Basic password for opencode 2.x
CLAUDE_CODE_OAUTH_TOKEN — Claude subscription token (claude setup-token)
TELEHARNESS_ADMIN_TOKEN generated admin login token
TELEHARNESS_PUBLIC_URL — HTTPS URL for optional phone QR pairing
TELEHARNESS_KB_ROOT off Obsidian vault path for active cache

Example agent configs (Claude Code + opencode): config/ (./config/install.sh / ./config/install.ps1).


Development

npm test                 # unit, UI components (happy-dom), server and edge tests
npm run build            # esbuild → public/app.js, public/app.css
npm run demo             # synthetic demo on fixtures-demo/

See CONTRIBUTING.md and CHANGELOG.md.

Built with

opencode · Claude Code · Codex CLI · Temporal · Preact · esbuild · marked · DOMPurify · highlight.js

License

MIT. Bundled third-party files keep their licenses: openspec-* / opsx-* — MIT (OpenSpec), dogfood — Apache-2.0.

探索相关项目

加载中…