mcpField
T
trust-wallet-cli

trust-wallet-cli

github.com/trustwalletOther110272 installsUpdated 20w ago
Repository

About trust-wallet-cli

trust-wallet-cli is a command-line tool for multichain crypto wallet operations, aimed at users managing wallets, assets, and transactions. `twak serve` also exposes wallet actions to AI agents through MCP or a REST server.

Key features

  1. 01Create wallets, sign, and register
  2. 02Check balances, holdings, and history
  3. 03Send tokens and make cross-chain swaps
  4. 04Fiat on- and off-ramping and price alerts
  5. 05DCA, limit orders, and risk checks

Use cases

  1. 01Review wallet balances and portfolios
  2. 02Transfer or swap tokens
  3. 03Set up DCA or limit-order automations
  4. 04Expose wallet actions to AI agents

MCP support

`twak serve` starts an MCP server over stdio that exposes wallet actions to AI agents; `--rest` starts a REST HTTP server instead.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/trustwallet/tw-agent-skills --skill trust-wallet-cli

After installing, type/trust-wallet-cliin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
alerts.md
automations.md
balance.md
compete.md
erc20.md
erc8004.md
erc8183.md
history.md
market.md
onramp.md
send.md
setup.md
swap.md
token-risk.md
wallet.md
x402.md

Details

From the project README

Trust Wallet CLI (twak)

Command-line interface for multichain crypto wallet operations. Install with npm install -g @trustwallet/cli.

Quick Start

Read references/setup.md for installation and authentication.

Reference Guide

Read the reference that matches the user's task:

TaskReferenceWhen to read
Install, auth, env varsreferences/setup.mdFirst time setup, "install twak", "configure API keys"
List supported chains, chain keysreferences/setup.md"what chains are supported", "list chains", "show chain keys", "what is the chain key for X"
Create wallet, keychain, sign, registerreferences/wallet.md"create wallet", "keychain", "sign message", "wallet status", "register wallet with backend"
Balance, holdings, portfolioreferences/balance.md"check balance", "portfolio", "token holdings"
Send tokens, ENS transfersreferences/send.md"send ETH", "transfer to", "vitalik.eth"
Swap tokens, cross-chainreferences/swap.md"swap ETH for USDC", "bridge", "cross-chain swap"
Buy/sell crypto with fiatreferences/onramp.md"buy ETH with USD", "onramp", "offramp", "fiat", "sell crypto for cash"
Prices, trending, DAppsreferences/market.md"price of", "trending tokens", "dapps"
Transaction historyreferences/history.md"tx history", "transaction details"
Price alertsreferences/alerts.md"alert when ETH", "price alert", "notify me"
DCA & limit ordersreferences/automations.md"DCA", "dollar cost average", "limit order", "recurring swap", "buy when price"
ERC-20 approve/revokereferences/erc20.md"approve spender", "check allowance", "revoke"
Token risk checksreferences/token-risk.md"is this token safe", "honeypot check", "audit status"
x402 micropaymentsreferences/x402.md"x402", "micropayment", "payment-gated API", "preview payment", "quote endpoint cost", "how much does this API charge"
BNB Hack competition register/statusreferences/compete.md"register for the competition", "BNB hack", "AI trading agent edition", "compete", "registration status"
Register/manage ERC-8004 agent identitiesreferences/erc8004.md"register agent identity", "erc8004", "agent NFT", "agentURI", "agent metadata", "identity registry", "mint agent"
Agent job escrows (ERC-8183 Agentic Commerce)references/erc8183.md"erc8183", "agentic commerce", "job escrow", "create job", "fund job", "submit deliverable", "settle job", "dispute policy", "policy-info", "agent payment escrow", "evaluator router"
Run MCP / REST server for AI agentsMCP server section below"MCP server", "twak serve", "connect an agent", "REST API"

Read references/setup.md alongside any other reference if the CLI isn't installed yet.

MCP server

twak serve starts an MCP server on stdio exposing wallet actions to AI agents. Flags:

  • --rest — start a REST HTTP server instead of the MCP stdio server
  • --port <n> — REST server port (default 3000)
  • --host <host> — REST bind host (default 127.0.0.1; use 0.0.0.0 to expose externally)
  • --password <password> — wallet password (falls back to TWAK_WALLET_PASSWORD env var, then OS keychain)
  • --auto-lock <minutes> — auto-lock the wallet after N minutes of inactivity
  • --wc-project-id <id> — WalletConnect project ID (or set WALLETCONNECT_PROJECT_ID)
  • --watch — background watcher that fires DCA/limit automations; requires the local agent wallet (see references/automations.md)
  • --watch-interval <duration> — automation poll interval when --watch is set, e.g. 30s, 5m, 1h (default 60s, min 5s)

Comments

Markdown supported