authenticate-wallet

Sign in to AgnicPay wallet via browser-based OAuth. Use when you or the user want to authenticate, sign in, log in, connect wallet, or set up the CLI. Covers phrases like "sign in", "log in", "authenticate", "connect my wallet", "set up agnic".

3,891 stars
Complexity: easy

About this skill

This AI agent skill enables secure authentication for the `awal` payments wallet. It automates the process of logging in, connecting, or setting up the wallet, which is essential before performing any transactional operations such as sending, trading, or funding. The skill is designed to handle situations where the wallet is not signed in or when authentication errors occur during other wallet operations. The authentication flow is a robust two-step email OTP (One-Time Password) mechanism. The agent first initiates a login sequence by providing an email address, which triggers the delivery of a 6-digit verification code to that email and provides a unique `flowId`. Subsequently, the agent, either by accessing the user's email directly or by prompting the user for the OTP, completes the authentication by verifying the `flowId` and the received code. This skill significantly streamlines wallet management for AI agents, allowing them to independently manage authentication state. By providing a clear sequence of `npx awal` CLI commands, it ensures reliable and secure access to wallet functionalities, enhancing the agent's capabilities in financial or Web3-related tasks.

Best use case

The primary use case is to establish or re-establish an authenticated session with the `awal` payments wallet, enabling subsequent secure financial transactions. AI agents managing user funds or performing Web3 operations will benefit most, as it provides a standardized and secure method to handle wallet logins programmatically, reducing friction and manual intervention.

Sign in to AgnicPay wallet via browser-based OAuth. Use when you or the user want to authenticate, sign in, log in, connect wallet, or set up the CLI. Covers phrases like "sign in", "log in", "authenticate", "connect my wallet", "set up agnic".

The `awal` wallet will be successfully signed in, displaying its address and status, and allowing subsequent authenticated operations.

Practical example

Example input

Log in to my `awal` payments wallet using user@example.com.

Example output

Initiating login for user@example.com...
A 6-digit OTP has been sent to user@example.com. Please provide the OTP received.
flowId: abc123
(User provides OTP: 123456)
Verifying OTP...
Wallet authenticated successfully!
Wallet Address: 0x...
Status: Signed in

When to use this skill

  • When the user explicitly requests to log in, sign in, connect, or set up their `awal` wallet.
  • Before any `awal` wallet operation (like sending, trading, or funding) that requires authentication.
  • When a previous `awal` wallet operation fails due to "not signed in" or authentication errors.
  • To verify the current authentication status of the `awal` wallet.

When not to use this skill

  • If the user does not use the `awal` payments wallet.
  • If the user explicitly does not want to authenticate or connect their wallet.
  • For operations that do not require wallet access or authentication.
  • If the user cannot provide an email or OTP code when prompted.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/agnicpay-authenticate-wallet/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/agnicpay-prog/agnicpay-authenticate-wallet/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/agnicpay-authenticate-wallet/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How authenticate-wallet Compares

Feature / Agentauthenticate-walletStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Sign in to AgnicPay wallet via browser-based OAuth. Use when you or the user want to authenticate, sign in, log in, connect wallet, or set up the CLI. Covers phrases like "sign in", "log in", "authenticate", "connect my wallet", "set up agnic".

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Authenticating the AgnicPay Wallet

Use `npx agnic@latest auth login` to authenticate via browser-based OAuth. This opens the user's default browser to AgnicPay where they sign in and set spending limits for the CLI session.

## Confirm wallet is initialized and authed

```bash
npx agnic@latest status
```

If already authenticated, no further action is needed. If not authenticated, proceed with login.

## Login Flow

```bash
npx agnic@latest auth login
```

This command:
1. Starts a temporary local server on a random port
2. Opens the user's default browser to AgnicPay's OAuth consent screen
3. The user signs in (email, Google, or wallet) and approves spending limits
4. The browser redirects back to `http://localhost:<port>/callback`
5. The CLI exchanges the authorization code for tokens and saves them locally

Wait for the CLI to print `✓ Authenticated!` before proceeding.

## Verify Authentication

After login, confirm the session is active:

```bash
npx agnic@latest status
```

Expected output:

```
Wallet Status
✓ Authenticated

Email:    user@example.com
Wallet:   0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7
Expires:  2026-05-22 14:30:00 UTC
```

## Logout

To remove stored credentials:

```bash
npx agnic@latest auth logout
```

## Token Storage

Credentials are stored in `~/.agnic/config.json` with restricted permissions (`0600`). Tokens auto-refresh on 401 responses — no manual re-authentication needed until the refresh token expires (90 days).

## Error Handling

Common errors:

- "Not authenticated" — Run `npx agnic@latest auth login`
- "Authentication failed" — User cancelled the browser flow or the timeout (5 min) expired
- "Could not open browser" — The CLI prints a URL to copy and open manually
- "Token expired" — Tokens auto-refresh; if refresh also fails, re-run `npx agnic@latest auth login`

Related Skills

AgentWallet — Non-Custodial Smart Wallets for AI Agents

3891
from openclaw/skills

Non-custodial smart wallets with onchain spending limits and passkey-based human control. Supports **Base** (EVM) and **Solana**. Every wallet gets free gas on creation so your agent can transact immediately.

General Utilities

orange — Lightning Wallet for AI Agents

3891
from openclaw/skills

> [!WARNING]

tron-wallet

3891
from openclaw/skills

This skill should be used when the user asks to 'check my TRX balance', 'show my TRON holdings', 'what tokens do I have on TRON', 'check my TRON wallet', 'TronLink balance', 'view my TRC-20 tokens', 'TRON transaction history', 'account info on TRON', or mentions checking wallet balance, viewing transaction history, or managing a TronLink wallet. Do NOT use for swap/trading — use tron-swap instead. Do NOT use for staking — use tron-staking instead.

walletchan

3891
from openclaw/skills

Interact with web3 dapps using the WalletChan browser extension via Chrome CDP. Use when the user asks to connect a wallet, swap tokens, supply/deposit to DeFi protocols, sign messages, view balances on-chain, or perform any blockchain transaction through a dapp in the browser. Requires Chrome with remote debugging and the WalletChan extension installed.

check-wallet

3891
from openclaw/skills

Query wallet addresses and on-chain balances on OpenAnt. Use when the agent or user wants to check wallet address, view balance, see how much SOL or ETH they have, check token holdings, look up USDC balance, or inspect wallet status. Also use when a wallet operation fails with "Insufficient balance". Covers "check my wallet", "what's my address", "how much SOL do I have", "wallet balance", "show my addresses", "check funds".

authenticate-openant

3891
from openclaw/skills

Sign in to OpenAnt. Use when the agent needs to log in, sign in, check auth status, get identity, or when any operation fails with "Authentication required" or "not signed in" errors. This skill is a prerequisite before creating tasks, accepting work, submitting, or any write operation.

wallet-api

3891
from openclaw/skills

Interact with the BudgetBakers Wallet API for personal finance data. Use when the user needs to query accounts, categories, transactions (records), budgets, or templates from their Wallet app via the REST API. Requires WALLET_API_TOKEN environment variable.

WalletPilot-7715

3891
from openclaw/skills

Execute on-chain transactions with user-granted permissions. Built on MetaMask ERC-7715. No private keys, full guardrails.

WalletPilot

3891
from openclaw/skills

Universal browser wallet automation for AI agents. Supports 10 wallets including MetaMask, Rabby, Phantom, Trust Wallet, OKX, Coinbase, and more. EVM + Solana. Configurable guardrails with spend limits, chain allowlists, and approval thresholds.

MetaMask Agent Wallet

3891
from openclaw/skills

Control a sandboxed MetaMask browser extension wallet for autonomous blockchain transactions. Features configurable permission guardrails including spend limits, chain allowlists, protocol restrictions, and approval thresholds. MetaMask-only (other wallets not supported).

llm_wallet

3891
from openclaw/skills

Manage crypto wallets and make x402 micropayments with USDC stablecoins on Polygon

polymarket-wallet-xray

3891
from openclaw/skills

X-ray any Polymarket wallet — skill level, entry quality, bot detection, and edge analysis. Queries Polymarket's public APIs, no authentication needed. Inspired by @thejayden's "Autopsy of a Polymarket Whale" analysis.