OpenTrade: Robinhood Trading Harness for Claude Code and Codex

Run recurring or event-driven trading agents from a Mac, manage order approvals, and keep each Claude Code or Codex session individually traceable.

OpenTrade is a free, open-source macOS trading app for Claude Code and Codex agents connected to Robinhood Agentic Trading. It manages the agent sessions around that connection, including schedules, event monitors, background activity, order approvals, and per-agent order tracking.

You can assign a trading task to one agent, schedule another to check the market at fixed times, or wake an agent when a custom script detects an event. OpenTrade keeps those sessions organized in one desktop app and gives each agent its own controls.

The app requires an Apple Silicon Mac. You also need Claude Code or Codex CLI access and an authenticated connection to Robinhood's Trading MCP.

Features

  • Schedule agents to run periodically or wake them from custom background scripts.
  • Run multiple Claude Code or Codex agents with their own strategies and sessions.
  • Choose manual or automatic approval for agent-submitted orders.
  • Cap unattended activity with per-agent background turn limits.
  • Track orders by the agent that initiated them.
  • Keep scheduled agents active in background sessions after the app is closed.
  • Receive macOS notifications for agent and order activity.

Use Cases

  • Check a portfolio or market condition on a recurring schedule and run the same agent instructions each time.
  • Watch an RSS feed, script output, or another event source and wake an agent when a defined condition occurs.
  • Assign different strategies to multiple agents while keeping their sessions and order histories identifiable.
  • Review agent-generated orders manually before they reach execution.
  • Run unattended sessions with a defined cap on the number of background turns.

How to Set Up OpenTrade

1. Install the macOS app

Download the current ARM64 DMG from the OpenTrade GitHub Releases page, open it, and drag OpenTrade into Applications.

2. Install and sign in to Claude Code or Codex

OpenTrade launches the CLI agent on your Mac. Install at least one AI coding agent and complete its authentication before configuring OpenTrade.

3. Connect the agent to Robinhood Trading MCP

For Claude Code, add the Trading MCP from a terminal:

claude mcp add robinhood-trading --transport http https://agent.robinhood.com/mcp/trading

Open Claude Code, enter /mcp, select robinhood-trading, and complete authentication.

For Codex CLI:

codex mcp add robinhood-trading --url https://agent.robinhood.com/mcp/trading

Enter /mcp in Codex CLI and select robinhood-trading.

4. Create the first OpenTrade agent

Create an agent in OpenTrade and define the instructions it should follow. Confirm that the selected CLI can reach Robinhood before you configure recurring activity.

Review these controls before the first unattended run:

  • order approval mode;
  • background turn limit;
  • schedules;
  • event monitors;
  • account allocation.

Schedules, Event Monitors, and Background Sessions

OpenTrade Monitor Events

Schedules handle recurring work. An agent can wake at defined intervals, run its instructions, inspect the connected account, and return to its background session.

Event monitors use custom scripts. The script watches for a condition and notifies the selected agent when that condition occurs. This can connect an agent to feeds or signals that do not follow a fixed timetable.

Background sessions keep these automated tasks active after OpenTrade is closed. A menu bar status view reports which agents are working, and macOS notifications can report order and agent events.

Background turn limits cap how many unattended turns an agent can take during a run. Use them to define a stopping point for sessions that would otherwise continue working.

Managing Multiple Trading Agents

OpenTrade Multiple Agents

OpenTrade can run several agents under different instructions from the same desktop app. Each agent has its own session, schedules, monitors, and order accounting.

This makes it possible to divide work by strategy or task. One agent can monitor a narrow set of conditions while another runs a different research or trading process.

Several agents can affect the same portfolio. OpenTrade identifies which agent initiated an order, but portfolio-level coordination remains your responsibility. Review total exposure, overlapping positions, and account allocation before several automated sessions run at the same time.

Order Approvals and Agent Guardrails

OpenTrade Order Approval

Manual approval holds an agent-submitted order for review. Automatic approval permits the configured agent to continue through the order path with less intervention.

Background turn limits control how long an unattended agent keeps working. Per-agent order accounting records which agent produced each order.

Pros

  • Turns Claude Code or Codex into persistent trading agents.
  • Manual approvals and turn limits provide useful controls for unattended activity.
  • Per-agent sessions and order accounting make multi-agent activity easier to trace.
  • Agent orchestration runs on your Mac.

Cons

  • Requires an Apple Silicon Mac.
  • Only Works on Claude Code, Codex, and Robinhood Agentic Trading.
  • Automated agents can place real orders and expose funded capital to model errors or poor instructions.

Alternatives & Related Resources

FAQs

Q: Can several OpenTrade agents use the same Robinhood account?
A: Yes. OpenTrade can manage multiple agents, and its per-agent accounting records which agent initiated each order.

Q: Does OpenTrade control what the AI agent can read from Robinhood?
A: OpenTrade does not redefine Robinhood Trading MCP permissions. An authenticated agent receives the account access granted by Robinhood, including read access to account, position, balance, transaction, order-history, watchlist, and scan data.

Q: What happens if my Mac goes to sleep while an agent is running?
A: The market connection drops. OpenTrade’s telemetry logs this as one offline event when the outage starts and one online event when the Mac wakes and reconnects, not a stream of individual errors from every missed check. An agent doesn’t trade while the Mac is asleep.

Q: Can an agent lose track of its own trading history?
A: Claude Code prunes its own conversation history after a configurable number of days. If that setting is too low for how long an agent needs to remember prior reasoning, OpenTrade’s Settings flags it and offers a one-click fix.

Q: Do I need to keep the OpenTrade window open for agents to work?
A: No. Agents continue to receive notifications and work in the background when the main OpenTrade window is closed. The menu bar tray reports agent status.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest & top AI tools sent directly to your email.

Subscribe now to explore the latest & top AI tools and resources, all in one convenient newsletter. No spam, we promise!