跳到正文
Skillpedia
API 与服务器(后端)7.0k · #13602

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/internet-court/internet-court-skill/blob/main/vendored/altlayer/altllm-portal-api-keys/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 altllm command 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-key returns 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 disabled is reversible.
  • revoke-api-key is permanent.
  • keys is an alias for list-api-keys.

Known Production Limitation

  • The single-key Portal API routes are currently broken in production.
  • Affected commands:
    • get-api-key
    • update-api-key
    • revoke-api-key
  • Commands that still work:
    • list-api-keys
    • create-api-key
  • Do not create temporary production smoke keys unless revoke-api-key is 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.

repo: internet-court/internet-court-skill

热度

GitHub 星标
7.0k
排名
#13602
许可证
—
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能