Skip to content

Commit 6b91b82

Browse files
Add config.json setup hint to install script
Users had no way to discover config.json for precise token counting unless they ran `stats` and noticed the hint. Now the installer prints setup instructions after install, and ships a config.json.template in the repo for reference. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0192twUPgNxmFCpvpsBk5uqg
1 parent ce773f5 commit 6b91b82

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎config.json.template‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"anthropic_api_key_file": "~/.config/anthropic/.env"
3+
}

‎install.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ print_next_steps() {
182182
echo " cc-session read <id> # 讀取對話內容"
183183
echo " /cc-session # 在 Claude Code 中使用 (需已安裝 Skill)"
184184
echo ""
185+
echo "── Token counting (optional) ──────────────────────────────────────"
186+
echo " For precise token counts in 'cc-session stats', create:"
187+
echo " $SKILL_DIR/config.json"
188+
echo ""
189+
echo ' {"anthropic_api_key_file": "<path-to-your-api-key-file>"}'
190+
echo ""
185191
}
186192

187193
main() {

0 commit comments

Comments
 (0)