Library / SDK
adamallcock/codex-chatgpt-control avatar
adamallcock/codex-chatgpt-control

codex-chatgpt-control: an SDK that drives the visible ChatGPT web session from Codex agents

Unofficial SDK for Codex agents controlling visible ChatGPT web sessions

405 stars32 forksJavaScriptMIT

At a glance

What is it?
codex-chatgpt-control is an unofficial alpha SDK that lets a Codex agent delegate work to the ChatGPT Chat and Work surfaces a signed-in user can actually see. It is narrow by design, prerelease by declaration, and useless without a compatible browser bridge.
Who is it for?
Adopt codex-chatgpt-control if you already run Codex against a browser bridge and you need agent-to-ChatGPT handoffs that stay visible and user-directed. Do not adopt it if you want an OpenAI API wrapper, a scraping tool, or a generic browser automation framework; the README rules all three out.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 49 days ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • adamallcock/codex-chatgpt-control405 ★ · +1
Star history
Repository2026-09-212026-11-22
adamallcock/codex-chatgpt-control404405

1 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The handoff problem codex-chatgpt-control was built to remove

The README opens with a concrete complaint: one desktop shell can contain several distinct execution experiences, and a user ends up moving work between them by hand. Codex handles local repository work, meaning edits, commands, tests, branches and deployment. Visible ChatGPT Chat and Work carry different conversation state, task state, controls, files, progress and artifacts. Nothing in the supported toolchain bridges that gap, so the human becomes the bridge.

The project's stated target is an agent that needs to work with the real ChatGPT web product the user can see. That phrasing is doing real work. This is not a library for talking to a model. It is a library for operating a product surface: detecting whether Chat or Work is open, inspecting the controls available to the signed-in user, applying configuration, starting or continuing threads, polling tasks, and pulling artifacts back out.

Who it is for follows from that. The README describes an agent to browser to chatgpt.com workflow, which means the caller is a Codex-style agent running inside a host that already has browser control. A developer who wants to call a model from a script is not the audience. Neither is anyone who wants unattended account automation; the project explicitly excludes hidden access and account automation.

How the SDK separates surfaces, controls and task lifecycle

The architecture visible in the README is a two-package split with a single runtime authority. The Node package is described as the browser-control runtime authority, and the Python package is a parity client over the same local backend protocol. So Python is not a second implementation of browser control; it is a client that speaks to the Node backend. If you plan to use the Python package, that distinction determines what has to be running.

Above the runtime sits a surface model. The SDK detects Chat versus Work rather than assuming a single picker, and inspects the nested configuration actually available to the signed-in user without mutating it. Applying configuration is a separate step with postcondition verification, which means the SDK checks the final state rather than trusting that a click landed.

The task lifecycle is deliberately split into discrete operations: start, status, wait, steer, read, and artifact retrieval. The README gives the reason, and it is the most interesting design decision in the project: separating Work start from status and wait is what prevents a timeout from creating a duplicate task. Any agent framework that wraps a long-running remote task in a single call has this bug. This one is structured to avoid it.

Stop reasons get first-class treatment. When ChatGPT needs login, a captcha, permissions, or UI review, the SDK reports why it could not continue instead of failing opaquely. Local run reports omit prompt and response content by default, which is a privacy default worth noting because it is the opposite of what most logging layers do.

Installing codex-chatgpt-control and running a first delegated prompt

The project is prerelease, and the install instructions reflect that. npm prereleases publish under the next tag, so the README warns that a plain install may resolve to an older latest release. Use the tag explicitly.

bash
npm install codex-chatgpt-control@next

The Python client installs the same way, with the pre flag:

bash
python -m pip install --pre codex-chatgpt-control

For Codex Desktop, the repository ships a plugin that the README calls the easiest way to make Codex Desktop agents use the SDK consistently. Register the repository as a plugin marketplace and add the plugin:

bash
codex plugin marketplace add adamallcock/codex-chatgpt-control --ref main
codex plugin add codex-chatgpt-control@codex-chatgpt-control

The plugin bundles three skills: codex-chatgpt-control for broad visible Chat and Work workflows, chatgpt-delegate as the preferred surface-neutral delegation workflow, and chatgpt-pro-consult as a backward-compatible alias for the visible Chat Pro setting. It also bundles Node runtime files. It does not bundle a browser bridge, credentials, or ChatGPT account access.

A first real use, taken from the Node quick start, assumes you are running inside a Codex or browser-bridge host that provides globalThis.agent:

ts
import { createChatGPT } from "codex-chatgpt-control";

const chatgpt = createChatGPT({ agent: globalThis.agent });
const reviewer = chatgpt.agent({
  name: "reviewer",
  instructions: "Review carefully and return Markdown."
});

const result = await chatgpt.runner.run(reviewer, {
  input: "Reply with a one-sentence summary of this project.",
  thread: { type: "new" },
  experience: "chat",
  response: { format: "markdown" }
});

The experience key selects the surface, thread controls whether a new thread is opened, and response.format asks for Markdown. If the bridge is missing or the session is not signed in, the run should surface a stop reason rather than a generic error. The README does not show the shape of the result object beyond the response format, so treat the return value as something to inspect before you depend on its fields.

For skill-only setups, the README keeps a manual fallback: copy skills/codex-chatgpt-control/ into ~/.codex/skills/ with rsync, then add a short instruction to the repository telling agents to use the skill and to reuse an existing tab through existingTab or existing_tab when the user says a thread is already open.

Where codex-chatgpt-control is the wrong tool

The README's own exclusion list is the fastest way to decide against this project. It is not a generic browser automation framework, not a scraping tool, not an OpenAI API wrapper, not an official OpenAI project, and not a replacement for the official Codex SDK. It is also not affiliated with, endorsed by, or sponsored by OpenAI. Anyone who needs a supported integration path should stop reading here, because every one of those exclusions is a boundary the maintainers chose deliberately.

The practical failure modes follow from the visible-session requirement. The plugin and skill do not bundle a browser bridge, credentials, or ChatGPT account access, so real workflows need a compatible bridge and a signed-in visible session. Without those, the SDK has nothing to drive. When ChatGPT presents a login wall, a captcha, a permission prompt, or a UI review step, the SDK reports a stop reason and stops. The README's own instruction to agents is to report that stop reason and not retry blindly. An agent that loops on a captcha is misusing the library.

The alpha status is a second constraint. The most recent release listed is v0.5.1-alpha.4, and every published version in the list carries an alpha suffix. The README calls the project prerelease software. Interfaces can move between alphas, and the repository carries contract validation, docs drift checks and parity fixtures in its scripts, which suggests the maintainers know how easily the documented surface and the shipped surface diverge. The last push was on 2026-09-08, so the repository is not dormant, but recency of commits is not a promise of interface stability.

Finally, the README does not document rollback, and it does not describe what happens to an in-flight Work task when the SDK process is killed mid-wait. If your workflow cannot tolerate an orphaned task on the ChatGPT side, that gap matters more than any feature listed above.

How it differs from Playwright-style automation and the official Codex SDK

The obvious alternative is a general browser automation library such as Playwright. The difference is not capability, it is intent. Playwright gives you selectors, navigation and input primitives, and leaves the semantics of the target product to you. codex-chatgpt-control ships those semantics: it knows Chat and Work are different surfaces with different state, it inspects nested controls without mutating them, it verifies configuration after applying it, and it models a task lifecycle with separate start, status, wait, steer, read and artifact steps. You would be rebuilding all of that on top of Playwright, and the duplicate-task problem would be yours to solve.

The cost of that convenience is scope. A Playwright script can drive any site; this SDK drives one product through a bridge it does not ship. If your target is not chatgpt.com, or if the visible UI is not a requirement, Playwright is the better fit and this project adds nothing.

The second alternative is named in the README itself: the official Codex SDK and CLI. The project states plainly that it is not a replacement for them. The intended relationship is complementary. Codex remains the home for local repository work, and this SDK handles delegation to the visible ChatGPT surfaces. If your work never leaves the local repository, the official tooling covers it and the browser bridge is pure overhead.

Maintenance, upgrade path and MIT licensing

Maintenance signals in the repository are mixed but readable. The last push was on 2026-09-08, and releases shipped on 2026-08-16, 2026-08-18 and 2026-09-07, so the cadence is recent. The repository is not archived. That said, every release is an alpha, the README calls the software prerelease, and the version string in the root package.json matches the most recent tag, which indicates the release process is scripted rather than manual.

Upgrading the Codex plugin is a two-step ritual the README spells out. Refresh the marketplace snapshot, reinstall the plugin, then start a new Codex thread so updated skill metadata is loaded:

bash
codex plugin marketplace upgrade codex-chatgpt-control
codex plugin add codex-chatgpt-control@codex-chatgpt-control

That last step is easy to skip and easy to misdiagnose. A stale thread can keep using old skill metadata after the plugin files have changed, which looks like a bug in the SDK. Budget for it in any upgrade runbook.

The repository also carries a contract and parity toolchain: contract validation, docs drift checks, parity fixtures and a parity suite, plus separate gates for Python compile, pyright and tests. For a two-package project with a parity client, that is the right shape of investment, because the main long-term risk is the Python client drifting from the Node authority.

Licensing is MIT, per the repository's LICENSE file and the badge in the README. MIT is permissive and imposes no source-disclosure obligation on your own code. Two caveats are worth stating without turning into legal advice. First, the project is unofficial and unaffiliated with OpenAI, so the licence covers this SDK's code, not any right to automate a ChatGPT account; whether your use complies with OpenAI's terms is a separate question the README does not answer. Second, the npm and PyPI packages are the same code under the same licence, so there is no split-licence trap between the two clients.

Editorial conclusion

Adopt codex-chatgpt-control if you already run Codex against a browser bridge and you need agent-to-ChatGPT handoffs that stay visible and user-directed. Do not adopt it if you want an OpenAI API wrapper, a scraping tool, or a generic browser automation framework; the README rules all three out. Before wiring it into anything, verify that globalThis.agent is present in your host, that a signed-in chatgpt.com session is visible, and that you can read the stop reason when the SDK refuses to continue. Check the CHANGELOG.md and docs/ directory for rollback guidance, because the README does not document rollback.

Frequently asked questions

Does Codex have remote control?

It depends on what you mean by Codex. This project is an unofficial SDK that lets a Codex-style agent control a visible ChatGPT web session through a compatible browser bridge, which is a form of remote control over the browser surface rather than over your machine. The README states it is not affiliated with, endorsed by, or sponsored by OpenAI, so it is not an official remote-control feature.

Does codex control your computer?

The README describes Codex as the supported home for local repository work such as editing, commands, tests, branches and deployment, so it operates in your local environment. codex-chatgpt-control itself is narrower: it drives chatgpt.com through a browser bridge and visible UI controls, and the README says it does not provide hidden ChatGPT access or account automation.

Is codex better than ChatGPT?

The project does not frame them as competitors. The README treats Codex as the home for local repository execution and the visible ChatGPT Chat and Work surfaces as places for conversational review, research and longer deliverables, and codex-chatgpt-control exists to move work between them instead of replacing one with the other.

Can HK use codex?

The README does not discuss regional availability or account eligibility for Codex or for ChatGPT, so this question cannot be answered from the project's documentation. What the README does say is that real browser workflows require a compatible Codex/browser bridge and a visible signed-in ChatGPT web session.

Official sources

  1. adamallcock/codex-chatgpt-control on GitHub
  2. Issues
  3. License: MIT
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/adamallcock-codex-chatgpt-control.svg)](https://hysenlabs.com/projects/adamallcock-codex-chatgpt-control)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/adamallcock-codex-chatgpt-control.svg)](https://hysenlabs.com/projects/adamallcock-codex-chatgpt-control)

Was this useful?