A research platform for the whole quant pipeline
qlib is Microsoft’s open-source platform for AI-driven quantitative investment research. Unlike the LLM-agent projects around it, qlib is a serious, end-to-end research framework: data ingestion, feature engineering with an Alpha factor library, model training across many machine-learning approaches, backtesting, and portfolio construction. It is built for quant researchers, not for retail users looking for a quick signal. At 44,469 stars as of 2026-06, it is one of the most established quant ML platforms on GitHub.
It also carries the RD-Agent direction, which applies LLMs to automate parts of quant research like factor mining, layered on top of the classic ML pipeline.
What it does
The platform models the full research loop. You prepare data in qlib’s binary format, define features as Alpha factor expressions (the Alpha158 and Alpha360 sets are built in), train one of many included models (gradient boosting, transformers, and others), and backtest the resulting strategy with portfolio and execution logic. The breadth is the point: it is a place to run rigorous, reproducible quant experiments rather than a single algorithm.
Install, and the data catch
pip install pyqlib
The catch that trips up newcomers is data. qlib needs data in its own binary format, and the official data source has at times been offline, so the community commonly uses an alternative dataset (such as the chenditc/investment_data release) to populate ~/.qlib/. On Apple Silicon you also need brew install libomp first. Budget time for getting data in before you can run anything meaningful; the data step is the real onboarding hurdle, not the install.
Where it fits, and where it doesn’t
Reach for qlib when you are doing genuine quant research, when you want a reproducible pipeline across data, factors, models, and backtests, and when you have the background to work with factor expressions and model tuning. For a research team it is a capable, well-stocked platform, and the MIT license makes it usable commercially.
It is the wrong tool if you want a quick, beginner-friendly signal generator, because the learning curve is steep: the YAML workflows, factor-expression syntax, and label definitions take real effort to learn. Documentation has lagged in places, dependency versions (LightGBM, pandas) have caused breakage, and market data quality varies between Chinese and US markets. The release cadence is also slow for a project this size.
qlib versus the agent and LLM projects
| qlib | TradingAgents | ai-hedge-fund | FinGPT | |
|---|---|---|---|---|
| Stars | 44,469 | 85,821 | 60,129 | 20,502 |
| Type | quant research platform | multi-agent trading framework | educational agent simulator | financial LLM resources |
| Core | ML pipeline, factors, backtest | LLM trading agents | investor-persona agents | fine-tuned financial LLMs |
| Learning curve | steep | moderate | low | moderate |
| Best for | rigorous quant ML research | building agent strategies | learning multi-agent design | financial NLP |
Counts are from GitHub as of June 2026. TradingAgents and ai-hedge-fund are LLM-agent approaches, lighter to start but less rigorous as research tools. FinGPT provides financial language models. qlib’s distinct value is being a complete, reproducible ML research platform, at the cost of a steep ramp.
The star curve
The star curve reflects a steady, institution-backed climb rather than a viral spike, consistent with a research platform adopted deliberately by quant teams. The slope is less dramatic than the LLM-agent projects, which matches its more specialized audience.
What the issue tracker warns you about
The recurring friction is real onboarding cost. Data preparation is the top hurdle, with the official source offline and the binary format unfamiliar. The factor-expression and label-definition concepts confuse newcomers. Dependency compatibility, especially LightGBM and pandas versions, has broken workflows, so pin versions carefully. Market coverage is uneven, with Chinese A-share support more mature than some others and historical gaps in places. And while the project is maintained, the slow release cadence and large open-issue backlog mean fixes can take time.
Related
For LLM-agent trading approaches, see TradingAgents and ai-hedge-fund. For financial language models, see FinGPT. For the broader ML tooling landscape, see trending LLM tooling. For what is climbing, see the daily digest and the weekly report.
FAQ
Can a beginner or retail investor use qlib? It is possible but hard. qlib targets quant researchers, and the learning curve (data format, factor expressions, YAML workflows, model tuning) is steep. Beginners often find an LLM-agent project easier to start with, even if it is less rigorous.
How do I prepare data for qlib? Data must be in qlib’s binary format. Because the official data source has been offline at times, the community commonly downloads an alternative dataset (such as the chenditc/investment_data release) into ~/.qlib/. Getting data in is the main onboarding step.
qlib vs TradingAgents, which should I use? qlib is a rigorous ML research platform with factors, models, and backtesting. TradingAgents is an LLM-agent trading framework. Choose qlib for reproducible quant research, TradingAgents for agent-based strategy building.
Which markets does qlib support? It supports Chinese A-shares, US, and others, but data quality and completeness vary by market, with A-share support the most mature. Check coverage for your target market before relying on it.
Is qlib still actively maintained? Yes, but slowly for its size. The release cadence is infrequent and the open-issue backlog is large, so expect maintenance to continue at a measured pace rather than rapid iteration.