Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)7.0k · #13603

altllm-portal-auth

Skill này làm gì

Skill này bao gồm đăng nhập vào AltLLM Portal bằng ví tiền mã hóa từ dòng lệnh. Nó giải thích các bước đăng nhập, gồm ký bằng ứng dụng ví bên ngoài, và cách kiểm tra hoặc kết thúc phiên đã lưu.

Khi nào nên dùng

  • ✓Khi bạn cần đăng nhập vào AltLLM Portal từ dòng lệnh lần đầu.
  • ✓Khi ví của bạn nằm trong ứng dụng khác, như Privy, và phải ký một thông điệp đăng nhập.
  • ✓Khi bạn muốn kiểm tra xem phiên AltLLM còn hoạt động hay muốn đăng xuất.

Liên kết skill

https://github.com/internet-court/internet-court-skill/blob/main/vendored/altlayer/altllm-portal-auth/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/internet-court/internet-court-skill/blob/main/vendored/altlayer/altllm-portal-auth/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn đăng nhập vào AltLLM Portal bằng ví của mình và kiểm tra phiên có hoạt động không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent lấy một thông điệp đăng nhập, để ví của bạn ký và lưu phiên đã ký trên máy tính. Lệnh kiểm tra trạng thái không hiển thị token đăng nhập đã lưu. Khóa ví có thể lấy từ biến môi trường, file hoặc một bên ký bên ngoài.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Agent có luôn cần khóa riêng của ví tôi không?

Không. Nếu ứng dụng ví của bạn có thể ký thông điệp, agent có thể dùng chữ ký đó thay thế.

Điều gì xảy ra khi tôi đăng xuất?

Skill xóa file phiên đã lưu khỏi máy tính của bạn.

Tôi có thể gõ thẳng khóa riêng vào lệnh không?

Skill chỉ cho phép khi bạn chủ động chấp nhận rủi ro, vì khóa gõ vào lệnh có thể bị người khác trên máy tính nhìn thấy.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
7.0k
Vị trí xếp hạng
#13603
Giấy phép
—
Cập nhật
26/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự