One-click deployment scripts for the ACP consensus API.
The public landing page (axiomprotocol.org) is maintained in a separate repository and is not part of this protocol repo. These scripts deploy only the consensus API / Worker.
| Platform | Command | Best For |
|---|---|---|
| Cloudflare Workers | ./cloudflare-worker.sh |
Edge deployment, low latency |
| Google Apps Script | Copy Code.gs |
Free tier, no CLI needed |
Requirements: Node.js 18+, wrangler CLI
cd scripts/deploy
chmod +x cloudflare-worker.sh
./cloudflare-worker.shWhat it does:
- Installs wrangler if missing
- Logs you into Cloudflare
- Creates KV namespace for metrics
- Prompts for OpenRouter API key
- Deploys worker globally
Result: https://acp-consensus.<your-subdomain>.workers.dev
Requirements: Google Account only (no CLI needed!)
- Go to script.google.com
- Create new project
- Delete default code
- Copy entire
google-apps-script/Code.gs - Paste and save
- Add script property:
OPENROUTER_API_KEY= your key - Deploy → Web app → Anyone
See google-apps-script/README.md for details.
npm install -g @google/clasp
clasp login
clasp create --type webapp --title "ACP Consensus"
cp google-apps-script/Code.gs Code.gs
clasp push
clasp deployAll platforms need an OpenRouter API key:
- Get key at openrouter.ai/keys
- Set as environment variable or secret depending on platform
| Platform | How to Set |
|---|---|
| Cloudflare | wrangler secret put OPENROUTER_API_KEY |
| Google Apps Script | Project Settings → Script Properties |
# In wrangler.toml add:
routes = [
{ pattern = "api.yourdomain.com/*", zone_name = "yourdomain.com" }
]- No custom domain support (uses
script.google.comURLs)
| Feature | Cloudflare | Google Apps Script |
|---|---|---|
| Free Tier | 100k req/day | 20k req/day |
| Custom Domain | ✅ | ❌ |
| Edge Locations | 300+ | Limited |
| Cold Start | ~0ms | ~500ms |
| Execution Limit | 50ms CPU | 6 min |
| Best For | API | Prototyping |
# Check deployment status
wrangler tail
# View logs
wrangler logs- Check Executions in Apps Script dashboard
- View → Logs for console output
scripts/deploy/
├── README.md # This file
├── cloudflare-worker.sh # Cloudflare one-click
└── google-apps-script/
├── Code.gs # Full GAS implementation
└── README.md # GAS-specific instructions