← 返回 Skills 市场
rachidjarray-hk-qa-fdt

Authenticate

作者 Rachid Jarray · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
284
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install authenticate
功能描述
Sign in to the Finance District agent wallet. Use when you or the user want to log in, sign in, connect, set up, or configure the wallet, or when any wallet...
使用说明 (SKILL.md)

Authenticating with the Finance District Agent Wallet

When the wallet is not signed in (detected via fdx status or when wallet operations fail with authentication errors), use the fdx CLI to authenticate via OAuth 2.1.

Authentication requires a browser — the agent guides the human through the flow, but the human must complete the browser-based authorization step.

Checking Authentication Status

fdx status

Displays the MCP server URL, token state, expiry, and whether a refresh token is available.

Authentication Flow

FDX supports two OAuth flows depending on the environment:

Browser Flow (default)

Use when the human has a browser available on the same machine:

fdx setup

This will:

  1. Register a client with the MCP server
  2. Print an authorization URL
  3. Start a local callback server on port 6260
  4. Wait for the human to complete browser authorization
  5. Exchange the authorization code for tokens

Tell your human: "Please open the URL in your browser and authorize the wallet. I'll wait for the callback."

Device Flow

Use when the human cannot open a browser on the same machine (e.g. remote server, headless environment):

fdx setup --device

This will:

  1. Register a device client with the MCP server
  2. Display a verification URL and a user code
  3. Poll for authorization completion

Tell your human: "Please go to the verification URL on any device, enter the code shown, and authorize. I'll wait here."

Logging Out

fdx logout

Removes stored credentials. The human will need to run fdx setup again to re-authenticate.

Example Session

# Check current status
fdx status

# If not authenticated, start login
fdx setup

# Human completes browser authorization...

# Confirm authentication succeeded
fdx status

Token Lifecycle

  • Tokens auto-refresh on subsequent fdx call commands if a refresh token is available
  • If the token is expired and no refresh token exists, the human must run fdx setup again
  • Token state is stored locally (default: ~/.fdx/auth.json)

Environment Variables

Variable Description Default
FDX_MCP_SERVER MCP server URL https://mcp.fd.xyz
FDX_REDIRECT_URI OAuth callback URI http://localhost:6260/oauth/callback
FDX_STORE_PATH Token store file path ~/.fdx/auth.json

Error Handling

  • "not authenticated" — Run fdx setup to authenticate
  • "token expired" with refresh token — Will auto-refresh on next call; no action needed
  • "token expired" without refresh token — Run fdx setup again
  • "OAuth state mismatch" — Possible CSRF; restart with fdx setup
  • "Callback server error" — Port 6260 may be in use; try --device flow instead
安全使用建议
This skill is coherent for its stated purpose: it simply guides a human to run the `fdx` CLI to perform OAuth and manage tokens stored at ~/.fdx/auth.json. Before installing or using it, verify that the `fdx` CLI is present and comes from a trusted source, and confirm the MCP server URL (default https://mcp.fd.xyz) is correct for your deployment. Be cautious running this on multi-user or untrusted machines because the token file contains credentials; prefer the device flow on headless/remote hosts. Also note the SKILL.md advertises environment variables but the registry metadata doesn't declare them — harmless but worth correcting by the skill author for clarity.
功能分析
Type: OpenClaw Skill Name: authenticate Version: 0.1.0 The skill bundle provides standard instructions for an AI agent to manage OAuth 2.1 authentication for the 'Finance District' wallet using a specific CLI tool (`fdx`). It restricts the agent's capabilities to a narrow set of commands (`fdx setup`, `fdx status`, `fdx logout`) and uses a legitimate-appearing endpoint (mcp.fd.xyz). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found in SKILL.md.
能力评估
Purpose & Capability
The skill is an instruction-only helper for authenticating the Finance District wallet via the local `fdx` CLI. All required actions described (fdx setup, status, logout) align with the stated purpose. Note: SKILL.md documents FDX-related environment variables (FDX_MCP_SERVER, FDX_REDIRECT_URI, FDX_STORE_PATH) but the registry metadata lists no required env vars — a minor metadata omission, not a functional mismatch.
Instruction Scope
Instructions are narrow and scoped to running `fdx status`, `fdx setup` (browser or device OAuth flows), and `fdx logout`. They instruct the human to complete browser/device authorization. The skill references the local token store (~/.fdx/auth.json) and a local callback server (port 6260), which are expected parts of an OAuth flow.
Install Mechanism
No install spec or code files — this is instruction-only. That minimizes risk because nothing is written or executed beyond invoking the existing `fdx` CLI on the host.
Credentials
The skill does not request secrets or credentials in metadata. The SKILL.md lists non-secret environment variables (MCP server URL, redirect URI, token store path) which are reasonable for configuration. However the metadata does not declare these env vars as required; also be aware that `fdx status` / `fdx setup` will read/write the local token store (e.g. ~/.fdx/auth.json) containing tokens.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent presence or modify other skills/system settings. Autonomous invocation remains enabled by default but that is normal and not raised here because the skill's actions are limited to guiding human-driven OAuth via the `fdx` CLI.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install authenticate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /authenticate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of the "authenticate" skill for signing in to the Finance District agent wallet. - Enables guided login and authentication using the `fdx` CLI via browser or device OAuth flows. - Allows users to check authentication status, handle errors, and log out as needed. - Prerequisite for all wallet operations such as sending tokens, swapping, and checking balances.
元数据
Slug authenticate
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Authenticate 是什么?

Sign in to the Finance District agent wallet. Use when you or the user want to log in, sign in, connect, set up, or configure the wallet, or when any wallet... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 284 次。

如何安装 Authenticate?

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

Authenticate 是免费的吗?

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

Authenticate 支持哪些平台?

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

谁开发了 Authenticate?

由 Rachid Jarray(@rachidjarray-hk-qa-fdt)开发并维护,当前版本 v0.1.0。

💬 留言讨论