OpenAI service tier support
## Problem Currently, Codex CLI doesn't provide users with control over OpenAI API service tiers, limiting cost optimization options for different use cases. ## Proposed Solution Add `service_tier` configuration option to control API request cost and latency via OpenAI's service tier parameter: - `auto` (default): Standard processing with automatic tier selection - `flex`: 50% cheaper processing with increased latency, ideal for non-production workloads - `priority`: Faster processing for enterprise users ## Implementation Details - Configuration via `service_tier` in config.toml and profiles - CLI flag `--service-tier` for per-session override - Model compatibility validation with fallback to `auto` - Support for both exec and TUI modes ## Use Cases - **Development/testing**: Use `flex` tier for 50% cost savings on non-critical workloads - **Production**: Use `priority` tier for faster response times - **Batch processing**: Use `flex` for cost-effective background tasks ## Configuration Examples ```toml # Global setting service_tier = "flex" # Profile-specific [profiles.cost-optimized] model = "o3" service_tier = "flex" ``` ```bash # CLI usage codex --service-tier flex "Analyze this code" codex exec --service-tier priority "Generate tests" ``` ## Benefits - **Cost optimization**: Up to 50% savings with flex tier - **Performance control**: Priority tier for time-sensitive work - **Flexibility**: Per-session and per-profile configuration - **Backward compatibil
Posted by jakvbs on Aug 29, 2025, 9:52 PM
Tags
Related issues
- there are tons of TLDs that are cheap I'm not even sure what you are offering after reading this, but cloud is an even harder sell becau...
- > One can't expect that every driver package submission from every vendor is thoroughly vetted every time, this is a matter of trust and ...
- Too expensive for a worse vehicle than the Model Y (with incentives, it was a >$20K difference).
- Starlink only has 10 Million customers, too expensive for most countries already.
- The U7 Lite only does 2x2 MIMO.
- Iranians use VPNs simply because they want to access the internet.
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
pricing (Network)
there are tons of TLDs that are cheap I'm not even sure what you are offering after reading this, but cloud is an even harder sell becau...
> One can't expect that every driver package submission from every vendor is thoroughly vetted every time, this is a matter of trust and ...
Too expensive for a worse vehicle than the Model Y (with incentives, it was a >$20K difference).
Starlink only has 10 Million customers, too expensive for most countries already.
The U7 Lite only does 2x2 MIMO.
Iranians use VPNs simply because they want to access the internet.
> When you don't want the ads and privacy invasion, you don't visit the website.
A vantage point from a very long time ago: The big social media services are pining for the days of CompuServe and Prodigy.
OpenAI service tier support
## Problem Currently, Codex CLI doesn't provide users with control over OpenAI API service tiers, limiting cost optimization options for different use cases. ## Proposed Solution Add `service_tier` configuration option to control API request cost and latency via OpenAI's service tier parameter: - `auto` (default): Standard processing with automatic tier selection - `flex`: 50% cheaper processing with increased latency, ideal for non-production workloads - `priority`: Faster processing for enterprise users ## Implementation Details - Configuration via `service_tier` in config.toml and profiles - CLI flag `--service-tier` for per-session override - Model compatibility validation with fallback to `auto` - Support for both exec and TUI modes ## Use Cases - **Development/testing**: Use `flex` tier for 50% cost savings on non-critical workloads - **Production**: Use `priority` tier for faster response times - **Batch processing**: Use `flex` for cost-effective background tasks ## Configuration Examples ```toml # Global setting service_tier = "flex" # Profile-specific [profiles.cost-optimized] model = "o3" service_tier = "flex" ``` ```bash # CLI usage codex --service-tier flex "Analyze this code" codex exec --service-tier priority "Generate tests" ``` ## Benefits - **Cost optimization**: Up to 50% savings with flex tier - **Performance control**: Priority tier for time-sensitive work - **Flexibility**: Per-session and per-profile configuration - **Backward compatibil
Comments (0)
No comments yet. Start the discussion.