DevSpace lets ChatGPT connect to folders on your computer. Once connected, ChatGPT can inspect code, edit files, run commands, and help work inside the folders you allow.
Repo: https://github.com/Waishnav/devspace
You can use either:
- Temporary tunnel: easiest, URL changes after restart.
- Permanent tunnel: best setup, same URL every time, needs a Cloudflare account and domain.
Install DevSpace globally:
npm install -g @waishnav/devspaceCheck that it works:
devspace doctorIf doctor reports SQLite/native dependency as okay, you are good.
Windows PowerShell:
winget install --id Cloudflare.cloudflared --accept-package-agreements --accept-source-agreementsmacOS:
brew install cloudflaredCheck:
cloudflared --versionOn Windows, if cloudflared is not found, use:
"C:\Program Files (x86)\cloudflared\cloudflared.exe" --versionRun:
devspace initAnswer the prompts:
- Project folders: choose the folders ChatGPT may access.
- Port: use
7676. - Public URL: use your tunnel URL. If you do not have one yet, use a placeholder and update it later.
Example allowed folders:
C:\Users\you\Desktop
D:\Projects
/Users/you/Projects
Important: ChatGPT can only open folders inside allowedRoots.
DevSpace stores settings here:
Windows:
C:\Users\<you>\.devspace\config.json
C:\Users\<you>\.devspace\auth.json
macOS/Linux:
~/.devspace/config.json
~/.devspace/auth.json
config.json controls allowed folders and public URL:
{
"host": "127.0.0.1",
"port": 7676,
"allowedRoots": [
"C:\\Users\\you\\Desktop",
"D:\\Projects"
],
"publicBaseUrl": "https://devspace.yourdomain.com"
}auth.json stores the Owner password:
{
"ownerToken": "keep-this-private"
}Use this Owner password when ChatGPT asks for approval.
Use this for quick testing.
Start the tunnel:
cloudflared tunnel --url http://127.0.0.1:7676 --no-autoupdateIf cloudflared is not found:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel --url http://127.0.0.1:7676 --no-autoupdateCopy the URL it prints, for example:
https://abc.trycloudflare.com
Update DevSpace with the URL Cloudflare printed. Replace the example URL with your real one:
devspace config set publicBaseUrl https://abc.trycloudflare.comStart DevSpace in another terminal:
devspace serveChatGPT MCP URL:
https://abc.trycloudflare.com/mcp
Note: temporary tunnel URLs change when restarted.
Use this if you have a domain on Cloudflare.
Login:
cloudflared tunnel loginIf cloudflared is not found:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel loginCreate a tunnel:
cloudflared tunnel create devspaceIf cloudflared is not found:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel create devspaceIt prints a credentials JSON path. Keep that path.
Create DNS:
cloudflared tunnel route dns devspace devspace.yourdomain.comReplace devspace.yourdomain.com with your real subdomain.
If cloudflared is not found:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel route dns devspace devspace.yourdomain.comCreate config:
Windows PowerShell:
notepad C:\Users\<you>\.cloudflared\config.ymlmacOS/Linux:
nano ~/.cloudflared/config.ymlPaste this and update the domain/path:
tunnel: devspace
credentials-file: C:\Users\<you>\.cloudflared\<tunnel-id>.json
ingress:
- hostname: devspace.yourdomain.com
service: http://127.0.0.1:7676
- service: http_status:404Update DevSpace with your permanent public URL:
devspace config set publicBaseUrl https://devspace.yourdomain.comRun the tunnel:
cloudflared tunnel run devspaceIf cloudflared is not found:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel run devspaceStart DevSpace in another terminal:
devspace serveChatGPT MCP URL:
https://devspace.yourdomain.com/mcp
In ChatGPT:
- Open Settings.
- Go to Apps.
- Create a custom MCP app.
- Name it
DevSpace. - Server URL:
https://your-public-url/mcp
- Authentication:
OAuth. - Accept the warning.
- Click Connect.
- Enter the Owner password from
auth.json.
After restarting your computer, open two terminals.
Terminal 1:
cloudflared tunnel run devspaceIf needed:
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel run devspaceTerminal 2:
devspace serveKeep both open while using ChatGPT.
For temporary tunnels, start the temporary tunnel command instead and update ChatGPT if the URL changed.
Open a workspace:
Use DevSpace. Open workspace C:\Users\you\Desktop.
List the folders you can see.
Open a project:
Use DevSpace. Open workspace C:\Users\you\Desktop\my-project.
Inspect it and tell me how to run it.
Make code changes:
Use DevSpace. Open workspace C:\Users\you\Desktop\my-project.
Make the requested change, run tests or build, and summarize what changed.
Close both terminal windows.
Or on Windows PowerShell:
Stop-Process -Name cloudflared -Force -ErrorAction SilentlyContinue
Stop-Process -Name node -Force -ErrorAction SilentlyContinueCheck DevSpace:
devspace doctorCheck your public MCP URL in a browser:
https://your-public-url/mcp
Seeing 401 is normal. It means the server is reachable and protected by auth.
If ChatGPT cannot access files:
- Make sure
cloudflared tunnel run devspaceis running. - Make sure
devspace serveis running. - Make sure the ChatGPT URL ends with
/mcp. - Make sure DevSpace is enabled in the chat.
- Make sure the folder is inside
allowedRoots.