API Server (apps/api/)
x402 Payment Variables
The x402 middleware uses these variables for micropayment verification:
When
REDIS_URL is set, x402 nonces are tracked in Redis with the key
pattern arb:nonce:{nonce} and a 24-hour TTL to prevent replay attacks.
Web App (apps/web/)
Both variables use the
NEXT_PUBLIC_ prefix because they are accessed in
client-side React code.
The web app inlines types from
@arb-agent/sdk to avoid importing
Node.js-only modules into the browser bundle. The API URL is the only
required connection between the web app and the backend.Telegram Bot (apps/telegram/)
Twitter Bot
CLI
MCP Server (apps/mcp-server/)
Redis Key Prefixes
WhenREDIS_URL is configured, the API server uses these key patterns: