@yanzc/claude-pro 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env.example CHANGED
@@ -1,39 +1,29 @@
1
- # Copy to .env and fill in (an Anthropic-compatible API such as DeepSeek).
2
- ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
3
- ANTHROPIC_AUTH_TOKEN=sk-your-key
4
- ANTHROPIC_MODEL=deepseek-flash[1m]
5
- ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-flash[1m]
6
- ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-flash[1m]
7
- ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
8
- CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
1
+ # Optional gateway configuration. /login normally saves the key in
2
+ # ~/.claude-pro/gateway.json, so CLAUDE_PRO_GATEWAY_API_KEY is only needed for
3
+ # headless or automated runs.
4
+ CLAUDE_PRO_PROVIDER=gateway
5
+ CLAUDE_PRO_GATEWAY_URL=https://gw.predix.icu
6
+ CLAUDE_PRO_GATEWAY_API_KEY=gw-your-key
7
+ CLAUDE_PRO_GATEWAY_MODEL=opus
9
8
 
10
- # Nothing else is needed: claude-pro works with its defaults (the model's own effort, the whole
11
- # context window, 5-minute prompt cache). Tune only if you want to:
12
- # CLAUDE_CODE_EFFORT_LEVEL=high # default: the model's own; max thinks the most and costs the most
13
- # CLAUDE_CODE_AUTO_COMPACT_WINDOW=250000 # default: the model's whole window; a smaller one compacts earlier
14
- # (with CLAUDE_PRO_PROVIDER=claude-code these two lines are not read from this file: set them with /config set)
15
-
16
- # Optional
17
- # CLAUDE_PRO_PROVIDER=claude-code # the Claude subscription: the login of the claude command on this computer
18
- # CLAUDE_PRO_CLAUDE_CODE_MODEL=sonnet
19
- # CLAUDE_PRO_CLAUDE_CONFIG_FILE=C:\Users\you\.claude.json
20
- # CLAUDE_PRO_CLAUDE_CREDENTIALS_FILE=C:\Users\you\.claude\.credentials.json
21
- # CLAUDE_PRO_CLAUDE_CODE_VERSION=2.1.289
22
- # CLAUDE_CONFIG_DIR=C:\Users\you\.claude
23
- # CLAUDE_PRO_DISABLE_TOPIC_TITLE=1 # tab title: keep the first message instead of the current topic (no small-model request per message)
24
- # CLAUDE_PRO_AUTO_RESTART=0 # do not restart by itself when claude-pro's own source changed (/restart still works)
25
- # CLAUDE_PRO_DISABLE_TOKEN_REFRESH=1 # claude-code provider: do not renew the expired login by itself
26
- # CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
27
- # MAX_THINKING_TOKENS=0 # 0 = disable thinking
28
- # CLAUDE_CODE_PROMPT_CACHE_TTL=1h # prompt cache TTL of the conversation: 5m, or 1h (the default with the Claude subscription and the gateway; writes cost 2x, worth it when you often pause for more than 5 minutes)
29
- # CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=5m # ... of sub-agents, compaction and side queries
30
- # ENABLE_PROMPT_CACHING_1H=1 # 1h for both (the two variables above win); FORCE_PROMPT_CACHING_5M=1 forces 5m for both
31
- # DISABLE_PROMPT_CACHING=1 # send no cache_control at all (DISABLE_PROMPT_CACHING_HAIKU / _SONNET / _OPUS / _FABLE: one model only)
9
+ # Reasoning and context tuning
10
+ # CLAUDE_CODE_EFFORT_LEVEL=high # default: the model's own
11
+ # CLAUDE_CODE_AUTO_COMPACT_WINDOW=250000 # default: the model's whole window
12
+ # CLAUDE_CODE_MAX_OUTPUT_TOKENS=48000 # gateway default
13
+ # MAX_THINKING_TOKENS=0 # 0 = disable thinking
14
+ # CLAUDE_CODE_PROMPT_CACHE_TTL=1h # 5m or 1h for the main conversation
15
+ # CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=5m # sub-agents, compaction and side queries
16
+ # ENABLE_PROMPT_CACHING_1H=1 # 1h for both buckets
17
+ # FORCE_PROMPT_CACHING_5M=1 # force 5m for both buckets
18
+ # DISABLE_PROMPT_CACHING=1 # send no cache_control markers
32
19
  # CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=90
33
20
  # DISABLE_AUTOCOMPACT=1
21
+
22
+ # Request and tool limits
34
23
  # API_TIMEOUT_MS=600000
35
- # CLAUDE_PRO_RATE_LIMIT_MAX_WAIT_MS=21600000 # longest wait for a rate limit (5-hour window) to reset; 0 = fail instead of waiting
36
- # BASH_DEFAULT_TIMEOUT_MS=120000
37
- # BASH_MAX_TIMEOUT_MS=600000
38
- # BASH_MAX_OUTPUT_LENGTH=30000
24
+ # CLAUDE_PRO_MAX_RETRIES=6
25
+ # CLAUDE_PRO_RATE_LIMIT_MAX_WAIT_MS=21600000 # 0 = fail instead of waiting
26
+ # BASH_DEFAULT_TIMEOUT_MS=600000
27
+ # BASH_MAX_TIMEOUT_MS=3600000
28
+ # BASH_MAX_OUTPUT_LENGTH=60000
39
29
  # CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe