Open-source AI trading bots (2026)

7 self-hosted bots you can read, modify and connect to your own AI agent. License and activity checked on GitHub 2026-11-30.

Updated · every number, price and plan checked against its source · how we check

As of Dec 1, 2026, the 7 open-source trading bots here have between 2,264 and 57,427 GitHub stars, led by Freqtrade, and all 7 had a commit in the last 30 days. One of them, Vibe-Trading, has published security advisories; stars measure attention, not results or safety.

Strategy Lab, Dec 1, 2026: 24 of the 155 bots that have traded are up after 24 days live. The typical bot is down 13.1%, while the coins they trade fell 20.0% over the same days. Paper money. See the board

Get the weekly AI trading bot stats. Which bots and agents made money, which lost it, and new incidents, from public data. One email a week.

Check your own setup: bot, exchange, wallet

Trade with a bot

Who it's for: Technical traders who want to self-host, keep API keys on their own machine and customise strategies.

Every fact sourced · last checked 2026-11-30 · how we verify

⚠ Risk note. No trading bot, AI or not, can guarantee returns. Backtests and "AI robot" track records are hypothetical and often overfit; grid and DCA bots can lose heavily in trending or crashing markets; leverage can liquidate an account. Use paper or demo mode first, give exchange API keys trade-only permission (never withdrawals), cap position sizes, and treat any product promising fixed daily or guaranteed profits as a likely scam. Nothing here is financial advice.
Tip
Letting an AI agent run your bot or place orders?Put hard limits in front of it: per-order and daily caps, a symbol allow list, approval from your phone and a kill switch. TAS Guard is our free, open-source proxy for broker and exchange MCP servers, including CCXT for 100+ crypto exchanges. It doesn't affect any score on this page.
BotLanguageLicenseBest forAI / agent hooksRuns with a local modelRepo
60FreqtradeSafety 60%
PythonGPL-3.0Crypto strategy bots, spot and futuresFreqAI (ML, reinforcement learning); REST API, TelegramYes, its own models: FreqAI trains LightGBM, XGBoost and other machine-learning models where the bot runs. No LLM. docsGitHub
60HummingbotSafety 60%
Python (DEX gateway: TypeScript)Apache-2.0Market making, arbitrage, 50+ CEX/DEX connectorsCondor AI harness; agentic strategiesUnknown: its docs don't say. LLM decisions go through Condor, a separate repo. docsGitHub
60OctoBotSafety 60%
PythonGPL-3.0UI-driven DCA, grid, TradingView and AI botsChatGPT/AI strategy modesYes: any model on your own Ollama server, or an OpenAI model. docsGitHub
53JesseSafety 53% (partial)
Python (indicators in Rust)MITPython research and backtesting with live tradingBuilt-in MCP server for Claude, Cursor and other agentsYes, its own models: scikit-learn models trained from your backtests. No LLM. docsGitHub
60SuperalgosSafety 60%
JavaScript (Node.js)Apache-2.0Visual bot design plus a social signals networkVisual scripting; signals networkPartly: a TensorFlow integration its README calls partial and incomplete. docsGitHub
53LumiBotSafety 53% (partial)
PythonGPL-3.0Same Python strategy for backtest, paper and live: stocks, options, futures, forex, crypto and prediction markets. 2,254 GitHub stars on Nov 25, 2026.Built-in AI agents (allow_trading=False on research agents; one agent can submit orders). Free skills for Claude Code, Codex and Cursor.Unknown: the README lists OpenAI, Anthropic, Google Gemini "and more". docsGitHub · Skills
62Vibe-TradingSafety 62% (partial)
PythonMITLLM trading agent for stocks, crypto, futures and forex: backtest, paper and bounded live ordersCLI, Web UI and an MCP server; live orders run inside a mandate you commit, with a kill switchYes: Ollama, with no API key, or any OpenAI-compatible endpoint. docsGitHub

Language and local-model support from each repo's own README and docs, read Nov 22, 2026; "Unknown" where they don't say. A local model runs where the bot runs: a local LLM (for example through Ollama) or the bot's own machine-learning models, with no cloud AI service.

To run one you need a server and an exchange or broker account. VPS for trading bots · Crypto exchanges for trading bots

Exchanges these bots' own docs list as supported, with our partner link: Aster Safety 58% (LumiBot) · Bitget Safety 85% (Freqtrade, Hummingbot, LumiBot, OctoBot) · Bybit Safety 85% (Freqtrade, Hummingbot, Jesse, LumiBot) · Lighter Safety 63% (Hummingbot, Jesse, LumiBot) · OKX Safety 85% (Freqtrade, Hummingbot, LumiBot, OctoBot, Vibe-Trading) Affiliate links where available · disclosure

LumiBot is Lumiwealth's Python framework (docs, repo, GPL-3.0 on the default branch). The broker list names Alpaca, Interactive Brokers, Tradier, Charles Schwab, Tradovate, TopstepX via ProjectX, Bitunix, Kalshi, Polymarket, MetaMask (beta) and a CCXT crypto broker (read Nov 25, 2026). Backtest, paper, or live says the strategy class can stay the same, but the code that starts it must pick a backtest or a broker run. We did not find a per-order confirmation step, a withdrawal block, or API key scoping in those docs, so those safety inputs stay missing.

GitHub stats: the 15 most-starred repos we track

Trading bots, agent frameworks, data and backtesting libraries, ranked by stars. Stars, last commit, latest release, security advisories the maintainers published and the OpenSSF Scorecard, from GitHub's API, as of Dec 1, 2026. Stars measure attention, not safety or results. All 46 repos we track: open-source repo health.

Bot and repoStarsLast commitLatest releaseAdvisoriesScorecard
TradingAgents
agent framework · TauricResearch/TradingAgents
124,239Nov 25, 2026v1.0.1
Nov 25, 2026
0–
OpenBB
market data · openbq-org/OpenBB
75,956Nov 29, 2026ODP
Sep 30, 2026
0–
Freqtradeon this page
trading bot · freqtrade/freqtrade
57,427Nov 30, 20262026.11
Nov 30, 2026
07.4/10
LlamaIndex
agent framework · run-llama/llama_index
53,087Dec 1, 2026v0.14.26
Nov 13, 2026
0–
LangGraph5 high/critical advisories
agent framework · langchain-ai/langgraph
45,632Nov 30, 2026cli==0.4.44
Nov 25, 2026
13–
CCXT MCP Server
exchange connector · ccxt/ccxt
45,050Nov 30, 2026v4.5.95
Nov 30, 2026
04.9/10
Vibe-Trading3 high/critical advisorieson this page
trading bot · HKUDS/Vibe-Trading
39,397Dec 1, 2026v0.1.19
Nov 5, 2026
3–
NautilusTrader
backtesting · nautechsystems/nautilus_trader
31,956Dec 1, 2026v1.231.0
Aug 2, 2026
08.7/10
Mastra1 high/critical advisories
agent framework · mastra-ai/mastra
29,929Dec 1, 2026@mastra/core@1.86.0
Nov 25, 2026
2–
yfinance
market data · ranaroussi/yfinance
26,054Nov 30, 20261.8.0
Nov 3, 2026
05.6/10
QuantConnect / LEAN
backtesting · QuantConnect/Lean
22,807Nov 30, 2026v2.4.0.1
Aug 8, 2017
04.2/10
Hummingboton this page
trading bot · hummingbot/hummingbot
21,450Nov 30, 2026v2.18.0
Nov 18, 2026
0–
Backtesting.py
backtesting · kernc/backtesting.py
9,327Aug 5, 2026none0–
Jesseon this page
trading bot · jesse-ai/jesse
8,854Nov 30, 2026none03.8/10
OctoBoton this page
trading bot · Drakkar-Software/OctoBot
7,003Nov 30, 20263.0.0-beta3
Oct 8, 2026
07.4/10

Also on this page, outside the top 15: Superalgos (5,830 stars), LumiBot (2,264 stars).

Running an open-source bot with an AI agent

  1. Start in dry-run or paper mode (Freqtrade dry_run: true, OctoBot virtual money, Hummingbot paper connectors, LumiBot lumibot run --paper or Alpaca PAPER: True).
  2. Create exchange API keys with trading only, no withdrawals, and IP-whitelist your server.
  3. Let the agent propose strategy changes and backtest them; keep a human approval step before anything goes live.
  4. Put hard limits (max position, daily loss stop) in the bot config, not in the prompt.

Want a backtester instead of a bot? See backtesting platforms like NautilusTrader and QuantConnect LEAN.

Freqtrade

Open-source botsofficial
60
Pricing
free, open source
Best for
Open-source bots · crypto spot, crypto futures
Money access
dry-run (paper) and live, self-hosted
Safety 60%✓ Verified 2026-11-25Details →

Hummingbot

Open-source botsofficial
60
Pricing
free, self-hosted
Best for
Open-source bots · crypto spot, crypto perpetuals, DEX
Money access
live (self-hosted)
Safety 60%✓ Verified 2026-11-25Details →

OctoBot

Open-source botsofficial
60
Pricing
self-hosted open source is free
Best for
Open-source bots · crypto
Money access
live and paper (virtual money)
Safety 60%✓ Verified 2026-11-25Details →

Jesse

Open-source botsofficial
53
Pricing
free tier runs on testnet exchanges only (no paper trading)
Best for
Open-source bots · crypto, stocks, commodities
Money access
backtesting and live (self-hosted)
Safety 53% (partial)✓ Verified 2026-11-25Details →

Superalgos

Open-source botsofficial
60
Pricing
free, self-hosted
Best for
Open-source bots · crypto
Money access
backtest, paper and live (self-hosted)
Safety 60%✓ Verified 2026-11-25Details →

LumiBot

Open-source botsofficial
53
Pricing
free, open source (GPL-3.0). You pay broker commissions, any market-data plan, and AI…
Best for
Open-source bots · stocks, ETFs, options
Money access
backtest, paper and live (self-hosted)
Safety 53% (partial)✓ Verified 2026-11-25Details →

Vibe-Trading

Open-source botsofficial
62
Pricing
free, open source (MIT)
Best for
Open-source bots · stocks (US, HK, China A-shares, UK, Canada, India, Korea, Brazil and more), crypto, futures
Money access
backtest, paper and live (self-hosted). v0.1.17 (Oct 21, 2026) adds daily paper trading…
Safety 62% (partial)✓ Verified 2026-11-25Details →

Which open-source strategy to run? We run 191 open-source strategies, grid bots and DCA bots with $1,000 of paper money each on live prices, and publish what each one is worth every day, next to just holding the coins: Strategy Lab.

FAQ

Which open-source trading bot is best?

Freqtrade is the most popular (57,241 GitHub stars on Nov 25, 2026) for crypto strategy bots; Hummingbot for market making and DEX/CEX connectors; Jesse for clean Python research with a built-in MCP server; OctoBot if you want a UI and an optional hosted cloud. LumiBot is the one to look at when the same Python strategy should backtest, then paper or live trade stocks, options, futures, forex, crypto or prediction markets (2,254 GitHub stars on Nov 25, 2026).

Are open-source trading bots safe?

The code is auditable, and your keys stay on your machine, but you are responsible for hosting, updates and risk limits. Run dry-run/paper mode first and use trade-only API keys.

Can I connect an AI agent to an open-source bot?

Yes. Jesse ships a built-in MCP server, Hummingbot has the Condor AI harness, and Freqtrade exposes a REST API an agent can call. LumiBot runs AI agents inside the strategy: research agents can be blocked from orders with allow_trading=False, and one agent with allow_trading=True submits orders. It also publishes free skills for Claude Code, Codex and Cursor.

Related

Tools bots run on

All bot platforms →

Bot platforms and hosting from the directory that score 50% or more on our Safety score. These are affiliate links: we may earn a commission at no cost to you, and it never changes a score, a rank or what we list.

Bitsgap Safety 50%

No-code grid, DCA and COMBO bots on 17 exchanges, connected by API key.

Basic $23/mo annual ($29 monthly), Advanced $55 ($69), Pro $119 ($149)

Visit Bitsgap → Affiliate link · disclosure

TradersPost Safety 72%

Turns TradingView, TrendSpider or webhook alerts into orders at your broker or exchange.

Free with 7-day trial (manual live, auto paper)

Visit TradersPost → Affiliate link · disclosure

Cryptohopper Safety 50%

Cloud crypto bots with a strategy and signal marketplace.

Explorer $29/mo ($24.16 annual), Adventurer $69/mo, Hero $129/mo

Visit Cryptohopper → Affiliate link · disclosure

WunderTrading Safety 50%

Signal, DCA and grid bots on 18+ exchanges, connected by API keys with withdrawals off.

lifetime Free plan

Visit WunderTrading → Affiliate link · disclosure

More in Trade with a bot

Other paths: Build an AI agent · Markets & infrastructure · Learn · Search all tools

Get the weekly AI trading bot stats

Who won, who lost and who got drained: verified results for AI agents, vaults and apps, new incidents and claims we checked. One email a week, unsubscribe anytime.

No spam. Unsubscribe anytime. Privacy

Disclosure: some links on this page are affiliate links; we may earn a commission at no cost to you. It never affects rankings or facts. Read our disclosure

Before you pick one, see the AI trading bot leaderboard: returns and drawdowns we compute from public venue data, not screenshots, with a 30% drawdown gate. Industry numbers are in the AI trading bot statistics. Run one yourself? Get your agent verified.