Postgres GUI for your Mac powered by an open-weight LLM

Widen is a free, open-source, native macOS Postgres GUI. Its agents use open-source models based on DeepSeek and hosted in the US to search your schema, draft SQL, and verify it against PostgreSQL before it reaches your editor.

Swift · Text-to-SQL agents · Your Particle API key · MIT

Models by Particle · Hosted in the US

Widen Postgres GUI showing a benchmark query, SQL results, and the schema browser on macOS.

Text-to-SQL that verifies itself

Search. Draft.
Verify. Run.

Instead of dumping your whole schema into one prompt, Widen's agents search your schema, call only the tables they need, draft SQL, and verify it against PostgreSQL before it reaches your editor. If it doesn't parse, they get one repair — then stop.

  • Verified before run
  • Review-before-run
  • Open-source LLMs
  • No Widen account
  • MIT

Features

01

Ask in plain English

Type a question. Widen's agents search your schema for the right tables and columns, draft SQL with an explanation and confidence, and verify it against Postgres before showing you.

  • Agents discover the schema themselves — no giant context dump
  • SQL is verified against PostgreSQL before it reaches your editor
  • One repair if it doesn't parse, then it stops
  • Or write raw SQL yourself when you don't need the agents
  • Persistent sessions that survive restarts
You

Which users have spent the most?

generated SQL · editable verified · Postgres
SELECT u.name, SUM(o.total_cents) / 100.0 AS spent
FROM users u
JOIN orders o ON o.user_id = u.id
GROUP BY u.name
ORDER BY spent DESC
LIMIT 5
query complete · 4 rows · 11 ms
name spent
Ada Lovelace $482.50
Grace Hopper $391.00
Alan Turing $274.20
Katherine Johnson $168.75
⌘↵ Run ⌘N New session ⌘R Refresh schema

02

Open-source models. Your API key.

Widen runs its agents on open-source models based on DeepSeek, served by Particle and hosted in the US. Bring your own Particle API key, ask a question, and review the SQL before you run it.

  • Questions and relevant schema sent to Particle
  • Data inspection only when you enable it for a connection
  • Passwords and API keys stored in the macOS Keychain
  • You pay Particle directly for model usage
  • No Widen account or model downloads
Models Particle
  • Open-source LLMs
  • Hosted in the US
  • Key stored in macOS Keychain
Bring your own Particle API key

03

A focused Postgres workbench

Connect your Postgres databases, browse schemas, keep sessions, and run SELECT, INSERT, UPDATE and DELETE from one native Mac app.

  • One native app for local and remote Postgres databases
  • Ask for SQL or write it yourself, review the statement, then choose whether to run it
  • Single-statement validation before execution
  • Timeouts, row caps and confirmations for dangerous writes
  • Schema-design tools like creating or altering tables come next
data change query review then run
UPDATE public.orders
SET status = 'archived'
WHERE id = 42;
Data changes run today. Table-structure editing comes later.

FAQ

Common questions

Is it really free?

The Widen app is free and MIT-licensed. You bring your own Particle API key and pay Particle directly for model usage. Browsing schemas and writing SQL by hand do not require an API key.

Does my data leave my Mac?

Your questions, relevant schema, and query context are sent to Particle for inference hosted in the US. Query result tables and database credentials are not sent to the model. Inspected data values are shared only when you enable data inspection for that connection.

How do the SQL agents work?

Instead of dumping your whole schema into one prompt, Widen's agents search your schema for the relevant tables, inspect the columns and join paths they need, then draft SQL. The draft is verified against PostgreSQL — parsed and bound in a read-only transaction — before it reaches your editor. If it fails, the agent gets one repair attempt, then stops.

Can the AI modify my database?

Yes. It runs SELECT, INSERT, UPDATE and DELETE, whether the model wrote the SQL or you did. It’s meant for developers managing their own Postgres databases, so review generated SQL before running it. Creating or altering tables isn’t implemented yet.

Which models does Widen use?

Open-source models based on DeepSeek, served by Particle and hosted in the US. The agents use them to explore your schema and draft SQL, then Widen verifies the draft against PostgreSQL before showing it to you.

What do I need to run it?

A Mac running macOS 14 or later, a Particle API key for text-to-SQL, and a PostgreSQL server you can reach. Postgres.app on localhost works great.

Does it work on older macOS?

Yes. Widen supports macOS 14 or later. SQL generation runs on Particle, so there is no model to download or run on your Mac.

What are the current limitations?

It's an early release. PostgreSQL only, no table-structure editor yet, results render as a plain table, no SQL syntax highlighting yet, and query results aren't kept across restarts. Transcripts and SQL are saved, so rerun a query to repopulate its grid.

What about MySQL or SQLite?

PostgreSQL only for now. It’s the focus of the MVP; other engines may come later.

How do I install it?

Download the macOS app from the releases page, or build it from source with Xcode 26 (git clone, then make run). It’s open source, so you can read the source first.

Where do the models run?

Particle runs Widen's model inference on servers hosted in the US. Your questions and relevant schema are processed there; Widen connects to Postgres from your Mac.

Can I use Widen without an API key?

Yes. Connect to Postgres, browse schemas, and write and run SQL yourself. Add your own Particle API key when you want the agents to draft SQL from a question.

Talk to your Postgres in plain English

A native Swift Mac app that's free, open source, and verifies every query against Postgres before it runs.

Free app · MIT · macOS 14+ · Your Particle API key

Build from source
git clone https://github.com/betocmn/widen && cd widen && make run