Reference project: ChatToCodex was developed with Chat On Steroids as a reference. This project is independent; the reference does not imply affiliation or endorsement.
Use ChatGPT or Codex conversations to work with coding projects on your own computer through an OpenAI Secure MCP Tunnel.
ChatToCodex runs a small local MCP Host on your Mac or Windows PC. After one-time setup, supported ChatGPT/Codex conversations can list/read/write files and run commands inside the local roots you allow.
ChatToCodex is an independent open-source project. It is not made, sponsored, or endorsed by OpenAI.
- Local MCP tools:
access_status,list_directory,read_file,write_file,run_command. - No Electron app required.
- No per-chat workspace-selection step: each tool call can address an explicit permitted path.
- macOS background Host through LaunchAgent.
- Windows background Host through Task Scheduler.
- API keys stored with macOS Keychain or Windows DPAPI instead of committed to the repository.
pause/resumecontrols when the local bridge is available.
Read Requirements.
At a minimum you need:
- Node.js 20+ and npm.
- OpenAI
tunnel-client. - An OpenAI Secure MCP Tunnel ID.
- A Restricted runtime API key with the Tunnel permissions required to run the client.
- ChatGPT Developer mode / developer-mode MCP App access for the account or workspace you want to use.
OpenAI's Secure MCP Tunnel is an outbound connection for private MCP servers: the local server does not need a public inbound port. The Tunnel runtime must remain healthy while ChatGPT/Codex discovers or calls the MCP tools.
git clone https://github.com/JackyCufe/ChatToCodex.git
cd ChatToCodex
npm install
npm link
chat-to-codex installThen follow the complete macOS installation guide and the Tunnel, API key, and MCP App walkthrough.
Download/clone the repository and extract it completely. From the ChatToCodex folder run:
install-windows.cmdThen:
chat-to-codex installSee the complete Windows installation guide.
Use OpenAI Platform's Secure MCP Tunnel settings:
- Create a Tunnel for the computer you are connecting.
- Copy its
tunnel_id(tunnel_...). - Create a Restricted runtime API key for the local
tunnel-client. - Make sure the relevant account/role has the required Tunnel permissions.
- Run
chat-to-codex installand enter those two values locally.
Do not commit the API key. Do not paste the runtime API key into the ChatGPT MCP App authentication field.
See Requirements for the permission breakdown.
First make sure the local Host is running:
chat-to-codex doctor
chat-to-codex statusThen in ChatGPT Developer mode:
- Open Plugins and create a developer-mode MCP App.
- Choose Tunnel.
- Select your Tunnel or paste your
tunnel_id. - Recommended app name: ChatToCodex Core.
- Use No Auth for the ChatToCodex MCP App.
- Create the connection and review the discovered tools.
After the connection exists, add/select it in a supported ChatGPT/Codex conversation and try a harmless read or git status first.
chat-to-codex status
chat-to-codex doctor
chat-to-codex pause
chat-to-codex resume
chat-to-codex uninstalluninstall removes the background Host but keeps the local configuration/credential data unless you remove those separately.
By default, ChatToCodex permits paths under the current user's home directory. Every filesystem/command request is checked against configured allowedRoots.
The Local Host being online does not mean ChatGPT is continuously operating your computer. Tools execute when a supported conversation invokes them. Use chat-to-codex pause whenever you want the bridge offline.
Treat write_file and run_command as powerful local capabilities. Review the requested action before allowing destructive work.
- Requirements
- Install on macOS
- Configure Tunnel, API Key, and ChatGPT MCP App
- Install on Windows
- Troubleshooting
npm run check
npm test
npm run test:packageThe package test verifies that the CLI and Windows installers are included while the real .env is excluded.
This repository also contains the ChatToCodex skill/plugin source under plugin/chat-to-codex/ for development/testing. The GitHub repository being public does not automatically publish that plugin to OpenAI's public Plugin Directory.
Secure MCP Tunnel is intended for private MCP connectivity. Users create/connect their own developer-mode MCP App to their own Tunnel.
ChatToCodex is released under the MIT License. See Third-party notices.