Installation¶
The RainbowMiner API client is published on PyPI and supports Python 3.14+.
Requirements¶
Prerequisites
- Python 3.14 or newer
- A running RainbowMiner 4.x+ instance with the API server enabled
- Network access to the RainbowMiner server's HTTP port (default:
4000)
Install¶
Dependencies¶
The library has minimal runtime dependencies:
| Package | Purpose |
|---|---|
aiohttp |
Async HTTP client |
pydantic |
Data validation and typed models |
Both are installed automatically when you install rainbowminer-api-client.
Enable the RainbowMiner API¶
The RainbowMiner API server must be enabled in the RainbowMiner configuration:
- Open your RainbowMiner
config.txt(or use the web UI). - Set
APIs = 1to enable the API server. - Set
APIport = 4000(or your preferred port). - Optionally set
APIauth = 1and configureAPIuser/APIpasswordfor HTTP Basic authentication.
Restart RainbowMiner after changing these settings. Verify the API is reachable:
Next steps¶
- Quick start — run your first request