CommandCodeAI / CommandCodeAI/command-code

Show usage per API key

未关闭
#842 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

p2
主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

Summary

Allow users to see the usage of individual API keys in addition to the overall usage. This allows users to see which apps, services, agents are using or bleeding tokens.

Expected Behavior

When clicking the Usage tab on the Command Code website, there should be an option to cycle through a list of currently issued API keys, and display the usage for those keys only. OpenCode Go has a good implementation of this feature.

Actual Behavior

Only overall usage is displayed. This means someone who issued multiple API keys can not see which keys are using the most tokens. I can see I used 6 Kimi K2.7 calls yes, but from which of my agents??

Steps to reproduce the issue

Sign into Command Code
Click on Usage

Command Code Version

1.26.0

Operating System

Other

Terminal/IDE

ghostty

Shell

bash

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

This is a feature on the website, user dashboard. Not in the harness.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Command Code 网站的 Usage 标签页开始,跟踪整体使用量的加载和呈现方式;使用所引用的 OpenCode Go 实现进行对比。完成的标准是,用户可以在其已签发的 API 密钥之间切换,并查看所选密钥的使用量,同时整体使用量仍然可用。

由索引模型根据 Issue 内容生成。

评估

领域
analytics, api, frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。