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)

贡献者指南