Agentwallet
by github.com/hifriendbot · v1.14.15 · updated Nov 12, 2026
Wallet infrastructure for Ai agents. EVM + Solana. x402 payments. No KYC.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
AGENTWALLET_USERHosted mode: your hifriendbot.com username
AGENTWALLET_PASSsecretHosted mode: an AgentWallet application password from hifriendbot.com/wallet/
AGENTWALLET_API_URLHosted mode: the API base (default https://hifriendbot.com/wp-json/agentwallet/v1); must be https, or http on localhost
AGENTWALLET_WALLET_IDHosted mode: wallet id that pays hosted billing 402s automatically (POST /wallets, /sign, /send only); unset means never
AGENTWALLET_DASHBOARD_URLHosted mode: dashboard link shown in tool text
AGENTWALLET_PRIVATE_KEYsecretLocal (self-custody) mode: 0x-prefixed EVM private key; signing then happens in this process
AGENTWALLET_KEYFILELocal mode: path of a file holding the EVM private key (instead of AGENTWALLET_PRIVATE_KEY; not both)
AGENTWALLET_SOLANA_KEYsecretLocal mode for Solana: secret key as a JSON array, base58 or base64
AGENTWALLET_SOLANA_KEYFILELocal mode for Solana: path of a key file (instead of AGENTWALLET_SOLANA_KEY; not both)
AGENTWALLET_RPC_URLLocal mode: one EVM RPC for every chain
AGENTWALLET_RPC_<chainId>Local mode: EVM RPC per chain, e.g. AGENTWALLET_RPC_8453; eth_chainId is checked
AGENTWALLET_SOLANA_RPCLocal mode: one Solana RPC for every cluster
AGENTWALLET_SOLANA_RPC_<chainId>Local mode: Solana RPC per cluster (900 mainnet, 901 devnet, 902 testnet); the genesis hash is checked
AGENTWALLET_CHAIN_IDLocal mode: default EVM chain when a call names none (default 8453)
AGENTWALLET_MAX_TX_NATIVELocal mode: per-transaction ceiling in native units
AGENTWALLET_MAX_TX_TOKENLocal mode: per-transaction ceiling for ERC-20 and SPL transfers and approvals, in token units
AGENTWALLET_MAX_TX_SOLLocal mode: per-transaction ceiling in SOL (also charged for a recipient token account the send creates)
AGENTWALLET_ALLOW_UNKNOWN_TOKEN_CALLSLocal mode: 1 lets calldata the token cap cannot price reach a token contract (refused by default)
AGENTWALLET_ALLOW_UNLIMITED_APPROVAL1 lets an unlimited ERC-20 allowance or an NFT operator grant through while no spend policy is set (refused by default, and always refused under a policy)
AGENTWALLET_TOKEN_DECIMALSPin decimals for tokens outside the registry, e.g. 8453:0x<token>=6,<mint>=9; used for amounts and caps instead of the RPC answer
AGENTWALLET_MAX_AUTOPAYPer-payment x402 ceiling in stablecoin units (default 1); the agent cannot raise it
AGENTWALLET_MAX_AUTOPAY_PER_HOURHosted mode: how many internal 402 auto-payments an hour (default 20; 0 disables)
AGENTWALLET_AUTOPAY_ASSETSAssets pay_x402 may pay in beyond registry stablecoins, e.g. 8453:native,0x<token>
AGENTWALLET_X402_MAX_TIMEOUTLongest x402 authorization window in seconds (default 3600; 60 to 31536000)
AGENTWALLET_APPROVALSHosted mode: 0 disables emailing the wallet owner for an over-cap payment
AGENTWALLET_PERMIT2_AUTO_APPROVEHosted mode: 1 approves exactly an upto payment maximum to Permit2 for registry stablecoins
AGENTWALLET_TOKEN_RISK0 skips the GoPlus lookup approve_token performs
AGENTWALLET_LEGACY_PAYWALL_ORIGINSComma-separated https origins whose legacy-shaped 402 may be paid by an on-chain transfer proved by hash (the API host always may)
AGENTWALLET_MAX_FEE_NATIVELocal mode: the most a transaction may burn in fees (gas x max fee per gas), in native units; default 0.01
AGENTWALLET_POLICYPath of a spend policy JSON file: rolling dollar and native budgets, host, recipient, chain, asset and tool lists, and a human-approval threshold, enforced from a hash-chained ledger
AGENTWALLET_LEDGERPath of the append-only ledger the policy is enforced from (default: agentwallet-ledger.jsonl beside the policy file)
AGENTWALLET_WEBHOOK_URLhttps URL (or http on localhost) that receives every ledger line as it is written
AGENTWALLET_WEBHOOK_SECRETsecretHMAC-SHA256 key for the X-AgentWallet-Signature header on webhook posts
AGENTWALLET_KEYFILE_PASSPHRASEsecretPassphrase that opens an encrypted keyfile (made with `agentwallet-mcp encrypt-keyfile`)
AGENTWALLET_KEYFILE_PASSPHRASE_FILEPath of a file holding the keyfile passphrase (instead of AGENTWALLET_KEYFILE_PASSPHRASE; not both)
More from github.com/hifriendbot
More MCP servers
Apple Reminders
github.com/high5-ventures
Fast, native macOS Apple Reminders via EventKit. 10-200x faster than AppleScript alternatives.
Gas Fee Predictor
github.com/higherbeing
Live Ethereum and L2 gas fees: current gas, cheapest L2, forecast, ETH price, cost estimates.
Computer Use
github.com/hightemp
Local MCP server for desktop automation: mouse, keyboard, screen, windows, and processes.
Healthcovered Mcp
github.com/hillsidecoastal-glitch
ACA health insurance eligibility, subsidy checker, and enrollment dates for 2026.
Archform
github.com/himanshu-mamgain
Render and validate diagrams as code: Mermaid, PlantUML, C4, Graphviz, D2 and more.
AImpact
github.com/himanshufound
Real nonprofit tasks your agent can claim and finish. A person at the nonprofit reviews the work.