gem-llm-admin-cli

Manage GEM-LLM user accounts and API key issuance via CLI.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/saintgo7/claude-skills --skill gem-llm-admin-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gem-llm-admin-cli
Source: https://github.com/saintgo7/claude-skills/tree/main/gem-llm-admin-cli
Command: npx skills add https://github.com/saintgo7/claude-skills --skill gem-llm-admin-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the operational burden and security risk of manually managing GEM-LLM users and their API keys by providing a dedicated CLI workflow for provisioning and revocation.

Core Features & Use Cases

  • User provisioning: Add single users or bulk register users from a CSV with plan selection (free/pro/enterprise).
  • API key lifecycle: Issue and revoke keys per user, including per-user key listing and usage reporting over a time window.
  • Admin access and auditing: Uses the local gateway admin key loaded from /home/jovyan/gem-llm/.env and includes safety guidance to prevent raw_key leakage.

Quick Start

Ask the AI to help you add a new user named alice and then issue an API key for her by running the gem-llm-admin-cli install script, creating the user with add-user, and generating a key with issue-key while storing the returned raw_key securely.

Frequently Asked Questions about gem-llm-admin-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage GEM-LLM users and API keys from the command line?

Manage GEM-LLM users and API keys using a local CLI backed by admin REST endpoints to provision users, issue keys, and revoke access. The CLI executes bash scripts for deterministic command routing to handle administrative tasks safely.

How do I bulk register GEM-LLM users from a CSV file?

Bulk register GEM-LLM users from a CSV file using the admin CLI's user provisioning feature. This workflow supports selecting a service plan (free, pro, or enterprise) for each batch of users during the automated onboarding process.

What is the safest way to issue and rotate API keys for LLM gateway users?

Issue and rotate LLM gateway API keys safely using the admin CLI, which exposes the raw_key only at issuance time. This approach prevents raw_key leakage by ensuring sensitive credentials are not stored or displayed after the initial generation.

Do I need an admin key to check recent token usage for GEM-LLM users?

Yes, checking recent token usage for GEM-LLM users requires loading the GATEWAY_ADMIN_KEY from the /home/jovyan/gem-llm/.env file. This admin key authenticates the CLI's requests to the gateway's REST endpoints to retrieve usage reporting data.

Can I revoke a specific user's API key without affecting other active keys?

Yes, you can revoke a specific user's API key without impacting others by running the revoke-key command through the admin CLI. This targeted revocation process interfaces directly with the gateway admin REST endpoints to invalidate single credentials.

Why does the API key issuance process only show the raw key once?

The API key issuance process shows the raw key only once to prevent credential leakage and enforce secure key lifecycle management. Storing or displaying the raw_key after initial generation would create unnecessary security risks for the GEM-LLM gateway.