authenticate-wallet

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.

fibrous-finance/fibx-skills44 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: authenticate-wallet
description: 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.
license: MIT
---

# Wallet Authentication

Manage the authentication session for the `fibx` CLI. Supports two methods: email OTP (via Privy server wallets) and private key import (local wallet).

## Prerequisites

- No active session required — this skill creates one

## Rules

1. For email login, NEVER ask the user for a private key.
2. For private key import, warn the user: _"Your private key will be encrypted with AES-256-GCM and stored locally. The encryption key is auto-generated per machine. Shall I proceed?"_
3. You MUST complete `auth login` before `auth verify`. They are sequential steps.
4. After successful `auth verify` or `auth import`, ALWAYS run `npx fibx@latest status` to confirm the session is active.
5. NEVER store or log private keys, OTP codes, or session tokens in conversation history.

## Commands

### Email OTP Login (2-step)

```bash
# Step 1: Send OTP to email
npx fibx@latest auth login <email>

# Step 2: Verify OTP code
npx fibx@latest auth verify <email> <code>
```

### Private Key Import

```bash
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.

### Session Management

```bash
# Check current session status
npx fibx@latest status

# End session
npx fibx@latest auth logout
```

## Parameters

| Parameter | Type   | Description                          | Required          |
| --------- | ------ | ------------------------------------ | ----------------- |
| `email`   | string | User's email address                 | Yes (email OTP)   |
| `code`    | string | One-time password received via email | Yes (verify step) |

## Session Details

- **Privy sessions**: JWT-based, 7-day expiry. After expiry, the user must re-authenticate via `auth login`.
- **Private key sessions**: No expiry. Session persists until `auth logout`.
- **Storage**: Sessions are stored in an OS-dependent config directory (e.g. `~/.config/fibx-nodejs/session.json` on Linux, `~/Library/Preferences/fibx-nodejs/session.json` on macOS).
- **Encryption**: Private keys are encrypted at rest using AES-256-GCM. The encryption key is auto-generated per machine in the OS config directory (e.g. `~/.config/fibx-nodejs/encryption-key` on Linux). Legacy plaintext keys are auto-migrated on first load.
- **CI/Docker**: Set `FIBX_SESSION_SECRET` environment variable (64-char hex) to use a custom encryption key instead of the auto-generated one.

## Examples

**User:** "Log me in with user@example.com"

```bash
npx fibx@latest auth login user@example.com
# Wait for user to provide the OTP code (e.g. "123456")
npx fibx@latest auth verify user@example.com 123456
npx fibx@latest status
```

**User:** "Import my private key"

```bash
# Warn user first, then:
npx fibx@latest auth import
npx fibx@latest status
```

**User:** "Log me out"

```bash
npx fibx@latest auth logout
```

## Error Handling

| 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.           |

## Related Skills

- Use `status` to verify your session is active before any operation.
- Run `balance` after authentication to see available funds.
- Run `portfolio` after authentication to see a full cross-chain overview with USD values.

More Security skills

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

318.9k

azure-messaging

microsoft/azure-skills

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

310.3k

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

293.2k

← All Security skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY