Skip to content

mocasus/Auto-FreeCF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

126 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Auto-FreeCF

Auto-FreeCF Logo

Cloudflare Workers AI Account ID & Token Auto-Grabber

Version License Node Python Platform

Fully automated Cloudflare account grabber with advanced stealth scripts

Installation β€’ Usage β€’ Features β€’ Documentation


⚑ Quick Start

npm install -g auto-freecf
moycf

✨ Features

  • πŸ€– Full Automation β€” Login, grab Account ID, create API Token, all automatic
  • πŸ›‘οΈ Stealth Mode β€” Bypass Cloudflare bot detection with advanced stealth scripts
  • πŸ‘» Headless by Default β€” Runs completely in background, no browser window opens
  • 🌐 Residential Proxy β€” Optional proxy configuration for better success rate
  • πŸ“ Single & Bulk β€” Input single email:pass atau bulk dari file
  • πŸ“¦ Auto Setup β€” Automatic dependency installation with live timer
  • πŸ’Ύ Export Results β€” Save to TXT format with account_id:worker_token
  • πŸ” Google OAuth β€” Support login via Google Sign-In (fully automated)

πŸ“ Project Structure

Auto-FreeCF/
β”œβ”€β”€ src/                    # Core source code (login flow)
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ browser_bot.py      # Main browser automation logic
β”‚   β”œβ”€β”€ turnstile_solver.py # Turnstile challenge solver
β”‚   └── utils.py            # Utility functions
β”œβ”€β”€ signup_from_scratch/    # πŸ”₯ NEW: Auto signup from zero
β”‚   β”œβ”€β”€ main.py             # Orchestrator
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ signup_flow.py      # CF signup with Turnstile
β”‚   β”‚   β”œβ”€β”€ email_verifier.py   # Email verification
β”‚   β”‚   β”œβ”€β”€ email_generator.py  # Temp-mail creation
β”‚   β”‚   β”œβ”€β”€ token_creator.py    # API token creation
β”‚   β”‚   β”œβ”€β”€ token_validator.py  # Token validation
β”‚   β”‚   β”œβ”€β”€ turnstile_bypass.py # Advanced Turnstile solver
β”‚   β”‚   └── utils.py
β”‚   └── config.example.json
β”œβ”€β”€ mail-adapter/           # Temp-mail bridge (Supabase API)
β”‚   β”œβ”€β”€ adapter.py
β”‚   └── config.example.json
β”œβ”€β”€ deploy-browserfarm.sh   # VPS deployment script
β”œβ”€β”€ cli.js                  # CLI entry point
β”œβ”€β”€ terminal_ui.py          # Terminal UI
β”œβ”€β”€ web_ui.py               # Web UI
β”œβ”€β”€ browser_bot.py          # Backward compatibility wrapper
└── package.json            # NPM package config

πŸš€ Installation

npm install -g auto-freecf

πŸ’» Usage

CLI Mode

# Single account (email:password)
moycf email@example.com:password123

# Bulk accounts from file
moycf accounts.txt

# With proxy
moycf accounts.txt --proxy config/proxy.json

# Google OAuth login
moycf google_email:password --login-method google

Interactive Mode

moycf

Then choose:

  1. Single account (email:password)
  2. Single account (Google OAuth)
  3. Bulk accounts (from file)

Web UI

python web_ui.py

Open http://localhost:8080 in your browser.

πŸ”₯ Signup From Scratch (NEW)

Create Cloudflare accounts from zero β€” no existing email needed:

# Interactive mode (recommended)
moycf
# β†’ Pick [4] Signup from scratch
# β†’ Pick [1] Public relay (zero setup) or [2] Custom mail API

# Direct CLI
moycf --signup --accounts 3
moycf --signup --accounts 3 --mail-api https://your-relay.example.com/new_address

Mail providers:

  • πŸš€ Public relay β€” pre-configured, works out of the box (option [1])
  • πŸ”Œ Custom API β€” point to your own mail-adapter (option [2])
  • πŸ—οΈ Deploy your own β€” full guide via Supabase (option [3])
  • πŸ”„ Auto-fallback β€” if primary relay fails, tool auto-tries backup + public relay (zero config needed)

Full pipeline:

  1. Temp-mail creation β†’ 2. CF Signup (Turnstile bypass) β†’ 3. Email verify β†’ 4. API token β†’ 5. Validate

Output format: account_id:workers_ai_token in results.json

VPS Deployment

./deploy-browserfarm.sh

πŸ”§ Development

Project Structure

  • src/browser_bot.py: Main CFAutoGrabber class with login, token creation logic
  • src/turnstile_solver.py: Turnstile challenge solving (isolated page approach)
  • src/utils.py: Helper functions (load_accounts, load_proxy_config, save_results)
  • signup_from_scratch/: Standalone signup pipeline (no existing email needed)
  • mail-adapter/: Temp-mail API bridge for signup pipeline
  • browser_bot.py: Backward compatibility wrapper for existing scripts

Running Tests

cd tests
python test_login.py

πŸ”’ Security

See SECURITY.md for details on reporting vulnerabilities and security best practices.


πŸ“œ Code of Conduct

See CODE_OF_CONDUCT.md for our community guidelines and standards.


πŸ“ License

MIT

About

Cloudflare Workers AI Account ID and token collector with explicit automation modes

Resources

License

Code of conduct

Security policy

Stars

77 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors