Let ChatGPT or Claude work on your private code — and nothing lands until you review and accept it. The AI edits and tests in an isolated workspace on your machine; you see the diff and click Accept. That review gate is the whole point: coding tools that let a model write straight to your repository cannot retrofit it.
ChatGPT / Claude (web chat)
│ MCP or GPT Actions over HTTPS
▼
WebCodex server ──▶ local Agent: edit → run checks → propose result
│ (isolated workspace, never your checkout)
▼
You: browser console or CLI ── review the diff ──▶ Accept ✓ / Reject ✗
│ accept only
▼
Your repository
- Human review gate — results stay isolated until you accept them, from
the
/consoleweb UI orwebcodex task accept. - Everything stays on your machine — source, Git, edits, and checks run on the host that owns the repository; the server exposes twelve bounded, audited capabilities instead of a raw shell.
- Built for real work — LSP navigation, structured edits with sha256 guards, project-aware check recipes (Rust/Node/Python/Go), idempotent retries, and a full per-task event timeline.
| ChatGPT drives a task over MCP | Review and accept locally |
|---|---|
![]() |
![]() |
WebCodex lets a coding client work on private code through a project-scoped server and local Agent. Source files, Git operations, edits, and checks remain on the machine that owns the repository.
On supported Linux x64 systems:
npm install -g @yyjeqhc/webcodexOr build every binary from source:
cargo build --release --workspace --bins
export PATH="$PWD/target/release:$PATH"See docs/BUILD_INSTALL.md for installation details.
| Goal | Recommended path |
|---|---|
| Try WebCodex with one local project | Use the three project commands below. This path needs no systemd service, database setup, or public port. Add a trusted HTTPS tunnel only when connecting a hosted chat. |
| Keep WebCodex online or connect another machine | Use the long-running self-hosting path. It adds a Linux service, public HTTPS, and pairing/enrollment; OAuth is optional, not a first-deployment prerequisite. |
The packaged 0.3.0 path currently assumes Linux x64. A production installation
also assumes systemd, sudo, and an HTTPS domain or trusted tunnel; v0.3.0 does
not include a Docker Compose deployment or managed cloud service.
Run the following from the Git project you want to expose:
webcodex setup
webcodex doctor
webcodex agent startsetup creates minimal private state outside the checkout. It does not modify
Git content, start a background service, open a port, edit shell startup files,
or send project files anywhere. Running it again is safe: valid configuration
is preserved, missing pieces are repaired, and conflicting state fails closed.
The private state contains one exact Project Credential shared by this
project's Connector and Agent. It is never printed and an arbitrary Bearer
token cannot substitute for it.
doctor is read-only. Immediately after setup it normally reports that the
local Agent still needs to start and gives the exact next command.
agent start is the explicit foreground action that starts the project-bound
loopback runtime and Agent. Leave that terminal open. In another terminal:
webcodex statusThe default output uses only product concepts: Project, Connection, Agent, Capabilities, readiness, and the next action. It does not print credentials, client IDs, runtime project IDs, executor references, workflow sessions, or transport details.
The complete walkthrough is in docs/QUICK_START.md.
The runtime listens on loopback; hosted ChatGPT/Claude need a public HTTPS URL. Any tunnel you trust works:
cloudflared tunnel --url http://127.0.0.1:8080Open https://<tunnel-host>/console and use the Connect a chat client
panel: it renders the exact MCP URL for Claude (Settings → Connectors → Add
custom connector) and the GPT Actions schema URL for ChatGPT (Create a GPT →
Actions → Import from URL), with copy buttons. Authentication stays the
Project Credential from setup — the console never displays it. Set
WEBCODEX_PUBLIC_URL when the advertised schema should pin a fixed public
address.
For a persistent installation, use this order:
- Install the three binaries on the Linux server and on every machine that owns repositories.
- Initialize the server environment and install the
webcodexsystemd unit. - Put Nginx, Caddy, or another trusted reverse proxy in front of the loopback
server, enable HTTPS, and set
WEBCODEX_PUBLIC_URL. - Create a short-lived pairing code on the server; enroll each repository machine with that code instead of copying long-lived credentials.
- Install the
webcodex-runnerservice on each repository machine and finish withwebcodex ops status --strict.
The exact commands and rollback-safe credential rules are in docs/DEPLOYMENT.md. OAuth2 is an optional later step for delegated client login; PAT authentication is sufficient for the first single-operator deployment.
A configured MCP/OpenAPI Connector exposes exactly twelve project-bound capabilities:
task_start
→ files_list
→ files_read / files_search
→ edits_apply
→ checks_run
→ task_finish
→ task_review
→ task_cancel (when needed)
The same chat window continues its current repository work automatically.
Switching to another configured repository changes the active project without
closing the first task; returning to the first repository restores its prior
context. Each follow-up instruction is appended to the durable task history,
and WebCodex selectively refreshes Git, worktree, manifest, and repository-rule
state before reuse. task_list and task_resume remain recovery tools for a
lost transport identity, not ordinary setup steps.
The configured Connector context resolves the project deterministically.
Ordinary coding does not need list_projects, runtime_status,
tool_manifest, start_session, current_session, Agent listing, or project
registration calls.
webcodex setup selects this ordinary-user surface with
WEBCODEX_CONNECTOR_SURFACE=task-v1. A server started without Connector
configuration serves the focused local_coding surface on /mcp by default;
the explicit WEBCODEX_MCP_MODEL_SURFACE=full-operator-v1 selects the full
operator runtime. GET /mcp, MCP initialize, and runtime_status.model_surface
all identify the active surface. On local_coding, work_on_project is the
ordinary entry point: one call returns the repository rules, a deterministic
repository structure overview (project types, manifests, key files, roots, and
project-relative suggested reads — metadata only, never file bodies), Git
state, LSP readiness, jobs, and blockers so the model can start targeted
inspection immediately. It creates a new Workflow Session or exactly resumes the
given one, never binds a current window, and never falls back to a guessed
Session. The added context is informational: it modifies or executes nothing,
and the model still uses read_file, search, edits, and validation tools as
needed. The full runtime's start_coding_task has the same
window/repository start-or-continue semantics, but its current binding is
process-local and its broader tool set is intended for operator and debugging
workflows.
Normal writable tasks must run structured checks before task_finish. The
result remains isolated until a human reviews and accepts it locally. The same
host-local human authority is reachable two ways — the offline CLI and the
in-browser console — and both share one accept/reject decision path:
webcodex task list
webcodex task show <task-id>
webcodex task accept <task-id>In the Browser, /console surfaces the actionable work queue and a review
detail with the bounded diff, and its Accept / Reject / Cancel buttons drive
that same authority. Hosted Chat can propose work but can never accept it; the
server re-verifies the target checkout and the result before applying, so a
Browser click cannot bypass the durable preconditions.
Task, operation, execution, and result IDs still provide exact retry, progress, review, and acceptance identity between tools and the host, but ordinary users do not need to choose or manage them. Executor routing and queue IDs stay internal.
checks_run remains one of the twelve capabilities. Omit its optional recipe
field to resolve the nearest supported manifest from the Task execution
workspace and relative cwd; use recipe: rust|node|python|go only to resolve
a same-directory ambiguity. Resolution never scans sibling projects, and
absolute, parent-traversing, or symlink-escaping cwd values fail closed.
Rust supports format, check, and test; Node selects only fixed
non-mutating script names; Python selects configured Ruff/Black, Ruff/Mypy,
and pytest tools; Go supports check and test while format is deliberately
unavailable. Recipes never install dependencies, generate configuration,
change lockfiles, or access the network. Missing tools are executor failures;
a non-zero result after a tool starts is an assertion failure. The resolved
recipe version, relative root, manifest/lock evidence, and structured
invocation are part of operation_id exact-retry identity. See
docs/QUICK_START.md.
Use webcodex status for a quick “can this project work now?” answer. Use
webcodex doctor for structured, actionable checks covering local config,
authentication presence, project registration, Git/workspace access, the Agent
runtime, server reachability, Agent registration, required capabilities, and
structured validation.
The Browser console at /console projects the same readiness facts and adds
the host-local human review surface: the actionable work queue, a review detail
with the bounded diff and output tail, and Accept / Reject / Cancel actions. It
is not a second status implementation, not a model-facing capability, and not a
browser IDE — it cannot edit code, run commands, or start tasks. The project
credential entered there is kept in memory only and is never persisted in the
browser.
The canonical setup starts on loopback and does not create public ingress. Local clients can use the project-bound Connector when they share the approved local connection configuration and its exact Project Credential. Loopback is a network boundary, not an authentication exemption: unknown credentials are rejected before readiness, task state, or Agent dispatch. Hosted ChatGPT clients require an operator- managed HTTPS endpoint and authentication; setup deliberately does not create a tunnel, open a public port, or change production auth. See docs/DEPLOYMENT.md, docs/MCP.md, and docs/GPT_ACTIONS.md.
The legacy ToolRuntime discovery and operations tools remain available for administration and diagnostics. They are not prerequisites for the project coding path.
- Setup registers only the resolved Git root; it never guesses from names or recent usage.
- Project setup uses its exact credential path, not the ordinary arbitrary-key quick-start fallback; Connector and Agent must resolve to the same non-secret project grant identity.
- Explicit project binding is principal-scoped and transport-scoped where the protocol requires it; ambiguous binding fails closed.
- Read-only tasks deny mutation, shell, and job-like actions.
- Structured edits and validation are preferred over raw shell.
- A validation command that cannot spawn is an executor failure, not a failed project assertion.
- Tokens, Authorization headers, hashes, private keys, and secret paths must never appear in prompts, logs, examples, or committed configuration.
Read SECURITY.md and docs/CONCEPTS.md for the full boundary model.
WebCodex is self-hosted infrastructure, not a hosted SaaS or a full browser
IDE. Advanced multi-client enrollment, production OAuth, remote deployment,
QUIC, shell profiles, and operator observability remain available through the
management documentation and webcodex; they do not change the ordinary
project entry above.
- Full documentation index: docs/INDEX.md
- Getting started: docs/QUICK_START.md
- Build/install: docs/BUILD_INSTALL.md
- Concepts: docs/CONCEPTS.md
- MCP: docs/MCP.md
- GPT Actions: docs/GPT_ACTIONS.md
- Deployment: docs/DEPLOYMENT.md
- Roadmap: docs/ROADMAP.zh-CN.md
Licensed under the Apache License, Version 2.0. See LICENSE.








