claude-cost-cry 0.3.3 → 0.3.4

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.
Files changed (3) hide show
  1. package/README.ko.md +74 -94
  2. package/README.md +91 -112
  3. package/package.json +1 -1
package/README.ko.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/claude-cost-cry.svg)](https://www.npmjs.com/package/claude-cost-cry)
4
4
  [![license](https://img.shields.io/npm/l/claude-cost-cry.svg)](LICENSE)
5
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-ffdd00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/shimsuyeon)
5
6
 
6
7
  > AI 비용으로 얇아지는 내 지갑을 실시간으로 살펴보세요 (ㅠㅠ)
7
8
 
@@ -9,42 +10,43 @@
9
10
 
10
11
  [English](README.md)
11
12
 
12
- ## 뭐하는 도구인가요?
13
-
14
- Claude Code(및 기타 LLM 프로바이더) 사용 시 실시간으로 비용을 추적하면서, 돈이 날아가는 순간을 감정 메시지, 일상 환산, 플로팅 위젯으로 체감시켜줍니다.
13
+ ```bash
14
+ npm install -g claude-cost-cry
15
+ ```
15
16
 
17
+ <div align="center">
18
+ <img width="320" alt="overlay" src="https://github.com/user-attachments/assets/fd8da839-cad9-4b15-998a-7b5eb4a93b9b" />
19
+ </div>
16
20
 
17
- <img width="268" height="132" alt="image" src="https://github.com/user-attachments/assets/73b7a9c8-593c-407c-8c41-a12a1c92cda1" />
21
+ API 비용이 날아가는 순간을 감정 메시지, 일상 환산, 플로팅 위젯으로 체감시켜줍니다.
18
22
 
23
+ ## 빠른 시작
19
24
 
25
+ ```bash
26
+ cost-cry # 플로팅 오버레이 위젯 실행
20
27
  ```
21
- $ cost-cry
22
28
 
23
- 🪙 claude-cost-cry v0.3.0
24
- 당신의 API 비용을 감정적으로 체감시켜드립니다
29
+ 이게 끝입니다. 화면 오른쪽 위에 위젯이 뜨고 바로 추적을 시작합니다.
25
30
 
26
- 📊 오늘 누적: $2.41 (☕ 아이스 아메리카노 0.5잔)
27
- API 호출 12건
28
- 🌤️ 조금씩 쓰고 있네요...
31
+ > macOS에서 처음 실행 시 `xattr -cr node_modules/electron/dist/Electron.app` 실행이 필요할 있습니다.
29
32
 
30
- ────────────────────────────────────────────────────────
31
- 감시 중... (Ctrl+C로 종료)
32
- ────────────────────────────────────────────────────────
33
+ ## 기능
33
34
 
34
- [14:32:15] Opus 📥 15.2K 📤 1.2K
35
- 🔥 +$0.38 → 누적: $8.73 🍗 0.5마리
36
- "이 돈이면 고급 뷔페를 갈 수 있었는데..."
35
+ ### 플로팅 오버레이 위젯
37
36
 
38
- [14:35:22] Sonnet 📥 8.3K 📤 2.1K
39
- 💸 +$0.06 → 누적: $8.79 🍗 0.5마리
40
- "지갑이 울고 있어요 진짜로"
41
- ```
42
37
  <div>
43
- <img width="250" alt="image" src="https://github.com/user-attachments/assets/b69e48e0-a212-49c8-b995-19a04a9e0205" />
44
- <img width="250" alt="image" src="https://github.com/user-attachments/assets/ad47eef6-361f-43d9-aa1d-01b4a4e1489d" />
38
+ <img width="300" alt="panels" src="https://github.com/user-attachments/assets/ffd41048-6576-4a68-854a-0642b89acee5" />
39
+ <img width="300" alt="panels" src="https://github.com/user-attachments/assets/5d84231b-27eb-45a4-80a5-2da6de4162ae" />
45
40
  </div>
46
41
 
47
- ## 비용 구간별 감정 이펙트
42
+ - 비용 구간에 따라 이모지와 글자 색상 변경
43
+ - 새 API 호출 시 바운스 애니메이션 + 비용 플래시
44
+ - $30 이상이면 위젯이 흔들림
45
+ - 드래그로 위치 이동, 시스템 트레이에서 열기/닫기
46
+ - 확장 패널: 일별 차트, 모델별 비용, TOP 3 비싼 요청
47
+ - 설정 패널: 예산, 통화, 언어, 환산 단위, 원클릭 업데이트
48
+
49
+ ### 비용 구간별 감정 이펙트
48
50
 
49
51
  | 비용 구간 | 이모지 | 기분 | 메시지 예시 |
50
52
  |-----------|-------|------|------------|
@@ -55,106 +57,78 @@ $ cost-cry
55
57
  | $30 ~ $100 | 💀 | 공포 | "은행 잔고가 비명을 지르고 있습니다" |
56
58
  | $100+ | ⚰️ | 장례식 | "🚨 경고: 이 API 키는 불에 타고 있습니다 🚨" |
57
59
 
58
- ## 설치
60
+ ### 멀티 프로바이더 지원
59
61
 
60
- ```bash
61
- npm install -g claude-cost-cry
62
- ```
63
-
64
- > **[npm 패키지](https://www.npmjs.com/package/claude-cost-cry)** · Node.js 18 이상 필요
65
-
66
- ## 사용법
62
+ 여러 LLM 프로바이더의 비용을 함께 추적합니다:
63
+ - 🟣 **Claude Code** — 자동 (로컬 JSONL 로그)
64
+ - ⚡ **Cursor IDE** — API 폴링 (`cost-cry config --add-source cursor`)
65
+ - 🟢 **OpenAI** — 로컬 로그 (`cost-cry config --add-source openai:/path/to/logs`)
66
+ - 🔵 **Google Gemini** — 로컬 로그 (`cost-cry config --add-source google:/path/to/logs`)
67
67
 
68
- ### 오버레이 모드 (플로팅 위젯) — 기본
68
+ ### 일상 환산
69
69
 
70
- ```bash
71
- cost-cry
72
- ```
70
+ 비용을 일상적인 단위로 환산합니다 — "$3.50"은 아무 감흥 없지만, "🍲 뜨끈한 국밥 0.6그릇"은 아프니까:
73
71
 
74
- 화면 오른쪽 위에 있는 위젯으로 실시간 비용을 확인합니다:
75
- - 비용 구간에 따라 이모지와 글자 색상이 변합니다
76
- - 새 API 호출 시 바운스 애니메이션 + 비용 플래시
77
- - $30 이상이면 위젯이 흔들립니다
78
- - 시스템 트레이에서 위젯 열기/닫기 가능
79
- - 드래그로 위치 이동 가능
80
- - 확장 패널: 일별 차트, 모델별 비용, TOP 3 비싼 요청, 설정
72
+ 아이스 아메리카노 · 🍢 떡볶이 · 🍲 뜨끈한 국밥 · 🍱 점심 한 끼 · 🍗 치킨 · 📺 넷플릭스 · 🥤 프라푸치노
81
73
 
82
- > macOS에서 처음 실행 `xattr -cr node_modules/electron/dist/Electron.app` 실행이 필요할 수 있습니다.
74
+ CLI 또는 오버레이 설정에서 변경 가능. 커스텀 단위도 추가할 수 있습니다.
83
75
 
84
- ### CLI 모드 (터미널)
76
+ ## CLI
85
77
 
86
78
  ```bash
87
- cost-cry cli
79
+ cost-cry cli # 터미널 실시간 추적
80
+ cost-cry report # 주간 리포트
81
+ cost-cry report --monthly # 월간 리포트
82
+ cost-cry config # 현재 설정 보기
83
+ cost-cry config --daily-budget 10 # 일일 예산 $10 설정
84
+ cost-cry config --currency KRW # 표시 통화 변경
85
+ cost-cry config --language ko # 한국어로 전환
86
+ cost-cry config --nudge off # 절약 넛지 끄기
88
87
  ```
89
88
 
90
- 터미널에서 실시간 추적:
91
- 1. 오늘의 누적 비용을 스캔하여 보여줍니다
92
- 2. Claude Code 사용을 실시간으로 감시합니다
93
- 3. API 호출이 감지될 때마다 비용과 감정 메시지를 표시합니다
94
- 4. `Ctrl+C`로 종료하면 세션 요약을 보여줍니다
89
+ <details>
90
+ <summary>CLI 출력 예시</summary>
95
91
 
96
- ### 리포트
97
-
98
- ```bash
99
- cost-cry report # 주간 리포트
100
- cost-cry report --monthly # 월간 리포트
101
92
  ```
93
+ $ cost-cry cli
102
94
 
103
- 일별 비용 ASCII 차트, 모델별 비용 분석, 절약 시뮬레이션을 제공합니다.
95
+ 🪙 claude-cost-cry v0.3.3
96
+ 당신의 API 비용을 감정적으로 체감시켜드립니다
104
97
 
105
- ### 설정
98
+ 📊 오늘 누적: $2.41 (☕ 아이스 아메리카노 0.8잔)
99
+ API 호출 12건
106
100
 
107
- ```bash
108
- cost-cry config # 현재 설정 보기
109
- cost-cry config --daily-budget 10 # 일일 예산 $10 설정
110
- cost-cry config --daily-budget off # 예산 해제
111
- cost-cry config --currency KRW # 표시 통화 변경
112
- cost-cry config --nudge off # 절약 넛지 끄기
113
- cost-cry config --language en # 영어로 전환
114
- cost-cry config --add-source cursor # Cursor IDE 추적
101
+ ────────────────────────────────────────────────────────
102
+ 감시 중... (Ctrl+C로 종료)
103
+ ────────────────────────────────────────────────────────
104
+
105
+ [14:32:15] Opus 📥 15.2K 📤 1.2K
106
+ 🔥 +$0.38 → 누적: $8.73 🍗 0.5마리
107
+ "이 돈이면 고급 뷔페를 수 있었는데..."
108
+
109
+ [14:35:22] Sonnet 📥 8.3K 📤 2.1K
110
+ 💸 +$0.06 → 누적: $8.79 🍗 0.5마리
111
+ "지갑이 울고 있어요 진짜로"
115
112
  ```
116
113
 
117
- #### 예산 알림
114
+ </details>
115
+
116
+ ### 예산 알림
118
117
 
119
118
  예산을 설정하면:
120
119
  - 70% 도달 시 💡 경고, 90% 시 ⚠️ 경고, 100% 초과 시 🚫 경고
121
- - CLI와 오버레이 위젯 모두에서 표시됩니다
122
120
 
123
- #### 절약 넛지
121
+ ### 절약 넛지
124
122
 
125
123
  API 호출 시 더 저렴한 모델을 썼으면 얼마를 아낄 수 있었는지 실시간으로 보여줍니다:
126
124
 
127
125
  ```
128
- [14:32:15] Opus 📥 15.2K 📤 1.2K
129
- 🔥 +$0.38 → 누적: $8.73
130
- 💡 Haiku로 했으면 $0.02 ($0.36 절약)
126
+ 💡 Haiku로 했으면 $0.02 ($0.36 절약)
131
127
  ```
132
128
 
133
- #### 멀티 프로바이더 지원
134
-
135
- 여러 LLM 프로바이더의 비용을 함께 추적합니다:
136
- - 🟣 **Claude Code** — 자동 (로컬 JSONL 로그)
137
- - ⚡ **Cursor IDE** — API 폴링 (`cost-cry config --add-source cursor`)
138
- - 🟢 **OpenAI** — 로컬 로그 (`cost-cry config --add-source openai:/path/to/logs`)
139
- - 🔵 **Google Gemini** — 로컬 로그 (`cost-cry config --add-source google:/path/to/logs`)
140
-
141
- #### 언어
142
-
143
- 기본 언어는 **영어**입니다. 한국어로 전환:
144
-
145
- ```bash
146
- cost-cry config --language ko
147
- ```
148
-
149
- 오버레이 설정 패널에서도 변경 가능합니다.
150
-
151
129
  ## 작동 원리
152
130
 
153
- Claude Code는 모든 API 호출 로그를 `~/.claude/projects/` 아래에 JSONL 파일로 저장합니다. cost-cry는 이 로그 파일을 실시간으로 감시하며:
154
-
155
- 1. 새로운 assistant 응답의 `usage` 필드에서 토큰 사용량을 추출
156
- 2. 모델별 공식 가격표를 기반으로 비용을 계산
157
- 3. 비용 구간에 맞는 감정 메시지를 표시
131
+ Claude Code는 API 호출 로그를 `~/.claude/projects/` 아래에 JSONL 파일로 저장합니다. cost-cry는 이 로그 파일을 실시간으로 감시하며 토큰 사용량을 추출하고 공식 가격표를 기반으로 비용을 계산합니다.
158
132
 
159
133
  **프록시나 API 키가 필요 없습니다.** 로컬 로그 파일만 읽습니다 (또는 Cursor 내부 API 폴링).
160
134
 
@@ -181,6 +155,12 @@ Claude Code는 모든 API 호출 로그를 `~/.claude/projects/` 아래에 JSONL
181
155
 
182
156
  이 도구의 비용 계산은 **참고용**입니다. 정확한 과금 금액은 [Anthropic 대시보드](https://console.anthropic.com/)에서 확인하세요.
183
157
 
158
+ ## 후원
159
+
160
+ 이 도구가 당신의 지갑을 지켜줬다면... 실례가 안된다면 커피 한 잔만 부탁드려도 되겠습니까?
161
+
162
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-ffdd00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/shimsuyeon)
163
+
184
164
  ## 라이선스
185
165
 
186
166
  MIT
package/README.md CHANGED
@@ -2,173 +2,147 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/claude-cost-cry.svg)](https://www.npmjs.com/package/claude-cost-cry)
4
4
  [![license](https://img.shields.io/npm/l/claude-cost-cry.svg)](LICENSE)
5
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-ffdd00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/shimsuyeon)
5
6
 
6
7
  > Your wallet cries every time you call Claude. Watch it happen in real-time.
7
8
 
8
9
  [한국어](README.ko.md)
9
10
 
10
- ## What is this?
11
-
12
- A real-time cost tracker for Claude Code (and other LLM providers) that makes you *feel* every dollar leaving your wallet — with emotional messages, everyday equivalents, and a floating desktop widget.
13
-
11
+ ```bash
12
+ npm install -g claude-cost-cry
13
+ ```
14
14
 
15
- <img width="300" alt="image" src="https://github.com/user-attachments/assets/fd8da839-cad9-4b15-998a-7b5eb4a93b9b" />
15
+ <div align="center">
16
+ <img width="320" alt="overlay" src="https://github.com/user-attachments/assets/fd8da839-cad9-4b15-998a-7b5eb4a93b9b" />
17
+ </div>
16
18
 
19
+ A floating desktop widget that makes you _feel_ every dollar leaving your wallet — with emotional messages, everyday equivalents, and real-time cost tracking.
17
20
 
21
+ ## Quick Start
18
22
 
23
+ ```bash
24
+ cost-cry # Launch floating overlay widget
19
25
  ```
20
- $ cost-cry
21
26
 
22
- 🪙 claude-cost-cry v0.3.0
23
- Emotionally experience your API costs
24
-
25
- 📊 Today's total: $2.41 (☕ Iced Americano 0.5)
26
- 12 API calls
27
- 🌤️ Starting to spend a bit...
27
+ That's it. The widget appears in the top-right corner and starts tracking immediately.
28
28
 
29
- ────────────────────────────────────────────────────────
30
- Watching... (Ctrl+C to exit)
31
- ────────────────────────────────────────────────────────
29
+ > On macOS, you may need to run `xattr -cr node_modules/electron/dist/Electron.app` on first launch.
32
30
 
33
- [14:32:15] Opus 📥 15.2K 📤 1.2K
34
- 🔥 +$0.38 → Total: $8.73 🍗 0.5
35
- "Could've gone to a fancy buffet with this money..."
31
+ ## Features
36
32
 
37
- [14:35:22] Sonnet 📥 8.3K 📤 2.1K
38
- 💸 +$0.06 → Total: $8.79 🍗 0.5
39
- "Your wallet is literally crying"
40
- ```
33
+ ### Floating Overlay Widget
41
34
 
42
35
  <div>
43
- <img width="300" alt="image" src="https://github.com/user-attachments/assets/ffd41048-6576-4a68-854a-0642b89acee5" />
44
- <img width="300" alt="image" src="https://github.com/user-attachments/assets/5d84231b-27eb-45a4-80a5-2da6de4162ae" />
36
+ <img width="300" alt="panels" src="https://github.com/user-attachments/assets/ffd41048-6576-4a68-854a-0642b89acee5" />
37
+ <img width="300" alt="panels" src="https://github.com/user-attachments/assets/5d84231b-27eb-45a4-80a5-2da6de4162ae" />
45
38
  </div>
46
39
 
47
- ## Emotional Cost Tiers
40
+ - Emoji and color change based on cost tier
41
+ - Bounce animation + cost flash on new API calls
42
+ - Widget shakes when cost exceeds $30
43
+ - Drag to reposition, toggle from system tray
44
+ - Expandable panels: daily chart, model breakdown, top 3 expensive requests
45
+ - Settings panel: budget, currency, language, equivalent unit, one-click update
48
46
 
49
- | Cost Range | Emoji | Mood | Example Message |
50
- |-----------|-------|------|-----------------|
51
- | $0 – $1 | 🪙 | Peace | "No worries, this is practically free" |
52
- | $1 – $5 | 💸 | Uneasy | "Starting to cost as much as vending machine coffee..." |
53
- | $5 – $10 | 🔥 | Worry | "Is this really okay...?" |
54
- | $10 – $30 | 🚨 | Alert | "Am I paying Claude a salary...?" |
55
- | $30 – $100 | 💀 | Danger | "The bank account is screaming" |
56
- | $100+ | ⚰️ | Funeral | "🚨 WARNING: This API key is on fire 🚨" |
47
+ ### Emotional Cost Tiers
57
48
 
58
- ## Installation
49
+ | Cost Range | Emoji | Mood | Example Message |
50
+ | ---------- | ----- | ------- | ------------------------------------------------------- |
51
+ | $0 – $1 | 🪙 | Peace | "No worries, this is practically free" |
52
+ | $1 – $5 | 💸 | Uneasy | "Starting to cost as much as vending machine coffee..." |
53
+ | $5 – $10 | 🔥 | Worry | "Is this really okay...?" |
54
+ | $10 – $30 | 🚨 | Alert | "Am I paying Claude a salary...?" |
55
+ | $30 – $100 | 💀 | Danger | "The bank account is screaming" |
56
+ | $100+ | ⚰️ | Funeral | "🚨 WARNING: This API key is on fire 🚨" |
59
57
 
60
- ```bash
61
- npm install -g claude-cost-cry
62
- ```
58
+ ### Multi-Provider Support
63
59
 
64
- > **[npm package](https://www.npmjs.com/package/claude-cost-cry)** · Requires Node.js >= 18
60
+ Track costs across multiple LLM providers:
65
61
 
66
- ## Usage
62
+ - 🟣 **Claude Code** — automatic (local JSONL logs)
63
+ - ⚡ **Cursor IDE** — API polling (`cost-cry config --add-source cursor`)
64
+ - 🟢 **OpenAI** — local logs (`cost-cry config --add-source openai:/path/to/logs`)
65
+ - 🔵 **Google Gemini** — local logs (`cost-cry config --add-source google:/path/to/logs`)
67
66
 
68
- ### Overlay Mode (Floating Widget) — Default
67
+ ### Everyday Equivalents
69
68
 
70
- ```bash
71
- cost-cry
72
- ```
69
+ Your cost is converted into relatable items — because "$3.50" means nothing, but "🍲 Gukbap 0.6" hurts:
73
70
 
74
- Launches a floating desktop widget (top-right corner) that tracks costs in real time:
75
- - Emoji and color change based on cost tier
76
- - Bounce animation + cost flash on new API calls
77
- - Widget shakes when cost exceeds $30
78
- - Toggle from system tray
79
- - Drag to reposition
80
- - Expandable panels: daily chart, model breakdown, top 3 expensive requests, settings
71
+ Iced Americano · 🍢 Tteokbokki · 🍲 Gukbap · 🍱 Lunch · 🍗 Fried Chicken · 📺 Netflix · 🥤 Frappuccino
81
72
 
82
- > On macOS, you may need to run `xattr -cr node_modules/electron/dist/Electron.app` on first launch.
73
+ Customizable via CLI or overlay settings. Add your own units too.
83
74
 
84
- ### CLI Mode (Terminal)
75
+ ## CLI
85
76
 
86
77
  ```bash
87
- cost-cry cli
78
+ cost-cry cli # Real-time terminal tracking
79
+ cost-cry report # Weekly report
80
+ cost-cry report --monthly # Monthly report
81
+ cost-cry config # View current settings
82
+ cost-cry config --daily-budget 10 # Set daily budget ($10)
83
+ cost-cry config --currency KRW # Switch display currency
84
+ cost-cry config --language ko # Switch to Korean
85
+ cost-cry config --nudge off # Disable savings nudge
88
86
  ```
89
87
 
90
- Real-time tracking in your terminal:
91
- 1. Scans today's accumulated cost
92
- 2. Watches for new Claude Code API calls in real time
93
- 3. Displays cost + emotional message on each call
94
- 4. Shows session summary on `Ctrl+C` exit
88
+ <details>
89
+ <summary>CLI output example</summary>
95
90
 
96
- ### Reports
97
-
98
- ```bash
99
- cost-cry report # Weekly report
100
- cost-cry report --monthly # Monthly report
101
91
  ```
92
+ $ cost-cry cli
102
93
 
103
- ASCII bar charts with per-day costs, model breakdown, and savings simulation.
94
+ 🪙 claude-cost-cry v0.3.3
95
+ Emotionally experience your API costs
104
96
 
105
- ### Configuration
97
+ 📊 Today's total: $2.41 (☕ Iced Americano 0.8)
98
+ 12 API calls
106
99
 
107
- ```bash
108
- cost-cry config # View current settings
109
- cost-cry config --daily-budget 10 # Set daily budget ($10)
110
- cost-cry config --daily-budget off # Remove budget
111
- cost-cry config --currency KRW # Switch display currency
112
- cost-cry config --nudge off # Disable savings nudge
113
- cost-cry config --language ko # Switch to Korean
114
- cost-cry config --add-source cursor # Track Cursor IDE usage
100
+ ────────────────────────────────────────────────────────
101
+ Watching... (Ctrl+C to exit)
102
+ ────────────────────────────────────────────────────────
103
+
104
+ [14:32:15] Opus 📥 15.2K 📤 1.2K
105
+ 🔥 +$0.38 → Total: $8.73 🍗 0.5
106
+ "Could've gone to a fancy buffet with this money..."
107
+
108
+ [14:35:22] Sonnet 📥 8.3K 📤 2.1K
109
+ 💸 +$0.06 → Total: $8.79 🍗 0.5
110
+ "Your wallet is literally crying"
115
111
  ```
116
112
 
117
- #### Budget Alerts
113
+ </details>
114
+
115
+ ### Budget Alerts
118
116
 
119
117
  When a budget is set:
118
+
120
119
  - 70% → 💡 warning, 90% → ⚠️ warning, 100% → 🚫 exceeded
121
- - Displayed in both CLI and overlay widget
122
120
 
123
- #### Savings Nudge
121
+ ### Savings Nudge
124
122
 
125
123
  Shows how much you could save using a cheaper model — in real time:
126
124
 
127
125
  ```
128
- [14:32:15] Opus 📥 15.2K 📤 1.2K
129
- 🔥 +$0.38 → Total: $8.73
130
- 💡 Would be $0.02 with Haiku (save $0.36)
126
+ 💡 Would be $0.02 with Haiku (save $0.36)
131
127
  ```
132
128
 
133
- #### Multi-Provider Support
134
-
135
- Track costs across multiple LLM providers:
136
- - 🟣 **Claude Code** — automatic (local JSONL logs)
137
- - ⚡ **Cursor IDE** — API polling (`cost-cry config --add-source cursor`)
138
- - 🟢 **OpenAI** — local logs (`cost-cry config --add-source openai:/path/to/logs`)
139
- - 🔵 **Google Gemini** — local logs (`cost-cry config --add-source google:/path/to/logs`)
140
-
141
- #### Language
142
-
143
- Default language is **English**. Switch to Korean:
144
-
145
- ```bash
146
- cost-cry config --language ko
147
- ```
148
-
149
- Also available in the overlay settings panel.
150
-
151
129
  ## How It Works
152
130
 
153
- Claude Code saves all API call logs as JSONL files under `~/.claude/projects/`. cost-cry watches these files in real time:
154
-
155
- 1. Extracts token usage from the `usage` field of assistant responses
156
- 2. Calculates cost based on official model pricing
157
- 3. Displays emotional messages based on cost tier
131
+ Claude Code saves API call logs as JSONL files under `~/.claude/projects/`. cost-cry watches these files in real time, extracts token usage, and calculates cost based on official pricing.
158
132
 
159
133
  **No proxy or API key required.** Only reads local log files (or polls Cursor's internal API).
160
134
 
161
135
  ## Supported Models & Pricing
162
136
 
163
- | Model | Input ($/1M) | Output ($/1M) |
164
- |-------|-------------|---------------|
165
- | Claude Opus | $15.00 | $75.00 |
166
- | Claude Sonnet | $3.00 | $15.00 |
167
- | Claude Haiku | $0.80 | $4.00 |
168
- | GPT-4o | $2.50 | $10.00 |
169
- | GPT-4o mini | $0.15 | $0.60 |
170
- | Gemini 2.5 Pro | $1.25 | $10.00 |
171
- | Gemini Flash | $0.075 | $0.30 |
137
+ | Model | Input ($/1M) | Output ($/1M) |
138
+ | -------------- | ------------ | ------------- |
139
+ | Claude Opus | $15.00 | $75.00 |
140
+ | Claude Sonnet | $3.00 | $15.00 |
141
+ | Claude Haiku | $0.80 | $4.00 |
142
+ | GPT-4o | $2.50 | $10.00 |
143
+ | GPT-4o mini | $0.15 | $0.60 |
144
+ | Gemini 2.5 Pro | $1.25 | $10.00 |
145
+ | Gemini Flash | $0.075 | $0.30 |
172
146
 
173
147
  Cache tokens are automatically reflected (write: 1.25x, read: 0.1x).
174
148
 
@@ -181,7 +155,12 @@ Cache tokens are automatically reflected (write: 1.25x, read: 0.1x).
181
155
 
182
156
  Cost calculations are **estimates for reference**. For exact billing, check the [Anthropic Dashboard](https://console.anthropic.com/).
183
157
 
158
+ ## Support
159
+
160
+ If this tool saved you from a heart attack, consider buying me a coffee:
161
+
162
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-ffdd00?style=flat&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/shimsuyeon)
163
+
184
164
  ## License
185
165
 
186
166
  MIT
187
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cost-cry",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Emotionally experience your API costs — real-time tracker with floating widget",
5
5
  "type": "module",
6
6
  "bin": {