agentleFS
fastxyzfastxyz/fast-sdk/skills/fast/SKILL.md

fast

Skill2 starsChanged 2 months agoMITView on GitHub

fast CLI for managing Fast network accounts, sending tokens, funding via bridge or supported app routes, and paying x402-protected APIs. Use when the user wants to run fast commands, create accounts, check balances, send USDC, or interact with the Fast network from the terminal.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. buildomator/buildomator★ 90same name
    2. Mesteriis/Engineering-Bible-AI★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If fast is still not found after install, diagnose PATH:

    line 32
  2. Distinctive:

    Every supported subcommand is listed below.

    line 47
  3. Distinctive:

    Create or manage Fast accounts from the terminal

    line 134
  4. Distinctive:

    Check token balances on Fast or EVM chains

    line 135
  5. Very specific:

    When running fast fund usdc crypto or fast send --from-chain <chain>, the CLI uses the EVM address derived from the current account's key.

    line 177
  6. Distinctive:

    If sufficient: executes bridge deposit automatically.

    line 288
  7. Very specific:

    If insufficient: prints the EVM address and shortfall, exits with code 4 (FUNDING_REQUIRED).

    line 289
  8. Very specific:

    When depositing via a bridge UI or another wallet, use the EVM address from fast account list.

    line 356
  9. Distinctive:

    Use with EVM→Fast commands when the EVM account has no ETH — gas is deducted in USDC instead.

    line 385
  10. Very specific:

    All commands with --json return a consistent envelope:

    line 421

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

fast CLI

Agent Bootstrap

Run these steps only once per session, on the very first fast command, or if fast is not found. Skip for subsequent commands.

# 1. Require Node.js ≥ 18
node --version   # must be v18 or higher; stop and inform the user if not

# 2. Check the latest version and what's installed
LATEST=$(npm show @fastxyz/cli version)
INSTALLED=$(fast --version 2>/dev/null || echo "none")

# 3. Install or upgrade if needed
if [ "$INSTALLED" != "$LATEST" ]; then
  npm install -g @fastxyz/cli@latest
fi

# 4. Confirm
fast --version   # should print $LATEST

If fast is still not found after install, diagnose PATH:

npm bin -g        # ensure this directory is on PATH
npx @fastxyz/cli@latest --version   # fallback

IMPORTANT — Agent rule: Do NOT run version checks, npm install, or any shell bootstrap before every fast command. Only run the bootstrap above on the very first command in a session, or if fast is genuinely not found. For all other tasks, call the appropriate fast subcommand directly.


Complete Command Reference

Every supported subcommand is listed below. Use exactly these command names — do not invent alternatives.

info subcommands

CommandDescriptionKey flags
fast info statusShow network health status for the current network--network <name>, --json
fast info balanceShow USDC balances on Fast and bridgeable EVM chains--json
fast info historyShow transaction history--limit <n> (number of records), --json
fast info tx <hash>Look up details for a specific transaction by hash--json
fast info bridge-chainsList all bridge-compatible EVM chains--json
fast info bridge-tokensList all bridge-compatible tokens--json

info status vs info balance: Use info status for network health. Use info balance for account balances. These are different commands.

info tx vs info history: Use info tx <hash> to look up one specific transaction by hash. Use info history to browse recent transactions (with optional --limit).

info bridge-chains vs info bridge-tokens: Use info bridge-chains to list which EVM chains support bridging. Use info bridge-tokens to list which tokens can be bridged.

account subcommands

CommandDescriptionKey flags / args
fast account listList all stored accounts--json
fast account createCreate a new account--name <alias> (required for non-interactive), --non-interactive
fast account set-default <name>Set named account as the default—
fast account export <name>Export the private key of a named account—
fast account delete <name>Delete (remove) a named account—
fast account importImport an existing key--name <alias>

account delete is the only delete command. There is no account remove. account export takes the account name as a positional argument, not --name. account set-default takes the account name as a positional argument.

fund subcommands

CommandDescriptionKey flags
fast fundInteractively choose Card, external USDC, Coinbase, or Swapper. All hosted routes credit fastUSD (mainnet only).--address, --amount
fast fund cardPrint the supported Card funding URL.--network mainnet, --address, --amount
fast fund usdcPrint the supported external-USDC funding URL; the Fast-side asset is fastUSD.--network mainnet, --address
fast fund crypto --supplier coinbase|swapperPrint the selected supported crypto-supplier URL; credits fastUSD.--network mainnet, --address, --amount
fast fund usdc crypto <amount>Bridge external USDC from an EVM chain; the configured route selects the Fast-side asset (e.g. fastUSD on mainnet, testUSDC on testnet).--chain <chain> (required), --token, --eip-7702 (gasless)
fast fund usdc fiatDeprecated alias for fast fund card.--network mainnet, --address
fast fund fastusdDeprecated alias for the interactive method selector.--to <fast1...>, --amount <decimal>

send command

fast send <address> <amount> [--token <TOKEN>] [--from-chain <chain>] [--to-chain <chain>] [--eip-7702]
Argument / FlagDescriptionAllowed values
<address>Recipient addressfast1... (Fast network) or 0x... (EVM)
<amount>Amount to sendnumeric string, e.g. "20"
--token <TOKEN>Defaults to network.defaultToken.symbol (fastUSD on mainnet, testUSDC on testnet) when omitted. Bridge routes (--from-chain / --to-chain) require the resolved token to be available on the target chain; otherwise the command errors with CommandUnsupportedForTokenError.USDC, fastUSD, testUSDC
--from-chain <chain>Bridge from this EVM chain into Faste.g. arbitrum-sepolia, base
--to-chain <chain>Bridge from Fast to this EVM chaine.g. arbitrum-sepolia
--eip-7702Gasless deposit (no ETH needed on EVM side)flag, no value

Always pass --token USDC explicitly when bridging or sending USDC — do not rely on the default.

network subcommands

CommandDescription
fast network listList configured networks
fast network set-default <name>Set the default network (testnet or mainnet)
fast network add <file> --name <name>Add a custom network from a JSON config file; --name is required
fast network remove <name>Remove a custom network by name

network add requires both arguments: the config file path (positional) AND --name <name> (named flag). Omitting --name will fail. network remove is the correct command to delete a network — do NOT use network delete or network list.

pay command

fast pay <url> [--method <METHOD>] [--body <data|@file>] [--dry-run]

Use Cases

Use when:

  • Create or manage Fast accounts from the terminal
  • Check token balances on Fast or EVM chains
  • Send USDC between Fast addresses or bridge to/from EVM
  • Fund a Fast account from crypto (bridge) or fiat (on-ramp)
  • Pay a payment-protected URL (x402) using a stored account
  • Configure networks or switch defaults

Out of scope:

  • Programmatic SDK usage → use @fastxyz/sdk or @fastxyz/allset-sdk
  • Protecting API routes with payments → use @fastxyz/x402-server
  • Operations requiring custom transaction logic not exposed by the CLI

Related Package References

Detailed API docs are in the monorepo. Read these files when you need package-specific details:

PathPackagePurpose
app/cli/README.md@fastxyz/cliCLI source — command structure and config
packages/fast-sdk/README.md@fastxyz/sdkFast network SDK — build/sign transactions, query accounts, transfer tokens
packages/allset-sdk/README.md@fastxyz/allset-sdkBridge SDK — EVM → Fast deposits, Fast → EVM withdrawals
packages/x402-client/README.md@fastxyz/x402-clientx402 client — pay 402-protected APIs programmatically
packages/x402-server/README.md@fastxyz/x402-serverx402 server — protect API routes with payment middleware
packages/x402-facilitator/README.md@fastxyz/x402-facilitatorx402 facilitator — verify and settle payments
packages/x402-types/README.md@fastxyz/x402-typesShared x402 types — PaymentRequirement, PaymentPayload, network configs
packages/fast-schema/README.md@fastxyz/schemaEffect schema — BCS/JSON-RPC/REST wire format codecs

Key Concepts

Accounts

Accounts are stored in ~/.fast/. Each account has two addresses derived from the same Ed25519 key:

  • Fast address (fast1...) — used on the Fast network
  • EVM address (0x...) — the same key expressed as an Ethereum address, used for bridge deposits

When running fast fund usdc crypto or fast send --from-chain <chain>, the CLI uses the EVM address derived from the current account's key. Use fast account list to see both addresses.

Networks

Two networks are always available: testnet (default) and mainnet. Switch with --network mainnet per command, or set a persistent default:

fast network set-default mainnet

Custom networks can be added from a JSON config file via fast network add <file> --name <name>. Both arguments are required. Remove a custom network with fast network remove <name>.

Password

The keystore password can be provided as:

  1. --password <value> flag
  2. FAST_PASSWORD environment variable (preferred — avoids shell history exposure)
  3. Interactive prompt (interactive mode only)

Accounts created in --non-interactive mode with no password are stored unencrypted (file permission 0600 only, like an SSH key without a passphrase).


Common Workflows

1. Create an account

fast account create
# → prompts for password, prints Fast + EVM address

# Non-interactive (no password, unencrypted key):
fast account create --non-interactive --name agent-wallet

# Then set it as default:
fast account set-default agent-wallet

2. Check balances

fast info balance
fast info balance --json   # machine-readable

fast info balance shows balances on Fast and on each bridgeable EVM chain.

Check network health status

fast info status        # ← use THIS for network health, NOT info balance
fast info status --json

Look up a transaction

fast info tx 0xabc123def456        # ← use THIS for a specific tx hash
fast info history                  # ← use THIS for recent tx list
fast info history --limit 10       # last 10 records

List bridge-compatible chains and tokens

fast info bridge-chains    # ← lists which EVM chains support bridging
fast info bridge-tokens    # ← lists which tokens can be bridged

Add and remove custom networks

# Add — BOTH the file path AND --name are required:
fast network add /etc/fast/custom-net.json --name custom-testnet

# Remove — use 'network remove', NOT 'network delete':
fast network remove custom-testnet

Account management

fast account export my-wallet      # export private key of 'my-wallet'
fast account delete old-wallet     # delete account named 'old-wallet' (NOT 'account remove')
fast account set-default my-wallet # set 'my-wallet' as default

3. Send tokens on Fast (Fast → Fast)

# Default token: fastUSD on mainnet, testUSDC on testnet.
fast send fast1ab2...y3w 10.5

# To send USDC explicitly, pass --token:
fast send fast1ab2...y3w 10.5 --token USDC

4. Fund from EVM → Fast (fast fund usdc crypto)

fast fund usdc crypto 50 --chain arbitrum-sepolia

What happens:

  1. Checks ERC-20 balance on arbitrum-sepolia for the account's EVM address.
  2. If sufficient: executes bridge deposit automatically.
  3. If insufficient: prints the EVM address and shortfall, exits with code 4 (FUNDING_REQUIRED). Send tokens to that address first, then re-run.

Find your EVM address with fast account list.

Gasless variant with EIP-7702 (no ETH needed)

fast fund usdc crypto 50 --chain base --eip-7702

Gas is paid in USDC instead of ETH. Approve + deposit are batched into a single UserOperation via the AllSet Portal and Pimlico.

5. Bridge USDC from Fast → EVM

fast send 0xYourEvmAddress 25 --token USDC --to-chain arbitrum-sepolia

6. Add fastUSD through the hosted funding app (mainnet only)

# Interactive selector over the four supported routes
fast fund --network mainnet

# Or choose a route explicitly
fast fund card --network mainnet
fast fund usdc --network mainnet
fast fund crypto --supplier coinbase --network mainnet
fast fund crypto --supplier swapper --network mainnet

The supported routes are Card (/card), USDC from another network (/usdc), and Crypto via Coinbase or Swapper (/crypto?supplier=...). All credit the Fast-native asset fastUSD. USDC is an external input asset, not a separate native USDC balance on Fast. The CLI prints the link; it does not submit a payment itself. Hosted links are mainnet-only. In JSON or non-interactive mode, select a method explicitly instead of using the interactive command.

fast fund crypto --supplier coinbase --network mainnet --address fast1...

The old fast fund usdc fiat command is a deprecated alias for Card; fast fund fastusd is a deprecated alias for the method selector.

8. Pay an x402-protected URL

fast pay https://api.example.com/resource

# POST with a body:
fast pay https://api.example.com/resource --method POST --body @request.json

# Inspect without paying:
fast pay https://api.example.com/resource --dry-run

Common Pitfalls

Fast address vs. EVM address — same key, different format

The fast1... and 0x... addresses shown by fast account list are both derived from the same private key. You do not need a separate EVM wallet. When depositing via a bridge UI or another wallet, use the EVM address from fast account list.

fast fund usdc crypto vs. fast send --from-chain

CommandUse when
fast fund usdc crypto <amount> --chain <chain>Top up your own Fast account from your own EVM balance
fast send <fast-address> <amount> --from-chain <chain>Bridge from EVM to an arbitrary Fast recipient

Token names: USDC vs. testUSDC

On testnet, USDC and testUSDC both resolve to the same token. On mainnet, only USDC is valid.

Bridge direction flags

You wantCommand
EVM → Fast (standard)fast send <fast1-address> <amount> --token USDC --from-chain <chain>
EVM → Fast (gasless, no ETH)fast send <fast1-address> <amount> --token USDC --from-chain <chain> --eip-7702
Fast → EVMfast send <0x-address> <amount> --token USDC --to-chain <chain>
EVM → EVMNot supported (NOT_IMPLEMENTED)

The address format determines direction: 0x recipient → Fast→EVM; fast1 recipient with --from-chain → EVM→Fast.

--eip-7702 flag: when to use it

Use with EVM→Fast commands when the EVM account has no ETH — gas is deducted in USDC instead. Ignored for Fast→Fast or Fast→EVM routes.


Global Flags

FlagDescription
--jsonMachine-readable JSON output (also suppresses prompts)
--non-interactiveNo prompts; fails with exit code 2 when input is missing
--network <name>Override network (testnet, mainnet, or a custom name)
--account <name>Use a specific stored account
--password <value>Keystore password (prefer FAST_PASSWORD env var)
--debugVerbose logging to stderr

Exit Codes

CodeMeaning
0Success
1General error
2Invalid usage / bad arguments
3Account not found
4Insufficient balance / funding required
5Network error
6Transaction failed
7User cancelled
8Password required or incorrect

JSON Output Shape

All commands with --json return a consistent envelope:

{ "ok": true, "data": { ... } }
{ "ok": false, "error": { "code": "ERROR_CODE", "message": "..." } }

Agent workflow: run with --json → check ok → if false, branch on error.code.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.