Version 0.1.0 is available

Agent-led research.Code-owned execution.

OpenAlphaStack is an open-source Codex stack for A-share research. Domain Skills encode reusable methods, MCP exposes typed tools, and a deterministic Python engine owns T+1 rules, fees, risk, state, and paper execution.

  • MIT licensed
  • Local-first
  • Research and paper trading only
Four domain Skills Market, screening, stocks, intraday
openalphastack.mcp/v1read-only result
{
  "ok": true,
  "data": {
    "research_mode": "paper",
    "market_bias": "neutral"
  },
  "meta": {
    "source": "provider-or-demo",
    "as_of": "2026-07-24T10:00:00+08:00",
    "freshness": { "status": "fresh" },
    "demo": false
  }
}
Deterministic rules Model prose is never permission
4domain Skills
18local MCP tools
217Python tests
0high-severity frontend advisories

Not an AI stock oracle

Flexible research, deterministic execution

One model should not impersonate an analyst, risk engine, exchange, and auditor at the same time. OpenAlphaStack gives each layer a narrow job and makes missing, stale, or failed data visible.

Methods live in Skills

Market regimes, sector rotation, candidate screening, and stock review become reusable workflows instead of prompts trapped in chat history.

One Codex task composes Skills by default. Multi-agent orchestration is optional, not theater.

Live capabilities live in MCP

Quotes, technicals, fundamentals, news, risk calculations, and baseline backtests use typed inputs and versioned responses.

Every market result preserves source, as-of time, freshness, and synthetic-demo status.

Hard rules stay in Python

T+1 behavior, fees, position limits, idempotency, state transitions, and ledger commits are deterministic code paths.

Public modes cover research, backtesting, and paper trading. There is no live broker integration.

Four explicit layers

From research intent to inspectable evidence

The agent proposes and explains. Tools retrieve. Rules execute. The ledger preserves evidence.

Layer 01 · intent

Codex tasks

Interpret research intent, compose methods, cite evidence, and produce reviewable conclusions.

Layer 02 · methods

Domain Skills

Encode market analysis, screening, stock research, and intraday guardrails.

Layer 03 · capabilities

MCP tools

Expose market data, indicators, news, backtests, and bounded paper-plan operations.

Layer 04 · evidence

Python and SQLite

Enforce invariants, commit state atomically, and preserve append-only audit records.

Research: sources and timestamps travel with results Execution: no valid plan means observation mode Evaluation: state and ledger events remain replayable

Inspect before trusting

A working stack, not a return claim

The repository ships a reproducible synthetic demo, a typed MCP contract, a paper-only engine, a local observability dashboard, tests, release notes, and contributor entry points.

  • Versioned success and failure envelopes
  • Transactional state and append-only audit projections
  • Explicit stale-data and synthetic-demo metadata
  • A separate deployment-ready public read-only MCP surface
Read the architecture →
Boundary contractpaper only
Agent confidence   = audit metadata
Research narrative = reviewable context

Execution gates:
  ✓ validated plan schema
  ✓ deterministic risk rules
  ✓ idempotency key
  ✓ expected state version

Never exposed:
  × live broker orders
  × arbitrary shell access
  × fabricated missing data

Reach first success quickly

Run the offline path first

You do not need a market-data provider or a running paper engine to verify installation, Skill discovery, and MCP calls. Start with deterministic synthetic data, then move to live research.

  • Python 3.10 or newer
  • Synthetic data is always marked as demo data
  • Expected output and common failures are documented
Open the getting-started guide →
PowerShellbase install
git clone https://github.com/44-99/OpenAlphaStack.git
cd OpenAlphaStack
py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e .
openalphastack doctor
First Codex prompt

Use the market-analysis Skill in offline demo mode. Read the market overview and market news through OpenAlphaStack MCP, and clearly label every value as synthetic demo data.

Boundaries over slogans

No promise of profit

Backtests and paper results are research evidence. OpenAlphaStack helps you inspect assumptions, data, rules, state, and outcomes; it does not turn uncertainty into a guaranteed answer.

Live broker orders Arbitrary command execution Guaranteed returns Fabricated missing data

Frequently asked questions

Know the boundary before you begin

Does OpenAlphaStack place live orders?

No. Public modes cover research, backtesting, and paper trading. No live broker tool is exposed.

Why not launch multiple agents by default?

One Codex task can compose the domain Skills for most research. Parallel agents are reserved for explicitly independent work.

Does the public website expose local data?

No. This site is static, and the local dashboard binds to 127.0.0.1 by default. The separate public MCP surface is stateless and read-only.

Can I evaluate it without live market data?

Yes. The repository includes deterministic synthetic datasets for installation and workflow verification. They are never presented as investment data.

Start with reproducibility

Run it before you trust it

Inspect the source, complete the offline demo, and verify the boundaries. If the architecture is useful, star the repository, report a problem, or contribute a focused improvement.