Connect opencode to your database.

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

Uses the opencode you already run. Your providers, your config.

Valv detects the coding agents on your machine and drives them against your data. opencode brings whatever model you've set it up with, and the billing stays where it already is.

AI provider

opencode Active

Uses your provider setup. Nothing extra to pay.

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

opencode turns your question into a query you can read, edit, 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. opencode 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

opencode + your database, answered

How do I connect opencode to my database?

Install Valv Desktop and add a connection string. Valv detects the opencode CLI on your machine and drives it against your database. You don't wire anything up by hand or paste credentials into a prompt.

Which model does opencode use through Valv?

Whatever you've configured in opencode. opencode is provider-agnostic, and Valv inherits your setup, so the same model and account you use in the terminal answers your database questions. Valv adds no separate AI bill.

Which databases work with opencode 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 opencode never sees them.

Is Valv Desktop free?

The beta is free, on macOS today.

Point opencode at your database.

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