awarts 0.2.3 → 0.2.5
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/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/index.js +826 -222
- package/package.json +31 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Harshal Jain (harry.dev)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# awarts
|
|
2
|
+
|
|
3
|
+
> Track your AI coding spend across Claude, Codex, Gemini & Antigravity.
|
|
4
|
+
|
|
5
|
+
**AWARTS** (A Worldwide AI Rating & Tracking System) is the Strava for AI-assisted coding. This CLI automatically detects your AI tool usage and syncs it to [awarts.vercel.app](https://awarts.vercel.app) so you can track spend, compare with others, and climb the leaderboard.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx awarts@latest
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or install globally:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm i -g awarts
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires **Node.js 18+**.
|
|
20
|
+
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 1. Authenticate with your AWARTS account
|
|
25
|
+
awarts login
|
|
26
|
+
|
|
27
|
+
# 2. Auto-detect all providers and push usage data
|
|
28
|
+
awarts sync
|
|
29
|
+
|
|
30
|
+
# 3. Start background auto-sync (every 5 minutes)
|
|
31
|
+
awarts daemon start
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Commands
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
|---------|-------------|
|
|
38
|
+
| `awarts login` | Authenticate via device auth flow |
|
|
39
|
+
| `awarts sync` | Auto-detect all providers and push data |
|
|
40
|
+
| `awarts push` | Push data from specific provider |
|
|
41
|
+
| `awarts status` | Show auth status and detected providers |
|
|
42
|
+
| `awarts seed` | Generate sample data for testing |
|
|
43
|
+
| `awarts daemon start` | Start background auto-sync daemon |
|
|
44
|
+
| `awarts daemon stop` | Stop the daemon |
|
|
45
|
+
| `awarts daemon status` | Check if daemon is running |
|
|
46
|
+
| `awarts daemon logs` | View daemon output |
|
|
47
|
+
| `awarts keys set` | Store an API key for a provider |
|
|
48
|
+
| `awarts keys list` | List stored keys (masked) |
|
|
49
|
+
| `awarts keys remove` | Remove a stored key |
|
|
50
|
+
| `awarts logout` | Clear stored credentials |
|
|
51
|
+
|
|
52
|
+
## Supported Providers
|
|
53
|
+
|
|
54
|
+
| Provider | Detection | Path |
|
|
55
|
+
|----------|-----------|------|
|
|
56
|
+
| **Claude** | Auto-detected | `~/.claude/stats-cache.json` |
|
|
57
|
+
| **Codex** | Auto-detected | `~/.codex/usage/` |
|
|
58
|
+
| **Gemini** | Auto-detected | `~/.gemini/usage/` |
|
|
59
|
+
| **Antigravity** | Auto-detected | `~/.antigravity/usage/` |
|
|
60
|
+
|
|
61
|
+
### Using Pro subscriptions (no API keys)?
|
|
62
|
+
|
|
63
|
+
No problem. The CLI reads local files created by your AI tools. No API keys required.
|
|
64
|
+
|
|
65
|
+
- **Claude Code** usage is auto-detected from `~/.claude/`
|
|
66
|
+
- For **Codex**, **Gemini**, and **Antigravity**, place usage files in their respective directories or import via the web at [Settings > Import](https://awarts.vercel.app/settings)
|
|
67
|
+
|
|
68
|
+
## Options
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Push data for a specific provider only
|
|
72
|
+
awarts push --provider claude
|
|
73
|
+
|
|
74
|
+
# Preview what would be pushed (dry run)
|
|
75
|
+
awarts push --dry-run
|
|
76
|
+
|
|
77
|
+
# Generate 14 days of sample data
|
|
78
|
+
awarts seed --days 14
|
|
79
|
+
|
|
80
|
+
# Set sync interval to 10 minutes
|
|
81
|
+
awarts daemon start --interval 10
|
|
82
|
+
|
|
83
|
+
# Force re-authentication
|
|
84
|
+
awarts login --force
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## API Key Management
|
|
88
|
+
|
|
89
|
+
Store API keys locally for provider billing data. Keys are stored in `~/.awarts/keys.json` and **never leave your machine**.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
awarts keys set openai sk-...
|
|
93
|
+
awarts keys set google AIza...
|
|
94
|
+
awarts keys list
|
|
95
|
+
awarts keys remove openai
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Data Storage
|
|
99
|
+
|
|
100
|
+
All credentials and keys are stored locally:
|
|
101
|
+
|
|
102
|
+
| File | Purpose |
|
|
103
|
+
|------|---------|
|
|
104
|
+
| `~/.awarts/auth.json` | Authentication token |
|
|
105
|
+
| `~/.awarts/keys.json` | API keys (local only) |
|
|
106
|
+
| `~/.awarts/daemon.pid` | Daemon process ID |
|
|
107
|
+
| `~/.awarts/daemon.log` | Daemon log output |
|
|
108
|
+
|
|
109
|
+
## Web App
|
|
110
|
+
|
|
111
|
+
View your stats, follow other developers, and climb the leaderboard at:
|
|
112
|
+
|
|
113
|
+
**[awarts.vercel.app](https://awarts.vercel.app)**
|
|
114
|
+
|
|
115
|
+
## Contributing
|
|
116
|
+
|
|
117
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
118
|
+
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
[MIT](LICENSE) - Harshal Jain (harry.dev)
|