# Repository Briefing: datagallery-ai/dataagent
> Source: https://repoforai.com/repo/datagallery-ai/dataagent (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/datagallery-ai/dataagent
- **Official Docs / Website**: https://datagallery-ai.github.io/dataagent/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 18/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v0.1.0 (2026-08-29) — https://github.com/datagallery-ai/dataagent/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Self-Hosted, CLI, API
- **Momentum**: 750 ★ total (+0 24h / +4 7d) · 126 forks
- **Topics**: `ag-ui`, `agent-runtime`, `ai`, `ai-agents`, `data-analysis`, `data-sources`, `data-workbench`, `ink`, `mastra`
- **When to Use**: Best for: Analytics and data-platform teams running exploratory work across local files and databases, where users need to revisit results, generated files, and execution records. Skip if: You mainly need fixed KPI dashboards, deterministic SQL execution, or an offline or multi-replica service you cannot validate before rollout.

## Overview
```text
### Architecture & Core Mechanics
DataAgent pairs a Python service built on native Deep Agents and LangGraph with an optional TypeScript UI workspace. The web workbench and terminal UI connect to the same server and can reopen its sessions. A task starts with a natural-language question, runs against inputs and tools configured on the server, and writes generated files to the session output directory for review or follow-up.

The backend pins FastAPI, Uvicorn, and the AG-UI LangGraph adapter. Its dependencies include LangGraph’s SQLite checkpointer and aiosqlite, making SQLite the evident checkpointing option without establishing that every session asset lives in SQLite. Integrators can use REST and AG-UI, A2A, or the Python SDK. Plugins and MCP extend the tool set, while an external semantic service can supply business context.

### Key Capabilities & Differentiators
The distinctive workflow is analysis that a user can pick up again: ask a question over configured local directories or an NL2SQL entry, inspect the result and generated files, then continue in the same session. The web workbench adds file previews, while the TUI supports terminal and SSH use. Logs and traces let operators inspect model and tool calls rather than judging a result by its final text alone.

The server supports a default model and model selection for individual tools. The quick start configures an OpenAI-compatible endpoint, and the Python manifest includes both OpenAI and Anthropic integrations. SQLGlot, SQLParse, PyMySQL, and psycopg2-binary provide evidence of SQL parsing and MySQL and PostgreSQL client dependencies; they do not establish a database support matrix or guarantee that generated queries are safe or correct.

### Trade-offs & Limitations
Compared with a SQL client or notebook, DataAgent adds natural-language task execution, reusable session artifacts, and a shared backend for web and terminal work. In exchange, users give up some direct control over query and tool selection. For recurring, tightly governed KPI reporting, a conventional BI dashboard is the better default; use DataAgent where investigation and follow-up matter more than a fixed report surface.

Self-hosting gives operators control over the application and its inputs, not automatic control over data sent to model endpoints. Verify database privileges, file access, and what appears in traces before introducing sensitive data. The SQLite checkpoint dependency is not evidence of multi-replica readiness. For shared use, test concurrent workloads and plan for session recovery and output retention before committing to a rollout.

### Hardware & Deployment Guide
The Linux source path requires Git, uv, and Node.js 22.12 or newer; the Python package requires Python 3.11 or 3.12. Start with `./deploy.sh`, set `LLM_MODEL`, `LLM_BASE_URL`, and `LLM_API_KEY` in `.env`, then run `./deploy.sh restart`. The web entry defaults to `http://127.0.0.1:3000/data-tasks`; the script also exposes `tui`, `status`, and `logs` subcommands.

Manual setup paths exist for Windows and macOS, and packaged options include a server wheel and a TUI package. The server binds to `127.0.0.1` by default, so remote access should be a deliberate deployment decision. The quick start delegates inference to a configured endpoint: self-hosting the application does not make it offline. GitHub release v0.1.0 is the first versioned baseline, while the Python manifest lists 0.2.0; verify the artifact version you intend to pin.
```

## Key Capabilities
```text
- Runtime: A Python Deep Agents and LangGraph backend serves an optional TypeScript interface workspace.
- Session workflow: The web workbench and TUI can resume server sessions; generated files remain available in the session output directory.
- SQL stack: Configurable NL2SQL examples sit alongside SQLGlot, SQLParse, and MySQL and PostgreSQL client dependencies.
- Model routing: Server configuration selects a default model and permits model choices for individual tools.
- Integration: REST, AG-UI, A2A, and the Python SDK provide application entry points; plugins and MCP extend the tool surface.
- Inspection: Logs and traces expose model and tool calls for diagnosing an analysis.
```

## Quick Start / Clone
```bash
git clone https://gitcode.com/datagallery/dataagent.git
cd dataagent
./deploy.sh
```
