Documentation
¶
Overview ¶
Command mytoken is MyToken!!!!!: a tray-resident tracker of the tokens AI coding harnesses spend, per session × provider × model.
mytoken run the app (tray + main window) mytoken stats [--json] print usage without a window mytoken scan index the logs once mytoken help list every command (see docs/CLI.md)
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
app
Package app wires the backend and registered parsers.
|
Package app wires the backend and registered parsers. |
|
attrib
Package attrib resolves providers without reading conversation content.
|
Package attrib resolves providers without reading conversation content. |
|
cli
Package cli serves the non-GUI commands.
|
Package cli serves the non-GUI commands. |
|
gui
Package gui is MyToken!!!!!'s native interface: the main window and the tray panel, drawn with MyGo's ui package (no WebView).
|
Package gui is MyToken!!!!!'s native interface: the main window and the tray panel, drawn with MyGo's ui package (no WebView). |
|
harness
Package harness defines the parser contract (docs/SPEC.md §4) and a registry.
|
Package harness defines the parser contract (docs/SPEC.md §4) and a registry. |
|
harness/amp
Package amp parses Amp (Sourcegraph's coding agent, ampcode.com) usage.
|
Package amp parses Amp (Sourcegraph's coding agent, ampcode.com) usage. |
|
harness/antigravity
Package antigravity parses the Antigravity app and IDE agent conversations.
|
Package antigravity parses the Antigravity app and IDE agent conversations. |
|
harness/claude
Package claude parses Claude Code transcripts.
|
Package claude parses Claude Code transcripts. |
|
harness/claudedesktop
Package claudedesktop parses Claude Desktop agent sessions.
|
Package claudedesktop parses Claude Desktop agent sessions. |
|
harness/cline
Package cline parses Cline (saoudrizwan.claude-dev) task logs.
|
Package cline parses Cline (saoudrizwan.claude-dev) task logs. |
|
harness/clinetask
Package clinetask parses the "Cline task" on-disk format shared by the Cline, Roo Code and Kilo Code VS Code extensions, plus the standalone Cline CLI session format.
|
Package clinetask parses the "Cline task" on-disk format shared by the Cline, Roo Code and Kilo Code VS Code extensions, plus the standalone Cline CLI session format. |
|
harness/codebuddy
Package codebuddy parses CodeBuddy session logs.
|
Package codebuddy parses CodeBuddy session logs. |
|
harness/codebuff
Package codebuff parses Codebuff (formerly Manicode) chat transcripts.
|
Package codebuff parses Codebuff (formerly Manicode) chat transcripts. |
|
harness/codex
Package codex parses Codex CLI rollout logs.
|
Package codex parses Codex CLI rollout logs. |
|
harness/crush
Package crush parses Crush (charmbracelet/crush) session usage.
|
Package crush parses Crush (charmbracelet/crush) session usage. |
|
harness/droid
Package droid parses Factory Droid (Droid CLI) session transcripts.
|
Package droid parses Factory Droid (Droid CLI) session transcripts. |
|
harness/dsh
Package dsh parses DeepSeek Harness (DSH) session logs.
|
Package dsh parses DeepSeek Harness (DSH) session logs. |
|
harness/forge
Package forge parses the conversation database of Forge (ForgeCode, github.com/antinomyhq/forge, installed from forgecode.dev).
|
Package forge parses the conversation database of Forge (ForgeCode, github.com/antinomyhq/forge, installed from forgecode.dev). |
|
harness/gemini
Package gemini parses Gemini CLI chat recordings (model.Harness "gemini").
|
Package gemini parses Gemini CLI chat recordings (model.Harness "gemini"). |
|
harness/goose
Package goose parses the Goose CLI session database.
|
Package goose parses the Goose CLI session database. |
|
harness/grok
Package grok parses Grok CLI ("Grok Build", xAI's coding agent) recordings (model.Harness "grok").
|
Package grok parses Grok CLI ("Grok Build", xAI's coding agent) recordings (model.Harness "grok"). |
|
harness/harnesstest
Package harnesstest is the conformance suite every harness parser must pass (see docs/HARNESS.md).
|
Package harnesstest is the conformance suite every harness parser must pass (see docs/HARNESS.md). |
|
harness/hermes
Package hermes parses Hermes session usage from its SQLite state database.
|
Package hermes parses Hermes session usage from its SQLite state database. |
|
harness/kilo
Package kilo parses Kilo Code (kilocode.kilo-code) task logs.
|
Package kilo parses Kilo Code (kilocode.kilo-code) task logs. |
|
harness/kimi
Package kimi parses Kimi CLI wire logs.
|
Package kimi parses Kimi CLI wire logs. |
|
harness/kiro
Package kiro parses Kiro (AWS's agentic IDE and CLI, kiro.dev) usage.
|
Package kiro parses Kiro (AWS's agentic IDE and CLI, kiro.dev) usage. |
|
harness/mux
Package mux parses coder/mux chat transcripts.
|
Package mux parses coder/mux chat transcripts. |
|
harness/openclaude
Package openclaude parses OpenClaude (npm @gitlawb/openclaude) transcripts.
|
Package openclaude parses OpenClaude (npm @gitlawb/openclaude) transcripts. |
|
harness/openclaw
Package openclaw parses OpenClaw agent transcripts (model.Harness "openclaw"), including the clawdbot/moltbot/moldbot installations the agent was previously shipped as.
|
Package openclaw parses OpenClaw agent transcripts (model.Harness "openclaw"), including the clawdbot/moltbot/moldbot installations the agent was previously shipped as. |
|
harness/opencode
Package opencode parses OpenCode session usage.
|
Package opencode parses OpenCode session usage. |
|
harness/pi
Package pi parses Pi coding-agent session logs.
|
Package pi parses Pi coding-agent session logs. |
|
harness/qwen
Package qwen parses Qwen Code chat transcripts.
|
Package qwen parses Qwen Code chat transcripts. |
|
harness/roo
Package roo parses Roo Code (rooveterinaryinc.roo-cline) task logs.
|
Package roo parses Roo Code (rooveterinaryinc.roo-cline) task logs. |
|
harness/workbuddy
Package workbuddy parses WorkBuddy session logs.
|
Package workbuddy parses WorkBuddy session logs. |
|
harness/zed
Package zed parses the Zed editor's built-in agent threads.
|
Package zed parses the Zed editor's built-in agent threads. |
|
ledger
Package ledger conservatively infers cache misses from token-only session history.
|
Package ledger conservatively infers cache misses from token-only session history. |
|
model
Package model holds the shared, frozen types of MyToken!!!!!.
|
Package model holds the shared, frozen types of MyToken!!!!!. |
|
pricing
Package pricing supplies offline-first, refreshable per-million-token prices.
|
Package pricing supplies offline-first, refreshable per-million-token prices. |
|
pricing/gen
command
Command gen regenerates the embedded models.dev price catalog.
|
Command gen regenerates the embedded models.dev price catalog. |
|
query
Package query is the read API shared by the UI and the CLI (docs/SPEC.md §5).
|
Package query is the read API shared by the UI and the CLI (docs/SPEC.md §5). |
|
reconcile
Package reconcile compares persisted relay charges with local usage.
|
Package reconcile compares persisted relay charges with local usage. |
|
relay
Package relay detects the kind of a gateway site (中转站) and reads the little that gateway exposes: its per-model ratios, the balance of one key, and — for the gateways that keep per-request logs — the bills themselves.
|
Package relay detects the kind of a gateway site (中转站) and reads the little that gateway exposes: its per-model ratios, the balance of one key, and — for the gateways that keep per-request logs — the bills themselves. |
|
scan
Package scan incrementally indexes registered harness sources.
|
Package scan incrementally indexes registered harness sources. |
|
source
Package source defines optional, read-only provider data sources: cc-switch's local database and the harness config files that say which provider a tool is currently pointing at.
|
Package source defines optional, read-only provider data sources: cc-switch's local database and the harness config files that say which provider a tool is currently pointing at. |
|
sqlitedsn
Package sqlitedsn builds SQLite file: URIs that work on every platform.
|
Package sqlitedsn builds SQLite file: URIs that work on every platform. |
|
store
Package store owns the local, derived SQLite index.
|
Package store owns the local, derived SQLite index. |
|
scripts
|
|
|
setversion
command
Command setversion keeps the "version" field of mygo.json in sync with the git tag a release is built from.
|
Command setversion keeps the "version" field of mygo.json in sync with the git tag a release is built from. |
Click to show internal directories.
Click to hide internal directories.





