AIToday
Large Language ModelsHacker NewsPublished: Aug 16, 2026, 13:03 JST4 min read

Widen: open-source Postgres GUI for Mac with on-device AI

Widen: open-source Postgres GUI for Mac with on-device AI

Key takeaway

  • Widen is a free, open-source PostgreSQL workbench for macOS that converts English questions into SQL and runs them after your approval.

  • It defaults to cloud-based AI generation but can optionally use Apple's on-device model on newer Macs; all connection data and passwords stay local, and no account or backend server is required.

3 Key Points

  1. What happened

    Widen is a new open-source, native PostgreSQL GUI for macOS 14+ that lets users ask questions in English and generates SQL before running it. On macOS 26+ with Apple Intelligence enabled, it can use Apple's on-device Foundation Model; otherwise it uses a cloud provider (defaulting to OpenRouter with GPT-4.5) that you configure yourself.

  2. Why it matters

    For Postgres users on Mac, Widen removes friction in writing SQL by drafting it from natural language, while keeping full control — you review and approve every statement before execution. The app stores no data on a backend, requires no account, and runs passwords through macOS Keychain, appealing to teams handling sensitive databases locally.

  3. What to watch

    Text-to-SQL is still beta and must pass a published release gate (60 pinned-model tests with at least 90% semantic pass rate, 100% safety validity, 100% schema validity, and other criteria); the gate currently fails on semantic pass rate. Manual SQL editing and schema browsing work independently of AI features, so the tool remains useful even if text-to-SQL is disabled.

In Depth

Read the full story

Widen is a lightweight, open-source PostgreSQL GUI built natively for macOS 14 and later. The core workflow is straightforward: connect to a Postgres database, type an English question or raw SQL into a composer, and the app drafts SQL (if needed), validates it deterministically, shows it to you in a dashed card, and executes it only after you approve. Results appear as a bordered table in the same chat thread, with options to copy as CSV or export.

The text-to-SQL feature comes in two flavors. Cloud mode sends your question and allowed schema metadata to a provider you configure in Settings; Widen defaults to OpenRouter with a pinned openai/gpt-5.5 profile (you supply the API key yourself). Local mode uses Apple's on-device Foundation Model on eligible macOS 26+ Apple Silicon Macs with Apple Intelligence enabled; the model stays entirely on your device but has a small context window and works best on narrow requests over simple databases. Manual SQL editing bypasses the model entirely and works on all supported Macs.

Security is enforced at multiple layers. Out of the box, Widen has no backend, requires no account, and runs no analytics. Connection settings live in ~/Library/Application Support/Widen/connections.json, but passwords are stored exclusively in the macOS Keychain. Every SQL statement—whether typed manually or AI-drafted—passes through a deterministic safety validator that allows only one statement per run, blocks DDL and transaction keywords, forbids pg_sleep and dblink calls, enforces statement timeouts (default 10 seconds), and caps row limits (default 100). Writes are never auto-run; DELETE and UPDATE without a WHERE clause require explicit confirmation. The app-level guardrails are optional (you can connect with a read-only Postgres user for additional defense).

The text-to-SQL feature is explicitly beta and locked behind a hard release gate that requires 60 pinned-model test results meeting these criteria: at least 90% end-to-end semantic pass rate, 100% safety validity, 100% schema validity, 100% clarification decision accuracy, at least 95% transport reliability, and zero repeated-repair failures. The gate currently fails on semantic pass rate, so text-to-SQL remains beta. The creators publish negative results and failed experiments publicly, and the cloud model is pinned to the evaluated openai/gpt-5.5 version; if the provider's alias drifts to an unevaluated version, cloud generation fails closed rather than silently running an untested model. Users can run the evaluation themselves with `make eval-release`.

The app organizes work into persistent sessions per database, each with its own chat transcript, active SQL, and generation metadata stored in ~/Library/Application Support/Widen/sessions.json. Query results are not persisted across restarts, but transcripts and SQL text are. A schema browser in the right-hand inspector lets you browse tables, columns, types, and foreign keys; schema snapshots are cached so the last known structure is available immediately on relaunch. Keyboard shortcuts include Enter to submit in the composer, Option+Enter for a newline, Cmd+Enter to run the active SQL, Cmd+N to start a new session, and Cmd+R to refresh the active database's schema.

Context & Analysis

Widen addresses a specific pain point for Postgres-focused developers on macOS: converting natural-language questions into correct SQL without learning complex database query syntax or relying on heavyweight all-in-one tools. By pairing Apple's on-device Foundation Model (on eligible hardware) with configurable cloud alternatives, the tool offers users a choice between privacy-first local inference and broader schema compatibility—a practical tradeoff for teams with different security postures.

The beta status of text-to-SQL is deliberate and transparent. The creators published specific, measurable release gates (semantic pass rate, safety validity, schema validity, transport reliability, and zero repeated-repair failures) and admit the feature currently fails on semantic pass rate. This framing—acknowledging shortcomings and documenting failed evaluation experiments—suggests the project prioritizes correctness over feature-launch momentum. For users, it means text-to-SQL is present but should not be trusted for production queries until those gates pass.

FAQ

What are the system requirements to use Widen?
Widen requires macOS 14 or later and PostgreSQL. Apple Silicon is required only for the optional on-device Foundation Model, which also needs Apple Intelligence enabled and macOS 26+. Cloud text-to-SQL works on older supported Macs.
How does Widen handle security and privacy?
Widen has no backend server and requires no account. Passwords and API keys are stored in the macOS Keychain and never on disk in plaintext. Cloud text-to-SQL sends only the question and allowed schema metadata to your configured provider (defaulting to OpenRouter with zero-data-retention endpoints). All query results and transcripts stay on your Mac.
When will text-to-SQL move from beta to production?
Text-to-SQL is behind a hard release gate requiring at least 90% semantic pass rate, 100% safety validity, 100% schema validity, 100% clarification decision accuracy, at least 95% transport reliability, and zero repeated-repair failures across 60 pinned-model tests. The gate currently fails on semantic pass rate.

Get the latest Large Language Models news every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleOpen-weight AI models threaten pricing, but cloud giants stay profitable

The AI news that matters, in one minute each morning.

Sign up free