CherryHQ/cherry-studio

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

Fermée

#14 549 ouverte le 24 avr. 2026

 (1 commentaire) (2 réactions) (0 personne assignée)TypeScript (4 338 forks)batch import
AssistantModelsdiscussionhelp wantedinactive

Métriques du dépôt

Stars
 (45 688 étoiles)
Métriques de merge PR
 (Merge moyen 3j 6h) (306 PRs mergées en 30 j)

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)

Guide contributeur