360 Secure SkillHub
360 安全技能中心

Agnic

该 Skill 通过 npx agnic@latest 命令行为 AI agent 提供统一身份与资金能力:OAuth 登录、余额与地址查询、x402 付费 API 调用、代币报价与交易、USDC 转账、代理邮箱收发、ERC-8004 链上身份,以及调用 340+ 模型的 AI 网关和图片生成。所有操作以命令行执行,需联网。

agnicpay-prog
agnicpay-prog
热度 43.70
最近更新 2026-05-18 11:38:48
分类:自动化依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:财务 / 工作流 / 自动化脚本 / 邮件起草 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agnic
Metadata
name
agnic
description
Complete AI agent wallet with payments, trading, email, and on-chain identity. Use when the user wants to manage their agent's wallet, make payments, trade tokens, send/receive email, or check their agent identity.
user-invocable
true
disable-model-invocation
false
allowed-tools
["Bash(npx agnic@latest *)"]

Agnic — Unified Agent Wallet Skill

This skill gives your AI agent a full identity stack: wallet, email, payments, trading, and on-chain identity.

Authentication

npx agnic@latest auth login    # Opens browser for OAuth login
npx agnic@latest auth logout   # Clear stored credentials

Balance & Funding

npx agnic@latest balance --json                     # All networks
npx agnic@latest balance --network base --json      # Specific network
npx agnic@latest address                            # Show wallet address

Supported networks: base, solana, base-sepolia, solana-devnet

X402 Payments

# Search for APIs
npx agnic@latest x402 search "weather data" --json

# Preview cost before paying
npx agnic@latest x402 preview <url>

# Make a paid API call
npx agnic@latest x402 pay <url> --method GET --json

Token Trading

# Get a quote
npx agnic@latest trade quote 10 USDC ETH --json

# Execute a trade (Base mainnet only)
npx agnic@latest trade 10 USDC ETH --json

Supported tokens: USDC, ETH, WETH, cbETH, DAI, AERO

Send USDC

npx agnic@latest send <amount> <address> --network base --json

Agent Identity

npx agnic@latest agent-identity --json    # ERC-8004 identity, trust score, delegation
npx agnic@latest status --json            # General account status

Agent Email

npx agnic@latest email address --json                     # Show email alias
npx agnic@latest email setup --display-name "My Agent"    # Create email alias
npx agnic@latest email inbox --limit 10 --json            # Check inbox
npx agnic@latest email send --to user@example.com --subject "Hello" --body "Message"
npx agnic@latest email reply --message-id <id> --body "Reply text"

AI Gateway

# List available AI models
npx agnic@latest ai models --json
npx agnic@latest ai models --provider openai --json

# Chat with an AI model
npx agnic@latest ai chat --model openai/gpt-4o --prompt 'Explain quantum computing' --json
npx agnic@latest ai chat --model meta-llama/llama-3.3-70b --prompt 'Summarize this text' --json

# Generate an image
npx agnic@latest ai image --prompt 'A sunset over mountains' --output sunset.png
npx agnic@latest ai image --prompt 'Logo design' --aspect-ratio 16:9 --output logo.png

340+ models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more. Model format: provider/model-name (e.g., openai/gpt-4o, google/gemini-2.5-flash-image) Free models: meta-llama/*, google/gemma-*, mistralai/*

Workflow: Sign Up + Pay + Report

  1. Check auth: npx agnic@latest status --json
  2. Sign up for a service using agent email (email send)
  3. Check inbox for verification (email inbox)
  4. Reply to verify (email reply)
  5. Make paid API call (x402 pay)
  6. Email results to user (email send)