CPZAI in your terminal

Simons, your portfolio, your strategies and your brokers from the command line. Works against the files on your own machine.

Install

curl -fsSL https://cli.cpz-lab.com/install.sh | bash

Apple silicon and Intel. Installs a self-contained binary to ~/.cpzai/bin. No Node required, no sudo.

Run it

cpzai

That is the whole thing. On first run it asks you to sign in, opens your browser, and carries straight on into the session. The token goes into your system keychain and renews itself, so you are not asked again.

Signing in with an API key instead is an option in that same prompt. Pick it if you want Simons chat: browser sign-in covers the platform tools and the connect flow, an API key covers everything. Generate a pair under Settings, API Keys, with the simons scope.

Update

cpzai upgrade

Detects how you installed and does the right thing. The CLI also tells you on startup when a newer version is out, so you are not expected to check. Restart any running session afterwards: it loads its code at launch, so a live session keeps running the old build.

Then

cpzai -p "…"Ask one question and exit
cpzai broker statusEvery broker and whether it is healthy
cpzai connectAdd a broker, data provider or repo
cpzai connect ibkrUse Trader Workstation running on this machine
cpzai --add-dir ~/researchLet it work on another directory

In a session

/effortFast, Balanced, Thorough or Max
/modelPick a model, or leave it on the router
/envSwitch paper and live. Live asks first
/positions, /ordersHoldings, P&L and fills
/helpEverything else