Skip to content

[Feature]: ocx access key list omits usage.requests7d/lastUsedAt from GET /api/keys #2705

Closed

Description

@lidge-jun

Area

CLI access keys

What are you trying to accomplish?

See which OpenCodex admission keys were used recently from ocx access key list.

Current state

GET /api/keys attaches usage.requests7d, totalRequests, lastUsedAt. Dashboard nav.api shows them.

ocx access key list prints id/name/prefix only (src/cli/access.ts). PATCH /api/keys rename is also GUI-only.

Proposed

Print lastUsedAt and 7d/total requests in the list table. --json already returns the DTO if the CLI forwarded it; the human list should too.

Version

2.33.0

Activity

  1. added
    enhancementNew feature or request
    cliCLI, config inject, packaging flags
    on Aug 26, 2026
  2. lidge-jun commented on Aug 26, 2026

    @lidge-jun
    OwnerAuthor

    리뷰 · 우선순위 50 / 80

    설명

    이 이슈는 GET /api/keys 가 붙이는 usage.requests7d / totalRequests / lastUsedAt 을 ocx access key list 사람용 표가 id/name/prefix 만 찍어서 버린다는 기능 갭입니다. 대시보드 nav.api 는 이미 보여 줍니다. 최근에 쓰인 입학 키를 터미널에서 고르려는 요청입니다.

    current dev 에서 src/server/management/api-key-usage.ts 가 requests7d/totalRequests/lastUsedAt 롤업을 만들고, src/cli/access.ts list 는 id name prefix 문자열만 조립합니다. PATCH rename 도 GUI 전용이라는 점도 맞습니다. --json 이 DTO 를 그대로 보여 주면 데이터는 이미 있습니다.

    우선순위는 낮은 편인 CLI 표시 개선입니다. types.ts/config.ts 분할로 닫을 대상이 아닙니다. 미리보기 배포는 계획에 없습니다.

    src/cli/access.ts:29 - list human 출력이 id/name/prefix 만 사용합니다
    src/server/management/api-key-usage.ts:17 - usage 롤업 필드가 이미 정의되어 있습니다
    경로/심볼 - 대시보드 nav.api 는 같은 필드를 표시합니다
    경로/심볼 - rename PATCH 는 이 티켓 범위 밖이지만 관련 갭입니다
    경로/심볼 - --json 경로와 human 경로 패리티만 맞춰도 충분합니다

    메인테이너의 판단이 필요한 지점

    • 표에 lastUsedAt 과 7d/total 중 무엇을 기본으로 보여줄지 정해야 합니다
    • rename CLI 를 같은 PR 에 넣을지 정해야 합니다
    • 사용량 없는 키에 0 을 찍을지 - 로 둘지 정해야 합니다

    너의 추천

    열어 두세요. list 표에 lastUsedAt 과 requests7d/total 을 추가하는 작은 PR 이면 됩니다. rename 은 원하면 후속. 미리보기 배포는 계획에 없습니다.

    이 댓글은 grok-bot이 작성했습니다

  3. added a commit that references this issue on Aug 27, 2026
    a96e0c9
  4. added a commit that references this issue on Aug 28, 2026
    3f810ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCLI, config inject, packaging flagsenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions