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, Hermes, OpenClaw, 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)
Tools for portfolio read/write, live prices, the decision ledger, and the committee — over stdio (or openinvest-mcp --http for a remote streamable-HTTP server, BETA):
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 an agent plugin (Claude Code / Codex / Hermes)
Skills (committee orchestration protocol) + MCP server, bundled:
# Claude Code
/plugin marketplace add longsizhuo/openInvest
/plugin install invest@openinvest
# Codex
codex plugin marketplace add longsizhuo/openInvest
codex plugin add invest@openinvest
# Hermes Agent (official plugin catalog)
hermes plugins install openinvest --enable
# older Hermes without the catalog: hermes plugins install longsizhuo/openInvest/plugin --enable
What it does
- Investment committee — 4 LLM roles debate any
yfinancesymbol (equities, ETFs, crypto, commodities, any currency). Two execution paths: Coordinator (your agent plays the roles — no API key) or Direct (backend LLM, needsDEEPSEEK_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
Metadata
Release files for openinvest 0.44.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openinvest-0.44.0.tar.gz | 514.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openinvest-0.44.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / openinvest-0.44.0.tar.gz
| Download URL | openinvest-0.44.0.tar.gz |
|---|---|
| Size | 514.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c309983aa96cc60dac8c47996c18260146f69bc514686696dd162b3fc7540276
|
|
BLAKE2b-256 checksum How to use checksums |
d714d5d1f4392f9bc30d9b8149611c8483debd8f3ecfd95d8c4f9b2c11e485b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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":true}
|
Release files / openinvest-0.44.0-py3-none-any.whl
| Download URL | openinvest-0.44.0-py3-none-any.whl |
|---|---|
| Size | 640.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5948c68e6f780abb13adbfeea2210c9a918fce384398aa1e10479cfe42f1ace
|
|
BLAKE2b-256 checksum How to use checksums |
504edcb16c16ef30b184b15f3989e21d04fa41461d0d2f999ce93423283788fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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":true}
|