Repository navigation
feat: add whoami command and api-keys current subcommand - #242
Open
jeff-schnitter wants to merge 2 commits into
Open
jeff-schnitter wants to merge 2 commits into
jeff-schnitter wants to merge 2 commits into
Conversation
- cortex whoami: decodes the current API key JWT and displays identity metadata (base URL, tenant, user ID, token type, auth scope, issued/expiry timestamps, last 4 chars) - cortex api-keys current: prints the raw API key for use in scripts, e.g. export KEY=$(cortex api-keys current) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- whoami: decodes the current JWT API key and displays tenant, user/tenant ID, token type, auth scope, issued/expiry times, and last 4 chars - api-keys current: prints the raw API key in use (useful for shell substitution) - Remove top-level ai-skills command (functionality lives under solutions) - Show help instead of error when cortex is invoked with no subcommand Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cortex whoami: decodes the current JWT API key and displays tenant, tenant ID, token type, auth scope, issued/expiry times, and last 4 charscortex api-keys current: prints the raw API key in use (useful for shell substitution, e.g.$(cortex api-keys current))cortex ai-skillscommand — the ai-skills solution is already available viacortex solutions list/cortex solutions install -s ai-skillscortex -t my-tenant)Test plan
cortex whoamidisplays decoded JWT fields correctlycortex api-keys currentprints the API keycortex -t <tenant>(no subcommand) shows helpcortex ai-skillsis gone;cortex solutions liststill shows ai-skills🤖 Generated with Claude Code