skills/authenticate-wallet/SKILL.md
Authenticate the fibx CLI wallet via email OTP (Privy) or private key import. Required before any wallet operation (balance, send, trade, aave). Private keys are encrypted at rest with AES-256-GCM.
npx skillsauth add ahmetenesdur/fibx-agentic-wallet-skills authenticate-walletInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage the authentication session for the fibx CLI. Supports two methods: email OTP (via Privy server wallets) and private key import (local wallet).
auth login before auth verify. They are sequential steps.auth verify or auth import, ALWAYS run npx fibx@latest status to confirm the session is active.# Step 1: Send OTP to email
npx fibx@latest auth login <email>
# Step 2: Verify OTP code
npx fibx@latest auth verify <email> <code>
npx fibx@latest auth import
INTERACTIVE COMMAND: This opens a prompt for the user to paste their private key. The agent CANNOT pass the key as a CLI argument. Instruct the user to enter it in the terminal prompt, or run it via the agent's terminal tool and let the user type the key.
# Check current session status
npx fibx@latest status
# End session
npx fibx@latest auth logout
| Parameter | Type | Description | Required |
| --------- | ------ | ------------------------------------ | ----------------- |
| email | string | User's email address | Yes (email OTP) |
| code | string | One-time password received via email | Yes (verify step) |
auth login.auth logout.~/.config/fibx-nodejs/session.json on Linux, ~/Library/Preferences/fibx-nodejs/session.json on macOS).~/.config/fibx-nodejs/encryption-key on Linux). Legacy plaintext keys are auto-migrated on first load.FIBX_SESSION_SECRET environment variable (64-char hex) to use a custom encryption key instead of the auto-generated one.User: "Log me in with [email protected]"
npx fibx@latest auth login [email protected]
# Wait for user to provide the OTP code (e.g. "123456")
npx fibx@latest auth verify [email protected] 123456
npx fibx@latest status
User: "Import my private key"
# Warn user first, then:
npx fibx@latest auth import
npx fibx@latest status
User: "Log me out"
npx fibx@latest auth logout
| Error | Action |
| ------------------- | ------------------------------------------------------ |
| Invalid code | Ask the user to check their email and retry verify. |
| Rate limit | Wait 60 seconds before retrying. |
| Session expired | Privy JWT expired (7 days). Restart from auth login. |
| Not authenticated | Run the full login flow before other skills. |
status to verify your session is active before any operation.balance after authentication to see available funds.portfolio after authentication to see a full cross-chain overview with USD values.testing
Get a swap price quote without authentication. Check exchange rates, output amounts, and route info for any token pair on Base, Citrea, HyperEVM, or Monad. No wallet or session required.
testing
Check the on-chain status of a transaction and get the block explorer link. Supports Base, Citrea, HyperEVM, and Monad.
testing
Swap tokens using Fibrous aggregation on Base, Citrea, HyperEVM, or Monad. Finds optimal route, simulates before execution. Supports --simulate for gas-only estimation without sending.
testing
Send native tokens (ETH, cBTC, HYPE, MON) or ERC-20 tokens to an address on Base, Citrea, HyperEVM, or Monad. Simulates before sending. Supports --simulate for gas-only estimation.