packages/plugins/sandbox-providers/cloudflare/bridge-template/README.md
This Worker is the operator-facing bridge used by @paperclipai/plugin-cloudflare-sandbox.
It exposes a small authenticated JSON API under /api/paperclip-sandbox/v1 and translates Paperclip lease and command requests into Cloudflare Sandbox SDK calls.
wrangler configured for that accountwrangler deploynpx wrangler secret put BRIDGE_AUTH_TOKEN
cd bridge-template
pnpm install --ignore-workspace --no-lockfile
pnpm test
pnpm typecheck
pnpm dev
pnpm deploy
After deploy, configure Paperclip with:
bridgeBaseUrl: your Worker URLbridgeAuthToken: the same bearer token value stored in BRIDGE_AUTH_TOKENreuseLease: true should only be used together with keepAlive: true.workers.dev is fine for bridge HTTP traffic, but preview/wildcard host flows are intentionally out of scope here@cloudflare/sandbox version