Skip to the content.

Home · Quick start · charter.yaml · Sources · Agent · CLI · MCP · About · FAQ

DataCharter has an optional natural-language agent that turns a plain-language question into SQL against your sources. It is genuinely optional.

The product is fully usable without any LLM

The engine, the source tree, the SQL editor with catalog autocomplete, the results grid, charts, the profiling panel, the EXPLAIN viewer, exports, and drag-and-drop file querying all work with no model configured and no network access. The agent adds a chat panel on top; nothing else depends on it.

There is no bundled or fine-tuned model. The agent is grounded: it inspects your schema through tools, scopes to your contract, and retries on SQL errors, which is the regime where existing models already do text-to-SQL well.

Mode 1: bring your own endpoint

Point the agent at any OpenAI-compatible /chat/completions endpoint (a hosted API, a self-hosted server such as vLLM, or a local runtime that speaks the same protocol). Set the endpoint and key in the environment, then serve:

export OPENAI_BASE_URL=https://api.example.com/v1   # any OpenAI-compatible API
export OPENAI_API_KEY=...
datacharter serve

Mode 2: fully local with --local

Run the agent against a local Ollama instance. No API key, no data leaves your machine:

datacharter serve --local              # uses qwen3:8b by default
datacharter serve --local --model ...  # choose another Ollama model

Mode 3: your Claude Code subscription

If you have Claude Code installed and are signed in to a Claude Pro or Max plan, the agent can run on that subscription — no API key and no per-token billing. In the chat panel, click Connect Claude Code (shown next to Connect an LLM) and start asking questions.

How the agent works

The agent runs a short tool loop over a small set of read-only tools:

Tool What it does
list_sources List configured sources and their types.
list_tables List queryable tables with their relation names.
describe_table Show columns and types for one relation.
query Run a read-only SQL query and return rows.

See the quick-start guide to get a workspace running first, then turn the agent on with either mode above.