HKU's Vibe-Trading Hits 11K Stars Turning Plain English Into Live Trades
Vibe-Trading is an open-source multi-agent framework that turns plain-English prompts into backtested trading strategies, now with live broker execution across 10 platforms
Takeaways
- What it is: Open-source multi-agent AI framework from HKUDS that converts plain-English prompts into backtested trading strategies across global markets. GitHub
- Live trading added: 10 broker connectors (IBKR, Robinhood, Alpaca, OKX, Binance, Futu, Tiger, Longbridge, Dhan, Shoonya) with mandate-gating and kill-switch safety guards.
- Scale: 74 finance skills, 29 swarm team presets, 7 backtest engines, 22 MCP tools, 13 LLM providers including free local Ollama.
- Shadow Account: Upload broker export, agent reverse-engineers your trading rules and backtests the "perfect you" to quantify behavioral alpha leakage.
- Free to use: MIT license, pip-installable; market data for HK/US/crypto/A-shares available with zero API keys via yfinance, OKX, and AKShare.
- Caveats: Live trading is experimental; LLM lookahead bias affects backtests; small models fabricate results instead of running actual tools.
Vibe-Trading, an open-source project from the Hong Kong University Data Science Laboratory, has quietly become one of the fastest-growing repositories in the AI-finance space. The pitch is simple: describe a trading idea in plain English, and a coordinated swarm of AI agents writes the strategy code, backtests it across global markets, and can now route live orders to your broker. It crossed 11,000 GitHub stars in under two months, with nearly 1,850 new stars in a single week.
Vibe-Trading is an AI-driven multi-agent financial workspace open-sourced by the Hong Kong University Data Science Laboratory. It transforms natural language instructions into executable trading strategies, research insights, and portfolio analytics, covering global markets including A-shares, Hong Kong/US stocks, cryptocurrencies, futures, and forex.
From prompt to backtest in one command
The core loop is a ReAct agent (short for Reason + Act: a pattern where the model alternates between thinking through a problem and calling external tools) that routes your natural-language request through a library of 74 specialist finance skills. Ask it to backtest a momentum strategy on the S&P 500, and it will select the right skill, pull data from the appropriate source, generate the signal engine code, run it through the backtest engine, and return a full performance report with Sharpe ratio, max drawdown, and benchmark comparison.
The system includes 74 professional financial skills, 29 pre-configured DAG-orchestrated expert agent teams, and 7 major backtesting engines including cross-market portfolio backtesting. It supports one-click export to TradingView, Tongdaxin/THS, and MetaTrader 5.
A quick example of what this looks like in practice:
pip install vibe-trading-ai
vibe-trading init # interactive .env setup
# Run a backtest from the command line
vibe-trading run -p "Backtest a 20/50-day moving average crossover on AAPL for the past year, show Sharpe ratio and max drawdown"
# Or kick off a multi-agent swarm debate
vibe-trading --swarm-run investment_committee '{"topic": "Is TSLA a buy at current levels?"}'The swarm is the product
The most distinctive feature is the Swarm system: pre-built DAG (directed acyclic graph) workflows where multiple specialized agents collaborate in sequence. A DAG here means agents are wired in a dependency graph, so a risk-review agent only runs after a bull/bear debate finishes. The result is a structured, reproducible research pipeline rather than a single LLM call.
There are 29 ready-to-use team presets out of the box. A few highlights:
investment_committee: Bull and bear analysts debate, a risk reviewer weighs in, and a portfolio manager makes the final callquant_strategy_desk: Screens a universe, runs factor research, backtests, and audits riskcrypto_trading_desk: Pulls funding rates, liquidation heatmaps, and on-chain flows, then routes to a risk managertechnical_analysis_panel: Classic TA, Ichimoku, harmonic patterns, Elliott Wave, and SMC analysts vote on a consensusmacro_rates_fx_desk: Rates, FX, and commodity researchers feed a macro portfolio manager

The Shadow Account: your biggest alpha leak
One of the more original features is the Shadow Account. Upload a broker export (from platforms like 同花顺, 东财, Futu, or a generic CSV), and the agent extracts the implicit rules behind your actual trades. It then backtests what would have happened if you had followed those rules perfectly, producing an 8-section HTML/PDF report showing exactly how much you left on the table through rule violations, early exits, and missed signals.
This turns your own trading history into a structured strategy that can be backtested, refined, and exported. It is a genuinely novel use of LLMs in the quant workflow: using language understanding not to predict markets, but to reverse-engineer and audit human decision-making.
Zero-config data, 13 LLM providers
All markets work without any API keys thanks to automatic fallback. yfinance covers HK/US equities, OKX covers crypto, and AKShare covers A-shares, US, HK, futures, and forex, all for free. The Tushare token is optional since AKShare covers A-shares as a free fallback.
Supported LLM providers include OpenRouter, OpenAI, DeepSeek, Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, Xiaomi MIMO, Z.ai, and Ollama for local inference.
The default config ships with deepseek/deepseek-v3.2 as the recommended daily driver, balancing reliable tool-calling with low cost. The README explicitly warns against using small or distilled models, as they tend to answer from training data rather than actually calling tools and running backtests.
Live trading just landed
The most significant recent development is the addition of real broker connectivity. The connector-first trading layer now supports Tiger, Longbridge, Alpaca, OKX, Binance, and Futu, alongside IBKR and Robinhood.
Robinhood Agentic Trading support is opt-in and off by default. The agent acts only inside a user-committed mandate covering symbols, order size, exposure, leverage, and daily cap, with a filesystem-level instant kill switch, preemptive flatten, mandate auto-expiry, and a full audit ledger. The broker holds funds and executes; Vibe-Trading only relays intent. This feature is explicitly marked experimental and use-at-your-own-risk.
Each connector exposes read-only account, positions, orders, quote, and history, plus paper-account order placement. Five of them (Tiger, Alpaca, OKX, Binance, Futu) also support bounded, mandate-gated order placement behind the same safety model as Robinhood.
How it is built
The backend is a Python FastAPI server with a React 19 frontend. The agent core uses a 5-layer context compression scheme to avoid losing information in long research sessions, and a persistent cross-session memory store at ~/.vibe-trading/memory/ that survives restarts. Skills are plain Markdown files with YAML frontmatter, making them easy to inspect, modify, or create from scratch. The agent can write and save new skills autonomously during a session.
The system exposes 22 MCP tools (21 of which require zero API keys), compatible with Claude Desktop, Cursor, and Windsurf, enabling seamless embedding into existing workflows. This means you can wire Vibe-Trading directly into Claude Desktop as a finance research tool without running a separate server.
What it is good at, and where to be careful
Vibe-Trading excels at the research and ideation phase of quantitative work: quickly sketching strategies, running exploratory backtests, pulling multi-market data, and generating structured research reports. The swarm presets in particular compress what would normally be hours of manual research into a single command.
There are real limitations to keep in mind, especially for production use:
- Lookahead bias in backtests: LLMs trained on internet-scale corpora inevitably encode historical financial data, making clean out-of-sample backtests difficult. This information leakage is a known issue across all LLM-based trading research.
- No transaction cost modeling by default: Backtesting environments that do not account for transaction fees, bid-ask spreads, and liquidity constraints may overestimate achievable returns, especially for strategies that rely on frequent rebalancing.
- LLM reliability on tool calls: The README explicitly warns that small or distilled models will fabricate answers rather than running actual backtests. Model choice directly determines whether the agent uses its tools or hallucinates results.
- Live trading is experimental: Broker connectors are new and explicitly marked as experimental. The mandate-gating and kill-switch infrastructure is thoughtful, but this is not production-grade execution infrastructure.
Getting started
The project is free and MIT-licensed. The only cost is your LLM API key. Installation takes about five minutes:
pip install vibe-trading-ai
vibe-trading init # sets up .env interactively
vibe-trading # launches the interactive TUI
vibe-trading serve --port 8899 # launches the web UIFor MCP integration with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"vibe-trading": {
"command": "vibe-trading-mcp"
}
}
}The roadmap includes a Research Autopilot (overnight hypothesis-to-backtest loops), an Options Lab with vol surface and Greeks dashboards, a Portfolio Studio with risk constraints and rebalancing, and an Alpha Zoo with Alpha101/Alpha158/Alpha191 factor libraries. The pace of shipping has been roughly one major feature per day since launch, which is either exciting or alarming depending on how much you value stability over velocity. Either way, it is the most complete open-source entry point into agentic quantitative research available right now.