Skip to main content

InvestOrch Agent

简体中文

InvestOrch Agent is a local-first, human-in-the-loop investment orchestration agent for an individual investor. Its long-term goal is to support the full path from research, strategy development, and backtesting to portfolio decisions, trading, position monitoring, and review.

Features

  • Web and Textual TUI clients, plus a diagnostic plain console.
  • Multi-agent task delegation and parallel research, with subagent progress, conversation and results accessible from Web.
  • API-key or ChatGPT model connections, with model and reasoning-effort choices for each conversation.
  • Persistent conversations, archive/restore and history forks, with context compaction for long tasks.
  • Workspace file editing, image conversations, command execution and task planning.
  • RQAlpha daily stock backtesting. CNEquity integration is retained; release packages do not install CNEquity.
  • Portfolio records for confirmed trades, cash flows, holdings and cash, with an auditable Ledger.
  • Reusable Skills and external MCP integrations.
  • Model usage, failure diagnostics, local backup and recovery.

Broker/account mirroring, a QMT gateway, live trading and a unified investment data layer remain future work. See the Product Roadmap.

Compatibility

The core supports macOS and Linux. Agent shell-command execution supports macOS only. Existing installations should follow Upgrade before changing versions.

Conversations, configuration and generated files are stored locally. Configured model providers and MCP services receive the content needed for their calls. Web listens on loopback only.

Requirements

  • Python 3.12–3.14 (>=3.12,<3.15)
  • uv
  • A Responses-compatible API-key connection, or an eligible ChatGPT account authorizing plan usage

The installation commands below select Python 3.12.

Installation

PyPI

Install InvestOrch Agent as a uv-managed tool:

uv tool install --python 3.12 investorch
investorch web

The installed command is investorch. For an existing installation, follow the backup and preflight steps before replacing it. The guide covers manual conversion for legacy [models.<role>] configuration. Upgrade

Source checkout

Clone the default branch and install its locked dependencies.

git clone https://github.com/huangyicong0769/investorch-agent.git
cd investorch-agent
uv sync --locked --python 3.12

The examples below use uv run --locked investorch. For a tool installation, omit uv run --locked and start each command with investorch.

Release wheel

Download the wheel and SHA256SUMS into the same directory from the latest GitHub release.

Replace X.Y.Z with the version in the downloaded filename and run the checksum command for your platform.

wheel=./investorch-X.Y.Z-py3-none-any.whl

# macOS
awk -v wheel="$wheel" '$2 == wheel' SHA256SUMS | shasum -a 256 -c -
# Linux
awk -v wheel="$wheel" '$2 == wheel' SHA256SUMS | sha256sum -c -

Install the wheel after verification succeeds.

uv tool install --python 3.12 "$wheel"

A wheel includes the production Web bundle and needs no Node.js runtime. To build a wheel from source, use uv build --no-sources; rebuild the Web bundle first when changing frontend code.

First run

Start Web:

uv run --locked investorch web

Open http://127.0.0.1:1334 and complete Setup. Add an API-key connection or choose Continue with ChatGPT, then select the initial Agent models. ChatGPT-only setups need no API key. You can test the connection before opening Chats; later changes are available in Settings.

After setup, start the TUI or diagnostic plain console:

uv run --locked investorch
uv run --locked investorch --plain

Frontend development

Use the Node.js version pinned in frontend/.node-version for frontend development. Run the Python Web server, then start Vite in another terminal:

cd frontend
npm ci
npm run dev

Before packaging a frontend change:

npm run typecheck
npm run lint
npm run build

npm run build replaces the committed production bundle in src/investorch/web/static. Node.js is not required to run an already built wheel.

Verification and packaging

uv run --locked ruff format --check .
uv run --locked ruff check .
uv run --locked pytest
uv build --no-sources

Third-party foundations

InvestOrch Agent is built on these projects:

InvestOrch Agent's own code and documentation are licensed under Apache-2.0. Third-party components retain their own licenses. In particular, RQAlpha and its RQRisk dependency use project-specific terms for their defined non-commercial and commercial uses; InvestOrch Agent's license does not override those terms. See Third-party notices for details and the bundled Web client license inventory.

Human-AI development collaboration

InvestOrch Agent is a human-led personal research project developed with AI assistance. A solo developer has limited time, knowledge, and engineering capacity, so AI helps extend the work that can be done in research, design, implementation, and validation. The owner remains deeply involved in product design, investment-domain modeling, architecture, safety boundaries, and key code.

  • The owner defines the product direction, makes investment-domain and architecture decisions, writes key code, and performs final review and acceptance.
  • AI assists with codebase investigation, design discussion, implementation, testing, and documentation.
  • Unclear requirements are discussed before implementation, and accepted changes remain subject to human review.

Documentation

Investment disclaimer

InvestOrch Agent is a personal research and software project. It does not provide investment, legal, tax, or accounting advice, and it does not recommend or solicit any security or transaction.

Market data, third-party data, model output, calculations, and backtests may be inaccurate, incomplete, delayed, or affected by assumptions and hindsight. Historical and backtested performance does not indicate future results.

Independently verify data and outputs before acting. You are responsible for investment decisions, credentials, configuration, regulatory compliance, and any resulting gains or losses. Test with non-production accounts and environments before connecting real capital.

Metadata

Release files for investorch 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for investorch 0.3.3
File Size Uploaded Provenance Actions
investorch-0.3.3.tar.gz 618.3 kB With provenance Details for investorch-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for investorch 0.3.3
File Interpreter ABI Platform Actions
investorch-0.3.3-py3-none-any.whl Python 3 none any Details for investorch-0.3.3-py3-none-any.whl

Total release size: 1.3 MB

Release files / investorch-0.3.3.tar.gz

Download URL investorch-0.3.3.tar.gz
Size 618.3 kB
Tags Source
SHA-256 checksum
How to use checksums
10dba4872e8a424ebcc5e13e31ff54b4d245854f5e33e6755ea88d47b7a64ef6
BLAKE2b-256 checksum
How to use checksums
1d6a1d9de76b1245c97a2ed3b992766041f8565918e2e4474bf37fd097f0fee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / investorch-0.3.3-py3-none-any.whl

Download URL investorch-0.3.3-py3-none-any.whl
Size 685.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ba60eb3879f2aeb13dab97591e32abfd0d2607be7f4e67f41bf7ad201426365
BLAKE2b-256 checksum
How to use checksums
a99366f1052a1025e94556426b693bef0aba8e8ae9d80f0253ff9577b2e50d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for investorch 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for investorch-0.3.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page