An open-source tool that lets you use ChatGPT Chat as a local coding agent. No reverse engineering, no API, no Codex, no Work mode. A ChatGPT Plus subscription is enough.
This is an independent open-source project and is not affiliated with or endorsed by OpenAI. I built it as a personal tool and decided to open-source it. Some features are still buggy and may cause unexpected behavior. Use it at your own risk. I am not responsible for any loss caused by this tool. It is strongly recommended to run it inside a VM or container.
Codex has a very generous weekly quota (reset usage frequently) compared to Antigravity (good at good morning) and Claude Code (RIP 5h quota 💀), that's why I love OpenAI so much.
However, the quota runs out very quickly if you work on a large project.

I used up my Codex quota on the first day after it reset
Then you need to wait another 7 days. What are you going to do for the rest of the week?
Here's the solution: most people with a Plus subscription do not use even 10% of their weekly thinking messages.
So why not use your 3,000 weekly messages for coding?
That's the idea behind CatDesk! It gives ChatGPT Web tools like write and run_command to edit files on your computer.

GPT-5.5: 3,000 messages/week, GPT-5.6: unknown but I have never hit the limit
- A ChatGPT Plus or above subscription is required.
- CatDesk runs as a local MCP server on your computer. It has the ability to run commands and edit files, just like Codex.
- You can connect ChatGPT Web to CatDesk using a Custom Connector, which is a feature available only to Plus and Pro users.
- Done! Now ChatGPT Web can control your computer and code on it.
In short,
ChatGPT Web + CatDesk
= a stripped-down version of Codex
= OpenClaw without cron and other active utilities
I tried this with GPT-5.2 before, and the results were poor. However, GPT-5.4 Thinking is now really good at tool calling and computer use. The first time I tried it with GPT-5.4, I was honestly surprised by how well it worked. GPT-5.5 and GPT-5.6 are even smoother, and GPT-5.6 is extremely good at using CatDesk. It's also very fast.
| ChatGPT Chat + CatDesk | Codex | OpenAI API | |
|---|---|---|---|
| Usage | 3,000 messages/week | Generous weekly quota | Pay as you go |
| Pros | Stable, no extra fee, and nearly unlimited* quota | Stable and no extra fee | Stable |
| Cons | Not as smooth as native Codex | Runs out very quickly | Tokens are expensive |
*Let's say you sleep 6 hours a day and use CatDesk every day. In that case, you can send 3,000 / (24 - 6) / 7 = 23.8 messages per hour. Since thinking and tool calls take time, it is very difficult to use up your weekly 3,000 message limit.
- People who used up their Codex quota on the first few day after it reset (me🥺)
- People who are working on web development and crawlers. (CatDesk enables ChatGPT Web to read elements and control your browser tab through chrome-devtools-mcp integration.)
Caution
This tool is very powerful and can potentially wipe your whole disk or produce unexpected results. Run it inside a VM or container (DevContainer is a good option). Treat it like OpenClaw, keep it containerized and isolated.
-
Install CatDesk globally with npm.
npm install -g catdesk
-
Run CatDesk from any terminal directory.
catdesk
When CatDesk starts, choose
Control Computer,Control Browser, orBoth. If browser control is enabled, select a supported Chromium browser.On first launch, CatDesk will ask you to enter your ngrok authtoken and ngrok static domain (e.g.
my-app.ngrok-free.dev). You can get both from the ngrok dashboard. These are saved to~/.catdesk/config.tomland reused on subsequent launches.By default, CatDesk listens on port
3200. You can override it withPORT. The workspace root defaults to the current working directory and can be overridden withWORKSPACE_ROOT.On macOS Terminal.app, CatDesk manages a dedicated
CatDeskTerminal profile automatically. If the current Terminal tab is not already using that profile, CatDesk applies it, closes any temporary helper window, and asks you to run the same command again in that tab. It only starts immediately when the current tab is already usingCatDesk. SetCATDESK_SKIP_MACOS_TERMINAL_PROFILE=1if you want to keep the current Terminal session untouched. -
Wait for the TUI to show the MCP Server URL.
-
In the pop-up window, fill in the connector form:
- Name:
CatDeskor any name you like - MCP Server URL: the full URL shown in CatDesk TUI
- Authentication:
None
- Name:
-
Click
I understand and want to continue. -
Click
Create, then clickConnect.- Permission defaults to Allow read actions. For the smoothest experience, I recommend Allow all actions (equivalent to Codex's
--yolo; use with caution).
- Permission defaults to Allow read actions. For the smoothest experience, I recommend Allow all actions (equivalent to Codex's
-
Add this to your ChatGPT
Custom instructions:
CatDesk is a coding tool and a custom connector. Always use CatDesk if the user wants to do anything related to file operations. Always call `catdesk_instruction` after `list_resources`, and follow the instructions it contains.
- Start using the connector from ChatGPT Web. Some important tips:
- I recommend let ChatGPT to decide which connector automatically. You can manually selecting the connector using
/or@. This way, ChatGPT can only access the connector you selected, which may improve stability. However, the downside is,web.searchandweb.openwill be disabled. Which means it can't search latest info. Thewebtool and a custom connector cannot be used at the same time.
![]() Select CatDesk manually with /
|
![]() Select CatDesk manually with @
|
- To improve performance and avoid high memory usage, I strongly recommend opening a new session for every small feature. If you need context, you can ask ChatGPT to create a handoff note and paste it into the new session. It will become extremely laggy after 50+ tool calls.
- If you change MCP-related settings (including the tool mode or enabling/disabling the widget), you will need to start a new chat and refresh CatDesk in settings. The most reliable way is to remove CatDesk and reinstall it (steps 2–7).
![]() Refresh CatDesk in ChatGPT settings |
![]() Remove CatDesk from ChatGPT settings |
| Part | Stack |
|---|---|
| Core | Rust |
| MCP server | Custom implementation (no SDK) |
| MCP protocolVersion | 2025-11-25 |
| Server | Axum + Tokio |
| TUI | Ratatui |
| Tunnel | ngrok |
| Browser control | chrome-devtools-mcp |
| Widget | HTML + JavaScript |
| Distribution | npm |
CatDesk has two local tool modes: multi-tools exposes 10 tools, and read-only exposes 3 tools.
CatDesk's local tools in multi-tools mode are:
| Tool | Type | What it does |
|---|---|---|
catdesk_instruction |
Guide | Returns CatDesk usage instructions and render Binagotchy |
read |
Read | Reads a text file from the workspace |
search |
Read | Searches workspace text with rg, grep, or built-in search |
write |
Write | Creates or overwrites a file |
edit |
Write | Applies guarded replace/range edits atomically |
delete |
Write | Deletes a file or directory |
run_command |
Shell | Runs a short shell command and waits for completion |
start_command |
Job | Starts a long-running shell command and immediately returns a job ID |
poll_command |
Job | Reads incremental output and status from a background command |
cancel_command |
Job | Stops a background command and its child process tree |
Long-running commands are deliberately decoupled from the lifetime of an MCP HTTP request. Builds, compilation, dependency installation, long test suites, and development servers should use start_command, then poll_command with the returned cursor. Poll responses are bounded; if hasMoreOutput is true, keep polling with nextCursor even after the command reaches a terminal state to drain the remaining buffered output. run_command remains the simpler path for short commands and has a 120-second maximum timeout.
If browser mode is enabled, CatDesk can also expose extra browser/devtools tools. Those are provided by the browser bridge, so the exact list depends on your environment.
search uses rg when it is available, falls back to grep, then falls back to CatDesk's built-in scanner. Installing ripgrep is optional, but gives the best search performance and behavior.
According to the blog and the code, the context window in ChatGPT web is different from Codex.
| Tier | CatDesk + ChatGPT Web (in + out = sum) | Codex CLI (sum) |
|---|---|---|
| Plus | 128K + 128K = 256K | 258K (1M experimental) |
| Pro | 272K + 128K = 400K | 258K (1M experimental) |
![]() The red CSP button |
![]() Enforce CSP in developer mode in Advanced connector settings
|
Yes. Open Advanced connector settings and turn on Enforce CSP in developer mode. That setting removes the red button. CatDesk automatically adds the current ngrok domain to the widget CSP, so the widget should keep working with CSP enforcement enabled.
There doesn't seem to be any obvious pattern for when the connector triggers Connect. I'm sure it's not triggered by the tool call count, but I don't know the exact reason.
![]() Connector asks to connect again |
![]() Connector asks to connect again (After you click Continue) |
Looks like it was a bug, and they fixed it 🥳.
Yes, in theory. CatDesk may also work with other apps that support custom remote MCP servers, including Claude. (I don't think anyone will use CatDesk with Claude though, since Claude Chat mode and Claude Code share the same usage limits.)
However, CatDesk is built specifically for ChatGPT Chat and its Custom Connector (They renamed it to Apps, and now they renamed it again and call it Plugins, but to prevent confusion with Application, I still prefer call it Connector) flow. ChatGPT Chat is the environment CatDesk is designed and tested for, so other apps may not work as smoothly.
CatDesk does not get official token usage numbers from ChatGPT Web. It estimates them locally with o200k_base, the same tokenizer family used by GPT-5.5-style models, so the numbers are useful, but still only estimates.
| Field | Symbol | What it means | Price |
|---|---|---|---|
inputTokens |
↓ |
Tool input ≈ LLM output | ≈ $30.00 / 1M output tokens |
outputTokens |
↑ |
Tool output ≈ LLM input | ≈ $5.00 / 1M input tokens |
totalTokens |
Σ |
inputTokens + outputTokens |
input price + output price |
CatDesk does not count:
- the full ChatGPT conversation
- hidden prompts or reasoning tokens
- other internal tokens on OpenAI's side
The loading animation is only a visual effect. ChatGPT Web does not stream partial MCP tool input/output into CatDesk, so the widget animates locally first and then locks to the estimated values when the real tool result arrives.
Workspace is the root directory CatDesk is allowed to work in.
By default, it is the directory where you launch CatDesk. You can also override it with WORKSPACE_ROOT.
File tools use this directory as their base path, and paths outside the workspace are rejected.
You can put it in 3 places.
- Workspace root
~/.catdesk/AGENTS.md~/.codex/AGENTS.md
CatDesk checks these locations for AGENTS.md in this order. This happens every time catdesk_instruction is called. You can also manually choose which AGENTS.md to use.
- Simply refresh the page and reconnect the connector.
- Stop the response and send the message again.
This is a bug on ChatGPT's side. There is nothing I can do about it, and changing the code will not solve the issue. This bug was probably introduced on Apr 15th.
Caution
Do NOT share the MCP Server URL with anyone. Anyone with the URL can access your computer.
The URL is made of these parts:
| Part | Example | What it means |
|---|---|---|
| Public URL | https://xxxx.ngrok-free.dev |
Your ngrok static domain |
| Random path | /Ab3kL9xQ2pTm7VhC |
A random path generated on first launch |
| MCP endpoint | /mcp |
The actual MCP endpoint |
So the full URL looks like this:
https://xxxx.ngrok-free.dev/Ab3kL9xQ2pTm7VhC/mcp
Both the static domain and the random path are persisted in ~/.catdesk/config.toml, so the full MCP URL stays the same across launches. You only need to set up the connector once.
The character is a cute shark-cat! I actually made this before CatDesk and decided to put it in the project.
By default, CatDesk will generate a random Binagotchy every time you start it. If you see a cute one, you can set it as your partner on the launch screen. The system will also automatically save every Binagotchy in ~/.catdesk/binagotchy. You can download it too (or, to be accurate, export it)! Both .png and .gif are supported. Feel free to use it anywhere. This project and Binagotchy are both under the MIT License. By the way, Binagotchy is generated using pure scripts and does not use any text-to-image or diffusion model.













