Connections
How to add a database, what syncs to your other devices, and how to reach local servers.
Add a connection
Click New connection, or press Cmd+N (Ctrl+N) on desktop. Then paste whatever you have. Cmd+V works anywhere on the page, no need to click into a field first.
Tamery reads most things people keep connection details in:
- Connection URLs, JDBC, ADO.NET, and ODBC strings
.envfiles, Spring or Quarkus properties, JSON and JS config objects- A
docker-composeservice, using its published port - Commands like
psql,pg_dump,mysql,sqlcmd,clickhouse-client, orssh -L - A libpq
host=… dbname=…string or a.pgpassline
You can also drop a config file onto the window. Tamery fills in the fields, and you can always edit them by hand.
When a pasted string has a known problem, Tamery fixes it and tells you what changed. A placeholder password like [YOUR-PASSWORD] is cleared so you can type the real one. A pooler address that breaks transactions is swapped for a direct one.
Choose an engine, check the details, and click Save connection. Cmd+Enter (Ctrl+Enter) saves from anywhere in the form. The name is optional.
On desktop, and through each machine you're connected to, you also get:
- A list of databases found on this computer: running Docker containers, and connections saved in DBeaver, TablePlus, DataGrip, pgAdmin,
pg_service.conf,.pgpass, ormy.cnf. On macOS, the desktop app can take a saved password from the Keychain once macOS asks you; through a machine, a saved password for a database on the machine's computer, without an SSH tunnel, stays there, which uses it for the connection you save from it, for every app you allowed on that machine. The password never leaves that machine, so another place that can run the connection may ask you for it. A password for a database elsewhere, or one in the Keychain, you type. - Add via MCP (desktop only), where your coding agent finds the database in your project and adds it for you.
- Dropping a SQLite or DuckDB file onto the window (desktop only). See SQLite and DuckDB.
Choose where it runs
Runs on picks where this connection's queries run for you: Tamery Cloud in the web app, This computer in the desktop app, or one of your machines. The desktop app also offers Tamery Cloud when the web app could reach the connection: synced as Full, with a public host and no SSH tunnel. With only one place to run it, the choice is hidden. Picking a database a machine found sets it for you. Each workspace member picks their own, also from the connection's ⋯ menu on the connections page or the computer or cloud icon at the top of the open connection, which members who can't edit the connection use. When Tamery Cloud doesn't answer, the open connection says so and keeps that icon, so you can switch it to This computer from there.
Choose what syncs
| Sync type | On another device |
|---|---|
| Full | Open the connection without re-entering its password. The full connection string is stored encrypted in the cloud. |
| No password | Enter the password and any SSH or SSL key secrets on each device. The rest of the connection syncs. |
| Metadata only | Enter the server details on each device. Only the connection's name, engine, label, and color sync. |
You pick this when you create the connection, and it stays. To switch, add the connection again with the sync type you want. Security explains what reaches our servers in each case.
Local and private databases
The desktop app connects directly. In the web app, run tamery machine on a computer that can reach the database.
For a database behind an SSH bastion, turn on SSH tunnel in the connection form. Use your SSH agent, a key file, a pasted key, or a password. SSH tunnels work on desktop and through tamery machine.
For a database in Docker on that server, use its container or Compose service name as the host, like db, and the port inside the container. When the server can't resolve that name, Tamery finds the container there, so the database needs no published port. Your SSH user needs access to Docker.
If the test fails
Tamery names the likely cause and offers a fix when it has one. Usual suspects: the host, the port, the password, SSL settings, or an allowlist of IP addresses on your provider's side. In the web app, allow the cloud proxy's addresses.
Explain with AI helps with an error you have not seen before. It is free on every plan.
After a failed test, the save button becomes Save anyway. Use it for a server you can't reach from here yet.
Manage connections
Right-click a connection, or use its ⋯ button:
| Action | What it does |
|---|---|
| Edit | Change the details. Save changes tests them before saving. |
| Open in New Window | Desktop only. Work on two connections side by side. |
| Refresh | Check the connection again and reload its list of databases. |
| Copy connection string | Copy it for another client. SSH secrets are left out. |
| Clear saved credentials | For No password connections. Forget the password on this device. |
| Remove | Remove the connection from Tamery, with its saved queries and chats, on every device. The database itself is not touched. |
Give connections a label and a color in the form. The list groups by label by default; switch to grouping by engine, or sort by date or name. Connections you opened recently sit at the top.
Database links
On desktop, postgres://, mysql://, mariadb://, sqlserver://, mssql://, clickhouse://, mongodb:// and mongodb+srv:// links open in Tamery. A link to a server you already have opens that connection. Anything else opens a new connection form, filled in from the link.
Turn this off in Settings → General → Open database links in Tamery.
Offline
On desktop, you can keep querying any database you can still reach. Changes to connections and saved queries sync when you are back online. If two devices change the same connection, the change that reaches Tamery last is the one every device keeps, whatever their clocks say. Signing in, creating a workspace, and AI need the internet, and so does the web app. When this device loses its network on the way out, to a public database host, the SSH host, or the web app's cloud proxy, the failure says you're offline instead of blaming the host. An error the cloud proxy or a machine answers with keeps its own diagnosis, and a failure keeps the network it happened on: once you're back online, it asks you to try again.
Connection examples
Connect to PostgreSQL or TimescaleDB, including Supabase, Neon, Timescale Cloud, and local servers.
Connect to MySQL or MariaDB using a connection string or the connection form.
Connect to Microsoft SQL Server or Azure SQL.
Connect to Oracle Database 12c or later.
Connect to MongoDB 5.0 or later, including MongoDB Atlas, and query it in mongosh syntax.
Connect to ClickHouse Cloud or a self-hosted server over HTTP.
Open a SQLite file or connect to Turso and Cloudflare D1.