This repository contains the OptimAI Node CLI. Use it to sign in, run your node, check status, and view rewards.
Full Documentation: For detailed information about the OptimAI Node, please visit our Official Documentation.
Before installing, ensure you have:
- Hardware:
- RAM: 4 GB minimum (8 GB recommended).
- CPU: 2 Cores or more.
- Disk Space: 10 GB free space.
- Operating System:
- Windows 10/11
- macOS 12+ (Intel or Apple Silicon)
- Ubuntu 22.04+ (or compatible Linux distro)
- Software:
- Docker: Docker Desktop (Windows/macOS) or Docker Engine (Linux) must be installed and running.
- Account: OptimAI account
- Network: Active internet connection
Run the following commands in your terminal to download and install:
# Download and rename to optimai-cli
curl -L https://optimai.network/download/cli-node/mac -o optimai-cli
# Make executable and install to PATH
chmod +x optimai-cli
sudo mv optimai-cli /usr/local/bin/optimai-cli# Download and rename to optimai-cli
curl -L https://optimai.network/download/cli-node/linux -o optimai-cli
# Make executable and install to PATH
chmod +x optimai-cli
sudo mv optimai-cli /usr/local/bin/optimai-clicurl.exe -L https://optimai.network/download/cli-node/win -o optimai-cli.exeAfter downloading, you can run it from the current folder:
.\optimai-cli.exe --helpTip: Move optimai-cli.exe to a folder in your System PATH to use it from anywhere as optimai-cli.
Windows note: If you haven't added the binary to your PATH, use .\optimai-cli.exe instead of optimai-cli in the examples below.
Open a terminal and run:
optimai-cli auth loginEnter your email and password when prompted.
Make sure Docker Desktop is running, then start the node:
optimai-cli node startRunning in the background (Linux/macOS):
To keep the node running after closing your terminal, we recommend using a tool like screen:
- Start a new session:
screen -S optimai - Run the node:
optimai-cli node start - Detach: Press
Ctrl+AthenD - Resume later:
screen -r optimai
Otherwise, keep your terminal open while the node is running.
Open a new terminal and run:
optimai-cli node statusoptimai-cli rewards balanceoptimai-cli updatePress Ctrl+C in the terminal where the node is running.
Windows note: Use .\optimai-cli.exe if the binary isn't in your PATH.
Account:
optimai-cli auth login
optimai-cli auth status
optimai-cli auth me
optimai-cli auth logoutNode:
optimai-cli node start
optimai-cli node statusRewards:
optimai-cli rewards balanceUpdates:
optimai-cli update- Keep Docker Desktop running before you start the node.
- Docker not running: If
optimai-cli node statusshows Docker asnot_running, start Docker Desktop and retry. - Node already running: If you see "Another node instance is already running", a node process is active in the background.
- Run
optimai-cli node statusto check the Process ID (PID). - If you need to stop it manually, use your system's task manager or run
kill <PID>(macOS/Linux).
- Run