Local-first PostgreSQL analytics

Turn your database into decision intelligence.

Ask a business question. Insyte turns it into validated, read-only SQL, masks sensitive data, logs the execution, and returns charts and insights—without exposing your database credentials to AI.

$ pip install insyte
View on PyPI
Read-only execution Local credentials Audit logged
insyte studio · revenue workspace local session
Ask your data

Monthly revenue analysis

read-only
Question
Which cities drove revenue growth last month?
Parsed
Validated
PII masked
Audit logged
Revenue by cityLAST 30 DAYS
₹84.6L
↗ 12.8% vs previous period
Key driversGROUNDED
Top contributorBengaluru +18.4%
Fastest growthPune +24.1%
Needs attentionDelhi −3.2%
SQL SELECT city, SUM(total_amount) ... GROUP BY city ORDER BY revenue DESC; safe to run
Credentials protected

The database URL remains in a local permissioned file and is never passed to the model.

Built for the tools you already use
PostgreSQL Claude Code Codex MCP DuckDB Python 3.11+
The safety architecture

Every query travels through the guardrail.

Insyte does not give an AI agent unrestricted database access. It converts intent into a constrained request, validates the SQL, enforces limits, masks sensitive fields, and records the execution before returning results.

Question input intent + context
SQL generation schema-grounded
Validation read-only + row limits
PII masking sensitive values hidden
Read-only database audited execution
GUARANTEE 01

AI models never receive your database credentials.

Your connection URL stays on your machine in a permissioned local file. It is not written into config, logs, prompts, or MCP payloads.

local file permission · 0600
GUARANTEE 02

Dangerous SQL is blocked before execution.

Every generated query is inspected against Insyte's safety rules. Unsupported statements are rejected rather than executed and cleaned up afterward.

validate → limit → mask → audit
One analytics layer

From quick questions to full investigations.

Explore live data in Studio, work from the terminal, or call the same safe capabilities from Claude Code and Codex through MCP.

Studio · Chat · MCP

Use Insyte where your work already happens.

Move from a browser workspace to terminal workflows or your AI coding agent without changing the safety model underneath.

INSYTE STUDIO127.0.0.1:3838
Trends & forecasts

See movement, not just totals.

Break down metrics by segment, compare periods, and inspect the exact SQL behind every result.

Investigation mode

Ask “why did it change?”

Run a safe multi-step analysis instead of stopping at the first chart.

01Trend checkdone
02Period comparisondone
03Segment driversrunning
Detailed reports · opt-in

Turn results into an analyst-ready brief.

Generate summaries, evidence, counter-evidence, forecasts, and recommendations from already aggregated results.

Revenue performance brief

Generated from grounded results
Context awareness

Follow-up questions stay connected.

Studio remembers the active metric, dimension, and period, so natural follow-ups resolve correctly.

Metrictotal_revenue
Dimensioncity
Periodlast_month
Follow-upsame for previous month
Install & setup

Three commands to your first answer.

Run Insyte inside a virtual environment, connect a read-only PostgreSQL role, and let the guided setup scan your schema and generate local metadata.

01

Create a virtual environment

Keep the installation isolated from the rest of your Python tooling.

$python -m venv .venv && source .venv/bin/activate
02

Install Insyte

Get the Python package from PyPI.

$pip install insyte
03

Run guided setup

Provide a read-only connection URL, choose an AI tool, and let Insyte scan the schema and wire up MCP.

$insyte init
04

Open Studio

Launch the localhost browser workspace and start asking questions.

$insyte studio
Command reference

Everything you need, one command away.

Your project data lives under ~/.insyte/projects/<name>/. The database URL is loaded only when required and is not written to the main config file.

Open source · Apache-2.0

Ask better questions. Keep control of your data.

Install Insyte, connect a read-only PostgreSQL role, and explore your data through Studio, CLI, Claude Code, or Codex.