--- name: deploy-automation-todos description: Items to incorporate into the deploy script for automated setup — Claude API key, AIUI nginx config, swap type: project --- ## Deploy Script Automation TODOs These items should be added to `scripts/deploy-to-target.sh` so new server deploys are self-contained: 1. **Claude API key setup**: After deploying the proxy, auto-configure `/opt/archipelago/claude-proxy/.env.local` with the `ANTHROPIC_API_KEY`. On non-primary servers, use the standard API key (not OAuth). The key is: `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` 2. **AIUI nginx location block**: Ensure nginx config includes a proper `/aiui/` location block so static JS/CSS files are served with correct MIME types. Without this, AIUI fails to load modules. 3. **Swap space**: Deploy script should check for swap and create 4GB if missing (`fallocate -l 4G /swapfile && mkswap && swapon + fstab entry`). 4. **Primary server (192.168.1.228)**: 4GB swap configured on 2026-03-11. 5. **Second server (archipelago-2)**: 4GB swap configured on 2026-03-11.