A private, cross-device clipboard and chat-thread manager for AI prompts, built on Cloudflare Workers.
Designed for situations where you can't access certain things on one device but can on another. Type a text on your phone, fetch it on your work laptop, paste it into the AI, and push the result back — all without installing any apps.
- Chat Threads — Organize prompts and AI results into threaded conversations
- Web UI — Matte black & white themed, mobile-friendly interface (Greyscale / Monochrome)
- CLI API — Terminal-friendly endpoints at
/cliforcurlworkflows - Zero Install — Works in any browser, no app needed
- Password Protected — Single secret password via environment variable
- Instant Sync — No page reloads, real-time UI updates
- Copy & Share — One-tap copy and native share sheet on mobile
- No Build Step — Pure vanilla JS, deploys directly from GitHub
├── index.js # Entire app (backend API + frontend UI)
├── wrangler.toml # Cloudflare Worker configuration
├── agents.md # AI coding assistant context file
└── README.md # This file
You can deploy this entire project from your phone using just GitHub and the Cloudflare Dashboard.
- Log in to Cloudflare Dashboard
- Go to Workers & Pages → KV
- Tap Create a namespace, name it
CLIP_KV - Copy the Namespace ID
- Create a new repo on GitHub (e.g.,
ai-prompt-bridge) - Create these files directly in GitHub:
wrangler.toml
name = "ai-prompt-bridge"
main = "index.js"
compatibility_date = "2026-09-01"
[[kv_namespaces]]
binding = "CLIP_KV"
id = "PASTE_YOUR_KV_ID_HERE"index.js — Paste the full source code from this repo.
- In Cloudflare Dashboard, go to Workers & Pages → Create
- Select Workers → Connect to Git
- Authorize GitHub and select your repository
- Leave Build Command blank
- Tap Deploy
- Go to your deployed Worker → Settings → Variables and Secrets
- Add a new variable:
- Type: Secret
- Name:
ADMIN_PASSWORD - Value: Your chosen password
- Tap Deploy
Open your Worker URL (e.g., https://ai-prompt-bridge.your-subdomain.workers.dev) in any browser.
- Login with your password
- Tap + New Chat Thread to start a conversation
- Type your AI prompt → Tap 📤 Send Prompt (blue bubble)
- After getting the AI answer, paste it → Tap 🤖 Add AI Result (green bubble)
- Use 📋 Copy or 📤 Share on any message
- Tap 🔄 to refresh across devices
All CLI endpoints return plain text, making them perfect for terminal piping.
Set your variables for convenience:
URL="https://ai-prompt-bridge.your-subdomain.workers.dev"
AUTH="X-Auth: YOUR_PASSWORD"curl -H "$AUTH" $URL/clicurl -H "$AUTH" "$URL/cli/latest?role=user"curl -H "$AUTH" "$URL/cli/latest?role=ai"curl -X POST -H "$AUTH" -d "Explain quantum computing" "$URL/cli"Returns: Success! Chat ID: 1726234567890
curl -X POST -H "$AUTH" -d "Quantum computing is..." "$URL/cli?chat=1726234567890&role=ai"curl -H "$AUTH" "$URL/cli/chat/1726234567890"cat ai-response.txt | curl -X POST -H "$AUTH" --data-binary @- "$URL/cli?role=ai"┌──────────────┐ ┌──────────────┐
│ 📱 Phone │ │ 💻 Work Mac │
│ │ │ │
│ 1. Open URL │ │ │
│ 2. Login │ │ │
│ 3. Type │──── Cloudflare KV ──────▶│ 4. curl │
│ prompt │ │ /cli/latest│
│ 4. Send │ │ 5. Copy into │
│ │ │ Grok/Qwen │
│ │ │ 6. curl POST │
│ 7. See AI ◀──┼──── Cloudflare KV ───────│ AI result │
│ result │ │ │
└──────────────┘ └──────────────┘
| Variable | Type | Description |
|---|---|---|
ADMIN_PASSWORD |
Secret | Password to access the web UI and CLI |
- The password is stored as a Cloudflare Secret (encrypted at rest)
- All API requests require the
X-Authheader - The KV database stores all chats in a single JSON key — suitable for personal/light use
- For production use, consider adding rate limiting
MIT — Use it however you want.