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

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

可直接粘贴的消息

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

可以这样问 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 altllm command 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 --signature is 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 --prepare and 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.json unless overridden.
  • Use status or its whoami alias to confirm the saved user and target URL before running live commands.
  • logout only 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.

repo: internet-court/internet-court-skill

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能