Skip to content
GitHub (opens in a new tab)

FAQ · Getting started

How do I give my AI access to a database safely?

Updated

Give the AI a database user that can only read, keep GateRook's default tool modes, and let every change wait for your approval.

  1. Create a database user that can only read, limited to the databases or schemas the task needs. GateRook's rules add to the database's permissions; they don't replace them.
  2. In GateRook, open Connections, select Add connection and choose your database. Enter the host, port, user and password, select Load databases, and tick only the databases your AI may use. Check the connection's environment, and for a remote server choose verified TLS, such as verify-full.
  3. Select Continue to test the connection, then save it on an endpoint with the default modes: sql_query and the other read tools in Read only, sql_execute in Approval.
  4. Connect your AI app to that endpoint in AI apps, ask a read question first, and check the call in Activity.

Reads are protected too: on PostgreSQL, MySQL and Oracle they run in read-only transactions and end with a rollback, and the environment caps them at 1,000 rows on dev and stage and 100 on prod.

Two limits remain. Allowed results reach your AI app and may reach its model provider, and an approved change really runs: approval is not rollback, so keep backups. See the PostgreSQL and MySQL guides.

All questions

Still have a question?

Ask the GateRook team.

Write to support@gaterook.com about setup, security or anything these answers do not cover. Report bugs and suggest features on GitHub.

Get GateRook

Download GateRook 2.0.0 for your Mac, or get the Windows app from Microsoft Store.

macOS

Version 2.0.0 for Apple Silicon (arm64). This download does not support Intel Macs.

Open the DMG and drag GateRook to Applications.

Windows

Available for free from Microsoft Store. Install GateRook and receive updates through the Store.

macOS release notes and checksums (opens in a new tab)

Optional analytics

Google Analytics measures visits and download clicks. You can turn it off here or change your choice later in Analytics settings.

Analytics is currently on.

Privacy Policy & cookie choices · Google privacy policy (opens in a new tab)