Getting Started
This guide will get you up and running with QueryDesk. It covers your deployment options, then walks through connecting your first database, running a query, inviting a teammate, and sending a query through an approval flow.
Plans
Every sign-up, cloud or self-hosted, starts on the Free plan. The Free plan is for one person, includes every feature, and needs no credit card. It is not a trial and does not expire.
Adding a teammate moves your organization to the team plan, which you pay for by card in QueryDesk. There are two ways to upgrade:
- In Settings > Billing, click Upgrade to the team plan.
- Invite a second person. The Invite user window asks for a card and pays for both seats.
Deployment options
Cloud hosted
QueryDesk Cloud is the app at app.querydesk.com. Every record and every query is scoped to your organization, so other organizations on QueryDesk Cloud never see your data. You can sign up for free at querydesk.com. Security covers where QueryDesk Cloud runs and what it stores.
A dedicated cloud install is available on request. Reach out to support@querydesk.com.
Self hosted
QueryDesk can also be self hosted, with every feature. It is free for one user, and the team plan is $12 per user a month, the same as cloud.
It currently is available as a helm chart. Follow the QueryDesk Helm chart instructions.
If you need a different deployment method, please reach out to support@querydesk.com.
Bring your own cloud
If you would like us to manage your installation in your own cloud, please reach out to support@querydesk.com.
Before you begin
You will need the following to complete this guide:
- A database QueryDesk can reach. QueryDesk Cloud connects to your database from
35.224.237.12, so your database's firewall, security group, or allowlist must accept connections from that address. If your database can't be reached from the internet, QueryDesk can connect through a Tunnel running inside its network instead. - Two database users: a read-only user and a read/write user. QueryDesk uses these as credentials, and the pair is what makes approval flows possible. Create a read-only user shows how on each engine. If you don't manage database users, get them from your IT, DevOps, Engineering, or Operations team before starting.
- A teammate's email address. Approvals need a second person. If you're evaluating on your own, a second email address you control works too. Either way, adding a second person moves your organization to the team plan, as described in Plans.
Don't want to connect a real database yet? On QueryDesk Cloud, add the sample databases when you create your organization. Lumen Payments, Cartwheel and Orbit hold fake data and need no setup. They are read only, so they work for running queries and trying an AI agent, but the approval flow later in this guide needs a database of your own.
Connect a database
The first time you sign in, QueryDesk asks you to name your organization. Enter an Organization name under Create your organization. On QueryDesk Cloud, click Continue: QueryDesk then offers to add the sample databases and shows how to connect an AI agent. Add the samples, or click Skip or Connect my own database instead to connect your own as below. On a self-hosted install, click Create organization. When an AI app sent you to sign in, onboarding ends on that app's approval screen instead of the agent steps.
Everything else in QueryDesk starts from a connected database, so this step comes first. Adding a database takes a super admin, and the account that signs up is one.
- Click Databases in the left navigation, then click New database. QueryDesk opens the settings page of the new database. Changes on this page save as you make them. There is no Save button.
- Under Database Configuration, complete the connection fields:
| Field | Description |
|---|---|
| Display name | Any name that's useful to you. This is how the database appears in QueryDesk. |
| Database IP or hostname | The IP address or hostname only. For example: 10.1.0.132 or mydb.cluster-abc123.us-east-1.rds.amazonaws.com. |
| Port | Leave it empty to use the default port for the database type. Fill it in only if your database listens on a different port. |
| Database name | The actual database name, not the display name. For MySQL, this is the schema name. |
| Database type | Your database engine, for example PostgreSQL or MySQL. |
- In the Credentials section, click + Add Credential. Enter the Username and Password of your read-only database user, leave Reviews at
0, and check Default. The default credential is the one QueryDesk uses to list your tables.
Use the read-only user here. You'll add the read/write user in Create an approval flow.
- If your database requires encrypted connections, turn on Enabled in the Encryption section. Paste the Server CA Certificate, Client Key, and Client certificate if your database requires them (these may be optional depending on your database configuration). Work with your IT, DevOps, or Engineering team if you need help obtaining these.
- Leave Verify server hostname (verify-full) off unless you know the server certificate's hostname matches the Database IP or hostname field. Many managed database services use certificates that won't match.
- Click Test Connection under the credential. Connection successful confirms QueryDesk can reach your database as that user.
If the connection test fails, check the network first. The most common causes are a firewall or allowlist that doesn't include 35.224.237.12, an incorrect hostname or port, or an encryption setting that doesn't match what your database requires. If the database isn't reachable from the internet, set up a Tunnel and choose it in the Tunnel field.
First look at QueryDesk
Click Databases in the left navigation. Your database is now listed on the Databases page.
The left navigation gives you access to everything in QueryDesk:
| Item | Description |
|---|---|
| Databases | Your connected databases and the starting point for running queries |
| Pending queries | Queries waiting for approval before execution |
| Query library | Your saved private queries |
| Shared queries | Queries shared across your organization |
| Dashboards | Data views built from your database connections |
| Workflows | Automated multi-step processes combining queries, API calls, and notifications |
| Audit log | A complete record of every query run against every connected database |
Apps, above the icons at the bottom of the left navigation, switches between the products your organization is licensed for. The Settings gear opens Settings, which has its own navigation listing every settings page; use Apps there to return to a product. Labels, the tags that organize saved queries, are managed from Query library: click Manage next to Labels.
Run your first query
On the Databases page, click Connect on your database. This opens the query interface.
The interface has three main areas:
- Left panel: lists the tables in the connected database. Click any table name to load a
SELECTquery for that table automatically. - Query pane: where you write or edit SQL.
- Results pane: where query output appears after execution.
Click a table name in the left panel, or type a query in the query pane, then click Run query. If you added the Lumen Payments sample database, this counts the last 30 days of card transactions and what they added up to:
SELECT count(*) AS transactions, sum(amount_cents) / 100.0 AS total
FROM transactions
WHERE created_at > now() - interval '30 days';
The left panel lists the tables from the database's last schema sync. Opening the query interface requests a sync, at most one every 5 minutes for each database. To sync at once, for example after correcting a credential, an admin can choose Sync schema from the Actions menu in the database's settings. The page says whether the sync worked, with the database's reason when it did not. When a sync fails, the Databases page shows a warning icon on the database, with the reason, to everyone who can use it. The warning stays until a sync completes. A database whose default credential requires reviews is synced like any other, because a sync reads table and column names and no rows. For a database that has no default credential, an admin clears the warning with Sync schema, which does not connect to the database.
For PostgreSQL databases that have a public schema alongside other schemas, the left panel currently lists only the tables in public, even when public is empty. Databases without a public schema list their tables normally. PostgreSQL creates a public schema in every new database by default, so this applies to most databases that use additional schemas. Support for listing every schema is in development. In the meantime, tables in other schemas can still be queried by name, for example SELECT * FROM sales.orders;.
Results appear in the results pane below. From there, you can:
- Click Export to download the results as a CSV file.
- Click Share to generate a shareable link.
Query options
The arrow next to Run query opens the Run query window, where you can adjust these settings before execution:
| Option | Description |
|---|---|
| Timeout (seconds) | Stops the query if it hasn't completed within the specified time. Also adjustable via the gear icon in the command bar. |
| Run as | Selects which database credential the query runs under. |
| Run automatically on approval | For credentials that require review, runs the query as soon as it's approved, so it doesn't have to go back to the submitter to run. |
| Analyze query | Generates a query plan instead of returning results. When enabled, the action button changes to Analyze query, and results are replaced with the query analysis. |
| Run unredacted | On a database that allows unredacted runs, when a data protection policy applies to you, sends the query for a peer review instead of running it. Once approved, you run it once from pending queries with nothing redacted. See data protection. |
The number of rows returned is capped at 500 by default. Adjust the limit, along with the timeout, via the gear icon in the command bar.
Saving a query
Click Save query to open a dialog where you can name the query and optionally mark it as private. Private queries are only visible to you. Queries saved without the private flag (default) are accessible to your team through the Query library.
Don't know SQL? Bring your own AI model and QueryDesk will make it schema-aware for your databases, so your team can describe what they want in plain language and get a working query back. See Set up the AI assistant below.
Finding and changing saved queries
Each saved query in the Query library names who created it. Turn on Only my queries under Search to list only the saved queries you created, private ones included. It works together with Search and Labels, and it stays on when you reload the page.
Select a saved query to see its History: one version for each change to its SQL, newest first, with who saved it and when. Retitling a query, making it private or changing its labels adds no version. Saved queries from before history was kept start with their SQL at the upgrade as their first version.
Click an earlier version to open it in the editor. Opening it saves nothing. Click Update query to make it the current version, which adds it to the top of the History and keeps the earlier versions, or Back to current to return to the current SQL.
Invite a teammate
Approvals need at least two people: one to submit a query and one to approve it. To add your teammate:
- Click the Settings gear icon at the bottom of the left navigation.
- Click Users in the Settings navigation.
- Click the Invite User button.
- In the Invite user window, enter your teammate's name and email address.
- Leave all Permissions unchecked. Your teammate doesn't need admin permissions to approve queries; approval is granted per database in the next section.
- Click Add & invite. Your teammate appears in the Users list, with a Pending invite status until they first sign in to QueryDesk.
The Invite user window shows whether adding this user uses an available license or adds a seat, along with the cost of any added seat. On the Free plan, inviting a second person asks for a card and moves your organization to the team plan, which pays for both seats. Settings > Billing always shows your actual billing.
Invited users do not receive an email invitation. Tell your teammate to sign in at https://app.querydesk.com with the email address you invited. On a self-hosted Installation, send its address instead.
- Your teammate opens
https://app.querydesk.comand signs in with the invited email address. They can enter their email address and click Email me a sign-in code, or continue with Google, Microsoft, or GitHub. QueryDesk opens your organization. If they sign in from Login on querydesk.com instead, Choose an organization lists yours under Invitations, and they click Accept invite.
A teammate who already belongs to another organization signs in to the one they used last. They choose Switch organization in their profile menu, sign in again, and click your organization in the list.
When signing in with Google, Microsoft, or GitHub, the account's email address must match the address you invited. Signing in with any other email address offers to create a new organization instead of opening yours.
If you are testing this as a single user with a second email address, use a different browser or private browsing window to avoid logging into the same session as the original user.
Create an approval flow
An approval flow is a credential with Reviews set to 1 or higher. Queries run under that credential wait for approval before they execute. The recommended setup uses two credentials:
- Read-only user: Reviews set to
0. Queries run immediately, which is safe because the user can't change anything. - Read/write user: Reviews set to
1or higher. Any query that could modify data waits for a second set of eyes.
This two-credential setup is a recommended best practice: a read-only credential for unrestricted data exploration, and a read/write credential with a review gate on any query that can modify data. You added the read-only user when you connected the database. Now you'll add the read/write user and make your teammate an approver.
Changes on the database settings page save as you make them. There is no Save button. Complete every field of a new credential before leaving the page.
Add the read/write credential
- On the Databases page, click the gear icon next to your database. From the query interface, you can also click Settings in the database menu.
- In the Credentials section, click + Add Credential.
- Enter the read/write user's Username and Password.
- Set Reviews to
1. - Click Test Connection under the new credential. Connection successful confirms QueryDesk can reach your database as that user.
Each credential has the following fields:
- Username - the database username.
- Password - the password for that user.
- Reviews -
0executes queries immediately. Any other number holds queries in the pending queue until that many approvals are collected. A user with read-only access would typically be set to0. - Timeout (seconds) - stops queries run under this credential if they haven't completed within the specified time.
- Default - when checked on a credential with Reviews set to
0, this credential is used by default for table views, proxy connections and database clients.
You can have as many reviews in the Reviews field as you have approvers. For example, setting Reviews to 5 instead of 1 would require 5 separate approvals from 5 separate reviewers.
Make your teammate an approver
You can make your teammate an approver as soon as you invite them.
- On the same settings page, scroll down to RBAC (Role-Based Access Control) and click Add user.
- In the Assign user dropdown, select your teammate and click Add user.
- In your teammate's Permission dropdown, select Approver. This user can now approve queries on this database.
Leave Restrict access to assigned users only turned off for now. While it's off, any user in your QueryDesk organization can run queries against this database, and RBAC entries grant additional permissions such as Approver.
Other database settings
The database settings page includes settings you didn't need to connect the database:
- Tunnel - used to connect to databases inside a private network. Tunnels are configured in Settings > Tunnels. See Tunnels. If you're unsure whether your database requires one, ask your IT, DevOps, or Engineering team.
- Group (optional) - groups multiple databases together in the Databases list.
- Encryption - the SSL settings described in Connect a database.
- Slack channel - if you've connected Slack in Settings, enter a channel name here, for example
#prod-query-approvals. Query submission notifications will be sent to that channel when a query is pending review. - Restrict access to assigned users only - limits access to the users and roles listed in RBAC. For each user or role, set a Permission (Run Queries or Approver) and optionally assign a Data protection policy. Users are managed in Settings > Users, roles in Settings > Roles, and data protection policies via the Manage policies link in the RBAC section. A role can also grant super admin, manager or billing admin to everyone in it, from Grant permission on the role's page.
- Allow super admins to bypass required reviews - adds a Bypass & run button to pending queries for super admins, which runs the query without an approval. Off by default.
Run a query through an approval flow
Submit a query for review
-
In the query interface of your own database, type a query in the query pane. A sample database refuses writes, so use the database you connected in Connect a database. A simple
SELECTstatement is fine: any query run under the read/write credential requires review, including aSELECT. -
Click the arrow next to Run query to open the Run query window.
-
Set Run as to your read/write credential (1). The window shows 1 review required.
-
Click Request review (2).

Turn on Run automatically on approval in the Run query window to have the query run as soon as it's approved. Nobody has to come back to run it.
Because the read/write credential requires one review, the query is not executed immediately. It goes to the Pending queries queue, and a Sent for review window opens with the number of approvals the query needs and the query's link. Click the copy icon to copy the link, or click View query to open the query in Pending queries in a new tab. Click Done to close the window. Both the submitting user and the reviewer can access the pending query via Pending queries in the left-hand navigation.
QueryDesk does not yet notify approvers in the app or by email. If you've connected Slack and set a Slack channel on the database settings page, a notification is posted there. Otherwise, send your teammate the link from the Sent for review window. In a transaction, the link stops working if the transaction ends before the query runs.
Approve the query
Your teammate approves the query:
- Click Pending queries in the left navigation. The Approver for filter shows only the queries this user can approve.
- Review the query and click Approve. Approving does not execute the query.

Each pending query displays the database and credentials it will run against, the timeout setting, when it was last edited, and the full query text.
From this view, a user with approver permissions can:
- Click the link icon to copy the link to the clipboard
- Click Approve to approve the query
- Click the comment icon to comment on the query
Run the approved query
Back in your own session:
- Click Pending queries in the left navigation. The approval count on your query now reads 1/1.
- Click Run Query. The Query result window shows the rows it returned.
- Click Done.
Once a query has been run, it is removed from the Pending queries view.
While a query is pending, the submitting user can also click Edit to modify it, Delete to discard it, or the comment icon to comment on it.
When your team uses QueryDesk in production, this separation between submitter and approver is the intended workflow. A user submits a write query; an engineer, DevOps lead, or designated approver reviews it before it runs. Queries that pose a real risk to production data don't execute until at least a second set of eyes clears them.
Evaluating on your own? Turn on Allow super admins to bypass required reviews on the database settings page, and a super admin sees a Bypass & run button on their pending query in Pending queries. Click it to run the query without an approval. Bypassed queries are flagged in the audit log, and the Bypassed only filter shows them all. Obviously, this is not a best practice in prod. For production databases, turn the setting off so every query on a gated credential gets its review.
Check the audit log
Click Audit log in the left navigation.
Every query that ran during this session is captured here: the database it ran against, the user and credentials, the timestamp, and the full query text. Queries that failed are recorded too. The queries you ran as your read-only user are here. So is the query you submitted and your teammate approved, along with its approval count. Rest the pointer on the initials under the count, or tab to them, to see who approved and when.

No configuration required. The audit log is always on. Watching. Waiting.
During a SOC 2 audit or an internal security review, this record is immediately available. There is no manual log reconstruction and no hunting across systems; every access event is captured automatically. You can also feed this log into your existing security tooling.
Set up the AI assistant
The AI assistant lets anyone on your team describe what they want in plain language and get a query back, without needing to know SQL. Rather than shipping a built-in model, QueryDesk has you bring your own: you supply an API key for an AI provider you already trust, and prompts and responses flow directly between QueryDesk and that provider. You stay in control of where your data goes and which vendor policies apply. Each organization configures one AI model.
QueryDesk makes the AI schema-aware for your specific databases, so the generated queries match the tables and columns you actually have.
- Open a database from Databases, click AI assistant in the database panel, then click Setup AI. This opens Settings.
- Click Integrations in the Settings navigation, then click Settings next to AI.
- Select a model from the Model dropdown, enter your API key for that model, and click Save.
Once saved, return to AI assistant in the database panel to open a conversation. Describe what you want to query in plain language. The assistant will generate SQL that you can run or edit before executing. Because your database schema is attached as context on every request, the suggestions are tailored to your specific databases without any training step on your part. The current date and time, in the timezone set in your account settings, are attached too, so relative requests like "last week" resolve against the real calendar.
What's next
With your database connected and your first approval flow complete, you've covered how QueryDesk handles the fundamentals: unified database access, controlled write operations with approval flows, and automatic audit logging. The following areas are worth exploring next:
- Integrations: under Settings > Integrations, connect Slack to post queries waiting for review to a channel, and AI to power the assistant.
- Workflows: automate multi-step processes by chaining database queries, API calls, Slack notifications, and human approvals into a single, repeatable operation.
- Data protection: set up data protection policies that control which columns are redacted for which users, enforced when each query runs so protected values stay in your database.