| 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 |
source & further reading
gist.github.com — original article
Building textlog without JavaScript
Build your own personal-ops system: starter prompt + job ideas
ml-basic-functions.py