profClaw can run on Cloudflare’s edge infrastructure. Workers host the Hono API, D1 provides SQLite-compatible database storage, R2 handles file storage, and KV stores session and configuration data.Documentation Index
Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Supported Services
| Service | profClaw Use Case |
|---|---|
| Workers | Host the Hono API server |
| D1 (SQLite) | Task, conversation, and memory storage |
| R2 (Object Storage) | File attachments, backup exports |
| KV | Session tokens, rate limit counters, feature flags |
| Tunnels | Expose local profClaw to webhooks (via cloudflared) |
Setup
1. Install Wrangler
2. Configure environment variables
Workers Scripts:Edit, D1:Edit, R2:Edit, KV:Edit.
3. Create resources
4. Configure wrangler.toml
Cloudflare Tunnels
Usecloudflared to expose your local profClaw instance for webhook development:
cloudflare-tunnel.ts module (src/integrations/cloudflare-tunnel.ts) provides a programmatic interface for managing tunnel status and health checks.
D1 Storage Adapter
profClaw’s storage layer abstracts over D1 and LibSQL. WhenCLOUDFLARE_D1_DATABASE_ID is set, the D1 adapter is used automatically. The schema is compatible between local SQLite (via libsql) and Cloudflare D1.
R2 File Storage
Files uploaded via the chat or backup routes are stored in R2 when theR2_BUCKET binding is configured. The bucket serves as the target for:
- Conversation attachments
- Backup exports (
.jsonarchives) - Skill packages