Pi Squared Network — a decentralized infrastructure for fast, scalable, and cryptographically verifiable transactions between applications, blockchains, and AI agents.
git clone https://github.com/Phoenix0x-web3/pi_squared.git
cd pi_squared
Install dependencies:
python install.py
Activate virtual environment:
For Windows
For Linux/Mac
Run script
Configuration
After running the script, a folder named files will be created. Inside this folder, you will find text files that must be filled line by line (one value per line).
email_data.txt: Work with emails iCloud(format: primary_email_iCloud:app-specific-password:fake_email)
proxy.txt: One proxy per line (format: http://user:pass@ip:port)
reserve_proxy.txt: One proxy per line (format: http://user:pass@ip:port)
twitter_tokens.txt: One token per line
reserve_twitter.txt: One token per line
Main configurations
Module Configurations:
iCloud Mail Setup
To use iCloud with your scripts you need a primary (real) iCloud email. After that you can generate additional (alias) emails on your iPhone or Mac. Note: this requires a paid iCloud+ subscription (cost $0.99 / month).
How to generate additional (hidden) emails
On iPhone / Mac go to: Settings → [your name] → iCloud → Hide My Email.
Create a new address. You can manage or deactivate aliases in the same place.
You can generate up to 20 addresses this way and it’s safer to do it 1–2 times per day — generating much more often may lead to account restrictions or temporary blocks.
App-specific password for IMAP
Go to Apple account support (support.apple.com) and generate an app-specific password so IMAP/SMTP access will work.
Place the credentials in your email_data.txt file using this format: primary_email_iCloud:app-specific-password:fake_email (ex. emailName@icloud.com:xkrt-ujqp-qmna-sdtd:hide-EmailName@icloud.com)
Usage
For register to portal you need email addresses.
On first use, you need to fill in the email_data.txt, proxy.txt, twitter.txt files. After launching the program, go to DB Actions → Import wallets to Database.
If you want to update proxy or twitter tokens you need to make synchronize with DB. After you made changes in files proxy.txt, twitter_tokens.txt, please choose this option.
Once the database is created, you can start the project by selecting Pi Squared → Run All Tasks or other options.
# Number of threads to use for processing wallets
threads: 1
# Number of retries for failed action
retry: 3
#BY DEFAULT: [0,0] - all wallets
#Example: [2, 6] will run wallets 2,3,4,5,6
#[4,4] will run only wallet 4
range_wallets_to_run: [0, 0]
#Check for github updates
check_git_updates: true
# BY DEFAULT: [] - all wallets
# Example: [1, 3, 8] - will run only 1, 3 and 8 wallets
exact_wallets_to_run: []
# the log level for the application. Options: DEBUG, INFO, WARNING, ERROR
log_level : INFO
# Delay before running the same wallet again after it has completed all actions (1 - 2 hrs default)
random_pause_wallet_after_completion:
min: 3600
max: 7200
# Random pause between actions in seconds
random_pause_between_actions:
min: 5
max: 60
#Maximum possible number of errors before replacement proxy/twitter
resources_max_failures: 3
#Perform automatic replacement from proxy reserve files
auto_replace_proxy: true
#Perform automatic replacement from twitter reserve files
auto_replace_twitter: false
# Telegram Bot ID for notifications
tg_bot_id: ''
# You can find your chat ID by messaging @userinfobot or using https://web.telegram.org/. (example 1540239116)
tg_user_id: ''