algo-setup
Set up the Python environment for OpenAlgo execution skills - venv, openalgo[indicators], vectorbt, talib, scikit-learn, xgboost. Scaffolds strategies/ folder and .env.
How do I install this agent skill?
npx skills add https://github.com/marketcalls/openalgo-execution-skills --skill algo-setupIs this agent skill safe to install?
- Gen Agent Trust Hubfail
The skill performs environment setup and installs system-level dependencies using elevated privileges (sudo). It also processes external configuration files, which presents a surface for indirect instructions.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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 -soros.name. Use OS-specific install commands for the TA-Lib C library (whichpip install ta-libdepends 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 needsudo apt update) - Windows:
pip install ta-libuses pre-built wheels - no C library install needed
- macOS:
-
Activate venv and install Python packages from
requirements.txt:# Linux/macOS source venv/bin/activate pip install -r requirements.txt # Windows venv\Scripts\activate pip install -r requirements.txt -
Scaffold folders:
strategies/ (empty - generated strategies will land here) backtests/ (empty - generated backtest CSV/HTML output lands here) -
Create
.envby copying.env.sampleand prompt the user to fill inOPENALGO_API_KEY:cp .env.sample .env -
Verify the install by running:
from openalgo import api, ta import vectorbt as vbt import talib import sklearn import xgboost print("OK") -
Print next steps:
Setup complete. Next: 1. Edit .env and set OPENALGO_API_KEY 2. Make sure OpenAlgo is running at http://127.0.0.1:5000 3. Generate a strategy: /algo-strategy ema-crossover SBIN NSE 5m
Avoid
- Do not use icons/emojis in output
- Do not auto-run
OPENALGO_API_KEY=...in the shell - the user pastes it into.envmanually - Do not assume
pipexists outside the venv after step 4 - always activate first
When the user already has a venv
Skip step 2. Activate the existing venv, run pip install -r requirements.txt against it, and continue.
Failure modes
- TA-Lib install fails on Linux: tell the user to run
sudo apt update && sudo apt install build-essential libta-lib-dev. If that fails (older distros), suggest skipping TA-Lib and using onlyINDICATOR_LIB="openalgo"in strategies. - OpenAlgo not running: setup completes but the verify-install step's
from openalgo import apiworks (SDK installs without network). Real connection is verified in/algo-strategy.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/marketcalls/openalgo-execution-skills/algo-setup">View algo-setup on skillZs</a>