internet-court/internet-court-skill / vendored/altlayer/altllm-portal-auth
altllm-portal-auth
VerifiedUse 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.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 322 B |
| SKILL.md | skill md | 2.5 KB |
| references/cli-reference.md | markdown | 3.5 KB |
references/cli-reference.md
View on GitHub# AltLLM Portal Auth — CLI Reference
## Commands
### Local-signing login
```bash
ALTLLM_WALLET_PRIVATE_KEY=<private-key> \
node dist/cli.js login-wallet \
--base-url https://platform-api.altllm.ai \
--wallet-address 0x... \
--private-key-env ALTLLM_WALLET_PRIVATE_KEY
```
Representative stdout:
```json
{
"ok": true,
"sessionFile": "/Users/<user>/.altllm/portal-cli-session.json",
"user": {
"id": "user_123",
"email": "0x...@wallet.altllm.local",
"name": "0x1234...abcd"
}
}
```
Local private-key input options:
- `ALTLLM_WALLET_PRIVATE_KEY=<private-key>` with the default `--private-key-env ALTLLM_WALLET_PRIVATE_KEY`
- `--private-key-env <ENV_NAME>`
- `--private-key-file <path>`
- `--private-key <hex>` with `--allow-unsafe-private-key-argv`
Direct `--private-key` usage requires `--allow-unsafe-private-key-argv` because command-line arguments can leak through shell history and process listings:
```bash
node dist/cli.js login-wallet \
--base-url https://platform-api.altllm.ai \
--wallet-address 0x... \
--private-key <hex-private-key> \
--allow-unsafe-private-key-argv
```
### Prepare challenge for external signing
```bash
node dist/cli.js login-wallet \
--base-url https://platform-api.altllm.ai \
--wallet-address 0x... \
--prepare
```
Representative stdout:
```json
{
"ok": true,
"awaitingSignature": true,
"walletAddress": "0x1111111111111111111111111111111111111111",
"chainId": 1,
"nonce": "challenge_nonce",
"message": "platform.altllm.ai wants you to sign in with your Ethereum account:\n0x1111111111111111111111111111111111111111\n\nSign this message to log in to AltLLM Portal.\n\nURI: https://platform.altllm.ai\nVersion: 1\nChain ID: 1\nNonce: challenge_nonce\nIssued At: 2026-03-26T00:00:00Z\nExpiration Time: 2026-03-26T00:05:00Z",
"expiresAt": "2026-03-26T00:05:00Z"
}
```
This flow is intended for wallets or wallet providers that sign externally, such as Privy.
### Inspect saved session
```bash
node dist/cli.js status
```
Alias: `node dist/cli.js whoami`
`status` prints the saved Portal user, saved session origin, requested target origin, and whether the CLI would be allowed to forward the saved session token to that target. It never prints the session token.
### Verify externally signed challenge
```bash
node dist/cli.js login-wallet \
--base-url https://platform-api.altllm.ai \
--wallet-address 0x... \
--nonce <nonce> \
--signature <hex-signature>
```
## Notes
- If no local private key and no signature are provided, `login-wallet` returns a challenge payload.
- External signers such as Privy work if they can sign the returned challenge message for the supplied wallet address.
- Local auto-signing validates the returned challenge before signing it.
- For non-default, non-loopback API hosts, use `--prepare` and sign externally.
- Safer local private-key input paths are `--private-key-env` and `--private-key-file`; guarded inline input is `--private-key <hex> --allow-unsafe-private-key-argv`.
- The current backend rejects non-EVM address formats.
- Signature validation is Ethereum-style message recovery on the server.
### Logout local session
```bash
node dist/cli.js logout
```
Representative stdout:
```json
{
"ok": true,
"loggedOut": true,
"sessionFile": "/Users/<user>/.altllm/portal-cli-session.json",
"user": {
"id": "user_123",
"email": "0x...@wallet.altllm.local",
"name": "0x1234...abcd"
},
"baseUrl": "https://platform-api.altllm.ai",
"message": "Local Portal session removed."
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |