Sandbox
@OpenTradeOSS/OpenTrade

Trading harness for Claude Code and Codex

OpenTrade is a macOS app that wraps Claude Code and Codex agents in a trading workflow. It connects them to Robinhood through the official MCP and adds guardrails like manual approvals, turn limits, background jobs, and per-agent accounting. It also lets agents respond to timers and other events while the app is closed.

199 stars18 forksTypeScriptUpdated 7d ago
Who it's for

Builders who want Claude Code or Codex agents to run trading strategies with approvals and monitoring.

What it delivers

You can let agents trade and react to market events without hand-holding every turn.

What it does

Real-time event monitoring

Agents can wake on schedules or other background events using scripts.

Multiple-agent orchestration

You can assign strategies and portfolio control across several agents.

Trading guardrails

Manual or automatic approvals, turn limits, and per-agent order accounting help constrain actions.

Background sessions

Agents keep working and receive notifications even when the app is closed.

How to get it

  1. 1Experimental Windows and Linux support can be found in…
    bun install                 # from repo root (bun workspaces)
    bun run --cwd app rebuild   # rebuild native modules for the Electron ABI (once)
    bun run --cwd app dev       # launch with HMR

README

OpenTrade

The open-source trading harness for Claude Code / Codex agents.

GitHub stars Latest release License Discord Follow @opentradeapp on X

OpenTrade - Open-source trading harness for Claude Code / Codex. | Product Hunt

OpenTrade app — agent sidebar, live terminal, and portfolio panel

OpenTrade is a macOS app that enables agents to trade and react to the market autonomously. Agents execute trades in your Robinhood Agentic Trading account through the official MCP. Set guardrails, monitors, and schedules so agents can trade 24/7 - all on your machine.

Features

Monitor real-time events

Agents can schedule themselves periodically or on arbitrary events via background scripts.

The Monitor tab listing an agent's active timers and event monitors, including the shell command that wakes it on a new RSS post

Orchestrate multiple agents

Delegate strategies and your portfolio to any number of agents.

The agent sidebar with nine agents, each running its own strategy, next to the selected agent's terminal

Trading guardrails

Manual/auto order approvals, background turn limits for agents, and per-agent order accounting.

A pending buy order awaiting approval, above a history of past decisions and an order that expired undecided

Background sessions

Agents continue to get notified and work in the background, even if the app is closed.

The OpenTrade menu bar tray reporting three of nine agents working, with each agent's status listed

Install

Download OpenTrade-arm64.dmg — that link always resolves to the newest release; older builds are on the Releases page. Open it and drag OpenTrade to Applications. Requires an Apple Silicon Mac. The app auto-updates from GitHub Releases.

OpenTrade supports both Claude Code and Codex agents, so please install and sign into claude and/or codex CLI. An authenticated MCP connection to Robinhood via your agent is required, see the Robinhood MCP instructions.

Experimental Windows and Linux support can be found in experimental/windows-linux-support. Courtesy of @skyguy126.

Build from source

bun install                 # from repo root (bun workspaces)
bun run --cwd app rebuild   # rebuild native modules for the Electron ABI (once)
bun run --cwd app dev       # launch with HMR

Contributing

Contributions are welcome — bug reports, fixes, and features alike. Open a pull request and we'll take a look.

Community

Come join our Discord to discuss all things OpenTrade, and follow @opentradeapp on X for release notes and updates.

Disclaimer

OpenTrade is experimental software provided as-is and without warranty of any kind. It is not financial, investment, or trading advice. The software runs autonomous agents that can place and cancel real orders against a funded brokerage account; you are solely responsible for configuring, supervising, and bearing the financial consequences of your agents. Trading involves substantial risk of loss.

OpenTrade is built by Exla Corp. It is not affiliated with, endorsed by, or sponsored by Robinhood Markets, Inc., Anthropic, or OpenAI. "Robinhood," "Claude," "Claude Code," and "Codex" are trademarks of their respective owners. You are responsible for complying with the terms of service of any broker or API you connect to.

License

Elastic License 2.0 — source-available. You may use, copy, modify, and redistribute the software, but you may not provide it to third parties as a hosted or managed service. See LICENSE and third-party attributions in NOTICE.

Files in the repo

Repository payload17 top-level entries
  • .github
  • app
  • assets
  • resources
  • templates
  • website
  • .gitignore
  • biome.jsonc
  • bun.lock
  • bunfig.toml
  • LICENSE
  • NOTICE
  • package.json
  • README.md
  • SECURITY.md
  • test-setup.ts
  • tsconfig.base.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.

42k
chaitanyagiri/
munder-difflin

A local multi-agent harness that works with your existing Claude Code, Codex subscriptions, allows you to run an office of agents

6.8k
holaboss-ai/
holaOS

Open-source agentic workspace enterprises can make their own. Connect the systems you already run — 100+ integrations, MCP, chat tools, apps, browser, local files — with shared memory. Any agent (Claude Code, Codex), any model, or BYOK. Set up in clicks, not months. Local-first: your data never leaves your machines.

11k
QwenAudio/
qwen-audio-agent

A realtime voice runtime that keeps Agents talking, working, and present. Real-time Voice Runtime for AI Agents

2.4k
AMAP-ML/
LongHorizon-Harness

The long-horizon computer-use harness. Run AI agents across desktop apps and the CLI for extended periods while preserving task state and making reliable progress on complex workflows. Features fresh-context execution, durable verified state, independent auditing, recoverable progress, and native Claude Code / Codex / OpenClaw integration.

1.5k
code-yeongyu/
lazycodex

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

3.4k