AI assistant
Ask the AI agent about your data. It reads your schema, runs queries, and changes data after you approve.
Open a connection and press Cmd+L (Ctrl+L), pick New chat from the + menu in the tab bar, or click New chat at the top of Chats in the Navigator. The chat opens in its own tab, next to your tables and queries. Ask about your data in plain words.
Try:
- “Which customers ordered the most last month?”
- “Why does this SQL fail?”
- “Set the status of order 1042 to shipped.”
Each database keeps its own chats, on all your devices. Every chat is a tab you can switch to, close and reopen; a new one takes its title from your first question. New chat goes back to an open chat you have not written in yet instead of opening another; text you typed but did not send stays in its chat as a draft, listed under Chats until you send or clear it. You can stop an answer halfway, and an answer still being written survives a window reload.
The agent reads your databases from the window you chat in. If you close the desktop app while the agent is working, open the chat in the web app or on another computer and the reads it was doing carry on there, as long as that app can reach the connection: through Tamery Cloud, or a machine set in Runs on. A connection only your computer can reach, such as one on localhost or a database file, cannot run in the web app: the chat then stops and says the desktop app is needed, and the agent goes on once you open the chat in the desktop app or set Runs on to a machine and click Try again. A step that does more than read, such as a subagent, a message to another chat or a note, never runs twice: the chat says it stopped with the window that started it, and Continue asks the agent to carry on. A step that does not open the database, such as a note or opening a table, never waits for it. A change that was waiting for Run still waits for it.
To show the agent something, attach up to four images or PDFs of 5 MB each: click + under the message box, paste them, or drop them on it. They stay attached while you switch tabs, until you send or delete the chat; a file Tamery can't take is named above the message box. Attached files are stored apart from the chat, so a chat with many of them still opens quickly, and each one loads when you scroll to it; they are deleted along with the chat. To speak instead of typing, click the microphone or press Cmd+Shift+D (Ctrl+Shift+D), talk for up to two minutes, and click its stop button or press the shortcut again; what you said lands in the message box for you to check before sending, and nothing can be sent while you record. Esc drops a recording, and while the recording turns into text, clicking the spinner or Esc drops it too. A recording with no speech, or one that can't be turned into text, says so above the message box instead of adding words. Dictation is off while the box is in SQL, and switching to SQL drops a recording. The desktop app asks for microphone access the first time.
While the agent works you can keep typing: Enter queues your message, and it goes out as soon as the answer ends. When the answer ends on a question or a change waiting for Run, the queued message waits until you answer or decide, and after you stop the agent it waits for Continue or Send now. ⌘ Enter, or the Send now button, stops the agent and sends your message at once; the stop button beside it stops the agent and keeps what you typed. Queued messages show above the message box, where the arrow sends one at once and × takes one back. Typing anywhere in the chat goes to the message box. In an empty message box, Up arrow brings back your last message, or the ! statement you last ran. After an answer, the empty box suggests a likely next question; press Tab to take it, then edit or send it.
Hover over a message of yours to copy or edit it; an edited message is asked again, and everything after it is replaced by the new answer; the editor says so when later messages would go. Sending it unchanged only closes the editor. Under an answer you can copy its text and mark it as good or bad (click the mark again to clear it), and under the latest one ask again; it also says which model wrote it and how long it took; hover over the time to see when it was asked. Click an attached image to see it whole; clicking a PDF saves it.
What the agent does
A new chat opens with the message box in the middle. Until you have a chat about a database, a few ways to start sit under it, such as an overview of the database or a data quality check; pick one to send it. On a database with no tables they offer to design the tables with you or to create a sample schema to practise on instead.
The agent reads your schema and runs read-only queries on its own. On a large database it searches table and column names and comments instead of listing everything, and before filtering on a value you named, it checks how that value is spelled in the column. It also looks through your saved queries and builds on them instead of starting from scratch, and when you refer to an earlier conversation ("like last time"), it searches your chats and reads the one you mean, including the SQL it ran there. Each query shows as a card with the connection, its SQL and the rows it returned; drag a column's edge to widen it, or double-click the edge to fit it again. From the card you can copy the SQL, open it in a new Query tab to change and rerun it, and, for a result with dates or categories and a number, show it as a chart. The agent reads at most 200 rows and about 60 KB per query, and a value longer than 2 KB reaches it cut short, so it filters and aggregates in SQL instead of reading whole tables.
The agent's reasoning and schema lookups between the parts of an answer fold into one line, such as 5 steps; click it to see each step and what it found, such as Read orders 12 columns. Click a step to open what it read: a table's columns with their types and keys, the tables it listed or found (click one to open it), or a column's most common values with their counts. Queries and changes waiting for you always stay in view.
While it works, the chat names the step in progress, such as Reading orders. One message lets the agent take up to 25 steps and use up to 500K tokens, counting what it writes and reads anew but not the earlier chat it rereads from the cache. When it reaches either, the agent stops, says what it found and what is left, and Continue lets it carry on. Continue also appears when you stop the agent yourself; clicking Run or answering a question it left also lets it carry on.
Each month of Pro includes $5 of AI, which the chat shares with every other AI feature; past that, the chat spends AI credits, which you add by hand or top up automatically. With your own AI key, your provider bills the chat instead. When nothing can answer, the chat says so in place of the message box and offers to add a provider or to pay for Tamery's AI.
When a choice is yours, such as which of several matching rows you meant or what a new table should hold, the agent asks you instead of guessing. Its questions appear in the answer with a few answers to pick from, and you can always type your own; with several questions, Next and Previous step through them, and Answer sends them all. The agent waits until you answer, and the chat list marks the chat with a yellow dot meanwhile. When another window answered first, the questions read Decided in another window. To skip the questions, write your next message instead.
For what your database can't tell it, such as how a feature of your database engine works, which version added it, or what an error message means, the agent searches the web. Its line in the answer, such as Searched the web for and the question, opens the pages it read. The search sees only the question the agent writes, which it is instructed never to fill with your data, and it spends your AI budget like the rest of the chat.
When a query is slow, the agent reads its plan and recommends the index that would help, and creates it if you ask.
With MCP servers added in Settings → AI, the agent also uses the tools of other apps, such as Jira or Paper. Every call to another app waits for Run, also in Auto mode, since it can carry your data to that app.
To change rows or the schema, the agent writes a statement. In Ask mode, the default, a statement that changes data or schema never runs on its own. The chat shows it with Run and Decline, and the agent continues once you choose; until you choose on a first one, the card also says that changes wait for Run unless Auto is on. Statements that belong together come as one transaction, so you approve them once. The card waits for you when you reload or switch chats. With the chat open in several windows or on several devices, each statement runs only once: the first Run or Decline decides it, and the other windows show Decided in another window. On PostgreSQL and MySQL the card also says how many rows the database expects it to change, unless the table has no statistics yet to estimate from. Run turns red when the statement changes or removes existing data or schema.
A statement that uses a value from safe storage always waits for Run, also in Auto mode.
In Auto mode, picked under the message box, every statement is checked against your last message, and against the agent's reply before it when you answered that reply, such as with "yes, do it". A statement runs on its own when the check is sure it does only what you asked, also while you work in another tab. The check needs to be surer for a statement that changes or removes existing data than for one that only adds rows, tables or indexes. A statement the check is unsure of is skipped: the agent goes on without it and ends its answer by saying what it could not run, with each skipped card under the answer offering Run. A statement the check cannot rate waits for your Run as in Ask, in any window: a subagent's, which waits in its panel, one another chat asked for, one too long for the check, and any statement when the check itself fails. The chat list marks the chat with a yellow dot until you run a skipped statement or send your next message. Run and Decline work while the check runs.
Run SQL yourself
Start a message with ! to switch it to SQL, also when you type it before text already in the box: the ! turns into an SQL label above the text, and what you write runs on the chat's database instead of going to the agent. The box becomes the Query tab's editor, with its table and column suggestions and AI completions: Tab takes a grey AI completion, Enter runs the statement, Shift+Enter starts a new line. Backspace at the start of the text or Esc switches back to a message. It runs at once, with no approval, like a Query tab, and asks first only when the statement modifies or deletes data. Its result appears in the chat as a card, and the agent answers right away with what it shows, or why it failed and how to fix it. A value from safe storage in the result reads [safe:Name] to the agent, and on the card after a reload. The agent knows about this too, and suggests the exact ! message when you want to rerun or tweak a statement yourself. While the agent works, the statement waits in the queue like a message. Run on a change Auto skipped runs it on the database shown on its card; it turns red and asks first when the change modifies or deletes existing data or schema, and reads Queued while the statement waits in the queue.
Models
The menu under the message box picks the model that answers. It starts on Auto model: for each message, Tamery weighs how hard the question is and answers with Claude Haiku, Sonnet or Opus at Low, Medium or High effort, so a quick lookup costs less of your budget and a hard analysis still gets the strongest model thinking hardest. Within one chat, Auto never drops to a lighter model, so a long conversation stays consistent, but the effort follows each message: a quick follow-up in a long analysis gets a quick answer. Auto has no options of its own; pick a model to set them.
Below Auto, Low cost lists the cheapest models, GLM 5.3 Flash, DeepSeek V4.1 Flash, Particle-1, MiniMax M3.1 Flash and Qwen3.8 Flash, which spend far less of your budget per message and suit lookups and simple questions. Every other model is listed below, grouped by company: Anthropic, OpenAI, Google, xAI, DeepSeek, Moonshot, Qwen, Z.ai and Mistral; type to search them. A model's options show its input, output and cache-read list price per million tokens; a model whose price is unknown shows none. It is a list price: long chats, and some models at some hours, cost more. With your own key the same list price shows, though your provider bills you. For a model a coding agent answers, the options show how much of the agent's plan limits is left instead of a price, and when the tightest one resets, as of its last answer on this computer: Claude Code reports its 5-hour and weekly limits, while Codex, Gemini CLI and Grok Build report none, so nothing shows for them. The sort button in the search box reorders the list: Company (the default, as above), Price (cheapest input plus output price first), Strongest (most capable first; models the ranking doesn't score follow, top line first) and Newest (latest releases first). The Strongest order ranks models by the Epoch Capabilities Index from Epoch AI, licensed CC BY 4.0; Tamery is not endorsed by Epoch AI. The order applies on this device and stays until you change it. The models you picked lately sit under Recent; the cross next to one, or Backspace on it while the search is empty, removes it from there. Pointing at a model, or highlighting it with the arrow keys, opens its options next to it. Right arrow moves into them, Up and Down arrow move between them, Left and Right arrow change the effort, Enter turns the highlighted switch on and off or opens the highlighted menu, and Esc goes back to th... (line truncated to 2000 chars)
- Effort, from Low through Medium, High and Extra high up to Max: how hard the model thinks before answering. More effort is slower and spends more of your budget. Each model offers only the levels it supports, so some stop at High or Extra high, some skip Medium, and a model with a single level shows no Effort.
- Fast mode: sends the model to its fastest providers, which can cost more.
- Provider: who answers, shown when more than one of your providers runs the model on this computer, or when the chat is kept on one. Automatic, the default, names the first one that is on and runs the model, and falls back to the next when it fails. Picking a provider keeps the chat on it: the chat never falls back to another provider, not even when an answer resumes after a dropped connection, the list shows only the models it runs and the menu reads only via and the provider's name. The list follows your providers' order and marks why one can't answer now: The key stopped working, Hit its limit, Didn't answer, Out of credits, Needs a Pro plan or Off. The provider a chat is kept on stays in the list even when it is the only one or can't answer, so Automatic always takes the chat back. The model you pick applies to every chat on this device while the provider belongs to one chat, so a chat on a provider that doesn't run your pick shows Model unavailable. When the provider can't answer, the chat refuses the message rather than use another provider and offers Use any provider, which also switches back to Automatic: beside Change model when it is off or doesn't run the model, and beside Add credits and Add provider when it is out of credits. A coding agent kept this way answers only typed messages in the desktop app it runs on, so a
!statement, a file, a mention or a message from another chat shows why it can't answer instead. Picking a provider also picks the model whose options you opened; Automatic leaves your pick as it is. Auto picks a model for each message, so it shows no provider and can't be kept on one, and neither can a custom endpoint, which serves only Auto; a chat kept on a provider from a model's options stays on it when you switch to Auto. The choice belongs to the chat, on this device, and removing the provider clears it.
Each model keeps its own options, an option a model does not offer falls back to its default, and both the pick and the options apply to every chat on this device. When Tamery moves a model to a newer version, such as GPT-6.1 Sol to GPT-6.2 Sol, your pick, its options and its place under Recent move to it at once, even in an app you have not updated; when Tamery stops offering a model, the menu reads Model unavailable until you pick another. When a provider fails before it answers, the next one in your providers answers instead, and a line above the answer names it and why, like Switched to OpenRouter: Claude Code hit its limit. On Auto that can be another company's model; a model you picked moves only to another provider that runs the same model, and when none of them can answer, the chat shows the error and you can retry or pick another model. A retry after the agent already took steps in its answer, such as running a change, carries on from the last step instead of starting over, so nothing runs twice. If none of your providers runs the model you picked, for example after you remove that provider's key, the menu reads Model unavailable and the chat says so instead of answering with Auto, with Change model to pick another.
In the desktop app, a new chat can also run on a coding agent you already use, such as Claude Code. See Your own agent.
Long chats
The circle next to the send button shows how close the chat is to being summarized. Click it to see the tokens (from the first answer on), what the chat has cost so far, Compact now and Compact at. When a chat's context reaches its Compact at threshold, its earlier messages are summarized before your next one is answered, so the agent keeps the facts and SQL it found without rereading the whole chat. A line in the chat marks where the summary ends, and your newest exchange always stays whole. /compact summarizes on demand, and says so when there is nothing before your newest message to summarize yet. A summary that fails says why above the message box, with Retry.
Compact at is a number of tokens, from 50K up to 80% of the model's window, so the answer and its tool steps still fit. Type it the way you'd say it: 60k, 1m, 60,000, a plain number under 1,000 like 60 (read as 60K) or, in a chat, a percentage of the model's window like 60%. While you type, the tokens label changes to what will be saved, like = 60,000 tokens. Leave it empty to follow your default, Compact at in Settings → AI, which compacts at 80% of the window until you set it and takes tokens only. A value outside the range shows why when you leave the field or press Enter, and isn't saved. A lower threshold keeps each answer cheaper and faster; a higher one lets the model read more of the chat before it is summarized. The threshold belongs to the chat, on every device, and a model with a smaller window compacts at its own limit.
When a chat with two or more of your messages is longer than the window, and the chat is wide enough, a mark for each of your messages and its answer runs down the right edge, and the marks for what is on screen are wider and brighter. Hover a mark to read the start of the message and the answer, and click it to scroll back to them. With the messages focused (click them, or Tab to them), Option+↑ (Alt+↑) and Option+↓ (Alt+↓) jump to the previous and next message.
Subagents
For work that splits into independent pieces, such as checking several tables or connections, the agent can start subagents: separate agents with the same tools, each given one task. Up to four run side by side, and each reports back to the agent that started it. The agent picks each subagent's model, a lighter one for a quick lookup or a stronger one for a hard analysis, or leaves it on yours; the model shows under the subagent's answers. A subagent cannot start subagents of its own, and its changes wait for your Run like any other.
Each subagent shows as a line in the answer with whether it is working, needs your approval, is done or failed; open the line to read the task the agent gave it. The panel button beside it opens the subagent's chat in a panel over the right side of the chat, where you read its work and approve its changes; Esc or its × closes it. While subagents are working or waiting for you, a Subagents button above the message box lists them.
While a subagent works, you can write to it in its panel: your message waits until it finishes its current step, and the agent that started it hears what you asked along with its report.
Once a subagent is done its chat is read-only: it answers the agent, not you. Subagents do not appear in your list of chats.
Other chats
The agent can hand a task to another of your chats, such as one in a different connection, and read how that chat stands and what it answered. It can message only your own chats in connections you can still open, never a subagent or the chat it writes from, and never a chat that is working or waiting for you. It sends at most three messages per answer, and either waits for the reply or goes on while the other chat works.
The message shows in the answer as a line with the other chat's title and whether it is working, needs your approval, is done, stopped or failed; open the line to read the message, and the arrow button beside it opens that chat in its tab. In the other chat, the message shows as yours with From and the sending chat's title above it; click it to go back.
The other chat answers with its own tools, and its changes wait for your Run in that chat. In Auto mode a change asked for by another chat always waits for your Run too. A chat answering another chat's message cannot message chats itself, start subagents, search the web or read your other chats, and it reads only its own connection.
In the app
Ask the agent to open things for you: a table with filters and a sort ("show me last week's refunded orders"), SQL in a new Query tab, a download of a result as CSV or JSON, or the share dialog for a table. The share dialog opens filled in, and nothing is shared until you save it.
Click a table named in an answer to preview its first rows, then Open table to open it in a tab; when the table can't be read, the preview says why and Ask AI opens a chat about it. When a picture helps, such as how tables link, the agent draws a diagram.
To ask about one row, right-click it in a table and choose Ask AI About Row: a new chat opens with the row in the message box, ready for your question. When a table fails to load, Ask AI under the error does the same with the error.
In the desktop app, every call the agent makes to your databases is logged in Agent activity.
Your chats
Pick Chats from the menu at the top of the Navigator, or press Cmd+3 (Ctrl+3), to list every chat of the connection, grouped by the date of its last message with pinned chats on top. Search finds a chat by its title or by anything said in it, and a chat found by its messages shows the matching text after its title; click one to open it in a tab. The end of a chat's row shows how it stands: a spinner while the agent answers, a yellow dot when a change or a question waits for you or Auto skipped a change, a blue dot for an answer you have not opened yet, and a red dot when the answer failed. Right-click a chat, or use its ⋯ button, to rename, pin or delete it; renaming a chat's tab (double-click it, or Rename in its menu) renames the chat too. Deleting a chat or a draft asks first and can't be undone; deleting a chat that is working stops it and its subagents. A draft has only its delete button.
Schema notes
Notes tell the AI what your schema doesn't: "amounts are in cents", "status 3 means refunded", "use orders_v2, not orders". A note can be about the whole database, a table or one column. Every AI feature that works with that database reads them: the chat, Ask AI filters, and the Query editor's completions, edits and fixes.
When the agent learns something like this, it saves a note right away and says so in the chat, such as Saved a schema note on orders.amount; click the line to read the note. Settings → Schema notes lists every note, grouped by connection and database, where you can edit or delete any of them; once there are more than 10, a search field (⌘F) filters them by table, column, database or text. To add a note yourself, click a table in the Schema visualizer and use Notes in its panel.
Notes sync to your other devices with the connection and are stored encrypted.
Mentions and commands
Type @ in the message box to mention:
| Mention | What the agent gets |
|---|---|
| A table of this connection | Its columns, keys, and indexes, so it can write SQL right away |
| Another connection | Points the agent at it, for example to compare data across two databases |
| An earlier chat of this connection | Its title; the agent reads what was said there when it needs to |
Each connection is one row, standing for the database you opened in it most recently; Enter mentions that one. When a connection has more databases, Right arrow (or the arrow at the row's end) lists them, and Left arrow, Esc or Back goes back. Typing a database's name finds it directly.
Chats show up only once you type part of a title, at most three, below the connections and tables.
In a sent message, click a mentioned database or chat to open it, or a mentioned table to see its first rows.
The agent queries each connection on its own, then joins or compares the results with SQL in the chat itself, so matching rows across databases is exact rather than done by eye. The joined table shows as a Combined results card.
The agent works in the chat's connection, and reads your workspace's other connections on its own when a question needs them, such as a table that lives elsewhere, saying which one it read. It changes only the connection the chat belongs to and only reads the others, so mentioning your production database in a chat on your development one can't change production, not even in Auto mode. A change the agent aims at another connection shows as Read-only, and Open chat next to it starts a chat in that connection with the statement in its message box, where the agent can make it.
Type / at the start of a message for commands. Picking one runs it:
| Command | What it does |
|---|---|
| /new | Starts a new chat |
| /model | Opens the model and effort picker |
| /retry | Asks your last message again |
| /copy | Copies the last answer |
| /compact | Summarizes the chat so far |
/retry and /compact run only once the agent finishes its answer.
On desktop, and in the web app on a connection that runs on a machine, the same menu lists your own agent skills and commands from that computer, read from ~/.claude/skills, ~/.claude/commands, ~/.agents/skills and ~/.codex/skills, each as /skill: and its name, so a skill never looks like one of the commands above. Picking one sends its instructions with your message; they never let a change skip Run. A file over 32 KB is left out.
The agent reads every file of your latest message, and those of the two messages before it while they fit 10 MB. For an older file, attach it again.
Chats are stored on our servers and processed by external AI providers. See Security and privacy.
AI elsewhere in Tamery
In the table browser, describe the rows you want and choose Ask AI.
In the Query editor, Edit with AI, Fix with AI, and completions see your schema without you pasting it.
When a connection test fails, Explain with AI tells you what probably went wrong.
The chat needs Pro or your own AI key, and Edit with AI and Fix with AI need Pro. On Free you get 20 AI filters and 200 completions a week, and Explain with AI is free for everyone. Tamery picks the model for each task, so there is nothing to configure.
To let a coding agent look at your tables and run SQL itself, connect it through MCP.