[FEATURE] Add effort parameter support for Opus 4.5 in Claude Code

Status Fixed / completed
Maintainer reply None cached
Activity 8 comments · opened Nov 25, 2025 · closed Mar 13, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Problem Statement

Opus 4.5 introduced an effort parameter (low/medium/high) via the API that controls token usage and response thoroughness. This is currently not exposed in Claude Code CLI.

Proposed Solution

Proposed Solution

Add ability to configure the effort level via:

  • Environment variable: CLAUDE_CODE_EFFORT=medium
  • Settings file: ~/.claude/settings.json with "effort": "medium"
  • CLI flag: claude --effort medium
  • Slash command: /effort medium

Use Case

  • Use low for simple tasks, faster responses
  • Use medium for balanced performance (76% fewer tokens than Sonnet)
  • Use high (default) for complex reasoning tasks

References

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

8 Comments

mehulparmariitr · 9 months ago

Whats the default effort for claude code Opus 4.5?

trevorprater · 8 months ago

It defaults to 'high' and it's already supported via environment variable, it's just not documented.

mehulparmariitr · 8 months ago
It defaults to 'high' and it's already supported via environment variable, it's just not documented.

Which env variable, please share the details.

Majdoddin · 7 months ago

any updates?

mooneydude · 7 months ago
It defaults to 'high' and it's already supported via environment variable, it's just not documented.

are you also setting header via environment var as per claude api docs. if so, how?

--header "anthropic-beta: effort-2025-11-24"

or

betas=["effort-2025-11-24"],
nightpool · 6 months ago

Also curious about this. #12403 mentions that the env var doesn't work anymore.

BarsMonster · 6 months ago

Can confirm that old env variable (CLAUDE_CODE_EFFORT_LEVEL) is broken.

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.