
Dexter is an autonomous financial research agent that plans, executes, and validates its own investment analysis. It performs analysis using task planning, self-reflection, and real-time market data. Think Claude Code, but built specifically for financial research. For a different approach to agent automation, UI-TARS handles GUI automation on your desktop, while Dexter focuses entirely on financial data analysis.
- Project link: github.com/virattt/dexter
- Discord: Join server
How Dexter Works
Dexter takes complex financial questions and turns them into clear, step-by-step research plans. It runs those tasks using live market data, checks its own work, and refines the results until it has a confident, data-backed answer.
| Capability | Description |
|---|---|
| Intelligent Task Planning | Automatically decomposes complex queries into structured research steps |
| Autonomous Execution | Selects and executes the right tools to gather financial data |
| Self-Validation | Checks its own work and iterates until tasks are complete |
| Real-Time Financial Data | Access to income statements, balance sheets, and cash flow statements |
| Safety Features | Built-in loop detection and step limits to prevent runaway execution |
Agent Loop
User Query: "Is Apple undervalued right now?"
↓
Dexter decomposes into sub-tasks
↓
Gathers financial data (income, balance sheet, cash flow)
↓
Analyzes metrics (P/E ratio, revenue growth, debt levels)
↓
Self-validates findings and checks for gaps
↓
Refines analysis if needed
↓
Delivers data-backed investment thesis

For teams that need multiple agents working in parallel on complex workflows, Eigent provides a local multi-agent workforce that runs entirely on your desktop.
Prerequisites
| Requirement | Source | Cost |
|---|---|---|
| Bun runtime | bun.sh | Free |
| OpenAI API key | platform.openai.com | Pay per use |
| Financial Datasets API key | financialdatasets.ai | ~$200/month |
| Exa API key (optional) | exa.ai | Pay per use |
The Financial Datasets API is the most significant cost at around $200 per month for institutional-grade market data. As one Reddit user noted: “access to the financial datasets alone is already 200 bucks a month.”
Installation and Setup
1. Install Bun
curl -fsSL https://bun.com/install | bash
2. Clone and Install
git clone https://github.com/virattt/dexter.git
cd dexter
bun install
cp env.example .env
3. Configure API Keys
Edit .env with your API keys:
OPENAI_API_KEY=your-openai-api-key
FINANCIAL_DATASETS_API_KEY=your-financial-datasets-api-key
EXASEARCH_API_KEY=your-exa-api-key # optional, for web search
4. Run
bun start # Interactive mode
bun dev # Watch mode for development
Model Support
Dexter supports multiple LLM providers via environment configuration:
| Provider | Env Variable | Notes |
|---|---|---|
| OpenAI | OPENAI_API_KEY | Primary provider |
| Anthropic | ANTHROPIC_API_KEY | Optional |
| GOOGLE_API_KEY | Optional | |
| xAI | XAI_API_KEY | Optional |
| OpenRouter | OPENROUTER_API_KEY | Access to 200+ models |
| Ollama | OLLAMA_BASE_URL | Local inference |
WhatsApp Integration
Dexter includes a WhatsApp gateway that lets you chat with the agent through your phone:
bun run gateway:login # Link your WhatsApp account (scan QR code)
bun run gateway # Start the gateway
Send a message to your own chat on WhatsApp, and Dexter processes the query and sends back the analysis.
Evaluation Suite
Dexter includes an automated evaluation system that tests the agent against a dataset of financial questions. It uses LangSmith for tracking and an LLM-as-judge approach for scoring correctness.
bun run src/evals/run.ts # Run on all questions
bun run src/evals/run.ts --sample 10 # Run on random sample
The eval runner displays a real-time UI showing progress, current question, and running accuracy statistics.
Debugging and Transparency
All tool calls are logged to a scratchpad in .dexter/scratchpad/ as JSONL files:
{
"type": "tool_result",
"timestamp": "2026-01-30T11:14:05.123Z",
"toolName": "get_income_statements",
"args": {"ticker": "AAPL", "period": "annual", "limit": 5},
"llmSummary": "Retrieved 5 years of Apple annual income statements showing revenue growth"
}
Each file tracks every step: the original query, each tool call with arguments and results, and the agent’s reasoning steps. This makes it easy to inspect exactly what data the agent gathered and how it interpreted results.

What the Community Is Saying
The reactions to Dexter range from enthusiastic to deeply skeptical:
“Just another LLM wrapper. Not even close to institutional grade and the agentic capabilities are so far off the mark that he’s going to have to restart from scratch. But, like his first AI Hedge Fund attempt, I’m sure the GitHub repo will have a bunch of stars.” — @itscharlie.nyc
“The real users might even know how to use the CLI.” — @dreww.codes
“Even if you had enough money for AI product itself, vast majority of people would not have money to buy stocks in meaningful way, it would mainly boost those who already have large capital to get advantage of this. No doubt investors already use AI to analyze markets, but the better tools they have the easier it is for them to capture the market.” — u/czk_21
“Access to the financial datasets alone is already 200 bucks a month. I can get a car for that money.” — [deleted user]
“Finally a model for the common man.” — u/bucolucas

The sentiment captures the core tension: Dexter is open-source and accessible, but the underlying data sources are expensive. The tool itself is free, but institutional-grade financial data costs around $200 per month. For retail investors, that is a significant barrier. For institutional analysts, the automation of end-to-end financial research with self-validation could be a productivity multiplier worth far more than the data subscription cost.
Comparison: Dexter vs Traditional Financial Research
| Aspect | Traditional Research | Dexter |
| — | — | — |
| Time per ticker | 2-4 hours manual analysis | Minutes |
| Data sources | Multiple platforms, manual aggregation | Automated API collection |
| Validation | Peer review required | Built-in self-validation |
| Cost | Analyst salary + data subscriptions | API costs (~$200/month) |
| Transparency | Opaque methodology | Full scratchpad logs |
Dexter by virattt is for investors and financial analysts. It solves the problem of manual, fragmented research by automating end-to-end financial analysis with a self-validating AI agent that plans, executes, and checks its own work.
If you enjoy articles about top GitHub repositories like this, don’t forget to subscribe to Technolati.com.
- How to Use PageIndex for Vectorless RAG on Complex Documents
Badge PageIndex argues that similarity is not the same as relevance, and it offers a vectorless, reasoning based approach to..
- How to Use OpenWork as a Desktop Interface for DeepAgents
Badge OpenWork is an opinionated desktop interface for deepagentsjs, it exposes filesystem planning, subagent delegation, and direct tool access so..
- How to Use Lightpanda as a Fast Headless Browser for Agents
Badge Lightpanda Browser is a headless browser written from scratch in Zig, built specifically for AI agents and automation workflows…
- How to Use Activepieces for No-Code AI Agent Automation
Activepieces is an open source alternative to Zapier that provides a visual canvas to build AI agent workflows and exposes..
- How to Use Chroma Context-1 for Local Agentic Search
Chroma just open-sourced Context-1, a 20B parameter agentic search model designed to retrieve supporting documents for complex, multi-hop queries. The..
- How to Use VideoSOS for Browser Video Editing with 100+ AI Models
VideoSOS is an open-source, browser-first video editor that brings over 100 AI models into your browser. It handles text-to-video, image-to-video,..
