authenticate-wallet

Authenticate, manage sessions, and deploy Starknet wallets with StarkFi. Handles email OTP login (two-step), session checks, address display, account deployment, and logout. Use this skill whenever the user wants to sign in, log in, check their session, see their wallet address, deploy their account, or log out — even if they don't say "authenticate" explicitly.

ahmetenesdur/starkfi9 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: authenticate-wallet
description: Authenticate, manage sessions, and deploy Starknet wallets with StarkFi. Handles email OTP login (two-step), session checks, address display, account deployment, and logout. Use this skill whenever the user wants to sign in, log in, check their session, see their wallet address, deploy their account, or log out — even if they don't say "authenticate" explicitly.
license: MIT
---

# Authenticate Wallet

Manage authentication sessions for the StarkFi CLI. StarkFi uses a remote Auth Server with Privy TEE for email-based one-time password (OTP) authentication. A valid session is required before any transactional skill can operate.

## Prerequisites

- The StarkFi Auth Server (`starkfi-server`) must be running and accessible.
- An email address the user has access to (for receiving OTP codes).

## Authentication Flow

The login process is a **two-step** OTP flow:

1. **Initiate** — `auth login <email>` sends an OTP code to the email.
2. **Verify** — `auth verify <email> <code>` completes authentication.

The agent CANNOT guess or auto-fill the OTP code — it must wait for the user to provide it after checking their email.

## Rules

1. ALWAYS run `npx starkfi@latest status` first to check if the user already has an active session. If they do, skip the login flow — just inform them.
2. After `auth login`, you MUST wait for the user to provide their OTP code. Do NOT ask more than once; just say you're waiting.
3. After `auth verify`, you MUST run `npx starkfi@latest status` to confirm the session is active.
4. `deploy` is idempotent — it's safe to run multiple times. It deploys the smart account contract on-chain if not already deployed.
5. If any other skill reports `Not authenticated`, direct the user to this skill.

## Commands

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

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

# Check session status
npx starkfi@latest status

# Display wallet address
npx starkfi@latest address

# Deploy smart account on-chain
npx starkfi@latest deploy

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

## Parameters

| Parameter | Type   | Description                  | Required |
| --------- | ------ | ---------------------------- | -------- |
| `email`   | string | User's email address         | Yes      |
| `code`    | string | One-time password from email | Yes      |

## Examples

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

```bash
npx starkfi@latest status
# If not authenticated:
npx starkfi@latest auth login user@example.com
# Wait for user to provide OTP code (e.g. "123456")
npx starkfi@latest auth verify user@example.com 123456
npx starkfi@latest status
```

**User:** "What's my wallet address?"

```bash
npx starkfi@latest address
```

**User:** "Deploy my account"

```bash
npx starkfi@latest deploy
```

**User:** "Log me out"

```bash
npx starkfi@latest auth logout
```

## Error Handling

| Error                  | Action                                                                      |
| ---------------------- | --------------------------------------------------------------------------- |
| `Invalid OTP code`     | Ask the user to check their email and retry `auth verify`.                  |
| `Session expired`      | Restart from `auth login`.                                                  |
| `Server unreachable`   | Ensure `starkfi-server` is running at the configured URL.                   |
| `Rate limit`           | Wait 60 seconds before retrying.                                            |
| `Deployment failed`    | Check balance — send ETH/STRK to the address, or enable gasfree mode first. |
| `Insufficient balance` | For deploy: `npx starkfi@latest config set-gasfree on` to bypass gas costs. |

## Related Skills

- All other skills depend on this skill — if any reports `Not authenticated`, use this.
- Use `config` to enable gasfree mode if the user can't afford deployment gas.

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