Give ChatGPT & Claude secure access to your local machine. Turn any MCP host into your coding partner.
Dev Space Go is a self-hosted MCP server that lets AI assistants read, edit, search, and run code in your real local projects — your files, your tools, your terminal — without uploading anything to a third party. You run it on your machine and expose it through a tunnel you control.
- Quick Start
- Installation
- What AI Can Do
- Configuration
- Tunnel (Remote Access)
- Shell Support
- Security
- Robustness and Limits
- Building from Source
- Platform Support
- Project Structure
Pick your platform from Releases or build from source:
./scripts/unix/build.sh # Linux / Mac
.\scripts\windows\build.ps1 # Windowsdevspace-gui # Desktop configurator (GUI)
devspace init # Text-based configuratordevspace # Starts server. Auto-detects config.This also auto-starts a Cloudflare Tunnel if cloudflared is found in tools/.
https://YOUR-TUNNEL.trycloudflare.com/mcp
Or locally: http://127.0.0.1:7676/mcp
No Node.js, no npm, no Python. Single binary.
| Platform | Download |
|---|---|
| Windows | devspace.exe + devspace-gui.exe |
| Linux | devspace (GUI: compile natively) |
| macOS Intel | devspace (GUI: compile natively) |
| macOS M-chip | devspace (GUI: compile natively) |
Requires Go 1.26+ (see go.mod) only if building from source.
Once connected, the AI opens a project folder as a workspace. By default it can also read and write anywhere else on your local drives (see outsideAccess):
- Read, write, and edit files inside the workspace
- Create directories and move/rename files safely inside the workspace
- Search code with regex and inspect directories
- Run shell commands (PowerShell on Windows, bash on Unix)
- Discover project instructions from
AGENTS.md/CLAUDE.md - Auto-configure with portable
.devspace/config.json
10 MCP tools: open_workspace, read, write, mkdir, move, edit, grep, glob, ls, bash
All config lives in the same folder as the executable (portable):
.devspace/
└── config.json ← allowed roots, port, shell, language
{
"host": "127.0.0.1",
"port": 7676,
"allowedRoots": ["C:/projects"],
"publicBaseUrl": "http://127.0.0.1:7676",
"shell": "auto",
"lang": "auto",
"toolMode": "full",
"toolNaming": "short"
}| Field | Default | Description |
|---|---|---|
shell |
auto |
auto, powershell, cmd, bash, sh |
lang |
auto |
Auto-detect from OS. Supports 47 languages |
toolMode |
full |
full (all tools) or minimal (shell only for search) |
toolNaming |
short |
short (read, write) or legacy (read_file, write_file) |
No environment variables needed — everything is in the portable config file.
By default ("mode": "full") the AI is not limited to the project folder:
file tools (read, ls, grep, glob, write, edit, mkdir, move),
the bash working directory and open_workspace accept any absolute path on
the computer's local drives, read-write, locally and through the tunnel.
Relative paths still resolve against the open workspace.
"outsideAccess": {
"mode": "full",
"remote": true,
"denyDefaults": true,
"deny": ["D:/private"],
"audit": true
}| Field | Default | Description |
|---|---|---|
mode |
full |
full: any local folder, read-write. roots: only the folders in roots. off: the project only |
remote |
true |
Grant the same access to requests through the public tunnel. false (or untick the GUI checkbox): tunnel requests stay inside the project. The tunnel has no authentication: whoever knows its temporary URL gets this access |
denyDefaults |
true |
Keep the built-in list of sensitive locations blocked (below). false turns it off |
deny |
[] |
Your own absolute paths that stay blocked. [] clears them |
roots |
[] |
roots mode only: { "path": "...", "access": "read" | "readwrite" } |
audit |
true |
Log every access outside the project (allowed or denied) to .devspace-state/outside-access.log (paths only, never contents) |
Everything is also editable in the GUI: the mode, the tunnel checkbox, the
roots list (ro <path> / rw <path> lines), the built-in list toggle and
the list of your own blocked paths (add, remove, browse). Saving from the GUI
keeps every other value you wrote into config.json by hand.
Built-in deny list in full mode (denyDefaults), applied everywhere,
including inside the workspace:
- SSH private keys:
id_rsa,id_ed25519,id_ecdsa,id_dsa(.pubstays readable) - Windows Credential Manager, Vault and DPAPI keys:
%APPDATA%\Microsoft\Credentials,Protect,Vault,%LOCALAPPDATA%\Microsoft\Credentials,Vault(macOS:~/Library/Keychains) - Browser passwords and cookies:
Login Data,Cookies,logins.json,key4.db,cookies.sqlite .git-credentialsand the GitHub CLI token (gh/hosts.yml)- Dev Space Go's own config and state, so the AI cannot rewrite its own permissions
.env, .npmrc, system folders and everything else stay accessible. In
roots mode the list is broader (also .aws, .gnupg, .kube, .docker,
.git/config, .npmrc, browser profiles, and system folders unless a root is
configured inside them).
Path hygiene applies in every mode: paths are canonicalised by the OS
(symlinks, junctions, subst drives, 8.3 names, case) before any check, and UNC
(\\server\share, which would leak the Windows login hash), \\?\ / \\.\
device paths, NTFS streams (file:stream), reserved names (CON, NUL, ...)
and drive-relative paths (C:foo) are refused. The workspace root and its
parents cannot be moved. devspace doctor shows the active mode and lists.
pnpm on Windows: node_modules entries are junctions into the pnpm store
outside the project. In full mode they just work; in roots mode add the
store (pnpm store path) as a read root.
For ChatGPT web version (HTTPS required), Dev Space Go auto-starts a tunnel:
| Tunnel | URL type | Setup |
|---|---|---|
| Cloudflare | Random (auto) | cloudflared.exe included in tools/ |
| Pinggy | Stable | Needs SSH key (ssh-keygen) |
Server auto-detects which one is available. Restart the server for a new Cloudflare URL, or use Pinggy for a permanent URL.
The local server starts listening before the tunnel is launched. A URL printed by
cloudflared is only an allocated address: wait for Dev Space Go's TUNNEL ACTIVE
banner, which appears after the public /healthz endpoint reaches this server.
Startup checks retry transient DNS and gateway errors within a bounded timeout.
Ctrl+C also cancels an in-progress tunnel startup and reaps the child process.
Use /mcp with the default Cloudflare Quick Tunnel. Quick Tunnels
do not support SSE,
so switching to /sse will not fix them. The legacy /sse endpoint remains
available locally or through a provider that supports SSE.
If the tunnel process exits later (network loss, sleep/hibernation, a crash of
cloudflared), Dev Space Go restarts it automatically with exponential backoff
and jitter (5 s doubling up to 5 min). A restarted Quick Tunnel gets a new
URL, announced in a new TUNNEL ACTIVE banner. If neither cloudflared nor
ssh is installed, the server simply stays local and does not retry.
If the public connection fails, check http://127.0.0.1:7676/healthz locally
(adjust the configured host/port) and keep the tunnel log visible. The local
server remains usable if tunnel startup fails. A tunnel process that exits is
reported explicitly; its old URL is no longer active. Restarting a Quick Tunnel
changes the public hostname, so update the MCP client's URL as well.
The readiness check needs outbound HTTPS access to the generated hostname from the server machine. A local proxy, DNS filter, or firewall blocking that check can prevent the active banner even if another machine could reach the tunnel. Quick Tunnels are for development and have no uptime guarantee.
| OS | Default | Alternatives |
|---|---|---|
| Windows | PowerShell | cmd / pwsh |
| Linux | bash | sh / any shell |
| macOS | bash | sh / zsh |
Set "shell" in config.json or choose in the GUI.
- No built-in authentication — anyone with the public tunnel URL can use the server
- Path containment — every tool path (read, write, edit, mkdir, move, ls, grep, glob and the shell working directory) is resolved inside the workspace root;
.., absolute paths elsewhere and symlinks/junctions pointing outside are rejected. This applies tooutsideAccess.mode: off. The defaultfullmode deliberately allows absolute paths anywhere on the local drives (locally and through the tunnel) except the built-in deny list;rootsallows only the listed folders (see above) - The shell tool is not a sandbox —
bashruns arbitrary commands with your user's permissions; path containment only applies to the file tools - Tunnel access — treat the public tunnel URL as a secret and stop the server when it is not in use
- No third-party uploads — your code never leaves your machine
Shutdown. Ctrl+C (or SIGTERM / closing the console window) cancels running
requests first — open /sse streams end and running shell commands are killed
together with all processes they started — then shuts the HTTP server down
(at most 10 s) and stops the tunnel. Press Ctrl+C a second time to force-quit
if shutdown hangs.
Crash / hard kill. The tunnel process (cloudflared/ssh) runs in a
Windows job object (Linux: parent-death signal) and dies with Dev Space Go even
after a crash or a Task Manager kill, so no orphaned tunnel keeps publishing
the port. The workspace database is SQLite with a 5 s busy timeout, so a
restart that overlaps the previous shutdown waits instead of failing. If the
port is still taken at startup, the error says whether another Dev Space Go
instance or a different program holds it.
Configuration problems (invalid JSON in config.json, a non-numeric
PORT, an allowed root that does not exist, an out-of-range port) are printed
as warnings at startup and by devspace doctor. Config files are written
atomically, so a crash while saving never leaves a truncated file.
Limits and timeouts
| What | Limit |
|---|---|
| HTTP request headers | 10 s to arrive, 1 MiB |
| HTTP request body | 2 min to arrive, 64 MiB |
| Idle keep-alive connection | 2 min |
| Shell command | 30 s default, 300 s max; the whole process tree is killed on timeout |
| Shell output kept | 256 KiB (the rest is counted and discarded) |
| Shell background processes | left running; output collection stops 2 s after the shell exits |
read response |
2000 lines by default, max 5000 lines / 4 MiB |
edit file size |
64 MiB |
grep / glob |
500 matches, files up to 2 MiB, 20 s |
open_workspace scan for AGENTS.md / CLAUDE.md |
5000 files / 3 s (Windows, Linux, macOS) |
| Graceful shutdown | 10 s |
A panic inside a tool is logged and returned to the client as a tool error; it no longer terminates the server.
Known limitations
- macOS has no parent-death signal: after a hard kill (
kill -9) of Dev Space Go, a running tunnel child can survive there. Normal exits and Ctrl+C are fine. - A process the shell tool starts within the first milliseconds, before it is attached to its Windows job object, can escape the tree kill.
- Link checks happen before each file operation; a link swapped in by another local process between the check and the operation (a race) is not prevented.
open_workspacestops looking forAGENTS.md/CLAUDE.mdafter 5000 files or 3 s, so on a very large root (for example a whole drive) instruction files deep in the tree may not be listed; open the project folder instead.- Restarting a Quick Tunnel changes its URL; use a provider with a stable URL if clients must not be reconfigured.
git clone https://github.com/snakex21/devspace-go
cd devspace-go
# Build everything (all platforms)
.\scripts\windows\build.ps1 # Windows
./scripts/unix/build.sh # Linux / Mac
make -f scripts/unix/Makefile # Linux / Mac (make)
# Build just for current platform (release flags: smaller binaries)
go build -trimpath -ldflags="-s -w" -o devspace ./cmd/devspace/
go build -trimpath -ldflags="-s -w" -o devspace-gui ./cmd/devspace-gui/
# Tests (add -race when a C compiler is available)
go vet ./...
go test ./...The build scripts use -trimpath -ldflags="-s -w", which strips symbol and
debug tables and local paths. Panics still print stack traces with function
names; only debuggers lose symbol information.
| Platform | Server | GUI |
|---|---|---|
| Windows | ✅ | ✅ |
| Linux | ✅ | 🔧 (compile natively) |
| macOS Intel | ✅ | 🔧 (compile natively) |
| macOS M-chip | ✅ | 🔧 (compile natively) |
GUI requires Fyne (OpenGL) — cannot cross-compile. Server compiles everywhere.
devspace-go/
├── cmd/
│ ├── devspace/ ← CLI + MCP server
│ └── devspace-gui/ ← Desktop GUI configurator (Fyne)
├── internal/
│ ├── config/ ← Portable config system
│ ├── locales/ ← 47 language translations
│ ├── logger/ ← Structured logging (zerolog)
│ ├── procutil/ ← Child process trees (job objects / process groups)
│ ├── server/ ← HTTP + MCP + tunnel orchestration
│ ├── store/ ← SQLite workspace sessions
│ ├── tools/ ← read, write, edit, grep, glob, ls, bash
│ └── workspace/ ← Workspace & path validation
├── scripts/
│ ├── windows/ ← PowerShell build script
│ ├── unix/ ← Bash + Makefile build scripts
│ └── userscripts/ ← Tampermonkey auto-approve script
├── readme/ ← Translations of this file (47 languages)
├── tools/ ← cloudflared.exe
├── go.mod / go.sum
└── README.md
Built in Go. Zero npm. Zero Node.js. One binary.