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: 15 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://cli-node.optimai.network/optimai_cli_darwin_universal2 -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://cli-node.optimai.network/optimai_cli_ubuntu -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://cli-node.optimai.network/optimai_cli_windows.exe -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 loginThis will open your browser to sign in via the OptimAI Node Dashboard. After signing in, you'll be redirected back and the CLI will automatically complete the login process.
Legacy login (email/password): If you prefer to use email/password instead of browser login:
optimai-cli auth login --legacyMake 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:
# Sign in via browser (default)
optimai-cli auth login
# Sign in using email/password (legacy)
optimai-cli auth login --legacy
# Check login status
optimai-cli auth status
# View account info
optimai-cli auth me
# Sign out
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.
- Browser login not working: If browser login fails or the dashboard doesn't support it yet, use the legacy email/password method with
optimai-cli auth login --legacy. - 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