# setup

Sets up a Python backtesting environment with VectorBT and OpenAlgo. It configures the virtual environment, installs dependencies, and prepares .env.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2000 installs · ★ 211
- Author: marketcalls
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/marketcalls/vectorbt-backtesting-skills/tree/HEAD/.claude/skills/setup/SKILL.md
- Updated: 2026-07-12
- HTML: https://affpapa.org/en/nevibecode/skills/marketcalls-setup

## What it does

The skill checks the host operating system and initializes a fresh `venv`. It defaults to `python3`. You can also pass a specific version like `python3.12`. Once initialized, it upgrades `pip` and installs libraries including `vectorbt`, `openalgo`, `plotly`, `duckdb`, and `openstatz`. Notice that it installs `openstatz` instead of QuantStats.

OpenAlgo already provides over 100 indicators. Compiling the C-based TA-Lib is optional. If you choose to enable TA-Lib, the skill prompts you to install the underlying OS-level C library first using Homebrew, apt, or pre-built Windows wheels. It also creates a top-level `backtesting` directory. Strategy subfolders are generated later during test runs.

An interactive prompt gathers connection details for your target data feeds. You can provide an OpenAlgo API token, point to a DuckDB database file, or set CCXT keys for crypto trading. The skill appends `.env` to `.gitignore` immediately. That keeps credentials out of source control.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill setup -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/setup/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/setup/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill setup -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/setup/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill setup -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/setup/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install marketcalls/vectorbt-backtesting-skills setup
```

2. **Manually: put the files in place**
- File: `.github/skills/setup/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill setup -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/marketcalls/vectorbt-backtesting-skills --path .claude/skills/setup
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/setup/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add marketcalls/vectorbt-backtesting-skills --skill setup -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/marketcalls/vectorbt-backtesting-skills/tree/HEAD/.claude/skills/setup/SKILL.md

## When to use it
- create an isolated Python venv for VectorBT backtesting
- configure .env credentials for OpenAlgo, CCXT, and DuckDB
- install trading analytics packages without forcing a TA-Lib build
- verify that all market data and backtesting libraries import properly

## Example prompts
- Set up the backtesting environment using setup
- Run setup python3.12 to initialize the project
- Prepare the Python workspace for vectorbt with setup

## Similar
- [vectorbt](https://affpapa.org/en/nevibecode/skills/vectorbt.md) — skill · 492 installs
- [strategy-framework](https://affpapa.org/en/nevibecode/skills/strategy-framework.md) — skill · 500 installs
- [live-feed](https://affpapa.org/en/nevibecode/skills/live-feed.md) — skill · 550 installs
- [stockbee-20pct-study](https://affpapa.org/en/nevibecode/skills/stockbee-20pct-study.md) — skill · 2600 installs
- [finlab](https://affpapa.org/en/nevibecode/skills/finlab.md) — skill · 1900 installs
- [quant-analyst](https://affpapa.org/en/nevibecode/agents/quant-analyst.md) — subagent · 1366 installs

## Other versions with the same name
- [setup · alirezarezvani](https://affpapa.org/en/nevibecode/skills/setup.md) — 1480 installs
- [setup · aws](https://affpapa.org/en/nevibecode/skills/aws-setup.md) — 1500 installs
- [setup · assistant-ui](https://affpapa.org/en/nevibecode/skills/assistant-ui-setup.md) — 6100 installs
- [setup · tartinerlabs](https://affpapa.org/en/nevibecode/skills/tartinerlabs-setup.md) — 375 installs
- [setup · nimbalyst](https://affpapa.org/en/nevibecode/skills/nimbalyst-setup.md) — ★ 1971

From the same set: [marketcalls/vectorbt-backtesting-skills](https://affpapa.org/en/nevibecode/by/marketcalls/vectorbt-backtesting-skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
