Read-only by construction
Every query the model writes runs as a subquery of a SELECT, so DuckDB rejects anything that would insert, update, delete, or alter a table. Ask AI cannot change your sheet.
Ask AI is a chat panel in the editor. You connect it to any OpenAI-compatible API with your own key, and it answers by running read-only SQL on the sheet you have open. BrowserCSV has no AI service of its own, so there is no account to create and nothing to pay us.
Open a file, then click Ask AI in the toolbar or pick “Ask AI About This Sheet” from the command palette (Ctrl+K).
Enter a base URL, an API key, and a model name, then save. The settings form opens by itself the first time, and the gear icon brings it back.
Type a question about the sheet in plain language, or start from one of the suggestions. Each sheet keeps its own conversation.
The model writes SQL, BrowserCSV runs it on your data with DuckDB in the browser, and the model turns the results into an answer or a chart.
https://api.openai.com/v1sk-…gpt-4o-miniThe values shown are the defaults. A blank base URL or model falls back to them when you save.
https://api.openai.com/v1https://openrouter.ai/api/v1http://localhost:11434/v1http://localhost:1234/v1Any service that speaks the OpenAI chat completions format should work, as long as it allows requests from the browser.
Query results can contain any value in the sheet, so treat Ask AI as sharing that data with the provider you configured. If the sheet holds something that provider should not see, use a model running on your own machine or leave the panel closed. Nothing is sent until you ask a question.
Every query the model writes runs as a subquery of a SELECT, so DuckDB rejects anything that would insert, update, delete, or alter a table. Ask AI cannot change your sheet.
Each answer shows a “Ran SQL” line for every query behind it. Expand it to read the exact SQL and see how many rows came back.
The model is told to compute rather than guess, and charts are drawn from the query results themselves, not from values the model types out.
One question can trigger at most 8 rounds of queries, and you can press Stop at any time to cancel a request in progress.
Usage is billed by your provider to the key you enter. One question usually means several requests, since each query the model runs is a round trip.
The key sits in this browser's local storage, where anyone using this browser profile can reach it. Prefer a key made just for this, with a spending limit, and clear it from the settings form on a shared computer.
Open a file in the editor, click Ask AI, and paste in your key.
Open the editor