AI in Rowpilot
Rowpilot connects AI agents to your data, with you in control of every tool call. You have to bring your own agent and keys.
AI agent communication runs through a chat located in the right sidebar - click or press Cmd/Ctrl+I.
In the chat you can mention tables and even specific columns using @. This helps narrow the context and get better results.
Setup providers
Providers are configured in Settings → AI. The following table contains the supported/built-in AI providers. Check the configuration on the individual pages.
| Provider | Type | Install | Authentication |
|---|---|---|---|
| Claude Agent | ACP agent | Downloaded and managed by Rowpilot | Claude subscription or ANTHROPIC_API_KEY |
| Codex/ChatGPT | ACP agent | Downloaded and managed by Rowpilot | ChatGPT login, CODEX_API_KEY or OPENAI_API_KEY |
| Cursor | ACP agent | Requires the Cursor agent CLI on your machine | Cursor login |
| Antigravity | ACP agent | Requires the Antigravity CLI (agy) on your machine | Google login or GEMINI_API_KEY |
| OpenAI-compatible API | Direct API | Nothing to install | Your API key or an env variable |
ACP agents connect via the Agent Client Protocol and run as local processes using your existing subscription or login. Rowpilot can also act as a tool provider for agents running outside the app; see External MCP.
Chatting with your Agent
- Every chat is a new ACP session
- Chats cannot be shared between providers - switching from Claude -> Codex will create a new chat for that provider
- You can configure your model, model settings (effort,...) and personas once the session starts
- Sessions are managed by the ACP agents
- You can resume your old chats if the ACP agent supports it
- Chat tools:
- to access chat history
- to create a new chat thread
- to configure knowledge base
- to restart ACP session
- to delete the chat thread
Personas
Pick the agent capabilities that fit the task:
- Agent: general purpose, for SQL and data questions
- Analyst: data exploration and visualization (charts and Mermaid diagrams render right in the chat)
- Editor: focused SQL writing
Each persona has a unique system-prompt tailored for that specific use case.
Agent capabilities
Agents can work with Rowpilot's data and connections using custom MCP tools:
| Tool | What it does |
|---|---|
read_schema | Read the catalog of schemas, tables, keys and relationships |
read_schema_functions | List stored functions/routines with their signatures |
read_table_schema | Read the CREATE TABLE DDL of specific tables |
select | Run a read-only query (writes and DDL are rejected) and stash the result |
analyze_results | Slice a stored result (overview, head, tail, grep, describe, value counts) without re-running the query |
run_in_editor | Run a statement from a query file so results land in your normal result grid |
write_query_file | Propose creating, editing, appending to or overwriting a query file |
edit_file | Propose replacing a query file's full content |
list_resources | List query-file resources |
read_resource | Read a query-file resource |
connect_data_source | Open the active data source's connection |
get_connection_status | Report whether the active data source is connected |
get_transaction_state | Report a pending transaction awaiting your decision (Guard mode) |
remember | Save a durable note about the data source to its knowledge base |
get_internal_knowledge | Read Rowpilot's built-in guide to each data source type, the AI features and workspaces. Always available |
The agent also gets context from what you're doing: the open query file, query results, opened table data, @ mentions and knowledge base.
The permission model
Every tool has a permission level, set per tool in Settings → AI → AI Tool Settings:
- Manual (default): Rowpilot asks before running this tool
- Auto: Rowpilot runs this tool without an internal permission prompt
- Off: the tool is not available to agents
These settings do not change your ACP agent's own permissions!
Dedicated AI connection
Agents and External MCP reach a database over their own read-only connection. On some data source types you can specify dedicated connection user and settings, under AI connection in the data source dialog:
- Off: no AI connection, agents cannot reach the data source
- Same connection: uses the data source's user
- Dedicated: uses a separate database user that you enter for AI
This feature enables having primary connection with different permissions from AI connection.
SQL suggestions as diffs
When the agent proposes a change to your query file it appears as an inline diff which you have to review and then accept or reject.
Knowledge base
When writing queries certain bits of information or business logic might be hidden. A knowledge base per data source enables you to describe specific terms to your agent.
Agents can remember new knowledge using a tool or you can manually enter it in the chat toolbar by clicking
You can enter the following bits of information:
- Glossary: business term → meaning
- Business rules
- Column notes: what the values in a column actually mean (e.g.
status 3 = refunded) - Free-form notes
Diagram support
- Ask agent to give you result as a diagram - it supports rendering
mermaiddiagrams - Diagrams can be explored and exported
Security & Privacy
You share your data with the providers you set up. Rowpilot stores chat history only locally on your computer. Details in Security & privacy.
