FDX — Agent Wallet CLI
FDX is a command-line interface to the Finance District MCP wallet server. It gives AI agents crypto wallet capabilities — hold, send, swap, and earn yield on assets across multiple chains — without managing private keys. FDX is designed for AI agents and agent frameworks that need wallet tooling but don’t natively support the Model Context Protocol (MCP). Instead of integrating an MCP client, agents invokefdx call <method> from the command line and parse JSON output.
- No Key Management — OAuth 2.1 secured. No seed phrases. No private key files.
- Agent-Native — Structured JSON input/output designed for tool-calling agents.
- Multi-Chain — Ethereum, BSC, Arbitrum, Base, Solana. One wallet, all chains.
- DeFi Enabled — Transfer, swap, and earn yield through integrated DeFi protocols.
- Smart Accounts — Account abstraction with multi-signature support (ERC-4337).
For full documentation, architecture details, and development instructions,
see the FDX GitHub
repository.
Quick Start
Install globally:Authentication
FDX uses OAuth 2.1 with the Device Authorization Grant (RFC 8628). Authentication is always tied to a user identity — the agent acts as a delegate on the user’s behalf. When you runfdx setup, the CLI retrieves a short one-time code and prints it alongside a verification URL:
No API keys or bearer tokens to manage. Tokens are stored securely in the OS
credential store (Keychain on macOS, libsecret on Linux, DPAPI on Windows) and
refreshed automatically.
Usage
Invoke any MCP tool via the CLI:fdx call without arguments to see all available methods.
SDK Usage
FDX can also be used as a Node.js library:Configuration
| Variable | Description | Default |
|---|---|---|
FDX_MCP_SERVER | MCP server URL | https://mcp.fd.xyz |
FDX_STORE_PATH | Token store path | ~/.fdx/auth.json |
FDX_LOG_PATH | Log file path | ~/.fdx/fdx.log |
FDX_LOG_LEVEL | Log verbosity (debug | info | warn | error | off) | info |
Using FDX with Agent Frameworks
FDX is designed to work with agent frameworks where the agent can execute shell commands.Tool-calling agents
Most agent frameworks let you define custom tools. Wrap FDX as a shell tool:Script-based automation
FDX vs. MCP Server
FDX and MCP server connect to the same backend and offer the same capabilities:| Aspect | MCP Server | FDX CLI |
|---|---|---|
| Interface | MCP protocol (tool calls) | Terminal commands (fdx call) |
| Connection | MCP client → server | FDX → MCP client → server |
| Best for | AI agents in MCP clients | Scripts, automation, agent frameworks with shell access |
| Setup | Config file in MCP client | npm install -g + fdx setup |
| Auth | OAuth PKCE | Device Authorization Grant |
| Output | MCP tool responses | JSON |