Interact with your Public.com brokerage account using the Public.com API. Able to view portfolio, get stock quotes, place trades, and get account updates. To create a Public.com account head to public.com/signup.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claw-skill-public-dot-com或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claw-skill-public-dot-com⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claw-skill-public-dot-com/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- id: public-dot-com name: public.com description: Interact with your Public.com brokerage account using the Public.com API. Able to view portfolio, get stock quotes, place trades, and get account updates. To create a Public.com account head to public.com/signup. env: ['PUBLIC_COM_SECRET', 'PUBLIC_COM_ACCOUNT_ID'] license: Apache-2.0 metadata: author: PublicDotCom source: https://github.com/PublicDotCom/claw-skill-public-dot-com category: "Finance" tags: ["investing", "stocks", "crypto", "options", "public", "finance"] version: "1.0" ---
> Disclaimer: For illustrative and informational purposes only. Not investment advice or recommendations. > > We recommend running this skill in as isolated of an instance as possible. If possible, test the integration on a new Public account as well.
This skill allows users to interact with their Public.com brokerage account.
The publicdotcom-py SDK is required. It will be auto-installed on first run, or you can install manually:
pip install publicdotcom-py
This skill uses two environment variables: PUBLIC_COM_SECRET (required) and PUBLIC_COM_ACCOUNT_ID (optional). Each is resolved in the following order:
~/.openclaw/workspace/.secrets/public_com_secret.txt (or public_com_account.txt)PUBLIC_COM_SECRET / PUBLIC_COM_ACCOUNT_IDSetting a value via openclaw config set writes to the secure file location automatically.
If PUBLIC_COM_SECRET is not set:
openclaw config set skills.publicdotcom.PUBLIC_COM_SECRET [VALUE]If the user wants to set a default account for all requests:
openclaw config set skills.publicdotcom.PUBLIC_COM_ACCOUNT_ID [VALUE]--account-id on each command.When the user asks to "get my accounts", "list accounts", or "show my Public.com accounts":
python3 scripts/get_accounts.pyWhen the user asks to "get my portfolio", "show my holdings", or "what's in my account":
PUBLIC_COM_ACCOUNT_ID is set, execute python3 scripts/get_portfolio.py (no arguments needed).get_accounts.py to retrieve it.python3 scripts/get_portfolio.py --account-id [ACCOUNT_ID]When the user asks to "get my orders", "show my orders", "active orders", or "pending orders":
PUBLIC_COM_ACCOUNT_ID is set, execute python3 scripts/get_orders.py (no arguments needed).get_accounts.py to retrieve it.python3 scripts/get_orders.py --account-id [ACCOUNT_ID]When the user asks to "get my history", "show my transactions", "transaction history", "trade history", or wants to see past account activity:
Optional parameters:
--type: Filter by transaction type (TRADE, MONEY_MOVEMENT, POSITION_ADJUSTMENT)--limit: Limit the number of transactions returnedExamples:
Get all transaction history:
python3 scripts/get_history.py
Get only trades:
python3 scripts/get_history.py --type TRADE
Get only money movements (deposits, withdrawals, dividends, fees):
python3 scripts/get_history.py --type MONEY_MOVEMENT
Get last 10 transactions:
python3 scripts/get_history.py --limit 10
With explicit account ID:
python3 scripts/get_history.py --account-id YOUR_ACCOUNT_ID
Workflow:
PUBLIC_COM_ACCOUNT_ID is not set and you don't know the user's account ID, first run get_accounts.py to retrieve it.python3 scripts/get_history.py [OPTIONS]Transaction Types:
When the user asks to "get a quote", "what's the price of", "check the price", or wants stock/crypto prices:
Format: SYMBOL or SYMBOL:TYPE (TYPE defaults to EQUITY)
Examples:
Single equity quote (uses default account):
python3 scripts/get_quotes.py AAPL
Multiple equity quotes:
python3 scripts/get_quotes.py AAPL GOOGL MSFT
Mixed instrument types:
python3 scripts/get_quotes.py AAPL:EQUITY BTC:CRYPTO
Option quote:
python3 scripts/get_quotes.py AAPL260320C00280000:OPTION
With explicit account ID:
python3 scripts/get_quotes.py AAPL --account-id YOUR_ACCOUNT_ID
Workflow:
PUBLIC_COM_ACCOUNT_ID is not set and you don't know the user's account ID, first run get_accounts.py to retrieve it.python3 scripts/get_quotes.py [SYMBOLS...] [--account-id ACCOUNT_ID]When the user asks to "list instruments", "what can I trade", "show available stocks", or wants to see tradeable instruments:
Optional parameters:
--type: Instrument types to filter (EQUITY, OPTION, CRYPTO). Defaults to EQUITY.--trading: Trading status filter (BUY_AND_SELL, BUY_ONLY, SELL_ONLY, NOT_TRADABLE)--search: Search by symbol or name--limit: Limit number of resultsExamples:
List all equities (default):
python3 scripts/get_instruments.py
List equities and crypto:
python3 scripts/get_instruments.py --type EQUITY CRYPTO
List only tradeable instruments:
python3 scripts/get_instruments.py --type EQUITY --trading BUY_AND_SELL
Search for specific instruments:
python3 scripts/get_instruments.py --search AAPL
Limit results:
python3 scripts/get_instruments.py --limit 50
Workflow:
python3 scripts/get_instruments.py [OPTIONS]When the user asks to "get instrument details", "show instrument info", "what are the details for AAPL", or wants to see details for a specific instrument:
Required parameters:
--symbol: The ticker symbol (e.g., AAPL, BTC)Optional parameters:
--type: Instrument type (EQUITY, OPTION, CRYPTO). Defaults to EQUITY.Examples:
Get equity instrument details:
python3 scripts/get_instrument.py --symbol AAPL
Get crypto instrument details:
python3 scripts/get_instrument.py --symbol BTC --type CRYPTO
Workflow:
python3 scripts/get_instrument.py --symbol [SYMBOL] [--type TYPE]...
安装 public-dot-com 后,可以对 AI 说这些话来触发它
Help me get started with public-dot-com
Explains what public-dot-com does, walks through the setup, and runs a quick demo based on your current project
Use public-dot-com to interact with your Public
Invokes public-dot-com with the right parameters and returns the result directly in the conversation
What can I do with public-dot-com in my finance & investment workflow?
Lists the top use cases for public-dot-com, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/claw-skill-public-dot-com/ 目录(个人级,所有项目可用),或 .claude/skills/claw-skill-public-dot-com/(项目级)。重启 AI 客户端后,用 /claw-skill-public-dot-com 主动调用,或让 AI 根据上下文自动发现并使用。
public-dot-com 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
public-dot-com 可免费安装使用。请查阅仓库了解许可证信息。
Interact with your Public.com brokerage account using the Public.com API. Able to view portfolio, get stock quotes, place trades, and get account updates. To create a Public.com account head to public.com/signup.
public-dot-com 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using public-dot-com
Identifies repetitive steps in your workflow and sets up public-dot-com to handle them automatically