# Fix GPT-5.6 Luna in OpenCode - Plugin

> Source: <https://gist.github.com/Chlorek/6913ae71f57974a74a69efc9fe554c7d>
> Published: 2026-07-10 19:51:32+00:00

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