| name | algo-setup |
| description | Set up the Python environment for OpenAlgo execution skills - venv, openalgo[indicators], vectorbt, talib, scikit-learn, xgboost. Scaffolds strategies/ folder and .env. |
| argument-hint | [python-version] |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Set up the local Python environment for building and running OpenAlgo dual-mode trading strategies.
Arguments
$0 (optional) = python interpreter name (python, python3, python3.12). Default: python.
What to do
-
Detect the OS (Windows / macOS / Linux) via uname -s or os.name. Use OS-specific install commands for the TA-Lib C library (which pip install ta-lib depends on).
-
Create venv if not already present:
python -m venv venv
-
Install TA-Lib C library (required by Python ta-lib):
- macOS:
brew install ta-lib
- Ubuntu/Debian:
sudo apt install libta-lib-dev (may need sudo apt update)
- Windows: uses pre-built wheels - no C library install needed