dexterAutonomous financial research agent for stock analysis, financial statements, metrics, prices, SEC filings, and crypto data.
Install via ClawdBot CLI:
clawdbot install igorhvr/dexterRequires:
Dexter is an autonomous financial research agent that plans, executes, and synthesizes financial data analysis. Use it for any financial research question involving stocks, crypto, company fundamentals, or market data.
Use Dexter for:
Note: Dexter's Financial Datasets API covers primarily US stocks. For international stocks (like European exchanges), it falls back to web search via Tavily.
If Dexter is not installed, follow these steps:
DEXTER_DIR="/root/clawd-workspace/dexter"
# Clone if not exists
if [ ! -d "$DEXTER_DIR" ]; then
git clone https://github.com/virattt/dexter.git "$DEXTER_DIR"
fi
cd "$DEXTER_DIR"
# Install dependencies
bun install
Create .env file with required API keys:
cat > "$DEXTER_DIR/.env" << 'EOF'
# LLM API Keys (at least one required)
ANTHROPIC_API_KEY=your-anthropic-key
# Stock Market API Key - Get from https://financialdatasets.ai
FINANCIAL_DATASETS_API_KEY=your-financial-datasets-key
# Web Search API Key - Get from https://tavily.com (optional but recommended)
TAVILY_API_KEY=your-tavily-key
EOF
API Key Sources:
Dexter's tool executor defaults to OpenAI's gpt-5-mini. If using Anthropic only, patch it:
# Fix hardcoded OpenAI model in tool-executor.ts
sed -i "s/const SMALL_MODEL = 'gpt-5-mini';/const SMALL_MODEL = 'claude-3-5-haiku-latest';/" \
"$DEXTER_DIR/src/agent/tool-executor.ts"
Set Claude as the default model:
mkdir -p "$DEXTER_DIR/.dexter"
cat > "$DEXTER_DIR/.dexter/settings.json" << 'EOF'
{
"provider": "anthropic",
"modelId": "claude-sonnet-4-5"
}
EOF
cat > "$DEXTER_DIR/query.ts" << 'SCRIPT'
#!/usr/bin/env bun
/**
* Non-interactive Dexter query runner
* Usage: bun query.ts "What is Apple's revenue growth?"
*/
import { config } from 'dotenv';
import { Agent } from './src/agent/orchestrator.js';
import { getSetting } from './src/utils/config.js';
config({ quiet: true });
const query = process.argv[2];
if (!query) {
console.error('Usage: bun query.ts "Your financial question here"');
process.exit(1);
}
const model = getSetting('modelId', 'claude-sonnet-4-5') as string;
async function runQuery() {
let answer = '';
const agent = new Agent({
model,
callbacks: {
onPhaseStart: (phase) => {
if (process.env.DEXTER_VERBOSE) {
console.error(`[Phase: ${phase}]`);
}
},
onPlanCreated: (plan) => {
if (process.env.DEXTER_VERBOSE) {
console.error(`[Tasks: ${plan.tasks.map(t => t.description).join(', ')}]`);
}
},
onAnswerStream: async (stream) => {
for await (const chunk of stream) {
answer += chunk;
process.stdout.write(chunk);
}
},
},
});
try {
await agent.run(query);
if (!answer.endsWith('\n')) {
console.log();
}
} catch (error) {
console.error('Error:', error);
process.exit(1);
}
}
runQuery();
SCRIPT
Complete installation script (requires API keys as environment variables):
#!/bin/bash
set -e
DEXTER_DIR="/root/clawd-workspace/dexter"
# Clone
[ ! -d "$DEXTER_DIR" ] && git clone https://github.com/virattt/dexter.git "$DEXTER_DIR"
cd "$DEXTER_DIR"
# Install deps
bun install
# Create .env (set these variables before running)
cat > .env << EOF
ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-your-key-here}
FINANCIAL_DATASETS_API_KEY=${FINANCIAL_DATASETS_API_KEY:-your-key-here}
TAVILY_API_KEY=${TAVILY_API_KEY:-your-key-here}
EOF
# Patch for Anthropic
sed -i "s/const SMALL_MODEL = 'gpt-5-mini';/const SMALL_MODEL = 'claude-3-5-haiku-latest';/" \
src/agent/tool-executor.ts
# Set model config
mkdir -p .dexter
echo '{"provider":"anthropic","modelId":"claude-sonnet-4-5"}' > .dexter/settings.json
echo "Dexter installed successfully!"
/root/clawd-workspace/dexter
For quick financial questions, use the query script:
cd /root/clawd-workspace/dexter && bun query.ts "Your financial question here"
Examples:
bun query.ts "What is Apple's current P/E ratio?"
bun query.ts "Compare Microsoft and Google revenue growth over the last 4 quarters"
bun query.ts "What was Tesla's free cash flow in 2025?"
bun query.ts "Show me insider trades for NVDA in the last 30 days"
bun query.ts "What is Bitcoin's price trend over the last week?"
For verbose output (shows planning steps):
DEXTER_VERBOSE=1 bun query.ts "Your question"
For multi-turn research sessions or follow-up questions, use the interactive CLI via tmux:
SOCKET_DIR="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/clawdbot-tmux-sockets}"
SOCKET="$SOCKET_DIR/clawdbot.sock"
SESSION=dexter
# Start Dexter (if not running)
tmux -S "$SOCKET" kill-session -t "$SESSION" 2>/dev/null || true
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell -c /root/clawd-workspace/dexter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'bun start' Enter
sleep 3
# Send a query
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -l -- 'Your question here'
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 Enter
# Check output
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200
Dexter automatically selects and uses these tools based on your query:
get_income_statements - Revenue, expenses, net incomeget_balance_sheets - Assets, liabilities, equityget_cash_flow_statements - Operating, investing, financing cash flowsget_all_financial_statements - All three in one callget_price_snapshot - Current stock priceget_prices - Historical price dataget_crypto_price_snapshot - Current crypto price (e.g., BTC-USD)get_crypto_prices - Historical crypto pricesget_available_crypto_tickers - List available crypto tickersget_financial_metrics_snapshot - Current metrics (P/E, market cap, etc.)get_financial_metrics - Historical metricsget_10k_filing_items - Annual report sectionsget_10q_filing_items - Quarterly report sectionsget_8k_filing_items - Current report itemsget_filings - List of all filingsget_analyst_estimates - Earnings/revenue estimatesget_segmented_revenues - Revenue by segmentget_insider_trades - Insider buying/sellingget_news - Company newssearch_web - Web search (via Tavily) for general infoDexter uses a multi-phase approach:
Stock Analysis:
Financial Health:
SEC Filings:
Crypto:
Market Research:
Run the Anthropic patch (step 3 in installation) - Dexter's tool executor defaults to OpenAI.
Financial Datasets API primarily covers US stocks. Dexter will fall back to Tavily web search for international stocks if TAVILY_API_KEY is configured.
Complex queries may take 30-60 seconds. Dexter plans, executes multiple API calls, reflects on results, and synthesizes answers.
BTC-USD, ETH-USD format for crypto tickersGenerated Mar 1, 2026
Dexter can analyze financial statements, metrics, and SEC filings to support due diligence for mergers and acquisitions. It helps compare companies' revenue trends, margins, and market caps, providing data for investment recommendations.
Use Dexter to monitor stock prices, analyst estimates, and insider trades for portfolio rebalancing. It enables tracking of crypto prices and financial metrics like P/E ratios to inform buy/sell decisions based on market data.
Dexter assists in preparing quarterly reports by pulling historical financial data, cash flow statements, and growth rates. It automates data gathering for internal analysis and stakeholder presentations.
Leverage Dexter to research competitor financials, revenue trends, and industry benchmarks. It helps startups validate business models by analyzing market cap and comparative financial data from US stocks.
Dexter supports studies on financial markets by providing access to SEC filings, stock prices, and metrics. Researchers can use it to gather data on company news and crypto trends for empirical analysis.
Offer Dexter as a cloud-based tool with tiered pricing based on API usage and data depth. Revenue comes from monthly subscriptions for access to real-time financial datasets and automated analysis features.
License Dexter's technology to financial institutions for embedding in their platforms. Revenue is generated through licensing fees and customization services for integrating stock and crypto analysis tools.
Provide basic financial metrics and stock prices for free, with premium features like advanced SEC filing analysis and historical data. Revenue streams include paid upgrades and affiliate partnerships with API providers.
💬 Integration Tip
Ensure API keys for Financial Datasets and Tavily are configured to maximize data coverage, especially for international stocks via web search fallback.
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...
Become an autonomous prediction market trader on Polymarket with AI-powered analysis and a performance-backed token on Base. Trade real markets, build a track record, and let the buyback flywheel run.
Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data.
Query Polymarket prediction markets - check odds, trending markets, search events, track prices and momentum. Includes watchlist alerts, resolution calendar,...