CommandCodeAI / CommandCodeAI/command-code

studio: Improve API Keys area to better understand where and how used

Open
#718 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

Feature Description

Recently, I needed to delete an API key. When I went into API Keys area of the Studio, I saw I had 8-10 keys dating back to late 2025.

I found it difficult to know:

  • which keys were active (last used)
  • if they expire/d (doesn't seem they do)
  • the names were not meaningful nor did it match the name in the auth.json Command Code config settings
  • I could not edit the name to make them meaningful to me
  • recent usage of keys and where used (to identify if any key leaked and used by some strange IP address or geo)

So, I ended up just deleting all keys one by one and starting over from scratch, but then I realized:

  • the name in auth.json did not match
  • and the only way I could identify a key was by some UTC timestamp so I could tell one cli on one machine was an older key than another because I knew I created one before the other
Use Case

In general, be useful to:

  • know which key used where
  • add a description for the key purpose
  • names match installed name in auth.json
  • edit names to be descriptive
  • show some recent use (time, IP address, geo) to identify if any leaks
  • pause key
  • rotate key (vs delete and create and edit name a description)

Could take some cues from Unkey API Key management features. See: https://www.unkey.com/docs/platform/apis/keys

Additional Context

No response

How important is this to you?

Medium. But, this will increase if I use Command Code API more for inference in apps vs just the cli used on two devices or if I want to distinguish between a key for cli and a key for desktop.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Studio API Keys area and how key names relate to the auth.json Command Code configuration. The issue describes several possible capabilities, so the scope and completion criteria need to be narrowed before implementation can begin.

Written by the indexing model from the issue text.

Assessment

Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.