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.
- package/README.ko.md +74 -94
- package/README.md +91 -112
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/claude-cost-cry)
|
|
4
4
|
[](LICENSE)
|
|
5
|
+
[](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
|
-
|
|
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
|
-
|
|
21
|
+
API 비용이 날아가는 순간을 감정 메시지, 일상 환산, 플로팅 위젯으로 체감시켜줍니다.
|
|
18
22
|
|
|
23
|
+
## 빠른 시작
|
|
19
24
|
|
|
25
|
+
```bash
|
|
26
|
+
cost-cry # 플로팅 오버레이 위젯 실행
|
|
20
27
|
```
|
|
21
|
-
$ cost-cry
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
당신의 API 비용을 감정적으로 체감시켜드립니다
|
|
29
|
+
이게 끝입니다. 화면 오른쪽 위에 위젯이 뜨고 바로 추적을 시작합니다.
|
|
25
30
|
|
|
26
|
-
|
|
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
|
-
|
|
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="
|
|
44
|
-
<img width="
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
CLI 또는 오버레이 설정에서 변경 가능. 커스텀 단위도 추가할 수 있습니다.
|
|
83
75
|
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
+
🪙 claude-cost-cry v0.3.3
|
|
96
|
+
당신의 API 비용을 감정적으로 체감시켜드립니다
|
|
104
97
|
|
|
105
|
-
|
|
98
|
+
📊 오늘 누적: $2.41 (☕ 아이스 아메리카노 0.8잔)
|
|
99
|
+
API 호출 12건
|
|
106
100
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
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는
|
|
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
|
+
[](https://buymeacoffee.com/shimsuyeon)
|
|
163
|
+
|
|
184
164
|
## 라이선스
|
|
185
165
|
|
|
186
166
|
MIT
|
package/README.md
CHANGED
|
@@ -2,173 +2,147 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/claude-cost-cry)
|
|
4
4
|
[](LICENSE)
|
|
5
|
+
[](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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g claude-cost-cry
|
|
13
|
+
```
|
|
14
14
|
|
|
15
|
-
<
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
🔥 +$0.38 → Total: $8.73 🍗 0.5
|
|
35
|
-
"Could've gone to a fancy buffet with this money..."
|
|
31
|
+
## Features
|
|
36
32
|
|
|
37
|
-
|
|
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="
|
|
44
|
-
<img width="300" alt="
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
npm install -g claude-cost-cry
|
|
62
|
-
```
|
|
58
|
+
### Multi-Provider Support
|
|
63
59
|
|
|
64
|
-
|
|
60
|
+
Track costs across multiple LLM providers:
|
|
65
61
|
|
|
66
|
-
|
|
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
|
-
###
|
|
67
|
+
### Everyday Equivalents
|
|
69
68
|
|
|
70
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
+
Customizable via CLI or overlay settings. Add your own units too.
|
|
83
74
|
|
|
84
|
-
|
|
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
|
-
|
|
91
|
-
|
|
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
|
-
|
|
94
|
+
🪙 claude-cost-cry v0.3.3
|
|
95
|
+
Emotionally experience your API costs
|
|
104
96
|
|
|
105
|
-
|
|
97
|
+
📊 Today's total: $2.41 (☕ Iced Americano 0.8)
|
|
98
|
+
12 API calls
|
|
106
99
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
164
|
-
|
|
165
|
-
| Claude Opus
|
|
166
|
-
| Claude Sonnet
|
|
167
|
-
| Claude Haiku
|
|
168
|
-
| GPT-4o
|
|
169
|
-
| GPT-4o mini
|
|
170
|
-
| Gemini 2.5 Pro | $1.25
|
|
171
|
-
| Gemini Flash
|
|
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
|
+
[](https://buymeacoffee.com/shimsuyeon)
|
|
163
|
+
|
|
184
164
|
## License
|
|
185
165
|
|
|
186
166
|
MIT
|
|
187
|
-
|