This build of TradeCode talks to a Cloudflare Worker that holds the Anthropic API key server-side. Before deploying, edit the HTML file and set the Worker URL near the top:
var TRADECODE_WORKER_URL = "https://tradecode-anthropic-proxy.<your-subdomain>.workers.dev";
Quick deployment steps (~10 minutes total):
tradecode-worker.jsANTHROPIC_API_KEY = your sk-ant-... keyUntil TRADECODE_WORKER_URL is set, the Classify feature will be unavailable. The rest of the app (audit log, product master, rulings DB, regulation tracker) works without it.