CherryHQ/cherry-studio

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

已關閉

#14,549 建立於 2026年4月24日

 (1 則留言) (2 個反應) (0 位負責人)TypeScript (4,338 個分叉)batch import
AssistantModelsdiscussionhelp wantedinactive

倉庫指標

星標
 (45,688 顆星)
PR 合併指標
 (平均合併 3天 6小時) (30 天內合併 306 個 PR)

描述

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

貢獻者指南