A maker wired Claude and Codex into an automated trading loop
Claude Code and Codex were connected to a Robinhood account for an automated stock trading setup. Claude handles morning and places trades, while Codex reviews each trade idea and looks for reasons it should be rejected. The setup uses two different model families so one model can catch risks the other may miss.
It runs three scheduled jobs: morning research and trading, a pre-close risk check that enforces stop-losses, and a weekly strategy review. Cheaper models handle routine daily work, while premium models are used only for unusual cases to control . A local LLM, Gemma 4 running in LM Studio on a laptop, watches market news nearly all day and only sends important items to the or to a phone alert.
On day one, Codex blocked a hyped trade after noticing the next trading session was a market holiday and treating it as a possible sell-the-news trap.
Key points
- Claude handles research and trade execution, while Codex tries to find flaws before trades happen.
- The system has scheduled jobs for morning trading, pre-close risk checks, and weekly strategy review.
- Routine work uses cheaper models, and premium models are saved for exceptions to reduce .
- Gemma 4 runs as a local LLM in LM Studio to filter market news before escalating it.
- Codex stopped one early trade because a market holiday made the setup look risky.