Coding Local
Allows ChatGPT to inspect and modify selected local projects, run shell commands and tests in a Dockerized workspace, and review generated diffs and command output through an authenticated MCP endpoint.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Coding LocalAdd a multiply function with tests to the demo project, run tests, and show the diff"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Coding Local
Bring ChatGPT into selected local projects—with file tools, command execution, and reviewable diffs.
A self-hosted distribution of DevSpace. Ask ChatGPT to inspect a project, make a change, run tests, and show the result. Execution takes place in a Linux container on your machine; requested code and tool results return to the ChatGPT host.
Try the example · Architecture · Quick start · Validation · Provenance
A concrete example
Open
/workspaces/demo, read the project instructions, add amultiplyfunction and tests for positive, negative, and zero inputs. Run the tests and build, then show the diff.
The repository includes a small demo project. A recorded ChatGPT acceptance session on September 30, 2026 completed this flow: four tests passed, the build succeeded, and the host rendered a two-file diff. The files were checked again on the Mac. This is a recorded acceptance result, not a promise that every host configuration works identically.
Read the walkthrough and evidence.
Related MCP server: AgentDock
How it connects
Boundary | Behavior |
Host | ChatGPT chooses tool calls and presents results. |
Authentication | OAuth with PKCE protects the custom |
Files and commands | Selected project directories are mounted into the container. File tools enforce allowed roots; shell commands have the container user's authority. |
Network | The coding container uses an internal network. A separate HTTP(S) proxy permits public destinations on ports 80/443 and blocks private-network targets; it is not a dependency-domain allowlist. |
Persistence | Project files and service state survive service restarts. Running commands do not. |
See the Compose configuration and security boundaries (Chinese). Container isolation has limits; allowed-root checks alone do not sandbox arbitrary shell commands.
Quick start
You need Docker with Compose, Git, and Node 24+ for the preparation scripts. Remote ChatGPT access also requires your own domain, Cloudflare Tunnel, and an account with usable ChatGPT developer mode.
The recorded deployment target is Apple Silicon. The container pins Node 24.21.0 and pnpm 11.25.0 and limits the coding service to 4 CPUs / 6 GiB. Allow additional memory for Docker and the access/egress services.
git clone https://github.com/Syx403/ChatGPT-4-Local.git
cd ChatGPT-4-Local
# Use your own domain and a dedicated project directory, not your entire home.
node scripts/local/init.mjs https://mcp.example.com "$HOME/CodingLocal/workspaces"
node scripts/local/seed-demo.mjs "$HOME/CodingLocal/workspaces"
bash scripts/local/start.shInitialization preserves existing private configuration. It generates an owner password in .local/config/auth.json with restricted permissions; it does not print that password, create DNS records, or expose a public endpoint. Keep that file private.
After startup, http://127.0.0.1:7676/healthz should return ok: true; an unauthenticated MCP request should return 401.
Follow the operations guide (Chinese) to configure your own tunnel and DNS. Connect ChatGPT to https://mcp.example.com/chatgpt-for-local using OAuth, then try the example above. The machine must remain awake with Docker and the tunnel running. Use one modifying session per project.
Validation and current limits
The acceptance record (Chinese) documents real HTTP MCP/OAuth, reads and patches, tests/builds, diff rendering, restart persistence, and rejected access attempts. It also records what was not established: the ChatGPT UI was checked with that account's existing CSP setting, and concurrent shell writes are not automatically made mutually exclusive.
# Source checks: use the complete dependency set, including optional native binaries.
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm build
pnpm test:package-installThe live smoke script operates on a configured deployment and writes temporary verification files. Review the operations guide before using it. No npm package is published from this repository; the documented deployment uses source and the lockfile.
Provenance and contributions
DevSpace v1.1.0-beta.4, upstream revision 8e4669ca1fdd4796c5aec3b2e9541242c023e594, provides the underlying MCP tools, workspace mechanics, OAuth implementation, and review UI.
The Coding Local changes maintained by Syx403 / Ewan Su include:
A configurable MCP endpoint and route-validation/OAuth regression tests.
Docker deployment, fixed-target local ingress, and controlled egress configuration.
Initialization, demo, and real HTTP smoke scripts; persistent state and operations documentation.
Authentication error handling and compatible dependency fixes described in the implementation record.
See the implementation commit for the separation from upstream. This is independently maintained and is not an official OpenAI product.
Original DevSpace sources retain their MIT license. Original Coding Local additions retain the repository's Apache-2.0 license. NOTICE preserves upstream attribution; upstream documentation describes the baseline.
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to inspect and edit local projects through a secure MCP interface, offering workspace management, file operations, git integration, and safe command execution.5MIT
- AlicenseAqualityBmaintenanceConnects ChatGPT to a local developer workspace through MCP, enabling bounded repository analysis, file and image inspection, direct edits, command verification, and Git-aware review.22MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to read and edit local project files, inspect Git changes, and run approved development scripts through a secure MCP tunnel, with optional Codex Desktop integration.103 npm4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT and other MCP clients to browse, search, edit and upload files, run commands and interactive terminals, inspect Git history and worktrees, dispatch coding agents, and install composable plugins within locally registered workspaces. Requests execute under the user's own machine with per-request approval or auto-approval, keeping files, tasks and results local unless explicitly returned.1MIT