# Dexter: An Autonomous Agent for Deep Financial Research

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/virattt-dexter
Generated for open source discovery and AI-assisted research.

Dexter is an autonomous financial research agent designed to think, plan, and learn while performing analysis. It leverages task planning, self-reflection, and real-time market data to tackle complex financial questions. This project provides a powerful tool for in-depth financial exploration, emphasizing its educational and informational purposes.

GitHub: https://github.com/virattt/dexter
OSRepos URL: https://osrepos.com/repo/virattt-dexter

## Summary

Dexter is an autonomous financial research agent designed to think, plan, and learn while performing analysis. It leverages task planning, self-reflection, and real-time market data to tackle complex financial questions. This project provides a powerful tool for in-depth financial exploration, emphasizing its educational and informational purposes.

## Topics

- TypeScript
- AI
- Financial Research
- Autonomous Agent
- Machine Learning
- Open Source
- Market Data

## Repository Information

Last analyzed by OSRepos: Mon Jun 22 2026 13:21:58 GMT+0100 (Western European Summer Time)
Detail views: 2
GitHub clicks: 1

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Introduction

Dexter is an autonomous financial research agent designed to think, plan, and learn as it works. It performs in-depth analysis by utilizing task planning, self-reflection, and real-time market data. Envision it as a specialized tool, akin to Claude Code, but specifically engineered for comprehensive financial research.

It takes complex financial questions and transforms them into clear, step-by-step research plans. Dexter then executes these tasks using live market data, critically checks its own work, and refines the results to provide confident, data-backed answers.

**Important Disclaimer:** This project is intended for educational, entertainment, and informational purposes only. It is not designed for real trading or investment activities. Users should be aware that outputs may be incorrect, incomplete, or outdated, and it does not offer financial, investment, tax, or legal advice. Always consult a licensed financial advisor before making investment decisions.

## Installation

To get Dexter up and running, follow these steps:

### Prerequisites

You will need:
*   [Bun](https://bun.com){:target="_blank"} runtime (v1.0 or higher)
*   OpenAI API key
*   Financial Datasets API key
*   Exa API key (optional, for web search)

**Installing Bun:**

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


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


Verify installation:
bash
bun --version


### Setup Steps

1.  **Clone the repository:**
    bash
git clone https://github.com/virattt/dexter.git
cd dexter
    

2.  **Install dependencies with Bun:**
    bash
bun install
    

3.  **Set up your environment variables:**
    bash
cp env.example .env
# Edit .env and add 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
    

## Examples

Dexter offers various ways to interact and evaluate its capabilities.

### How to Run

Run Dexter in interactive mode:
bash
bun start


For development with watch mode:
bash
bun dev


### How to Evaluate

Dexter includes an evaluation suite to test its performance against financial questions.
bash
bun run src/evals/run.ts

To run on a random sample:
bash
bun run src/evals/run.ts --sample 10

Results are logged to LangSmith for detailed analysis.

### How to Use with WhatsApp

Integrate Dexter with WhatsApp to chat and receive responses directly:
bash
bun run gateway:login
bun run gateway

Then, message yourself on WhatsApp with a question for Dexter.

## Why Use Dexter

Dexter stands out with its advanced capabilities designed for sophisticated financial analysis:

*   **Intelligent Task Planning:** Automatically breaks down complex queries into structured research steps.
*   **Autonomous Execution:** Selects and utilizes the appropriate tools to gather financial data efficiently.
*   **Self-Validation:** Critically checks its own work and iterates on tasks until completion, ensuring accuracy.
*   **Real-Time Financial Data:** Provides access to up-to-date income statements, balance sheets, and cash flow statements.
*   **Safety Features:** Includes built-in loop detection and step limits to prevent unintended runaway execution.

These features make Dexter a powerful, self-improving agent for anyone looking to conduct deep financial research with an AI-driven approach.

## Links

*   **GitHub Repository:** [virattt/dexter](https://github.com/virattt/dexter){:target="_blank"}
*   **Follow on Twitter:** [virattt](https://twitter.com/virattt){:target="_blank"}
*   **Join Discord Server:** [Dexter Discord](https://discord.gg/jpGHv2XB6T){:target="_blank"}