altllm-portal-auth
它能做什么
这项技能涵盖通过命令行使用加密钱包登录 AltLLM Portal。它说明登录步骤,包括用外部钱包应用签名,以及如何检查或结束已保存的会话。
适用场景
- ✓当你第一次需要从命令行登录 AltLLM Portal 的时候。
- ✓当你的钱包位于其他应用中,例如 Privy,并需要为登录消息签名时。
- ✓当你想检查 AltLLM 会话是否仍然有效或退出登录的时候。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/altlayer/altllm-portal-auth/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想用我的钱包登录 AltLLM Portal,并检查会话是否有效。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会获取一条登录消息,请你的钱包对其签名,然后把签名后的会话保存在你的电脑上。状态检查不会显示已保存的登录令牌。钱包私钥可以来自环境变量、文件或外部签名器。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AltLLM Portal Auth
Wallet login and session bootstrap for the local altllm CLI, including external signers such as Privy.
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 |
|---|---|
login-wallet --private-key-env <name> |
Sign in with a locally available private key from an environment variable |
login-wallet --private-key-file <path> |
Sign in with a locally available private key from a file |
login-wallet --private-key <hex> --allow-unsafe-private-key-argv |
Sign in with an inline private key when argv exposure is explicitly accepted |
login-wallet --prepare |
Fetch a challenge for external signing |
login-wallet --nonce <nonce> --signature <sig> |
Verify an externally signed challenge and save the session |
status |
Show saved Portal session user and target URL status without exposing the token |
logout |
Remove the local saved Portal session file |
Rules
- Do not assume the CLI must control the wallet private key.
- If the wallet can sign the challenge message, use the prepare + verify flow.
- External signers such as Privy are valid as long as they return a standard wallet signature for the challenge.
- If neither a local private key nor
--signatureis available, return the challenge payload and stop. - Before local auto-signing, validate that the returned challenge matches the requested wallet, chain, and expected AltLLM login challenge structure.
- For non-default, non-loopback API hosts, prefer
--prepareand external signing instead of local auto-signing. - Current backend support is still limited to EVM addresses and Ethereum-style signatures.
- Save the resulting session to
~/.altllm/portal-cli-session.jsonunless overridden. - Use
statusor itswhoamialias to confirm the saved user and target URL before running live commands. logoutonly removes the local session file. It does not revoke API keys.
Reference
See references/cli-reference.md for commands, payloads, and troubleshooting notes.
常见问题
智能体总是需要我钱包的私钥吗?
不需要。如果你的钱包应用能够签名,智能体可以改用该签名。
我退出登录时会发生什么?
该技能会从你的电脑上删除已保存的会话文件。
我可以直接在命令中输入私钥吗?
只有在你明确接受风险时才允许,因为输入到命令中的私钥可能被电脑上的其他人看到。
详情
作者的原始描述
Use this skill when the user asks to log in or out with a wallet session, fetch a wallet sign-in challenge, verify an externally signed challenge, or troubleshoot AltLLM Portal wallet login for the local altllm CLI. Do NOT use for API key management, billing history, or payment links.
热度
- GitHub 星标
- 7.0k
- 排名
- #13603
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。