Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dexter

> 编程语言
Open source

An autonomous agent for deep financial research

27.5K stars0 likes2 views
WebsiteGitHub

About

An autonomous agent for deep financial research

Dexter 🤖

Dexter is an autonomous financial research agent that thinks, plans, and learns as it works. It performs analysis using task planning, self-reflection, and real-time market data. Think Claude Code, but built specifically for financial research.

Table of Contents

  • 👋 Overview
  • ✅ Prerequisites
  • 💻 How to Install
  • 🚀 How to Run
  • 📊 How to Evaluate
  • 🐛 How to Debug
  • 📱 How to Use with WhatsApp
  • 🤝 How to Contribute
  • 📄 License

⚠️ Disclaimer

This project is for educational, entertainment, and informational purposes only. It is not intended for real trading or investment.

  • Not financial, investment, tax, or legal advice
  • No guarantees of accuracy, completeness, or fitness for any purpose
  • Outputs may be incorrect, incomplete, or out of date
  • Creator and contributors assume no liability for any financial losses or damages
  • Consult a licensed financial advisor before making investment decisions
  • Past performance does not indicate future results

By using this software, you agree to use it solely for learning and informational purposes and accept all risks associated with its use.

👋 Overview

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.

Key Capabilities:

  • 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

✅ Prerequisites

  • Bun runtime (v1.0 or higher)
  • OpenAI API key (get here)
  • Financial Datasets API key (get here)
  • Exa API key (get here) - optional, for web search

Installing Bun

If you don't have Bun installed, you can install it using curl:

macOS/Linux:

bash
curl -fsSL https://bun.com/install | bash

Windows:

bash
powershell -c "irm bun.sh/install.ps1|iex"

After installation, restart your terminal and verify Bun is installed:

bash
bun --version

💻 How to Install

  1. Clone the repository:
bash
git clone https://github.com/virattt/dexter.git
cd dexter
  1. Install dependencies with Bun:
bash
bun install
  1. Set up your environment variables:
…

🚀 How to Run

Run Dexter in interactive mode:

bash
bun start

Or with watch mode for development:

bash
bun dev

📊 How to Evaluate

Dexter includes an evaluation suite that tests the agent against a dataset of financial questions. Evals use LangSmith for tracking and an LLM-as-judge approach for scoring correctness.

Run on all questions:

bash
bun run src/evals/run.ts

Run on a random sample of data:

bash
bun run src/evals/run.ts --sample 10

The eval runner displays a real-time UI showing progress, current question, and running accuracy statistics. Results are logged to LangSmith for analysis.

🐛 How to Debug

Dexter logs all tool calls to a scratchpad file for debugging and history tracking. Each query creates a new JSONL file in .dexter/scratchpad/.

Scratchpad location:

.dexter/scratchpad/
├── 2026-01-30-111400_9a8f10723f79.jsonl
├── 2026-01-30-143022_a1b2c3d4e5f6.jsonl
└── ...

Each file contains newline-delimited JSON entries tracking:

  • init: The original query
  • tool_result: Each tool call with arguments, raw result, and LLM summary
  • thinking: Agent reasoning steps

Example scratchpad entry:

json
{"type":"tool_result","timestamp":"2026-01-30T11:14:05.123Z","toolName":"get_income_statements","args":{"ticker":"AAPL","period":"annual","limit":5},"result":{...},"llmSummary":"Retrieved 5 years of Apple annual income statements showing revenue growth from $274B to $394B"}

This makes it easy to inspect exactly what data the agent gathered and how it interpreted results.

📱 How to Use with WhatsApp

Chat with Dexter through WhatsApp by linking your phone to the gateway. Messages you send to yourself are processed by Dexter and responses are sent back to the same chat.

Quick start:

bash
# Link your WhatsApp account (scan QR code)
bun run gateway:login

# Start the gateway
bun run gateway

Then open WhatsApp, go to your own chat (message yourself), and ask Dexter a question.

For detailed setup instructions, configuration options, and troubleshooting, see the WhatsApp Gateway README.

🤝 How to Contribute

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Important: Please keep your pull requests small and focused. This will make it easier to review and merge.

📄 License

This project is licensed under the MIT License.

Issues· 104 open

View all issuesOpen on GitHub
  • #300

    Optional web_fetch variant: second-model fidelity audit

    Updated Sep 29, 2026
  • #299

    Add Webz.io as a news search provider

    Updated Sep 20, 2026
  • #294

    ai-hedge-fund integrate with dexter

    Updated Aug 11, 2026
  • #288

    Would a Taiwan stock market data skill be welcome as a contribution?

    Updated Jul 21, 2026
  • #279

    Get Dexter running locally

    Updated Jun 17, 2026
  • #272

    # Bug: `modelProvider` field in AgentConfig is defined but never used for routing

    Updated May 28, 2026
  • #256

    Use Brave API for web search (instead of Exa)

    Updated May 20, 2026
  • #268

    Channels design: instruction bridge for multi-transport gateway

    Updated May 14, 2026
  • #255

    Support Gemini models for a)Cheaper running and b) Web Search

    Updated May 13, 2026
  • #178

    Offer to add Simplified Chinese translation for README.md and documentation

    Updated May 10, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言