- Removed priority lines from various TODO markdown files - Added new admin.md for grokkit admin tool - Updated README.md with new entry
19 lines
936 B
Markdown
19 lines
936 B
Markdown
# `grokkit admin` administration tools
|
|
|
|
### Category: Nice to Have
|
|
|
|
Add an `admin` command that, if an `XAI_MGMT_KEY` is set in the environment, displays up-to-date token usage on the api account/team.
|
|
|
|
### Details
|
|
- **Command**: `grokkit admin`
|
|
- **Subcommands**:
|
|
- `grokkit admin token-usage` <-- default (shows token usage for current team)
|
|
- `grokkit admin credit-balance` <-- shows credit balance for current team
|
|
- `grokkit admin models` <-- shows available models
|
|
- `grokkit admin api-keys` <-- shows available API keys
|
|
|
|
- **Condition**: Must check for `XAI_MGMT_KEY` env var.
|
|
- **Functionality**: Fetch and display token usage stats from the [XAI MANAGEMENT API](https://docs.x.ai/developers/rest-api-reference/management.
|
|
- **Goal**: Help me monitor my API costs and limits directly from the CLI.
|
|
|
|
NOTE: If possible, it would be cool if this command was "hidden" if the XAI_MGMT_KEY is not set. |