MCPInstall

algo-setup

Set up the Python environment for OpenAlgo execution skills - venv, openalgo[indicators], vectorbt, talib, scikit-learn, xgboost. Scaffolds strategies/ folder and .env.

Installs
41
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/marketcalls/openalgo-execution-skills --skill algo-setup
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads algo-setup automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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

  1. 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).

  2. Create venv if not already present:

    python -m venv venv
    
  3. 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: pip install ta-lib uses pre-built wheels - no C library install needed
  4. 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
    
  5. Scaffold folders:

    strategies/
        (empty - generated strategies will land here)
    backtests/
        (empty - generated backtest CSV/HTML output lands here)
    
  6. Create .env by copying .env.sample and prompt the user to fill in OPENALGO_API_KEY:

    cp .env.sample .env
    
  7. Verify the install by running:

    from openalgo import api, ta
    import vectorbt as vbt
    import talib
    import sklearn
    import xgboost
    print("OK")
    
  8. 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 .env manually
  • Do not assume pip exists 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 only INDICATOR_LIB="openalgo" in strategies.
  • OpenAlgo not running: setup completes but the verify-install step's from openalgo import api works (SDK installs without network). Real connection is verified in /algo-strategy.

FAQ

What does the algo-setup skill do?

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 algo-setup?

Run npx skills add https://github.com/marketcalls/openalgo-execution-skills --skill algo-setup in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/algo-setup/ (personal) or .claude/skills/algo-setup/ (project).

Which AI agents can use algo-setup?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is algo-setup safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains algo-setup?

It is published by marketcalls in marketcalls/openalgo-execution-skills. It has 41 recorded installs.

More from marketcalls/openalgo-execution-skills

View all →

algo-strategy

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

45 installs

algo-options

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

44 installs

algo-risk-test

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

Testing & QA43 installs

algo-expert

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

42 installs

algo-host

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

41 installs

algo-portfolio

marketcalls/openalgo-execution-skills

Open the skill to read its SKILL.md instructions.

41 installs

Popular education & science skills

View category →

teach

mattpocock/skills

Teach the user a new skill or concept, within this workspace.

Education & Science874K installs

scaffold-exercises

mattpocock/skills

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

Education & Science488.2K installs

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

Education & Science478.3K installs

caveman-learn

juliusbrussee/caveman

Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.

Education & Science107.9K installs

gsap-plugins

greensock/gsap-skills

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

Education & Science67.9K installs

teach-impeccable

pbakaus/impeccable

DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.