Repository navigation
MyToken!!!!! 0.1.3
The 0.1.x foundation: correct relay pricing, a fast store, and a lighter tray.
First launch upgrades the database in place, one way. Back up
~/Library/Application Support/MyToken(macOS),%AppData%\MyToken(Windows) or~/.local/share/mytoken(Linux) first if you may want to go back to 0.1.1. The upgrade keeps every event (verified field by field on 206K events).
Fixes
- Relay multipliers are no longer overridden by model prices. A model price rule (for example one imported from cc-switch) used to replace the provider's multiplier: a 0.3× relay billed Sonnet input at $3/M instead of $0.90/M. Unit prices and multipliers are now looked up separately.
- Quit works. The tray's Quit, Cmd+Q and SIGTERM did nothing, because closing the main window was always turned into hiding it.
- History survives a full rescan. Rescanning no longer wipes events whose source logs are gone (Claude Code deletes logs after 30 days).
- OpenCode: assistant messages in the v2
session_messagetable that were older than the newest v1 message were skipped for good. - Claude Code: an idle session rewrote its cursor on every scan.
stats --by daycolumns lined up wrong.
Faster and lighter
- Switching the period in the main window: 2.7–8.2 s → about 20 ms. Queries now read daily rollups in SQL; every query is under 15 ms on 200K events.
- Database: 587 → 284 bytes per request.
- While agents are writing logs: CPU ≈93% → 8–14%, memory footprint 342 MB → about 120 MB. Hidden windows no longer reload, and scans are spaced at least 2 s apart.
New
- Price rules can take an effective date, so a relay's price change applies only from that day on.
- CLI:
--until,--last 7d|today|week|month,--timezone,--offline,--no-cost,--format table|json|csv. - Cost provenance: totals split log-reported and estimated cost;
--jsonevents carrycostSource. doctorlists provider sources (cc-switch, harness configs) and how many requests each attributed.
Roadmap: docs/ROADMAP.md · Full Changelog: v0.1.1...v0.1.3