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.

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.

  1. 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.
  2. Under Database Configuration, complete the connection fields:
FieldDescription
Display nameAny name that's useful to you. This is how the database appears in QueryDesk.
Database IP or hostnameThe IP address or hostname only. For example: 10.1.0.132 or mydb.cluster-abc123.us-east-1.rds.amazonaws.com.
PortLeave it empty to use the default port for the database type. Fill it in only if your database listens on a different port.
Database nameThe actual database name, not the display name. For MySQL, this is the schema name.
Database typeYour database engine, for example PostgreSQL or MySQL.
  1. 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.
  1. 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.
  2. 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.
  3. Click Test Connection under the credential. Connection successful confirms QueryDesk can reach your database as that user.

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:

ItemDescription
DatabasesYour connected databases and the starting point for running queries
Pending queriesQueries waiting for approval before execution
Query libraryYour saved private queries
Shared queriesQueries shared across your organization
DashboardsData views built from your database connections
WorkflowsAutomated multi-step processes combining queries, API calls, and notifications
Audit logA 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 SELECT query 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.

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:

OptionDescription
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 asSelects which database credential the query runs under.
Run automatically on approvalFor 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 queryGenerates 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 unredactedOn 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.

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:

  1. Click the Settings gear icon at the bottom of the left navigation.
  2. Click Users in the Settings navigation.
  3. Click the Invite User button.
  4. In the Invite user window, enter your teammate's name and email address.
  5. Leave all Permissions unchecked. Your teammate doesn't need admin permissions to approve queries; approval is granted per database in the next section.
  6. Click Add & invite. Your teammate appears in the Users list, with a Pending invite status until they first sign in to QueryDesk.
  1. Your teammate opens https://app.querydesk.com and 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.

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 1 or 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.

Add the read/write credential

  1. 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.
  2. In the Credentials section, click + Add Credential.
  3. Enter the read/write user's Username and Password.
  4. Set Reviews to 1.
  5. 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 - 0 executes 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 to 0.
  • 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.

Make your teammate an approver

You can make your teammate an approver as soon as you invite them.

  1. On the same settings page, scroll down to RBAC (Role-Based Access Control) and click Add user.
  2. In the Assign user dropdown, select your teammate and click Add user.
  3. 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

  1. 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 SELECT statement is fine: any query run under the read/write credential requires review, including a SELECT.

  2. Click the arrow next to Run query to open the Run query window.

  3. Set Run as to your read/write credential (1). The window shows 1 review required.

  4. Click Request review (2).

Run query window showing Run as set to the read/write credential, 1 review required, and the Request review button

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.

Approve the query

Your teammate approves the query:

  1. Click Pending queries in the left navigation. The Approver for filter shows only the queries this user can approve.
  2. Review the query and click Approve. Approving does not execute the query.

Pending queries from the approver's view showing the SELECT query, 0 of 1 approvals, and the Approve button

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:

  1. Click Pending queries in the left navigation. The approval count on your query now reads 1/1.
  2. Click Run Query. The Query result window shows the rows it returned.
  3. 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.


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.

Audit log entry for the approved query showing the database, credential, submitting user, 1 of 1 approvals, and run time

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.

  1. Open a database from Databases, click AI assistant in the database panel, then click Setup AI. This opens Settings.
  2. Click Integrations in the Settings navigation, then click Settings next to AI.
  3. 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.

Was this page helpful?