Skip to content

Instantly share code, notes, and snippets.

View Chlorek's full-sized avatar

Chlorek Chlorek

  • Poland
View GitHub Profile
@Chlorek
Chlorek / opencode-codex-identity-plugin.ts
Last active July 15, 2026 11:02
Fix GPT-5.6 Luna in OpenCode - Plugin
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