← 返回 Skills 市场
agnicpay-prog

Agnic Authenticate Wallet

作者 Agnic.AI · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ✓ 安全检测通过
124
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install agnicpay-authenticate-wallet
功能描述
Authenticate Agnic wallet via browser OAuth or headless API token. Use when the user wants to sign in, log in, authenticate, connect wallet, set up CLI, or r...
使用说明 (SKILL.md)

Authenticating the Agnic Wallet

Check Current Status

npx agnic@latest status --json

If already authenticated, no further action needed. If not, choose the appropriate mode below.

Mode 1: Headless / Token Auth (CI, servers, agents)

Preferred when no browser is available. Generate an API token at app.agnic.ai > Settings > API Tokens.

Option A -- Environment variable (recommended for automation):

export AGNIC_TOKEN=\x3Cyour-api-token>
npx agnic@latest status --json

The CLI reads AGNIC_TOKEN automatically. All subsequent commands in the same shell session use it without extra flags.

Option B -- Inline flag (one-off commands):

npx agnic@latest --token \x3Cyour-api-token> status --json

Mode 2: Browser OAuth (interactive terminals)

Use when a browser is available:

npx agnic@latest auth login

This command:

  1. Starts a temporary local server on a random port
  2. Opens the default browser to the Agnic OAuth consent screen
  3. The user signs in (email, Google, or wallet) and approves spending limits
  4. The browser redirects back to http://localhost:\x3Cport>/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

npx agnic@latest status --json

Expected output:

{
  "authenticated": true,
  "userId": "did:privy:...",
  "email": "[email protected]",
  "walletAddress": "0x...",
  "tokenExpiry": "2026-05-22T14:30:00Z"
}

Logout

To remove stored credentials:

npx agnic@latest auth logout

Token Storage

  • Browser mode: credentials stored in ~/.agnic/config.json with 0600 permissions. Tokens auto-refresh on 401 responses. Refresh token expires after 90 days.
  • Token mode: no local storage. The token is read from AGNIC_TOKEN env var or --token flag per invocation.

Error Handling

  • "Not authenticated" -- Set AGNIC_TOKEN env var, pass --token, or run auth login
  • "Authentication failed" -- User cancelled the browser flow or the 5-min timeout expired
  • "Could not open browser" -- The CLI prints a URL to copy and open manually
  • "Token expired" -- Browser tokens auto-refresh; API tokens must be regenerated at app.agnic.ai
  • "Invalid token" -- Check the token value; it may have been revoked or malformed
安全使用建议
This skill is coherent with its purpose, but before using it: 1) Verify the CLI package identity (npm package 'agnic') and prefer pinned versions over '@latest' when running in production, since npx will execute code fetched at runtime. 2) Use short-lived or least-privilege API tokens and avoid placing long-lived secrets in shared shells. 3) Be aware the CLI will write credentials to ~/.agnic/config.json (0600) — check that file's contents and permissions. 4) The registry metadata omits AGNIC_TOKEN and the config path referenced in SKILL.md; if you need higher assurance, ask the publisher for the package homepage/source and review the CLI code before running it in sensitive environments.
功能分析
Type: OpenClaw Skill Name: agnicpay-authenticate-wallet Version: 2.0.2 The skill provides instructions and tool access for authenticating with the Agnic platform using its official CLI tool via `npx`. It supports both interactive OAuth and headless token-based authentication. The allowed commands are strictly limited to `status` and `auth` operations, and the documentation accurately describes standard credential management practices (e.g., storing tokens in `~/.agnic/config.json`). No indicators of malicious intent or data exfiltration were found.
能力标签
cryptorequires-walletrequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (authenticate Agnic wallet via browser OAuth or token) align with the runtime instructions, which call the Agnic CLI (npx agnic@latest) to perform OAuth and token-based auth.
Instruction Scope
SKILL.md only instructs running the Agnic CLI commands (status, auth login, auth logout) and explains expected local behavior (starts a temporary localhost server, opens browser, stores credentials in ~/.agnic/config.json). It does not ask the agent to read unrelated system files or exfiltrate data. Minor mismatch: the metadata declares no config paths or env vars, but the instructions explicitly reference AGNIC_TOKEN and ~/.agnic/config.json.
Install Mechanism
This is an instruction-only skill (no install spec). It instructs using 'npx agnic@latest', which will fetch and execute the package from the npm registry at runtime. That is expected for a CLI, but executing code from @latest is a moderate operational risk—verify the package/source before running in sensitive environments.
Credentials
No required environment variables are declared in the registry metadata, but SKILL.md expects an AGNIC_TOKEN env var (or --token). Requesting an API token for authentication is proportionate to the skill's purpose. The CLI also stores credentials in ~/.agnic/config.json (0600) — this is expected for a CLI but is a material effect on the user's home directory that the metadata did not list.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent platform-level privileges or changes to other skills; storing tokens locally is normal for an auth CLI.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agnicpay-authenticate-wallet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agnicpay-authenticate-wallet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
v2.0.2 — Synced with upstream agnic-wallet-skills: - Added headless authentication (AGNIC_TOKEN env var + --token flag) - AI agents / CI / server environments can now authenticate without a browser - Rebranded references from "AgnicPay" to "Agnic"
v1.0.0
- Initial release of the AgnicPay wallet authentication skill. - Supports sign in, authentication, and wallet connection via browser-based OAuth. - Provides CLI commands for login (`npx agnic@latest auth login`), status checking, and logout. - Credentials are stored securely and tokens auto-refresh for seamless sessions. - Clear error messages and instructions for handling common authentication issues.
元数据
Slug agnicpay-authenticate-wallet
版本 2.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Agnic Authenticate Wallet 是什么?

Authenticate Agnic wallet via browser OAuth or headless API token. Use when the user wants to sign in, log in, authenticate, connect wallet, set up CLI, or r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。

如何安装 Agnic Authenticate Wallet?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agnicpay-authenticate-wallet」即可一键安装,无需额外配置。

Agnic Authenticate Wallet 是免费的吗?

是的,Agnic Authenticate Wallet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agnic Authenticate Wallet 支持哪些平台?

Agnic Authenticate Wallet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agnic Authenticate Wallet?

由 Agnic.AI(@agnicpay-prog)开发并维护,当前版本 v2.0.2。

💬 留言讨论