Set up DBGorilla with your coding agent
Paste this prompt into your coding agent in the project that needs a database. The agent installs the DBGorilla CLI, connects the DBGorilla tools, creates a hosted PostgreSQL database, writes its connection string to .env, and confirms that DBGorilla is monitoring it.
Set up DBGorilla (https://www.dbgorilla.com) for this project, so the project has a PostgreSQL database that DBGorilla hosts and monitors.
1. If I don't have a DBGorilla account yet, send me to https://app.dbgorilla.com/signup and wait until I tell you I've signed up.2. Install the DBGorilla CLI (https://github.com/dbgorilla/dbgorilla-cli) and sign in with `dbgorilla login`. It prints a sign-in link and code: show them to me and wait while I approve it in my browser. If I tell you I sign in with an email and password instead, use `dbgorilla login --mode password`.3. Run `dbgorilla setup-ide` to connect DBGorilla's tools to this coding agent. Then stop and ask me to restart the agent, because the new tools only load on restart. Continue from here once I say I've restarted.4. With the DBGorilla tools, create a hosted PostgreSQL database for this project and wait until it is ready.5. Get a login for it and put the connection URI in .env as DATABASE_URL, in double quotes.6. Confirm DBGorilla is monitoring the database, then tell me what else DBGorilla can do for it.The same prompt is available as plain text at /docs/agent-prompt.txt for the agent to fetch.
What the agent asks you
Section titled “What the agent asks you”The agent stops three times, at the steps named in the prompt:
- Your account. It asks whether you have a DBGorilla account and provides a sign-up link if you do not.
- Signing in. It displays a sign-in link and a code to approve in your browser.
- A restart. After
dbgorilla setup-ide, restart the agent so it loads the DBGorilla tools, then tell it that you have restarted it.
It performs the remaining steps automatically, in a few minutes.
What you end up with
Section titled “What you end up with”- The DBGorilla CLI, signed in.
- The DBGorilla tools connected to your agent, along with a DBGorilla skill that has the agent check the live database before changing SQL, schema or migrations.
- A hosted PostgreSQL database for the project, with
DATABASE_URLin.env. - DBGorilla monitoring that database, so query performance, recommendations and investigations work from the start.
dbgorilla setup-ide connects Claude Code, Cursor, VS Code, Gemini CLI and opencode. See Connect your editor for details about what it writes for each.
Related
Section titled “Related”- Hosted databases: sizes, logins, monitoring and deleting.
- MCP server: every tool your agent can call.
- Connect your editor: the setup
dbgorilla setup-idedoes, client by client.