devspace README

The project's README from github.com/Waishnav/devspace. As one markdown file: README.md.

DevSpace logo

DevSpace

Bring a Codex-style coding workflow to ChatGPT.

npm CI License

DevSpace connected to ChatGPT

Give ChatGPT a secure connection to your own machine and Turn ChatGPT into Codex

DevSpace is a self-hosted MCP server that lets ChatGPT 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, expose it through a tunnel you control, and approve the connection with a password only you have.

The same /mcp endpoint serves the 2026-07-28 per-request protocol and automatically supports older 2025-era clients through stateless compatibility handling. There is no protocol mode to configure.

Sponsors and Special Thanks

DevSpace is open to new sponsors. Get in touch to become one.

Installation

DevSpace requires Node >=22.19 <27.

Install the DevSpace CLI:

npm install -g @waishnav/devspace

Then initialize DevSpace:

devspace init

Or run it without a global install:

npx @waishnav/devspace init

During setup, DevSpace asks for:

If you select ChatGPT, setup also asks which local project folders it may open and for your public HTTPS base URL from Cloudflare Tunnel, ngrok, Pinggy, Tailscale Funnel, or another reverse proxy. A Coding Agents-only setup asks neither question: local commands use the current Git project, or the current directory outside a repository.

Use the public origin without /mcp during setup:

https://your-tunnel-host.example.com

You will configure your MCP client with the public /mcp URL after setup. Run devspace serve when using ChatGPT. For Coding Agents, setup prints a skills command and lets the Skills CLI handle installation.

When the client connects, DevSpace opens an Owner password approval page. Enter the Owner password printed by devspace init. It is also stored in:

~/.devspace/auth.json

Keep that password private.

Connect Your MCP Client

The default local endpoint is:

http://127.0.0.1:7676/mcp

Most users should connect through a public HTTPS tunnel:

https://your-tunnel-host.example.com/mcp

[!NOTE] Using DevSpace as an MCP connector isn't against OpenAI's Usage Policies — it's a standard custom App/connector setup, and writing or running code isn't a restricted use case. But your account is governed by your usage, not by DevSpace. Don't point it at anything that would violate your provider's terms. Used normally, you're fine. (Based on OpenAI's Usage Policies and Service Terms as of June 2026.)

What ChatGPT Can Do

Once connected, ChatGPT can open one of your approved project folders as a workspace. From there, it can inspect the repo, make scoped edits, run commands, and show you what changed.

DevSpace gives ChatGPT tools to:

Mental Model

DevSpace is remote access to selected local folders.

You decide which roots are allowed. The MCP client still has powerful local capabilities inside an opened workspace, including shell execution. Treat a connected client like a trusted coding partner with access to your machine.

For a normal ChatGPT coding session:

  1. Start your tunnel.
  2. Run devspace serve.
  3. Connect the MCP client to your public /mcp URL.
  4. Approve the connection with the Owner password.
  5. Ask ChatGPT to open a project inside one of your allowed roots.

Platform Support

DevSpace supports Linux, macOS, and Windows environments with a Bash-compatible shell.

Platform Status Notes
Linux Supported Requires Node, npm, Git, and Bash.
macOS Supported Requires Node, npm, Git, and Bash.
Windows with Git Bash, WSL, MSYS2, or Cygwin Bash Supported Git Bash is the simplest native Windows setup.
Windows PowerShell or cmd.exe only Not supported yet Install Git Bash or use WSL.

Run this to inspect your local setup:

devspace doctor

Documentation

Philosophy

Every piece of software is becoming conversational. Natural language is redefining how we interact with tools, workflows, and systems.

My bet is that ChatGPT becomes the operating system for everything. Once we reach AGI, we will simply talk to ChatGPT, and it will prompt, coordinate, and orchestrate sub-agents that set up the right loops for us.

We are not there yet.

DevSpace is one attempt to fast-forward that future: a way for MCP-capable hosts like ChatGPT and Claude to work directly with local project files through explicit, inspectable tools.

Built by Waishnav

I'm Waishnav. I like building opinionated products and tools, and Artifacts is one example.

This year, I began my journey to build a one-person, multi-agent company capable of generating millions in revenue. If you want to follow the failures, wins, lessons, and everything in between, come hang out with me on X.

More from me

Project About
GitCMS
GitCMS
Modern CMS and tooling for markdown based content sites — built for agents and humans.

Visual editing, editorial workflow, and ChatGPT/Claude content agents, with every post and page stored as files in your repo. Learn more.

Local Development

For working on DevSpace itself:

Install pnpm 11.25.0, the version pinned in package.json, with npm install --global [email protected], then:

pnpm install --frozen-lockfile
pnpm dev:seed
pnpm dev
pnpm typecheck
pnpm test
pnpm build
pnpm start

dev:seed forks your normal DevSpace config and SQLite state into an ignored checkout-local .devspace-dev/ directory so source builds and migrations do not modify your normal installation. Use pnpm dev:reset to discard that QA state and fork it again. See Development and Manual QA for worktree switching, ChatGPT, and database-migration workflows.

devspace (Waishnav/devspace)

Searching Database…

这是什么?DevSpace 是一个自托管的 MCP 服务器,让 ChatGPT(或其他支持 MCP 的客户端,如 Claude)能够读取、编辑、搜索和运行你本地真实项目中的代码,无需将任何内容上传到第三方。
这是我要打开的应用,还是我在自己电脑上运行的服务器?它是一个你在自己电脑上运行的服务器,再通过你控制的隧道对外开放;AI 客户端通过 MCP 协议连接它。DevSpace 并不是托管应用,也不是桌面图形界面程序。
我要怎样把 ChatGPT 连接到自己的电脑?先启动隧道,运行 'devspace serve',然后将 MCP 客户端指向公共的 /mcp 网址,并用所有者密码批准连接,之后再让 ChatGPT 打开已批准的项目文件夹。
运行前需要先安装什么?需要 Node >=22.19、npm、Git,以及兼容 Bash 的 shell(Linux 和 macOS 默认具备;Windows 需要 Git Bash、WSL、MSYS2 或 Cygwin)。
Windows 上开箱即用吗?不行。单独使用 PowerShell 或 cmd.exe 目前不受支持,因此 Windows 用户需要 Git Bash 或 WSL 才能正常运行。
它如何防止 AI 访问我没有批准的文件?你需要明确选择允许访问哪些本地文件夹(即 'roots'),并且连接本身必须使用只有你掌握的所有者密码才能批准。
连接之后,ChatGPT 实际能做什么?它可以读取、写入和编辑已打开工作区中的文件,搜索代码,运行 shell 命令以执行测试、构建和 git 操作,使用相互隔离的 Git 工作树并行开展编码,并遵循 AGENTS.md 和 CLAUDE.md 中的项目说明。
这只适用于 ChatGPT 吗?不是。它提供标准的 MCP 端点,因此其他支持 MCP 的客户端,如 Claude、Hermes、Grok Bot 和 OpenClaw,也可以连接到同一个 /mcp 服务器。
作者为什么要自己开发 DevSpace,而不是等待 ChatGPT 内置的编程功能?作者判断 ChatGPT 将发展成一个能够协调子智能体的操作系统,因此开发了 DevSpace,作为一种早期的、明确的、可检查的方式,让 MCP 客户端直接处理本地项目文件。
Creator
Waishnav
Size
5 MB
Stars
5.3K
Age
4mo
Commits · 90 Days