← 返回 Skills 市场
leosaucedo

Robinhood Agentic

作者 LeoSaucedo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
46
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install robinhood-agentic
功能描述
Connect to Robinhood Agentic Trading via MCP — view portfolio, analyze positions, place trades, and execute automated strategies through Robinhood's official...
使用说明 (SKILL.md)

Robinhood Agentic Trading

Connect to Robinhood Agentic Trading via MCP. This skill lets OpenClaw access your Robinhood Agentic account — view portfolio, analyze positions, place trades, and execute automated strategies.

Setup

The MCP client (rh-client.mjs) handles OAuth 2.1 PKCE authentication to https://agent.robinhood.com/mcp/trading and manages token storage/refresh automatically.

Prerequisites

  1. Robinhood Agentic access (still rolling out — you'll get an email)
  2. A dedicated Agentic account (created during OAuth flow)
  3. Node.js ≥ 18

Install Dependencies

cd robinhood-agentic
pnpm install

First-time Auth

node rh-client.mjs auth

The script will:

  1. Discover Robinhood's OAuth endpoints
  2. Generate a PKCE challenge
  3. Print an authorization URL → Open this in a desktop browser (mobile redirects to the Robinhood app which doesn't support the Agentic flow)
  4. Log into Robinhood, authorize the agent
  5. You'll be redirected to http://localhost:1455/callback?code=XXXX...
  6. Copy the full redirect URL and paste it back into the terminal
  7. Tokens are stored in .rh-tokens.json (gitignored, mode 0600)

Usage

All commands output to stdout. Errors and status messages go to stderr.

Check auth status

node rh-client.mjs status

Returns a JSON object with authenticated, expired, expiresAt, hasRefreshToken, and savedAt.

List available MCP tools

node rh-client.mjs list-tools

Returns a JSON array of tool definitions with names, descriptions, and input schemas.

Call a tool

node rh-client.mjs call \x3Ctool_name> '\x3Cjson_args>'

# Or with stdin for complex args:
echo '{"symbol": "AAPL"}' | node rh-client.mjs call get_equity_quotes -

Output depends on the MCP tool response — may be plain text or JSON. Error messages go to stderr.

Refresh token (auto)

Token refresh happens automatically when the access token is within 5 minutes of expiry (only if a refresh token is available). No manual intervention needed unless the refresh token itself expires.

What OpenClaw Can Do

After auth, OpenClaw can call any tool Robinhood exposes through the MCP server. Based on official docs, the available tools are:

Read-only tools (portfolio, positions, quotes, etc.) work on all your Robinhood accounts. Trading tools (place/cancel orders) are restricted to the dedicated Agentic account — fund it separately.

Account & Portfolio

Tool Description
get_accounts View all Robinhood accounts
get_portfolio Portfolio snapshot — total value, asset class breakdown, buying power
get_equity_positions Open equity positions with quantity and cost basis

Market Data

Tool Description
get_equity_quotes Real-time quotes + prior close for up to 20 symbols
search Find ticker by company name
get_equity_tradability Check if a symbol can be traded (including fractional)

Orders

Tool Description
review_equity_order Simulate an order and get pre-trade warnings
place_equity_order Place an equity order
cancel_equity_order Cancel an open equity order
get_equity_orders View equity order history

Use list-tools after auth to discover the exact API surface — Robinhood is actively adding more tools.

For the latest tool list, see Robinhood's official docs.

Security Notes

  • Separate account: The Agentic account is separate from your main Robinhood account — fund it with what you're comfortable with the agent managing
  • Tokens stored locally: OAuth tokens in .rh-tokens.json with restrictive 0600 permissions (gitignored, never committed)
  • You're in control: Robinhood shows trade previews, sends push notifications, and supports instant shutdown
  • Each trade reviewed: By default, the agent shows what it's about to do before placing orders unless you explicitly enable auto-approval
安全使用建议
Install only if you are comfortable giving an agent access to Robinhood Agentic Trading. Use a separately funded Agentic account, keep balances and spending caps low, avoid enabling auto-approval unless you fully trust the workflow, and protect or periodically remove the local .rh-tokens.json token file.
能力标签
cryptorequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose matches the artifact: it connects to Robinhood Agentic Trading, reads portfolio/account data, and can place or cancel trades. The concern is the high-impact financial authority, including a generic MCP tool caller that can invoke any tool Robinhood exposes rather than a locally constrained allowlist.
Instruction Scope
The documentation discloses portfolio access, trading, automated strategies, token refresh, and local token storage. However, the client itself does not enforce read-only mode, per-trade confirmation, order-size limits, or local approval checks before calling trading tools.
Install Mechanism
The package has a simple Node.js entrypoint and npm scripts for auth, status, listing tools, and calling tools. No install-time lifecycle scripts or hidden execution paths were found in package metadata.
Credentials
Network use is purpose-aligned with Robinhood's MCP/OAuth endpoints, and local file access is limited mainly to token storage. The requested environment is still sensitive because it involves brokerage credentials, portfolio data, and trading actions.
Persistence & Privilege
OAuth tokens, including refresh tokens when issued, are persisted locally in .rh-tokens.json with mode 0600 and can be relocated with RH_TOKEN_FILE. This is disclosed and proportionate, but it creates durable brokerage access on the local machine.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install robinhood-agentic
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /robinhood-agentic 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Robinhood Agentic Trading skill initial release. - Connects OpenClaw to Robinhood Agentic Trading via MCP for automated portfolio management and trading. - Supports OAuth 2.1 PKCE authentication with secure local token storage. - Provides commands to view portfolio, analyze positions, place/cancel trades, and access real-time quotes. - Includes automatic token refresh and clear separation between read-only and trading tools. - Comprehensive setup, usage instructions, and security best practices documented.
元数据
Slug robinhood-agentic
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Robinhood Agentic 是什么?

Connect to Robinhood Agentic Trading via MCP — view portfolio, analyze positions, place trades, and execute automated strategies through Robinhood's official... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 46 次。

如何安装 Robinhood Agentic?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install robinhood-agentic」即可一键安装,无需额外配置。

Robinhood Agentic 是免费的吗?

是的,Robinhood Agentic 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Robinhood Agentic 支持哪些平台?

Robinhood Agentic 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Robinhood Agentic?

由 LeoSaucedo(@leosaucedo)开发并维护,当前版本 v1.0.0。

💬 留言讨论