Documentation
¶
Overview ¶
Command mytoken is MyToken!!!!!: a tray-resident tracker of the tokens AI coding harnesses spend, per session × provider × model.
mytoken print today's and this month's cost mytoken gui run the app (tray + main window) mytoken daily print a daily cost table 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. |
|
claudequota
Package claudequota reports the plan quota of a locally signed-in Claude Code.
|
Package claudequota reports the plan quota of a locally signed-in Claude Code. |
|
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.
|
Package gui is MyToken's native interface: the main window and the tray panel, drawn with MyGo's ui package. |
|
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/mimocode
Package mimocode parses MiMo Code's local usage database offline.
|
Package mimocode parses MiMo Code's local usage database offline. |
|
harness/minimax
Package minimax reads MiniMax Code's local token ledger.
|
Package minimax reads MiniMax Code's local token ledger. |
|
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/opencode/sqlitecore
Package sqlitecore is the read-only SQLite snapshot shared by the harness parsers whose harness stores its sessions in a MessageV2-shaped database.
|
Package sqlitecore is the read-only SQLite snapshot shared by the harness parsers whose harness stores its sessions in a MessageV2-shaped database. |
|
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/sessionlog
Package sessionlog is the shared deep module behind MyToken's Pi-derived session-log parsers: internal/harness/pi reads Pi's logs and internal/harness/stepcode reads Step Code's, and Step Code's format is a fork of Pi's.
|
Package sessionlog is the shared deep module behind MyToken's Pi-derived session-log parsers: internal/harness/pi reads Pi's logs and internal/harness/stepcode reads Step Code's, and Step Code's format is a fork of Pi's. |
|
harness/stepcode
Package stepcode parses Step Code coding-agent session logs.
|
Package stepcode parses Step Code coding-agent session logs. |
|
harness/workbuddy
Package workbuddy parses WorkBuddy session logs.
|
Package workbuddy parses WorkBuddy session logs. |
|
harness/zcode
Package zcode parses ZCode's local model-usage ledger.
|
Package zcode parses ZCode's local model-usage ledger. |
|
harness/zed
Package zed parses the Zed editor's built-in agent threads.
|
Package zed parses the Zed editor's built-in agent threads. |
|
ingestrate
Package ingestrate tracks how many output tokens enter the live index over a trailing 60-second window.
|
Package ingestrate tracks how many output tokens enter the live index over a trailing 60-second window. |
|
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. |
|
provider
Package provider defines display identities independent of pricing labels and billing Origin+KeyID.
|
Package provider defines display identities independent of pricing labels and billing Origin+KeyID. |
|
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). |
|
quota
Package quota reports provider quota windows from data that is already on disk, without any network access, credentials, or provider SDK.
|
Package quota reports provider quota windows from data that is already on disk, without any network access, credentials, or provider SDK. |
|
quota/codex
Package codex adapts the Codex plan quota into a plan.Provider.
|
Package codex adapts the Codex plan quota into a plan.Provider. |
|
quota/copilot
Package copilot reports GitHub Copilot's monthly request quota.
|
Package copilot reports GitHub Copilot's monthly request quota. |
|
quota/cursor
Package cursor reports the Cursor plan quota.
|
Package cursor reports the Cursor plan quota. |
|
quota/glm
Package glm reports the z.ai / BigModel GLM Coding Plan quota.
|
Package glm reports the z.ai / BigModel GLM Coding Plan quota. |
|
quota/plan
Package plan reports subscription-plan quota windows for the coding tools a user has installed and signed in to.
|
Package plan reports subscription-plan quota windows for the coding tools a user has installed and signed in to. |
|
quota/providers
Package providers assembles every quota provider MyToken supports.
|
Package providers assembles every quota provider MyToken supports. |
|
quota/qoder
Package qoder reports the plan quota of Qoder CN.
|
Package qoder reports the plan quota of Qoder CN. |
|
quota/trae
Package trae reports the plan quota of Trae CN and Trae Global.
|
Package trae reports the plan quota of Trae CN and Trae Global. |
|
quota/workbuddy
Package workbuddy reports the plan quota of WorkBuddy and WorkBuddy AI.
|
Package workbuddy reports the plan quota of WorkBuddy and WorkBuddy AI. |
|
reporttime
Package reporttime computes reporting and budget periods in one fixed, caller-supplied timezone.
|
Package reporttime computes reporting and budget periods in one fixed, caller-supplied timezone. |
|
scan
Package scan incrementally indexes registered harness sources.
|
Package scan incrementally indexes registered harness sources. |
|
snapshot
Package snapshot builds the versioned read-only snapshot envelope shared by the CLI statusline and tray consumers.
|
Package snapshot builds the versioned read-only snapshot envelope shared by the CLI statusline and tray consumers. |
|
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.





