Skip to main content

Investment runtime built for AI agents — 4-role LLM investment committee, portfolio ledger, decision accounting, MCP server

Project description

openInvest

An investment runtime built for AI agents. Your agent knows you — openInvest knows investing.

openInvest runs a 4-role LLM investment committee (Macro Strategist, Quant Analyst, Risk Officer, CIO) that debates any asset and returns a BUY / ACCUMULATE / HOLD / TRIM / SELL verdict with a written memo — plus portfolio tracking, a decision ledger, and full decision-accounting (which advice you followed, what happened after).

It is not a chatbot. Conversation, memory, and personalization stay in your agent (Claude Code, Codex, Cursor, or any script); openInvest provides the investing capabilities behind it.

Install & run

# no install needed — uvx fetches and caches it
INVEST_HOME=~/openInvest uvx openinvest status

# or install it
pip install openinvest

INVEST_HOME is your data directory (portfolio, ledgers, .env). All state lives there — the package itself is stateless.

First-time setup

uvx openinvest init          # interactive onboarding (or `--from-stdin` for agents)
uvx openinvest doctor        # health check

As an MCP server (recommended for agents)

14 tools — portfolio read/write, live prices, decision ledger, and the committee — over stdio:

claude mcp add openinvest -e INVEST_HOME=~/openInvest -- uvx openinvest-mcp

Read tools carry readOnlyHint; money-moving tools (buy, sell, deposit, withdraw) carry destructiveHint, so MCP clients gate them behind confirmation.

As a Claude Code / Codex plugin

Skills (committee orchestration protocol) + MCP server, bundled:

/plugin marketplace add longsizhuo/openInvest
/plugin install invest@openinvest

What it does

  • Investment committee — 4 LLM roles debate any yfinance symbol (equities, ETFs, crypto, commodities, any currency). Two execution paths: Coordinator (your agent plays the roles — no API key) or Direct (backend LLM, needs DEEPSEEK_API_KEY).
  • Portfolio management — multi-currency cash + holdings with an append-only, fcntl-locked ledger. Never places real orders.
  • Decision accounting — every verdict is joined at read time with rule interventions, your executions (or refusals, with reasons), and post-hoc PnL. Ask it: "How often did I actually follow the committee?"
  • Discipline ledger — counterfactual PnL of what the safety rules blocked.

CLI

uvx openinvest status                    # portfolio + live P&L
uvx openinvest run_committee GC=F        # one-shot committee verdict
uvx openinvest decisions --days 90       # decision ledger + adoption rate
uvx openinvest record_execution 2026-07-03/GC=F --rejected --reason "too pricey"
uvx openinvest buy --symbol AAPL --units 10 --price 210 --currency USD

Disclaimer

LLM-driven decision support — not investment advice. LLMs make mistakes and get overconfident. openInvest never auto-trades; its ledger is a local SQLite record with no connection to any brokerage or payment system. Past performance does not predict future returns.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openinvest-0.17.0.tar.gz (403.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openinvest-0.17.0-py3-none-any.whl (510.5 kB view details)

Uploaded Python 3

File details

Details for the file openinvest-0.17.0.tar.gz.

File metadata

  • Download URL: openinvest-0.17.0.tar.gz
  • Upload date:
  • Size: 403.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openinvest-0.17.0.tar.gz
Algorithm Hash digest
SHA256 49bddfe58d2c769dfe25e1585f527a56ddb9d981952852613926a50b819a7ce7
MD5 a80c454afa06cfc2bd39fd2a14d58954
BLAKE2b-256 a386bd92b33334dc688079ac444fd6dc80ec896b063f9b603b08009763f5e577

See more details on using hashes here.

File details

Details for the file openinvest-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: openinvest-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 510.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openinvest-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 435dddc1c7640b540166e7b68865c6aa6eb1881f399dc148fa85a87532c3e2f4
MD5 b9c1fa2ed0895a7d92a818498ba0ee0c
BLAKE2b-256 f8dea02d80049f09942851b58835ee8d80b9078176d94a523c136a081a9b8b6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page