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 2.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 Distribution

freefiregen-2.0.0.tar.gz (101.0 kB view details)

Uploaded Source

Built Distribution

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

freefiregen-2.0.0-py3-none-any.whl (96.7 kB view details)

Uploaded Python 3

File details

Details for the file freefiregen-2.0.0.tar.gz.

File metadata

  • Download URL: freefiregen-2.0.0.tar.gz
  • Upload date:
  • Size: 101.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freefiregen-2.0.0.tar.gz
Algorithm Hash digest
SHA256 18bec76ecc2df6cbd109396dd54eb4bb4ee52cb1202469da20976aab355b127a
MD5 59b18fe8ad0d319cd536d547d7f5457c
BLAKE2b-256 d7e45ab044ecec7cc93e76ffc76e018c47f920d2f8fde6bfbd8e32be6d1551e5

See more details on using hashes here.

File details

Details for the file freefiregen-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: freefiregen-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 96.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freefiregen-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95fb049ce9ee26efd7b5102c5afe0d6ac5b294b8f299e502467b5f1ae3a08a1a
MD5 028ab67331e17ef8119915b6cd08a75a
BLAKE2b-256 225d4cfc06d1f9ef59b3089d5518740a254635cabeed918e9d2662e41e942836

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