xKAF Mirror Generator

Your own Google Drive mirror, on Cloudflare.

Build a ready-to-deploy worker.js in five steps. Everything happens in this browser tab: no server, no tracking, no stored data. Your client secret and tokens go only to Google.

  1. 1

    Google OAuth client

    Use your own Google Cloud project. Nothing is shared with xKAF.

    How to create it (about 3 minutes)
    1. Open Google Cloud Console and create a project.
    2. Enable the Google Drive API.
    3. Under Google Auth Platform → Branding / Audience, set up the consent screen as External, then Publish app (status “In production”). In “Testing” status Google expires refresh tokens after 7 days.
    4. Under Clients, create an OAuth client of type Web application and add this Authorized redirect URI:
    5. Paste the Client ID and Client secret below.
    or
  2. 2

    Choose drives

    Each drive becomes /0/, /1/… on your mirror. Drag order with the arrows.

    NameIDPassword (optional)

    No drives yet. Sign in and load your Shared Drives, or add an ID manually.

  3. 3

    Site

    You can change all of this later from /admin.

  4. 4

    Security

    Passwords are hashed with SHA-256 here, before they are written into the code.

  5. 5

    Get your worker

    Copy or download, then deploy on Cloudflare.