apikeys

A command-line tool for managing API keys, which are credentials that let programs access a service.

In plain words
What is it for?
Use it to list keys, create named keys with roles or permissions, set an expiration period, view key details, activate or deactivate keys, and delete them.
Why use it?
It provides one place to see, create, inspect, enable, disable, and remove keys while controlling their roles, permissions, and expiration.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/gotempsh/temps/apikeys
Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00702
Opus 5 $0.00000 $0.00351
Sonnet 5 $0.00000 $0.00140
Haiku 4.5 $0.00000 $0.00070

Measured 2d ago against content hash f5293ce622f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apikeys scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/temps/references/commands/apikeys.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

apikeys command reference

Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.

apikeys (alias: keys)

Manage API keys for programmatic access

Subcommands:

  • list (ls) - List all API keys
  • create (add) - Create a new API key
  • show - Show API key details
  • remove (rm) - Delete an API key
  • activate - Activate a deactivated API key
  • deactivate - Deactivate an API key
  • permissions - List available API key permissions

apikeys list (alias: ls)

List all API keys

Options:

Flag Description Default Required
--json Output in JSON format - No

apikeys create (alias: add)

Create a new API key

Options:

Flag Description Default Required
-n, --name <name> API key name - No
-r, --role <role> Role type (admin, platform_admin, user, reader, api_reader, custom, metrics_ingest) - No
-e, --expires-in <days> Expires in N days (7, 30, 90, 365) - No
-p, --permissions <permissions> Comma-separated list of permissions - No
-y, --yes Skip confirmation prompts (for automation) - No

apikeys show

Show API key details

Options:

Flag Description Default Required
--id <id> API key ID - Yes
--json Output in JSON format - No

apikeys remove (alias: rm)

Delete an API key

Options:

Flag Description Default Required
--id <id> API key ID - Yes
-f, --force Skip confirmation - No
-y, --yes Skip confirmation prompts (alias for --force) - No

apikeys activate

Activate a deactivated API key

Options:

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 97 lines · 0 tokens per session scan A f5293ce622f7

Subscribe to this mod's changes

apikeys is a command published in the GitHub repository gotempsh/temps (700 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 702 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.