Ship trading algorithms from your terminal

An AI agent that writes, validates, and deploys strategies. You bring the idea and the API key.

View on GitHub ->

Auto-validation · Institutional backtests · BYOK

finny
Think Strategies, Ship Alpha
v0.6.7 · AI trading agent
Describe a strategy... make execution be the UI
BuildGemini 2.5 Pro Preview·thinking.
tab agentsctrl+p commands
v 0.6.7
Supported Brokerages
Interactive Brokers
Alpaca
Binance
Questrade
Polymarket

AI trading assistant

Claude Code-style workflow for financial markets.

Finny is for traders, developers, and market builders who want to move from strategy idea to generated code, validation, and backtesting without stitching together prompts, notebooks, and scripts manually.

Build trading algorithms from natural language

Describe momentum, mean-reversion, DCA, breakout, or custom market logic and generate inspectable Python strategy code.

Backtest before you trust a strategy

Use historical data and metrics like Sharpe ratio, max drawdown, win rate, and profit factor to evaluate trading ideas.

Keep control of models, keys, and execution

Bring your own AI provider keys, review generated code, and connect broker workflows deliberately instead of using a black box.

How Finny Works

Describe what you want in plain English. Finny researches the market, generates an inspectable Python strategy, and versions every iteration — all from your terminal.

3 Agent Modes

Build, Research, or Chat — press Tab to switch. Build generates strategies, Research analyzes the market first, Chat just answers questions.

Specialized Subagents

A focused subagent for every task, each with its own context and tool budget — a data extractor for OHLCV and regime classification, a news researcher for headlines via web search and Discord, and scheduled watchers that monitor deployed strategies.

Multi-Broker Support

Alpaca, Binance, and IBKR are live today for paper or live trading. The picker auto-switches brokers when your strategy's asset class changes.

Algo Workspaces

Every algorithm gets its own versioned directory — a mission card, strategy version history, append-only logs, and per-algo data. Roll back or compare iterations.

Portfolio Builder

A hidden robo-advisor mode. Answer seven inputs and Finny produces a full allocation plan — click the Finny logo in the TUI to unlock it.

BYOK

Bring your own API keys. Works with Claude, OpenAI, Gemini, or local models. Your keys, your choice.

Validation + Backtesting

The anti-hallucination layer

Any model can write trading code that looks brilliant and is secretly broken — lookahead bias, unsafe calls, overfit parameters. Finny refuses to trust its own output. Every strategy is validated, then has to survive an institutional backtest with a walk-forward overfit gate before you act on it.

Validator

Generated code is guilty until proven. Every strategy is statically checked before it's allowed to run.

SyntaxWon't execute broken or unparseable code
ImportsBlocks network, filesystem, and OS access
Dangerous callsFlags eval, exec, and unsafe execution
Lookahead biasCatches decisions made on the current bar's high/low/close
Next-bar fillEnforces realistic fill timing, not same-bar magic
Shape-C contractMust implement on_bar with the injected broker

Backtester

engine_v2 is institutional-grade. A valid strategy still has to survive the numbers.

60+ metricsSharpe, Sortino, Calmar, max drawdown, profit factor
Walk-forwardIS/OOS split returns an OVERFIT verdict
Monte Carlop5 / p50 / p95 on equity, drawdown, and Sharpe
Parameter sweepGrid search across up to 27 combinations
Regime breakdownPerformance across low / mid / high volatility
Full trade logEntry/exit, PnL, R-multiple, MAE/MFE per trade

Start Building Trading Algorithms in Seconds

Install Finny, describe your strategy, and let the AI trading assistant generate a backtestable workflow. Crypto and stocks supported out of the box.

Run finny in your terminal after installation to launch the TUI.

Try: "Follow Trump's news feed and build a bot that trades on his announcements."