Installation
Installing and configuring FlexoCLI takes just a few steps. Follow this guide to set up your environment and start leveraging AI-powered DeFi analytics in minutes.
1
2
3
Generate a wallet keypair
Flexo CLI interacts with the Solana blockchain, so you need a valid wallet.
# Generate new keypair
solana-keygen new --outfile ~/.config/solana/flexo-wallet.json
# Set default wallet
solana config set --keypair ~/.config/solana/flexo-wallet.json
# Verify wallet setup
solana address
solana balance
Fund your wallet with SOL to interact with blockchain-based features seamlessly.
4
Set up environment variables
Flexo CLI requires certain environment variables to function properly. Configure these in a .env
file or export them in your terminal:
OPENAI_API_KEY=<your-openai-api-key>
SOL_WALLET_KEY=<your-wallet-private-key>
API_URL=https://api.flexo.sh
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
Never expose your API keys or private wallet keys in public repositories. Use .gitignore
to prevent the .env
file from being committed, and consider secure storage solutions like AWS Secrets Manager or environment variable encryption.
Last updated