cd /news/developer-tools/fix-gpt-5-6-luna-in-opencode-plugin · home topics developer-tools article
[ARTICLE · art-55295] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Fix GPT-5.6 Luna in OpenCode - Plugin

A developer created a plugin for OpenCode that modifies chat headers to fix compatibility with GPT-5.6 Luna. The plugin sets the originator to 'codex_cli_rs' and the User-Agent to 'codex_cli_rs/0.0.0 (OpenCode)' when the model provider is OpenAI.

read1 min views1 publishedJul 10, 2026
| import type { Plugin } from "@opencode-ai/plugin" | |
| export default (async () => ({ | |
| "chat.headers": async (input, output) => { | |
| if (input.model.providerID !== "openai") return | |

| output.headers.originator = "codex_cli_rs" | | | output.headers["User-Agent"] = "codex_cli_rs/0.0.0 (OpenCode)" | | | }, | | | })) satisfies Plugin |

── more in #developer-tools 4 stories · sorted by recency
── more on @opencode 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/fix-gpt-5-6-luna-in-…] indexed:0 read:1min 2026-07-10 ·