Reference

Environment Variables

Web Appapps/web/.env.local

VariableRequiredDescription
ANTHROPIC_API_KEYYesAnthropic Claude API key for the agent
STELLAR_AGENT_SECRETYesAgent wallet secret key. Signs tool purchases and refunds.
FX_SERVER_WALLETYesStellar address that receives marketplace payments
STELLAR_NETWORK_PASSPHRASEYesPublic Stellar network passphrase used for native XLM signing and verification
HORIZON_URLYesStellar Horizon API endpoint
PORTFOLIO_WORKER_URLYesWorker URL (default: http://127.0.0.1:8787)
PORTFOLIO_INTERNAL_SECRETYesShared secret between web app and worker
FX_HMAC_SECRETNoEnables HMAC signing on FX quotes for SP1 attestation. Generate with openssl rand -hex 32

Portfolio Workerapps/portfolio-worker/.dev.vars

VariableRequiredDescription
MPP_SECRET_KEYYesPayment validation secret
STELLAR_RECIPIENT_ADDRESSYesPayment destination address
INTERNAL_BRIDGE_SECRETYesMust match PORTFOLIO_INTERNAL_SECRET in web app
COINGECKO_API_KEYRecommendedLive crypto prices
TWELVE_DATA_API_KEYRecommendedEquity and ETF prices
FRED_API_KEYOptionalMacro indicators from St. Louis Fed