Skip to content

ahmuq/optimai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OptimAI Auto Bot

For Auto Bot Optim AI

Requirements

Notes

Using Better Proxy

Installation

  1. Clone the repository:

    git clone https://github.com/ahmuq/optimai-bot.git
    cd optimai-bot
  2. Instal Packages and build packages:

    npm install
    npm run build
  3. Create a nano proxy.txt file in the root directory and add your proxies (one per line) (Optional).

    http://user:pass@host:port
    http://user:pass@host:port
    http://user:pass@host:port
    
  4. Make file accounts, cp accounts.json.example accounts.json, edit and put your account details like this example:

    [
      {
        "refreshToken": "your_refresh_token"
      },
      {
        "refreshToken": "your_refresh_token"
      }
    ]

    Note: registerPayload and uptimePayload will be generated automatically by the bot using the same algorithm as the Python setup. You only need to provide the refreshToken.

How To Get Required Data

Get RefreshToken (OptimAI Console - [Ctrl + Shift + I])

const token = localStorage.getItem("opai_refresh_token");
if (token) {
  const textArea = document.createElement("textarea");
  textArea.value = token;
  document.body.appendChild(textArea);
  textArea.select();
  document.execCommand("copy");
  document.body.removeChild(textArea);
  console.log(
    "%cRefresh Token copied to clipboard!",
    "color: green; font-size: 16px;"
  );
} else {
  console.error("Refresh Token not found in localStorage!");
}

Payload Generation: The bot will automatically generate registerPayload and uptimePayload using the same algorithm as the Python setup script. No manual extraction needed!

Usage

  1. Run the bot:
npm run start

Stay Connected

Donation

If you would like to support the development of this project, you can make a donation using the following addresses:

  • Solana: FdHsx8He55QgRCSv6NMEpFfkjXFsXFEeWEpJpo7sUQZe
  • EVM: 0x406de5ec09201002c45fdd408ab23159cd12fa3e
  • BTC: bc1prze475lgalevngrhwq6r9wyng3rl3zskyru4rn4k6j8kwzmmczmqcd7u7y

Disclaimer

This tool is for educational purposes only. Use it at your own risk.

Releases

No releases published

Packages

No packages published