AI Agent (packages/ai-agent/.env)
Required
Claude API key for AI analysis. Get one at console.anthropic.com.
GitHub personal access token for REST API access. Provides higher rate limits than unauthenticated requests.
XRPL Settlement
XRPL testnet wallet seed. The founder wallet issues MPT equity tokens and creates escrows. Generate with
npm run setup in packages/xrpl-contracts.XRPL testnet wallet seed for the AI agent. Receives platform fees and releases escrows.
XRPL network to connect to. Options:
testnet, devnet, mainnet.RLUSD issuer address on XRPL. Has a default value for testnet.
Optional
Port for the Express server.
The XRPL micropayment paywall on
GET /report/:id uses the FOUNDER_SEED wallet address as the payment destination. No separate config needed — if FOUNDER_SEED is set, the paywall is active.Override the Claude model used for analysis. Defaults to Claude Sonnet.
Bearer token for authenticating escrow release requests (
POST /xrpl/escrow/:id/release).When set, the XRPL paywall requires the
X-Payment-Sender header in addition to X-Payment-TxHash for sender verification.MetaLex SAFE (Base Sepolia)
EVM private key for deploying SAFE agreements on Base Sepolia. If not set, settlement skips the SAFE deployment step.
Base RPC endpoint. Override for custom RPC providers.
Persistence
Redis connection URL for persistent storage. If not set, falls back to in-memory storage (state lost on restart).
XRPL Contracts (packages/xrpl-contracts/.env)
These are only needed to run the standalone XRPL demo:
Founder wallet seed.
First investor wallet seed.
Second investor wallet seed.
Generating XRPL Wallets
.env.