How to Search SEC EDGAR from OpenClaw
OpenClaw gives you a personal AI agent on Telegram, Discord, or Signal, but out of the box it can’t pull live data from SEC EDGAR. If you want your bot to look up public company information — CIK numbers, ticker symbols, official entity names — AgentPatch’s SEC Company Search tool adds that capability without any custom API work.
Why This Matters
Public company research usually starts with a simple question: what’s this company’s CIK number? The SEC’s Central Index Key is the identifier that unlocks everything in EDGAR — filings, financials, insider transactions. Without it, you can’t programmatically access any of that data.
The standard workflow is to open EDGAR in a browser, search for the company, and copy the CIK. That’s fine once, but tedious if you’re doing it repeatedly or if you want your agent to handle it for you. With SEC Company Search connected through AgentPatch, your OpenClaw bot can search the SEC’s company tickers database directly. Send it a company name or ticker and it returns the CIK, full company name, and ticker symbol.
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Skill (Recommended)
Install the AgentPatch skill from ClawHub — it teaches OpenClaw when to use AgentPatch and how to use the CLI:
clawhub install agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill, add AgentPatch to ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"agentpatch": {
"transport": "streamable-http",
"url": "https://agentpatch.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
}
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.
Example
You’re chatting with your OpenClaw bot on Telegram and want to look up a company:
“Search SEC EDGAR for Amazon.”
Your bot searches the SEC database directly:
Searching SEC EDGAR for "Amazon"...
Found:
Company: Amazon.com, Inc.
Ticker: AMZN
CIK: 0001018724
This CIK can be used to look up Amazon's SEC filings and financial
statements. Want me to pull their latest financials?
The bot resolved the name, returned the CIK, and is ready to chain into a financials lookup if you want it. The same thing works on Discord or Signal — wherever your OpenClaw instance lives.
The tool matches exact tickers first, then falls back to company name substrings. So searching “AAPL” hits Apple directly, while searching “Apple” does a broader name search. Each lookup is 50 credits ($0.005).
Wrapping Up
Once AgentPatch is connected, your OpenClaw bot can search SEC EDGAR’s company database from any chat message. Combine it with the SEC Company Financials tool and your agent can go from a company name all the way to financial statements. Both tools are on the marketplace — along with everything else AgentPatch offers. See what’s available at agentpatch.ai.