How does opencode implement a custom transformer similar to claude code router? #7611

Open
opened 2026-02-16 18:07:43 -05:00 by yindo · 0 comments
Owner

Originally created by @Julinear on GitHub (Jan 26, 2026).

Originally assigned to: @thdxr on GitHub.

Question

This is the description in Claude Code Router,

Custom Transformers:
You can also create your own transformers and load them via the transformers field in config.json.
{
  "transformers": [
    {
      "path": "/User/xxx/.claude-code-router/plugins/gemini-cli.js",
      "options": {
        "project": "xxx"
      }
    }
  ]
}
Originally created by @Julinear on GitHub (Jan 26, 2026). Originally assigned to: @thdxr on GitHub. ### Question This is the description in[ Claude Code Router](https://github.com/musistudio/claude-code-router/blob/main/README.md), ``` Custom Transformers: You can also create your own transformers and load them via the transformers field in config.json. { "transformers": [ { "path": "/User/xxx/.claude-code-router/plugins/gemini-cli.js", "options": { "project": "xxx" } } ] } ```
yindo added the docs label 2026-02-16 18:07:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7611