You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kimi adapter does not read Kimi Code CLI usage data #1246
The existing "kimi" command doesn't pick up usage from Kimi Code CLI (the Moonshot agent CLI). I looked into why and found two mismatches:
Data directory: ccusage looks in "/.kimi", but Kimi Code CLI stores its sessions under "/.kimi-code".
Wire format: ccusage expects a "StatusUpdate" message with snake_case "token_usage" fields, but Kimi Code CLI writes "usage.record" events with camelCase fields ("inputOther", "inputCacheRead", etc.) and millisecond timestamps.
The path layout is also deeper:
Old: "~/.kimi/sessions/group/session/wire.jsonl"
Kimi Code CLI: "~/.kimi-code/sessions/{workspace}/{session}/agents/{agent}/wire.jsonl"
I have a branch ready that fixes this and I have tested it against my own "~/.kimi-code" data. Happy to open a PR if you're interested.
This issue was auto-closed. Issues from new contributors are auto-closed by default.
Maintainers review auto-closed issues and reopen worthwhile ones. Issues that do not meet the quality bar in CONTRIBUTING.md may not be reopened or receive a reply.
Keep the issue short, concrete, and written in your own voice.
If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.
Historical audit: this discussion was auto-closed by the legacy contributor gate. That closure did not assess technical importance.
Audit result: maintainable candidate. The request fits the current ccusage scope and can be evaluated with repository-owned code or fixtures, without vendor credentials or platform-specific release infrastructure. It remains closed for now; reopen only after confirming current relevance and expected behavior.
Activity
pullfrog commentedon Jun 10, 2026
github-actions commentedon Jun 10, 2026
This issue was auto-closed. Issues from new contributors are auto-closed by default.
Maintainers review auto-closed issues and reopen worthwhile ones. Issues that do not meet the quality bar in CONTRIBUTING.md may not be reopened or receive a reply.
Keep the issue short, concrete, and written in your own voice.
If a maintainer replies
lgtmi, your future issues will stay open. If a maintainer replieslgtm, your future issues and PRs will stay open.See CONTRIBUTING.md.
ryoppippi commentedon Aug 31, 2026
Historical audit: this discussion was auto-closed by the legacy contributor gate. That closure did not assess technical importance.
Audit result: maintainable candidate. The request fits the current ccusage scope and can be evaluated with repository-owned code or fixtures, without vendor credentials or platform-specific release infrastructure. It remains closed for now; reopen only after confirming current relevance and expected behavior.