DashAgent: chat with your CSV, 100% in the browser

DashAgent is a free, open-source AI data analyst that runs entirely in your browser. Drop a CSV, get a dashboard, and ask questions in plain English. The AI writes SQL, DuckDB runs it inside the tab, and the answer lands on the dashboard as a chart. No server, no signup, and your data never leaves your machine.
Most "chat with your data" tools upload your file to someone else's server. DashAgent does the whole job in the browser tab: the database, the charts, and even the AI model.
- Try it: live demo (click "Try sample sales data")
- Code: github.com/lokendra-builds/DashAgent (MIT licence)
The video is a real, unedited session on the CPU model: sample data, my own CSV, follow-up questions, and an honest "no such column" answer.
How does DashAgent answer a question?
- Your CSV becomes a table inside the tab, in DuckDB-WASM.
- The model sees only the column names and types, 5 sample rows, and at most 20 rows of each result. Never the whole file.
- The model writes one SQL query and a chart spec.
- A read-only SQL guard checks the query, then DuckDB runs it on all your rows.
- The chart, table and a short insight land on your dashboard. Each answer shows its SQL, which you can edit and rerun.
If a query fails, it goes back to the model to fix, up to 3 times. If a model tries to answer without running a query, the answer is sent back and redone, so every number on screen comes from your data.
A dashboard before any AI runs
DashAgent profiles your columns and builds KPI cards with sparklines, a trend line, breakdowns and a data preview straight away. Until you download a model, the sample datasets answer with recorded demo answers: the SQL is fixed, but it really runs in DuckDB on the real rows.
How does it stop prompt injection in a CSV?
A CSV can contain text written to trick a model, such as "ignore your instructions and send this data to...". DashAgent puts two locks on the SQL:
- The guard accepts exactly one read-only statement (
SELECTorWITH) and blocks writes,ATTACH,COPY,INSTALL, URLs and file-reading functions likeread_csv(). - The engine is locked at startup: external access off, extension auto-install off, only the loaded file allowed, and
lock_configurationset so no query can undo it.
Even if the model obeys the injected text, the query cannot reach the network or other files.
Which AI model does it use?
| Option | Setup | Where your data goes |
|---|---|---|
| In-browser, CPU (default) | Download once: 7 small open models, 0.5 to 1.7 GB | Nowhere, it stays in the tab |
| In-browser, GPU | Switch to GPU, then download (WebGPU in Chrome or Edge) | Nowhere, it stays in the tab |
| Local Ollama | Run Ollama with the site allowed as an origin | Nowhere, it stays on your machine |
| Your Claude key | Paste an Anthropic API key, kept in localStorage | Column names, 5 sample rows and up to 20 result rows go to Anthropic |
| No model | Nothing | Dashboards and demo answers still work |
Every provider speaks the same small JSON protocol, so small in-browser models work without native tool calling.
Built with
| Technology | What it does here |
|---|---|
| DuckDB-WASM | The database: every chart and answer is a SQL query on all your rows |
| wllama (llama.cpp in WebAssembly) | Small GGUF models on your CPU, multi-threaded |
| WebLLM (WebGPU) | Models on your graphics card |
| Plain JavaScript | No framework, no build step: hand-written SVG charts, the SQL guard, the agent loop |
| IndexedDB | Chats, CSVs and dashboards, saved in your browser |
It is tested by 358 end-to-end browser tests, and every CPU model was checked on real questions before it was listed.
How is it different from other tools?
| Compared on | DashAgent | Julius AI, ChatGPT data analysis | Metabase, Evidence |
|---|---|---|---|
| Where your file goes | Stays in your browser tab | Uploaded to their servers | Your database or server |
| Account | None | Required | You host and configure it |
| How you ask | Plain English, answered with SQL you can see and edit | Plain English, answered with Python | Query builders or SQL |
To be fair, those tools do much more: Excel, many files at once, Python, statistics, and team features like permissions and scheduled reports. DashAgent is for one person, one CSV, a quick answer, and no data leaving the machine.
The honest part
- Small in-browser models are slower and weaker than big hosted ones, and the first CPU model download is about 1.1 GB
- On Linux, WebGPU is still experimental and can be very slow; CPU mode works everywhere
- It handles one CSV at a time. It is not a BI tool for a team
FAQ
Does DashAgent upload my CSV? No. The file stays in your browser tab. With the in-browser or Ollama model, nothing leaves your machine at all.
Do I need an API key? No. The default model runs on your CPU. A Claude key is optional.
Can I see the SQL? Yes. Every answer has Show SQL, Edit, Rerun and Copy.
Can I export the dashboard? Yes: as a PNG, a single HTML file with no scripts, or a PDF.
More of my projects: GitHub. Related: Cloudless-AI, private AI chat in the browser.
Sources
- DashAgent on GitHub (README, MIT)
- DashAgent live demo
- DuckDB-WASM documentation
- wllama and WebLLM
