Skip to main content

Free Fire guest account generator library.

Project description

๐ŸŽฎ Free Fire Account Generator

License: MIT Python Version Version

A powerful and reliable Python library for generating and managing Free Fire guest accounts programmatically. Perfect for bot development, account automation, and game testing.

Author: @m2_byte
Status: Production Ready
License: MIT


โœจ Features

  • ๐Ÿค– Automated Account Generation - Create Free Fire guest accounts instantly
  • ๐ŸŒ Multi-Region Support - Generate accounts for 13+ different regions
  • ๐Ÿ” Secure Credentials - Returns valid login credentials (UID & Password)
  • โšก Auto-Retry Logic - Automatic retry on transient failures
  • ๐ŸŽฏ Comprehensive Error Handling - Detailed error messages and handling
  • ๐Ÿš€ High Performance - Optimized for batch operations
  • ๐Ÿ“ Well Documented - Complete API documentation with examples

๐Ÿ“‹ Table of Contents


๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Install from PyPI

pip install freefiregen

๐Ÿš€ Quick Start

Basic Usage

from freefiregen import create_bot_account

# Create a bot account in Middle East region
result = create_bot_account("MyBot", "ME")

if result['success']:
    print(f"โœ… Account Created Successfully!")
    print(f"UID: {result['uid']}")
    print(f"Password: {result['password']}")
    print(f"Account ID: {result['account_id']}")
    print(f"Region: {result['region']}")
else:
    print(f"โŒ Error: {result['error']}")

Login with Generated Credentials

# Use the generated credentials to login
uid = result['uid']
password = result['password']

# These credentials can be used with Free Fire login API
# or any Free Fire client that supports guest login

๐Ÿ“– API Reference

create_bot_account(name, region)

Creates a new Free Fire guest account with automatic credential generation.

Parameters:

Parameter Type Description Example
name str Bot name (max 12 characters, auto-truncated) "MyBot"
region str Region code for account creation "ME", "BR", "IND"

Returns:

Dictionary containing account information:

{
    "success": True,                    # Account creation status
    "uid": "123456789",                 # Guest UID (login credential)
    "password": "m2byte...BOT2",        # Guest password (login credential)
    "account_id": "987654321",          # Free Fire account ID
    "name": "MyBot",                    # Confirmed bot name
    "region": "ME",                     # Region code
    "status_code": 200,                 # HTTP response code
    "error": None                       # Error message (if any)
}

Example:

result = create_bot_account("BotName", "ME")

# Check success status
if result['success']:
    # Access the credentials
    print(f"Account ID: {result['account_id']}")
    print(f"Login Credentials: {result['uid']}:{result['password']}")
else:
    # Handle error appropriately
    print(f"Failed to create account: {result['error']}")

๐ŸŒ Supported Regions

Code Region Language Description
ME Middle East Arabic Middle East servers
IND India Hindi India/South Asia servers
ID Indonesia Indonesian Indonesia servers
VN Vietnam Vietnamese Vietnam servers
TH Thailand Thai Thailand servers
BD Bangladesh Bengali Bangladesh servers
PK Pakistan Urdu Pakistan servers
TW Taiwan Chinese Taiwan servers
EU Europe English European servers
CIS CIS Region Russian CIS/Russian servers
NA North America English North America servers
SAC South America Spanish South American servers
BR Brazil Portuguese Brazil servers

โš ๏ธ Error Handling

Error Types

The library provides detailed error messages for various scenarios:

Error Type Description Solution
RATE_LIMIT Too many requests to API Wait 30-60 seconds before retrying
DUPLICATE_NAME Name already exists in region Choose a different bot name
INVALID_REGION Invalid region code provided Check supported regions list
NETWORK_ERROR Connection timeout or network issue Check internet connection and retry
API_ERROR API server returned an error Retry after a few seconds
UNKNOWN_ERROR Unexpected error occurred Contact support with error details

Error Handling Example

from freefiregen import create_bot_account

result = create_bot_account("BotName", "ME")

if result['success']:
    # โœ… Success - Account created
    uid = result['uid']
    password = result['password']
    account_id = result['account_id']
    
    print(f"โœ… Account created successfully!")
    print(f"Login credentials: {uid}:{password}")
    print(f"Account ID: {account_id}")
    
else:
    # โŒ Error handling
    error = result['error']
    
    if "RATE_LIMIT" in error:
        print("โณ Rate limited! Please wait before trying again.")
    
    elif "DUPLICATE_NAME" in error:
        print("โš ๏ธ Name already taken! Choose a different name.")
    
    elif "INVALID_REGION" in error:
        print("โŒ Invalid region code! Check supported regions.")
    
    elif "NETWORK_ERROR" in error:
        print("๐ŸŒ Network error! Check your internet connection.")
    
    else:
        print(f"โŒ Error: {error}")

๐Ÿ”ง Advanced Features

1. Automatic Retry Logic

The library automatically retries failed requests up to 3 times for transient network errors. This ensures better reliability when dealing with unstable connections.

# No need to implement retry logic manually
# The library handles it automatically
result = create_bot_account("BotName", "ME")  # Auto-retries on network errors

๐Ÿ“š Examples

Example 1: Single Account Creation

from freefiregen import create_bot_account

# Create a single account
result = create_bot_account("TestBot", "ME")

if result['success']:
    print(f"โœ… Account Created")
    print(f"UID: {result['uid']}")
    print(f"Password: {result['password']}")

Example 2: Batch Account Creation

from freefiregen import create_bot_account
import time

bot_names = ["Bot1", "Bot2", "Bot3", "Bot4", "Bot5"]
accounts = []

for name in bot_names:
    result = create_bot_account(name, "ME")
    
    if result['success']:
        accounts.append({
            'name': name,
            'uid': result['uid'],
            'password': result['password'],
            'account_id': result['account_id']
        })
        print(f"โœ… Created: {name}")
    else:
        print(f"โŒ Failed: {name} - {result['error']}")
    
    # Respectful rate limiting
    time.sleep(1)

print(f"\n๐Ÿ“Š Total created: {len(accounts)}")

Example 3: Multi-Region Account Creation

from freefiregen import create_bot_account

regions = ["ME", "IND", "BR", "EU"]

for region in regions:
    result = create_bot_account("GlobalBot", region)
    
    if result['success']:
        print(f"๐ŸŒ {region}: {result['account_id']}")
    else:
        print(f"โŒ {region}: {result['error']}")

Example 4: Save Accounts to Database

from freefiregen import create_bot_account
import json

def save_account(account_data):
    """Save account data to JSON file"""
    with open('accounts.json', 'a') as f:
        json.dump(account_data, f)
        f.write('\n')

result = create_bot_account("BotName", "ME")

if result['success']:
    save_account({
        'uid': result['uid'],
        'password': result['password'],
        'account_id': result['account_id'],
        'region': result['region']
    })

โš™๏ธ Configuration

Environment Variables (Optional)

You can configure the library behavior using environment variables:

# Set request timeout (seconds)
export FFGEN_TIMEOUT=30

# Set number of retries
export FFGEN_MAX_RETRIES=3

# Enable debug mode
export FFGEN_DEBUG=true

Python Configuration

import os
from freefiregen import create_bot_account

# Override timeout (in seconds)
os.environ['FFGEN_TIMEOUT'] = '30'

# Override max retries
os.environ['FFGEN_MAX_RETRIES'] = '5'

result = create_bot_account("BotName", "ME")

โ“ FAQ

Q: Is this library legal to use?
A: This library is for educational and automation testing purposes. Ensure you comply with Free Fire's Terms of Service.

Q: Can I use this in production?
A: Yes, the library is production-ready with automatic error handling and retry logic.

Q: How many accounts can I create?
A: The limit depends on Free Fire's rate limiting. Typically, 1-2 accounts per second is safe.

Q: What should I do about rate limiting?
A: If you get a RATE_LIMIT error, wait 30-60 seconds before retrying.

Q: Can I use accounts for multiple regions?
A: Yes, accounts can be created for any supported region independently.

Q: What's the difference between UID and Account ID?
A: UID is the guest login credential, while Account ID is your Free Fire game account identifier.

Q: How long are the generated accounts valid?
A: Guest accounts are typically valid as long as Free Fire's servers support them.

Q: Can I change the account name after creation?
A: Use Free Fire's in-game features to change your account name (if available in your region).

Q: Is my data secure?
A: Credentials are sent only to Free Fire's official servers.


๐Ÿ” Security Notes

  • No Data Storage: The library does not store any account credentials
  • Official Servers Only: All requests are sent to Free Fire's official API endpoints
  • SSL Support: Secure HTTPS connections are used for all communications

Best Practices

  • Store credentials securely (use password managers or encrypted databases)
  • Never commit credentials to version control
  • Use environment variables for sensitive data
  • Implement rate limiting in your applications
  • Respect Free Fire's Terms of Service

๐Ÿ“ Changelog

Version 3.0.0 (Current)

  • โœ… Initial stable release
  • โœ… Support for 13+ regions
  • โœ… Automatic retry logic
  • โœ… Comprehensive error handling

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License Summary

  • โœ… Commercial use
  • โœ… Modification
  • โœ… Distribution
  • โœ… Private use
  • โŒ No Liability
  • โŒ No Warranty

๐Ÿ“ง Support & Contact


๐ŸŽฏ Roadmap

Upcoming Projects

We're building a comprehensive TVN THDV Bot Control Library with:

  • ๐Ÿค– Multi-region bot management and automation
  • ๐Ÿ“Š Real-time bot monitoring and statistics
  • โš™๏ธ Advanced configuration management tools
  • ๐Ÿ”„ Batch account operations and optimization
  • ๐Ÿ›ก๏ธ Secure bot credential management
  • ๐Ÿ“ˆ Bot performance analytics and reporting
  • ๐ŸŽฎ Game farming and automation features
  • ๐Ÿ”Œ Easy integration with existing systems

๐Ÿ‘จโ€๐Ÿ’ป Author

@m2_byte


โญ Acknowledgments

  • Free Fire community
  • Contributors and testers

๐Ÿ™‹ Get Help

Common Issues & Solutions

Issue: RATE_LIMIT error

# Solution: Add delay between requests
import time
result = create_bot_account("Bot1", "ME")
time.sleep(2)  # Wait 2 seconds
result = create_bot_account("Bot2", "ME")

Issue: NETWORK_ERROR

# Solution: Check internet connection and retry
try:
    result = create_bot_account("Bot", "ME")
except Exception as e:
    print(f"Network error: {e}")
    # Implement retry logic

Made with โค๏ธ for Free Fire Community

If this library helped you, please consider giving it a โญ star!

โฌ† Back to top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

freefiregen-3.0.0-cp313-cp313-win_amd64.whl (352.8 kB view details)

Uploaded CPython 3.13Windows x86-64

freefiregen-3.0.0-cp312-cp312-win_amd64.whl (352.1 kB view details)

Uploaded CPython 3.12Windows x86-64

freefiregen-3.0.0-cp311-cp311-win_amd64.whl (354.7 kB view details)

Uploaded CPython 3.11Windows x86-64

freefiregen-3.0.0-cp310-cp310-win_amd64.whl (354.3 kB view details)

Uploaded CPython 3.10Windows x86-64

freefiregen-3.0.0-cp39-cp39-win_amd64.whl (354.7 kB view details)

Uploaded CPython 3.9Windows x86-64

freefiregen-3.0.0-cp38-cp38-win_amd64.whl (355.5 kB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file freefiregen-3.0.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for freefiregen-3.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 171e1b3003f69aedbd367c1c03b9875dc677f1f4d7b8db0d6e77995775ae3f74
MD5 2e1b8487b6c36460b71117420957dea5
BLAKE2b-256 f5c598b56765b86eca7b3a73e50132cb648b75df557907347e43e487626f6023

See more details on using hashes here.

File details

Details for the file freefiregen-3.0.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for freefiregen-3.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1386f2f65d89c80ce82cba5a1d4af20ba6affe16cea508c13ceffc55097d144b
MD5 002b5f5b8a507b14619507c4d4706858
BLAKE2b-256 3ef26e9d3f347cc809f12c0a00ac932b3eba43a028d3561f87d23c63623cd2b7

See more details on using hashes here.

File details

Details for the file freefiregen-3.0.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for freefiregen-3.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a3bcf6a951bcd830da122309d375db7ec6e0867f8968b5b77a5bb1fcec29808e
MD5 6de58343ae5f90b5fb482b3c1db43417
BLAKE2b-256 abea0300d31d8e423a9420e12ab9e4e068eb5b33e5130227ead84a62c1386290

See more details on using hashes here.

File details

Details for the file freefiregen-3.0.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for freefiregen-3.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5d35c8f37a37d808781a905d02e5fa7e6d84f06fbfd4f663d930439b466bf9d8
MD5 174df424c61b9a983fde277e6fa2c3d3
BLAKE2b-256 144f5e21c1901c2d9c8d546e72d00df31e66d0f83ffae2003e136e051f7d5fbc

See more details on using hashes here.

File details

Details for the file freefiregen-3.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: freefiregen-3.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 354.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freefiregen-3.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2f8abd370d218ce0e6816c31a854bce33a3e65ea1e7281488eb0773a894a0616
MD5 6f299eaa88c135028549ee97be56a7b7
BLAKE2b-256 22791412bbb4fee53a54df81dcd786f6aa7d91587616283caa9f62bfd163468f

See more details on using hashes here.

File details

Details for the file freefiregen-3.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: freefiregen-3.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 355.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freefiregen-3.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d72973487a18615d89857c934c2c5e9c4f9435c733e2fac2c9fb982c6868f529
MD5 3125c1adbc2ea49146acd43472ae82b9
BLAKE2b-256 c243c4f5dbecc2409c3b8a876fa5fca1d1a068ca2f52497c9993992d06c3e115

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page