
**Everything an options trader keeps ten browser tabs open for, in one terminal.**
Live positions & Greeks · P/L and risk · exit discipline · paper trading with option and stock legs · a four-source news desk · stock picker · earnings & SEC filings · an honest trade journal. Connect tastytrade, Alpaca or Public, or upload a CSV from any broker. It runs entirely on your own computer, in 中文 / 双语 / English.
[🌐 Website](https://jackson-cmd.github.io/zeus-options-terminal/) · [中文说明 → README_zh.md](README_zh.md) · [🚀 Quick start](#-quick-start) · [What's new](#-whats-new) · [All features](docs/FEATURES.md) · [User manual](docs/USER_GUIDE.md) · [Contributing](#-contributing)
[](https://github.com/jackson-cmd/zeus-options-terminal/actions/workflows/ci.yml) [](https://github.com/jackson-cmd/zeus-options-terminal/releases) [](https://pypi.org/project/zeus-options-terminal/) [](https://doi.org/10.5281/zenodo.24205410)    
The trades in the tour are made up; quotes, news and charts are real data from the day it was recorded.
## 🚀 Quick start
```bash
git clone https://github.com/jackson-cmd/zeus-options-terminal
cd zeus-options-terminal
./start.sh # macOS / Linux (Windows: double-click start.bat)
```
The first run installs everything into a local virtual environment (Python 3.10+) and opens **http://localhost:8765**. Then:
1. Press **Load the sample** to try every page with a sample portfolio priced from today's quotes, or
2. open **⚙ Settings → Broker & data** and connect tastytrade, Alpaca or Public (each has a **Test connection** button), or upload a CSV of your trades.
3. News sources, AI and e-mail alerts are optional, in the same Settings page. Nothing is edited by hand.
Port 8765 taken? Run `PORT=8790 ./start.sh`. Where each broker's keys come from: [Connect your broker](#-connect-your-broker).
### 📦 Install with pipx
One command and no clone. [pipx](https://pipx.pypa.io/) puts ZEUS in an environment of its own (Python 3.10+):
```bash
pipx install zeus-options-terminal
zeus # opens http://localhost:8765 (zeus --port 8790 for another port)
```
Settings and data stay in `~/.zeus-terminal`, so `pipx upgrade zeus-options-terminal` keeps them. `pip install zeus-options-terminal` inside a virtual environment works too. More in [manual §1.8](docs/USER_GUIDE.md#18-install-with-pipx).
### 🐳 Run with Docker
No Python needed. The image is on GitHub Packages for Intel and AMD (`amd64`) and for ARM (`arm64`, such as Apple silicon and Raspberry Pi):
```bash
docker run -d --name zeus --restart unless-stopped \
-p 127.0.0.1:8765:8765 -v zeus-data:/data \
ghcr.io/jackson-cmd/zeus-options-terminal:latest
```
Then open **http://localhost:8765**. Your settings, trades and caches stay in the `zeus-data` volume. To update, run `docker pull ghcr.io/jackson-cmd/zeus-options-terminal:latest` and `docker rm -f zeus`, then the same `docker run`; nothing is lost. Keep `127.0.0.1:` in `-p` so that only your own computer reaches the port; your phone gets in [another way](#-use-it-on-your-phone). Your time zone, AI agents, a Compose file and what the image leaves out: [manual §1.7](docs/USER_GUIDE.md#17-run-with-docker).
### 📱 Use it on your phone
ZEUS keeps running on your computer, and your phone opens it from anywhere, at home or on mobile data, as an app on the home screen. The free [Tailscale](https://tailscale.com/download) connects the two privately over HTTPS, so nothing is opened to the internet:
1. Install Tailscale on the computer and on the phone, and sign in with the same account on both.
2. In ZEUS, open **⚙ Settings → Phone access**, set *Phone access* to **on**, save, and press **Turn on** to give ZEUS its https address.
3. Scan the QR code shown there with the phone's camera: ZEUS opens and logs in. Then add it to the home screen (iPhone: Share → Add to Home Screen; Android: ⋮ → Install app).
Each phone logs in once with an access code, Settings open only on the computer, and the computer has to stay on and awake (the same page has a switch that keeps it awake). The same-Wi-Fi way without Tailscale, Docker and how it stays safe: [manual §1.9](docs/USER_GUIDE.md#19-use-it-on-your-phone).
## Is it for you?
- You trade **options**: verticals, iron condors, calendars, covered calls, short puts. You want every position's P/L, Greeks and risk on one screen.
- Your broker is **tastytrade, Alpaca or Public**, or any broker that exports your fills as a CSV.
- Your positions and keys should **stay on your computer**: no cloud account, no subscription, no telemetry.
- You read market news in **English or Chinese**, or both.
- You want rules that keep you honest: take-profit lights, an alarm for spreads without a closing order, a pre-trade checkup, and a journal that does not flatter you.
 Positions — live P/L, breakeven distance, max profit / loss, chance of profit, progress |
 Strategy detail — P/L table across prices and dates, Greeks |
 Risk analysis — stress test, VaR / CVaR, beta-weighted Greeks for the whole book |
 Pre-trade checkup — spread suggestions ranked by liquidity and reward / risk |
 Picker — K-line chart wall with support / resistance and EMA 50/200 |
 AI picker — trend and dip candidates with strikes and ready-to-paste orders, works without AI too |
 Paper trades — simulated option and stock trades with total, today's and realized P/L |
 Paper trade builder — a covered call (100 shares + a short call): exact max profit and loss, P/L by price and date |
 Single-ticker page — chart, Finviz technicals and fundamentals, news |
 Digest — Finviz, WSJ and MarketWatch, plus Benzinga with a login |
 Market chart — SPY / QQQ full-history candles |
 Calendar — earnings and high-impact macro dates |
 SEC filings reader — 10-K / 10-Q / 8-K straight from EDGAR |
 Risk radar — today's news risk and a 30-day landmine calendar |
 Trade journal — win rate, profit factor, monthly targets, equity curve |
 Journal analysis — what works and what doesn't, from your own trades |
 Settings — everything is entered in the browser; saved secrets are write-only |
 AI agents (MCP) — connect Claude, GPT (Codex), Gemini or your own agent; no API key |
---
## 🔌 Connect your broker
Everything is set in the browser, in **⚙ Settings → Broker & data**: one block per broker, each with a **Test connection** button. Positions and quotes are separate choices, and anything a broker does not carry comes from the free sources. ZEUS only reads; it never places an order.
### Where to get the tastytrade credentials
my.tastytrade.com → **Manage → API Access → OAuth Applications** → create an application (keep the *client secret*) → **Manage → Create Grant** (all scopes) → copy the *refresh token*. Paste both into Settings and press **Test connection**.
### Where to get Alpaca and Public keys
**Alpaca:** sign up at alpaca.markets (free) → your **Paper Trading** account → **API Keys → Generate** → copy the key ID (starts with PK) and the secret. For a live account, generate them there (AK…) and set *Alpaca paper account* to *off*. **Public:** public.com → **Account → Settings → API** → generate a secret key. Step by step in the [manual](docs/USER_GUIDE.md#22-connect-a-broker).
---
## 🔑 What each setting unlocks
| Setting | Unlocks | Free? |
|---|---|---|
| tastytrade OAuth (client secret + refresh token) | Live positions, streaming quotes, automatic journal, buying power, working orders | free with a tastytrade account |
| Alpaca key ID + secret | Live positions from your paper or live account, fills, working orders; free IEX stock prices and indicative option quotes with Greeks | ✅ free account and data |
| Public secret key | Live positions, history, working orders, real-time quotes, option chains and Greeks | free with a Public account |
| Positions come from / Quotes come from | Pick the account source and the quote source separately; anything a broker lacks comes from the free sources | ✅ |
| Manual trades (CSV / form) | Positions, P/L, journal and analytics without any broker connection | ✅ |
| Benzinga Pro cookies | Benzinga live digest, pre-market, market events, history | Benzinga Pro subscription |
| Benzinga data API key | Real-time signals feed, scanner | from your Benzinga Pro session |
| Finviz Elite token | Finviz news through the official export (otherwise the free page) | optional |
| AI provider | AI summaries, market brief, AI picker, AI journal review, position review | your own |
| Barchart login | Barchart screener and signal lists | Barchart account |
| Equibles API key | Earnings-call transcripts with speaker names and roles; a daily IV rank for the checkup, also for tickers outside the options_vol list | optional |
| E-mail (SMTP) | Every alert also by e-mail, with a test button (macOS and Linux) | ✅ |
| AI agents (MCP) | Your own agents (Claude, GPT through Codex, Gemini…) use ZEUS as tools; on by default, paper trading by agents off | ✅ |
---
## 📄 Manual trades: the CSV
Download the template from Settings (or use [`examples/trades_template.csv`](examples/trades_template.csv)):
```csv
date,symbol,asset,side,effect,qty,price,fees,option_type,strike,expiration,multiplier,order_id,note
2026-03-02 10:15,AAPL,stock,buy,open,50,231.40,0,,,,,,long stock
2026-03-03 11:02,NVDA,option,buy,open,1,12.50,1.10,C,180,2026-04-17,100,nvda-bcs-1,bull call spread long leg
2026-03-03 11:02,NVDA,option,sell,open,1,6.20,1.10,C,190,2026-04-17,100,nvda-bcs-1,bull call spread short leg
```
- `side`: buy / sell — or broker shorthand **BTO, STO, BTC, STC**, "Buy to Open", "Sell to Close"…
- `effect`: open / close / *(blank = decided automatically)*.
- Options can also be given as one symbol: OCC (`AAPL 260618C00200000`), compact (`AAPL260618C200`) or broker text (`AAPL 06/18/2026 200.00 C`).
- Legs with the same `order_id` (or the same minute) are shown as one strategy.
- **tastytrade CSV exports** and most broker exports with date / symbol / side / quantity / price columns are recognized as is.
- Starting cash is inferred as the smallest account that could have funded your history; set your real number in Settings.
---
## 🔒 Privacy & security
- **Everything stays on your machine.** Tokens, cookies, passwords and uploaded trades live in `~/.zeus-terminal/` (permission 600), never inside the repository — a `git push` cannot leak them.
- **The code folder holds code only.** Everything the terminal writes while running — position snapshots, the trade journal and its screenshots, news archives, caches, downloads, logs — goes to `~/.zeus-terminal/runtime/`. The runtime folders inside the code are links to that place and are ignored by git.
- **Sharing safely.** Publish with `git push`, or build a zip with `tools/export_clean_zip.sh`; both contain code only. Do not drag the whole folder into a website or zip it by hand. `tools/install_git_hook.sh` adds a local pre-commit check that refuses links, data files, anything shaped like a key or token, and your own home path, login name or git identity.
- Saved secrets are **write-only** from the browser: the settings API reports *set / not set* and never sends a secret back.
- The MCP endpoint for AI agents answers only programs on this computer (in Docker they come in through `docker exec`), and no MCP tool can place a real order or read a saved key. What an agent reads goes to that agent's model provider.
- The server listens on **127.0.0.1** only by default, refuses foreign `Host` headers (DNS rebinding), only accepts cross-origin calls from localhost, and write endpoints need a header that other websites cannot send.
- **Phone access** is off until you turn it on. Then a phone, through Tailscale or your Wi-Fi, logs in once with an access code and keeps a login signed on this computer; wrong codes are rate-limited. Settings, the phone controls and MCP never open on a phone, and **Sign out every phone** or a new code ends every phone's login.
- **In Docker** the app runs as an ordinary user and cannot change its own code, your data stays in the `/data` volume, and the documented command publishes the port on 127.0.0.1 only. The localhost checks work exactly as they do without Docker.
- No telemetry. The app only talks to the services you connect plus public market data (Cboe delayed quotes, Yahoo Finance, SEC EDGAR, Finviz, Dow Jones RSS).
- Free market data is rate-limit aware: company data (sector, industry, market cap) comes from Finviz in batches of 20 tickers, stock quotes fall back to Finviz whenever Yahoo Finance throttles, and a whole option chain is one Cboe request instead of one Yahoo request per expiration.
- **Found a security problem?** Please report it privately, as [SECURITY.md](.github/SECURITY.md) explains, not in a public issue.
---
## 🏗️ Under the hood
Where things are:
```
zeus-options-terminal/
├── zeus/ all the code
│ ├── options_analyzer/ the server (optionstrat_server.py), positions, checkup, paper trade, page assets
│ ├── heatmap/ · ta_screener/ · ai_picks/ · stock_selector/ · barchart/ picker and screeners
│ ├── benzinga_digest/ · news_radar/ · market_brief/ · sec_filings/ … news, brief, events
│ ├── trade_journal/ · journal_review/ · journal_expiry_whatif/ the journal
│ ├── zeus_*.py · local_broker.py settings, brokers (Alpaca, Public), AI, news, MCP, e-mail
│ ├── Dockerfile the container image on ghcr.io (and Dockerfile.dockerignore)
│ └── defaults/ ticker lists seeded on the first start
├── docs/ user manual, feature list, screenshots, README images
├── site/ the project website (GitHub Pages)
├── tests/ offline tests: python -m pytest
├── tools/ privacy pre-commit hook, clean zip export, release notes, checks of the Docker image and the pip package
├── examples/ CSV template for manual trades
├── .github/ CI and release workflows, issue forms, CONTRIBUTING, security policy, code of conduct
├── server.json · glama.json · CITATION.cff entries for the MCP Registry, Glama and Zenodo
└── start.sh · start.command · start.bat · requirements.txt · pyproject.toml
```
How the pieces talk to each other (paths below are inside `zeus/`):
```
browser (PWA, 中文 / 双语 / English)
│ WebSocket + REST
▼
FastAPI server ── options_analyzer/optionstrat_server.py
├─ broker ........ tastytrade REST + DXLink stream │ local_broker.py (manual mode, Cboe + Yahoo)
│ │ zeus_brokers.py (Alpaca · Public, read-only)
├─ news .......... Benzinga (cookies / WS) │ zeus_news.py (Finviz · WSJ · MarketWatch)
├─ picker ........ heatmap/ · ta_screener/ · ai_picks/ · stock_selector/ · barchart/
├─ brief ......... market_brief/ · narratives/
├─ events ........ sec_filings/ · benzinga_market_events/ · trade_journal/calendar_events.py
├─ journal ....... trade_journal/ · journal_review/ · journal_expiry_whatif/
├─ discipline .... options_analyzer/checkup/ · pre_trade_checkup/ · sr_alert/
├─ paper trade ... options_analyzer/paper_trade.py · paper_trade_routes.py (simulated, never sent to a broker)
├─ AI ............ zeus_ai.py (Claude CLI · Anthropic · OpenAI-compatible)
└─ settings ...... zeus_config.py → ~/.zeus-terminal/config.json
```
Runtime data (candles, caches, digests) lives in `~/.zeus-terminal/runtime/`; folders such as `zeus/data/` inside the code are only links to it. Configuration can also come from environment variables (`ZEUS_