CherryHQ/cherry-studio

[Discussion]: Agent Environment Variables When Using Non-Claude Models

Open

#14549 opened on Apr 24, 2026

View on GitHub
 (1 comment) (2 reactions) (0 assignees)TypeScript (45,688 stars) (4,338 forks)batch import
AssistantModelsdiscussionhelp wantedinactive

Description

[!NOTE] This issue was translated by Claude.

Issue Checklist

  • I understand that issues are meant for feedback and problem-solving, not for venting, and I will provide as much detail as possible to help resolve the issue.
  • I have checked the pinned issues and searched through the existing open issues, closed issues, and discussions and did not find a similar suggestion.
  • I confirm that I am here to ask questions and discuss issues, not to report bugs or request features.

Platform

Windows

Version

v1.9.2

Your Question

When using non-Claude models, will the agent automatically configure some environment variables to prevent Claude Code SDK's tricks? For example, CLAUDE_CODE_ATTRIBUTION_HEADER=0, which prevents third-party models from hitting the cache?

Context

Using non-Anthropic models

Additional Information

Priority

High (Blocking progress)


Issue Checklist

  • I understand that issues are meant for feedback and problem-solving, not for venting, and I will provide as much detail as possible to help resolve the issue.
  • I have checked the pinned issues and searched through the existing open issues, closed issues, and discussions and did not find a similar suggestion.
  • I confirm that I am here to ask questions and discuss issues, not to report bugs or request features.

Platform

Windows

Version

v1.9.2

Your Question

使用非claude的模型的时,agent会自动配置一些防止claude code sdk小动作的环境变量么?比如CLAUDE_CODE_ATTRIBUTION_HEADER=0这种,防止第三方模型命中不了缓存的环境变量

Context

使用非anthroic的模型

Additional Information

Priority

High (Blocking progress)

Contributor guide