A scriptable, human-readable command-line interface to LI.FI cross-chain swap infrastructure
The LI.FI CLI wraps the LI.FI REST API to give developers, integrators, and internal teams a scriptable, human-readable interface to cross-chain swap infrastructure.
This CLI provides read-only tools — it does not sign or broadcast transactions. Quote responses include unsigned transactionRequest objects that must be signed and submitted externally using your own wallet.
Without an API key, the CLI uses the public rate limit (200 requests / 2 hours). With an API key, you get higher rate limits (200 requests / minute).Set your API key via environment variable:
export LIFI_API_KEY=your_key_here
Use the auth commands to verify your key:
lifi auth show # Display masked keylifi auth test # Validate key against the API