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

opencode-openai-codex-headers

v1.2.7

Published

Stopgap opencode plugin that smooths the OpenAI/Codex GPT-5.6 rough edges (Luna 404s, missing session titles, reasoning-summary markers) until native support lands

Readme

opencode-openai-codex-headers

npm

An opencode plugin for ChatGPT Plus/Pro users on the Codex backend. It smooths over the rough edges in opencode's OpenAI/Codex integration for the GPT-5.6 models (Sol, Terra, Luna) until native support lands upstream.

What it fixes

  • Luna 404s. GPT-5.6 Luna models return 404 Model not found. The Codex backend gates them on the client identity, and opencode identifies as opencode rather than the Codex CLI. The plugin restores the genuine Codex signature so Luna is served, and keeps Terra in the Codex priority tier so it stops load-shedding with server_is_overloaded under contention.
  • Missing session names. opencode's title agent runs on a Luna model, so the same 404 leaves every session stuck on its default New session - <timestamp> name. Recovering Luna fixes the titles.
  • Reasoning-summary markers. GPT-5.6 ends each reasoning summary with an empty <!-- --> comment that opencode's TUI renders literally under the "Thought" headline. The plugin strips it on the wire so only the headline remains.

Install

Via the opencode CLI (-g writes it to your global config; drop it for the current project):

opencode plugin opencode-openai-codex-headers -g

Manual: add it to the plugin array in your opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-openai-codex-headers"]
}

How it works

Identity. A chat.headers hook overwrites originator and User-Agent on the openai provider only, so requests present the genuine Codex CLI signature (the backend requires both). It loads after opencode's internal hooks and runs against the same shared output, so it wins; every other provider is untouched.

Reasoning cleanup. opencode exposes no hook to transform reasoning text, so the plugin rewrites the summary events on the wire, on both the HTTP/SSE path and opencode's experimental WebSocket transport. It touches only reasoning delta events on /responses endpoints (host-agnostic, so it also works through a proxy or custom baseURL); everything else passes through unchanged.

License

MIT