Skip to content

Add more env vars and minor tweaks to the effort type definitions#2

Merged
raine merged 6 commits into
raine:mainfrom
0xOmarA:main
Apr 22, 2026
Merged

Add more env vars and minor tweaks to the effort type definitions#2
raine merged 6 commits into
raine:mainfrom
0xOmarA:main

Conversation

@0xOmarA

@0xOmarA 0xOmarA commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds two new environment variables that I needed when using this proxy and also makes some minor changes to the type declaration of the effort.

Environment Variables

All of these were added based on my own usage of this proxy and based on my own needs. To elaborate a bit more, I use this proxy in conjunction with the agent-teams feature provided by the claude code harness. When using this feature it's very hard to instruct the team lead on what model to choose when spawning team mates and what effort level to set. Sadly, most of the time it looks like the model would just ignore these instructions as it looks like the tool that they use to spawn team mates doesn't give them this level of control over the models to use. I use gpt-5.4 with the claude code harness exclusively for the agent-teams feature and therefore I wanted to be able to completely override the selected model and effort level at a proxy level so that all requests, no matter what the selected model is, go to gpt-5.4 xhigh.

  • CLAUDE_CODEX_PROXY_OPEN_AI_MODEL_OVERRIDE - Allows for the proxy to override the selected model with the model provided in the environment variable.
  • CLAUDE_CODEX_PROXY_OPEN_AI_EFFORT_OVERRIDE - Allows for the proxy to override the selected effort level with the effort level provided in the environment variable.

Effort Type Definition

With the release of opus-4-7, claude now has an xhigh effort level. Due to that, I've redefined effort to be it's own type alias defined as follows:

export type Effort = "none" | "low" | "medium" | "high" | "xhigh"

0xOmarA and others added 6 commits April 22, 2026 23:29
Adds CLAUDE_CODEX_PROXY_OPEN_AI_MODEL_OVERRIDE and
CLAUDE_CODEX_PROXY_OPEN_AI_EFFORT_OVERRIDE to force specific
model and effort settings across all proxy requests. Useful
when using agent-teams where the harness doesn't reliably
respect model/effort instructions.

Also expands the Effort type to include "none" and "xhigh"
to match the upstream Codex Responses API reasoning effort
values ("none", "low", "medium", "high", "xhigh").
@raine

raine commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Thanks. I did some changes

@raine
raine merged commit d01f546 into raine:main Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants