Connect OpenAI Codex to your database.

Valv Desktop gives Codex structured access to Postgres, MySQL, SQLite, and ClickHouse, using the Codex already on your machine. Ask in plain language, get real SQL and live charts, and keep every credential on your laptop.

Uses the Codex you already run. No API keys, no second subscription.

Valv detects the coding agents on your machine and drives them against your data. Your model, your billing.

AI provider

Codex Active

Uses your subscription. No API keys.

Ask in plain language. Get real SQL, tables, and charts.

Codex turns your question into a query you can read and re-run. Results land as files in your workspace — the same files you and the agent both work on. See how the text-to-SQL flow works.

which plan churns the most?
SELECT plan, count(*) AS churned
FROM cancellations
GROUP BY plan
ORDER BY churned DESC;

3 rows · saved to churn.html

Column-level control. Codex sees only what you allow.

Credentials stay in your OS keychain and queries run locally. Hide PII columns and the agent never sees them. Access is deny-by-default.

AI access

orders Full access
subscriptions Full access
customers.email Hidden
payments.card_number Hidden

Codex + your database, answered

How do I connect Codex to my database?

Install Valv Desktop and add a connection string. Valv detects the Codex CLI on your machine and drives it against your database — no manual wiring and no pasting credentials into a prompt.

Do I need an OpenAI API key or a separate plan?

No. Valv uses the Codex you already run, so it bills through your existing subscription. There are no extra API keys and no second seat to buy.

Which databases work with Codex through Valv?

Postgres, MySQL, SQLite, and ClickHouse. You connect the same way you would with any database client.

Does my data leave my machine?

No. Credentials live in your OS keychain and queries run straight from your laptop. You can hide PII columns so Codex never sees them.

Is Valv Desktop free?

The beta is free, on macOS today.

Point Codex at your database.

Free macOS beta. Connect a database in a couple of minutes.