# WalletPress Backend Configuration # Copy to .env and customize before deploying to production # Server WP_HOST=0.0.0.0 WP_PORT=8010 # Data directory (persistent storage) WP_DATA_DIR=/data # Security (REQUIRED for production) WP_ADMIN_KEY=change-me-to-a-random-string-at-least-32-chars WP_VAULT_PASSWORD=change-me-to-a-strong-password-min-20-chars # CORS (comma-separated origins, e.g. http://localhost:8010,https://example.com) # WARNING: Setting * allows ANY website to call your API WP_CORS_ORIGINS=http://localhost:8010 # Rate limiting WP_RATE_LIMIT=60 WP_MAX_BATCH=100 # RPC endpoints (optional overrides — defaults are public nodes) # WP_RPC_ETH=https://eth.llamarpc.com # WP_RPC_SOL=https://api.mainnet-beta.solana.com # WP_RPC_TRX=https://api.trongrid.io # WP_RPC_BTC=https://blockchain.info # Set WP_RPC_{CHAIN_UPPER} to override any default RPC URL # Proof of Generation (PoF) — On-Chain Attestations # WP_POF_AUTO_COMMIT=1 # Enable auto-commit (default: on) # WP_POF_COMMIT_INTERVAL=3600 # Seconds between commits (default: 1 hour) # WP_POF_ARWEAVE_KEY_PATH=/path/to/arweave-key.json # Arweave wallet for permanent storage # WP_POF_ETH_RPC=https://eth.llamarpc.com # Ethereum RPC for on-chain anchoring # WP_POF_ETH_PRIVATE_KEY=0x... # ETH private key (has ETH for gas) # ── AI Wallet Agent ──────────────────────────────────────── # 20 providers supported. Set provider name + its API key. # Check startup logs for full provider table. # # Quick start (pick ONE): # WP_AI_PROVIDER=openrouter # WP_AI_API_KEY=sk-or-v1-... # # Or use a provider-specific key (injected automatically): # WP_AI_PROVIDER=openai # WP_AI_OPENAI_KEY # WP_AI_PROVIDER=anthropic # WP_AI_ANTHROPIC_KEY # WP_AI_PROVIDER=google # WP_AI_GEMINI_KEY # WP_AI_PROVIDER=groq # WP_AI_GROQ_KEY # WP_AI_PROVIDER=deepseek # WP_AI_DEEPSEEK_KEY # WP_AI_PROVIDER=perplexity # WP_AI_PERPLEXITY_KEY # WP_AI_PROVIDER=ollama # No key needed (local) # WP_AI_PROVIDER=github # WP_AI_GITHUB_KEY (free with GitHub Copilot) # WP_AI_PROVIDER=custom # WP_AI_CUSTOM_BASE_URL + WP_AI_CUSTOM_KEY # # Available: openai, anthropic, google, xai, mistral, openrouter, groq, # cerebras, deepseek, together, fireworks, deepinfra, perplexity, # cohere, replicate, hyperbolic, github, cloudflare, ollama, custom WP_AI_PROVIDER=openrouter WP_AI_API_KEY= WP_AI_MODEL= # Optional: override default model for provider # Provider-specific API keys (alternative to WP_AI_API_KEY): # WP_AI_OPENAI_KEY=sk-... # WP_AI_ANTHROPIC_KEY=sk-ant-... # WP_AI_GEMINI_KEY=AIza... # WP_AI_XAI_KEY=... # WP_AI_MISTRAL_KEY=... # WP_AI_OPENROUTER_KEY=sk-or-v1-... # WP_AI_GROQ_KEY=gsk_... # WP_AI_CEREBRAS_KEY=... # WP_AI_DEEPSEEK_KEY=sk-... # WP_AI_TOGETHER_KEY=... # WP_AI_FIREWORKS_KEY=... # WP_AI_DEEPINFRA_KEY=... # WP_AI_PERPLEXITY_KEY=pplx-... # WP_AI_COHERE_KEY=... # WP_AI_REPLICATE_KEY=r8_... # WP_AI_HYPERBOLIC_KEY=... # WP_AI_GITHUB_KEY=ghp_... (GitHub PAT, free with Copilot) # WP_AI_CLOUDFLARE_KEY=... # WP_AI_CLOUDFLARE_URL=... (https://api.cloudflare.com/client/v4/accounts/{id}/ai/v1) # WP_AI_OLLAMA_URL=http://localhost:11434/v1 (auto-detected if running) # WP_AI_OLLAMA_MODEL=llama3.2 # WP_AI_CUSTOM_BASE_URL=https://your-endpoint.com/v1 # WP_AI_CUSTOM_MODEL=your-model # Standalone MCP Server (walletpress-mcp package) # WP_API_URL=http://localhost:8010 # WP_API_KEY=wp_... # WALLETPRESS_BACKEND=/path/to/walletpress/backend # Referral Revenue (baked into swap/defi plugins) # WP_REF_JUPITER=rugmunch # WP_REF_HYPERLIQUID=rugmunch # WP_REF_GMGN=rugmunch # WP_REF_ODINBOT=x5pyi0 # WP_REF_BANANA=rugmunch # WP_REF_AXIOM=@crmuncher # WP_REF_PADRE=crm # Revenue Model — defaults to freemium (we earn referral kickback) # Set to "self" for paid/enterprise users who keep their own referral revenue # WP_REF_REVENUE_MODE=freemium # Jupiter fee wallet (Solana address that receives 50bps referral fees) # Set this to your fee collection wallet for Jupiter swap revenue # WP_REF_JUPITER_WALLET= # Prediction Market Revenue # Polymarket builder code (bytes32) — register at polymarket.com/settings # Revenue: up to 100bps taker / 50bps maker per trade # WP_REF_POLYMARKET_BUILDER= # Myriad builder code — contact Myriad team for whitelisting # Revenue: up to 33% referral + ~1% distributor fee # WP_REF_MYRIAD_BUILDER= # Azuro affiliate wallet — any EVM wallet address # Revenue: GGR (Gross Gaming Revenue) share on every bet # WP_REF_AZURO_AFFILIATE= # 0x Swap API — affiliate fees on every EVM swap (150+ sources) # WP_0X_API_KEY=your-0x-api-key # WP_0X_FEE_RECIPIENT=your-wallet-for-fees # WP_0X_FEE_BPS=50 # 0-1000 bps (0-10%). Default 50 = 0.5%