A Claude-inspired multi-provider chat app built with React + Vite. GitHub Pages hosts the static frontend; a Cloudflare Worker securely proxies requests to Anthropic and OpenAI; Supabase provides authentication and per-user chat history.
- Chromebook with Chrome
- GitHub account
- Cloudflare account
- Supabase account
- Anthropic API key and/or OpenAI API key
Provider API usage is billed/limited by the provider. This project does not bypass subscriptions, quotas, or safety controls.
- Open https://supabase.com and create a project.
- Open Project Settings → API (or API Keys).
- Copy the Project URL and the publishable key (or legacy
anonkey). These are public frontend values; never use theservice_rolekey in the browser. - Open SQL Editor → New query.
- Paste and run the complete contents of
supabase/schema.sql. - Open Authentication → URL Configuration.
- Set the Site URL to your eventual GitHub Pages URL, for example
https://YOUR-USERNAME.github.io/YOUR-REPO/. - Add that same URL to Redirect URLs if using email confirmation.
- Open https://dash.cloudflare.com and sign in.
- Go to Workers & Pages → Create → Create Worker.
- Give it a name such as
claude-unlimited-apiand deploy the starter Worker. - Open the Worker, choose Edit code, replace the editor contents with all of
worker/index.js, and deploy. - Open Settings → Variables and Secrets. Add these variables:
SUPABASE_URL= your Supabase Project URLSUPABASE_ANON_KEY= your Supabase publishable/anon keyALLOWED_ORIGIN= your exact GitHub Pages origin, without a trailing slash, e.g.https://YOUR-USERNAME.github.io
- Add provider keys as Secrets, not plain text variables:
ANTHROPIC_API_KEY= your Anthropic API keyOPENAI_API_KEY= your OpenAI API key Add only the provider keys you intend to use.
- Deploy the Worker after saving settings. Copy its URL, e.g.
https://claude-unlimited-api.YOUR-SUBDOMAIN.workers.dev. The frontend appends/chat.
The Worker checks the Supabase access token against Supabase Auth before forwarding a request. CORS is restricted to the exact GitHub Pages origin. Do not put provider keys in GitHub repository files, GitHub Pages variables, or frontend code.
For stronger production protection, configure Cloudflare rate limiting / WAF rules for the Worker route and set provider spending limits. The sample Worker enforces authentication, request-size and message-count limits, but does not include a persistent per-user quota system.
- Download and extract the project ZIP on your Chromebook.
- Open https://github.com/new and create a repository. A public repository is fine; no secrets are stored in this source.
- On the new repository page choose Add file → Upload files.
- Upload the extracted project contents (the files inside the
claude-unlimitedfolder, not the outer folder itself) and commit to themainbranch. - To edit later, open
https://vscode.dev/github/YOUR-USERNAME/YOUR-REPOin Chrome. This opens the repository in VS Code for the Web.
- In the GitHub repository, open Settings → Secrets and variables → Actions → Variables.
- Add these three repository variables:
VITE_SUPABASE_URL= Supabase Project URLVITE_SUPABASE_ANON_KEY= Supabase publishable/anon keyVITE_API_URL= full Cloudflare Worker URL, without/chat, e.g.https://claude-unlimited-api.YOUR-SUBDOMAIN.workers.dev
- These are build-time public configuration values. Do not add Anthropic/OpenAI provider secrets here.
- In GitHub repository Settings → Pages, set Build and deployment → Source to GitHub Actions.
- Open the Actions tab. The workflow named Build and deploy to GitHub Pages should run after your commit.
- Wait for the green check. Your app URL is usually
https://YOUR-USERNAME.github.io/YOUR-REPO/. - If the build fails, open the failed workflow and read the first red step. Confirm all three
VITE_...variables exist. - Add the final site origin (only
https://YOUR-USERNAME.github.io) to CloudflareALLOWED_ORIGINif it differs from the value you used. Redeploy the Worker.
- Open the GitHub Pages URL.
- Create an account using your email and a password of at least 8 characters.
- Confirm your email if Supabase email confirmation is enabled.
- Sign in, select Anthropic or OpenAI, choose a model, and send a test message.
- Create another chat and check that it appears in Recents.
- Test Code Assistant mode and attach a small text/code file.
- No local Node.js or terminal is required for the hosted deployment.
- GitHub Actions installs dependencies and builds the app in GitHub's cloud.
- Use VS Code for the Web to edit source files in the repository.
- Commit your changes to
main; GitHub Actions automatically rebuilds and deploys.
The initial version reads text-based files up to 250 KB each, with up to five files per message. It supports common source-code, Markdown, CSV, JSON, YAML, SQL and log files. It does not yet extract text from PDFs or Word documents or upload images.
- Supabase publishable/anon keys are intended for browser use when Row Level Security is correctly configured.
- Never expose Supabase
service_role, Anthropic API keys, or OpenAI API keys in frontend code. - The Worker verifies the signed-in user's access token with Supabase Auth before calling a provider.
- Database RLS policies restrict each user to their own conversation rows.
- Do not treat CORS as authentication; the Worker performs a separate authentication check.
- Add rate limiting and provider spend alerts before sharing the app publicly.
- A browser app cannot promise unlimited model usage. Provider rate limits, quotas, and billing still apply.