SQL and connections
Connect a database, inspect its schema and review writes before they run.
Add a connection
In the sidebar, open Connections and click +. Pick a database type. Enter the connection details or choose the local database file.

Mark the connection Read-only if you only need to query it. Test the connection, then add it. Pick the connection in the SQL tab (⌘2).
Browse and query
Open a table to browse its rows and inspect its columns. In the SQL editor, enter a statement and press ⌘↵ to run it.

For a write, read the statement and any affected row count on the approval card before deciding. Read-only connections reject writes.

Open Audit in the right panel to see past write decisions. See Database approvals for dry runs and undo.
Give tabs their own database copies
Open the space settings and enable the per agent switch beside an eligible database.

Open a new agent tab in that space. Check the database chip or the connection selector for the tab’s copy before running a write.

When closing the tab, read the choices for its copy. Choose whether to keep it with the archive or drop it before closing.
How connections behave
- Postgres, MySQL/MariaDB, SQLite and DuckDB. DuckDB queries a folder of CSV, Parquet and JSON files, or a
.duckdbfile, with no network, no extensions and nothing outside that folder. - A connection opens when you use it and closes after 15 idle minutes. Its row shows not connected, connecting, connected or failed, with the error.
- Passwords go to your macOS keychain. Agents use a connection by its name and never see the password.
- Remote hosts require TLS by default. SSH tunnels use your Mac's own
ssh: your keys, agent and~/.ssh/config. - In the SQL tab, results can be filtered and exported as CSV or JSON. Explain shows the plan, and the index that would fix a full scan.
- Agent queries follow your global rules and the project's
.cocobox/policy.toml. More in Guardrails.