altllm-portal-api-keys
它能做什么
这项技能让智能体通过命令行工具管理 AltLLM Portal 的 API 密钥。它涵盖列出密钥、创建新密钥,以及更改或撤销密钥。它适合运行使用 AltLLM 的应用或智能体的人。
适用场景
- ✓当你需要为应用或外部智能体创建新的 API 密钥的时候。
- ✓当你想查看哪些 AltLLM 密钥处于启用或停用状态时。
- ✓当你想停用某个密钥而不删除它,或永久撤销它的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/altlayer/altllm-portal-api-keys/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我需要为我的客服机器人创建一个新的 AltLLM API 密钥,并查看它可以使用哪些模型。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为每个密钥操作运行 AltLLM 命令行工具。创建密钥时会只显示一次完整密钥,因此智能体会提醒你保存。停用密钥可以恢复,但撤销密钥无法撤回。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AltLLM Portal API Keys
Portal API key lifecycle management for the local altllm CLI.
Shared Setup
Before the first
altllmcommand in a fresh checkout, read and follow:
../_shared/preflight.md../_shared/session-and-target.md
Command Index
| Command | Purpose |
|---|---|
list-api-keys |
List active and disabled keys |
create-api-key |
Create a new key, optionally with a model allowlist |
get-api-key |
Inspect one key |
update-api-key |
Rename a key, change status, or replace the model allowlist |
revoke-api-key |
Permanently revoke a key |
Rules
create-api-keyreturns the full key only once.- If no model allowlist is passed, the Portal API applies its default AltLLM model set.
- Key permissions narrow accessible models, but gateway balance and tier checks still apply.
- Flex users can allowlist normal AltLLM models and Flex-only
altllm-flex-*models; backend access checks remain authoritative. update-api-key --status disabledis reversible.revoke-api-keyis permanent.keysis an alias forlist-api-keys.
Known Production Limitation
- The single-key Portal API routes are currently broken in production.
- Affected commands:
get-api-keyupdate-api-keyrevoke-api-key
- Commands that still work:
list-api-keyscreate-api-key
- Do not create temporary production smoke keys unless
revoke-api-keyis healthy or an approved cleanup path exists.
Reference
See references/cli-reference.md for command examples and representative responses.
常见问题
创建后还能再次看到完整密钥吗?
不能。完整密钥只会在创建时显示一次,因此请立即保存。
停用和撤销密钥有什么区别?
停用可以恢复,撤销则是永久性的。
为什么检查或撤销单个密钥可能会失败?
该技能说明,单个密钥的操作目前在生产环境中存在问题,但列出和创建密钥仍然可用。
详情
作者的原始描述
Use this skill when the user asks to list, create, inspect, update, disable, re-enable, or revoke AltLLM Portal API keys for external agents or applications. Do NOT use for wallet login, billing history, or payment links.
热度
- GitHub 星标
- 7.0k
- 排名
- #13602
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。