CherryHQ/cherry-studio

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

クローズ

#14,549 opened on 2026/04/24

 (1 件のコメント) (2 件のリアクション) (0 人の担当者)TypeScript (4,338 件のフォーク)batch import
AssistantModelsdiscussionhelp wantedinactive

Repository metrics

Stars
 (45,688 個のスター)
PR merge metrics
 (平均マージ 3d 6h) (30d で 306 merged PRs)

説明

[!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)

コントリビューターガイド