npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

catdesk

v0.3.0

Published

Use ChatGPT Chat as a local coding agent.

Readme

CatDesk

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.

Disclaimer

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.

Why CatDesk?

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.

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.

How does this work?

  1. A ChatGPT Plus or above subscription is required.
  2. CatDesk runs as a local MCP server on your computer. It has the ability to run commands and edit files, just like Codex.
  3. You can connect ChatGPT Web to CatDesk using a Custom Connector, which is a feature available only to Plus and Pro users.
  4. 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.

Differences between ChatGPT Chat + CatDesk, Codex, and the API (let's say Plus plan)

| | 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.

Who needs this?

  • 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.)

Quickstart

[!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.

  1. Install CatDesk globally with npm.

    npm install -g catdesk
  2. Run CatDesk from any terminal directory.

    catdesk

    When CatDesk starts, choose Control Computer, Control Browser, or Both. 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.toml and reused on subsequent launches.

    By default, CatDesk listens on port 3200. You can override it with PORT. The workspace root defaults to the current working directory and can be overridden with WORKSPACE_ROOT.

    On macOS Terminal.app, CatDesk manages a dedicated CatDesk Terminal 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 using CatDesk. Set CATDESK_SKIP_MACOS_TERMINAL_PROFILE=1 if you want to keep the current Terminal session untouched.

  3. Wait for the TUI to show the MCP Server URL.

  4. Open ChatGPT connector settings.

  5. In the pop-up window, fill in the connector form:

    • Name: CatDesk or any name you like
    • MCP Server URL: the full URL shown in CatDesk TUI
    • Authentication: None
  6. Click I understand and want to continue.

  7. Click Create, then click Connect.

    • Permission defaults to Allow read actions. For the smoothest experience, I recommend Allow all actions (equivalent to Codex's --yolo; use with caution).
  8. 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.
  1. 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.search and web.open will be disabled. Which means it can't search latest info. The web tool and a custom connector cannot be used at the same time.
  • 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).

Stack

| Part | Stack | | --- | --- | | Core | Rust | | MCP server | Custom implementation (no SDK) | | MCP protocolVersion | 2026-07-28 | | Server | Axum + Tokio | | TUI | Ratatui | | Tunnel | ngrok | | Browser control | chrome-devtools-mcp | | Widget | HTML + JavaScript | | Distribution | npm |

Tools

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.

Context window

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) |

FAQ

Can I turn off the red CSP button?

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.

I've already connected. Why do I need to connect again and again?

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.

Looks like it was a bug, and they fixed it 🥳.

Can CatDesk be used in other apps?

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.

How does the input/output token be calculated?

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.

What is workspace?

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.

Where to put my AGENTS.md?

You can put it in 3 places.

  1. Workspace root
  2. ~/.catdesk/AGENTS.md
  3. ~/.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.

What to do if the widget is blank?

  1. Simply refresh the page and reconnect the connector.
  2. 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.

Safety

[!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.

About Binagotchy

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.