AI in Selfhost.dev

AI that helps you run your stack, with the limits written down.

Two places, three tools. In the console, Ask AI explains and opens the right screen. Talk to Database, inside it, answers questions about your PostgreSQL data. In your editor, the MCP server gives your agent 216 tools across 32 modules to do the work.

$5 in free credit, no card needed.

Side by side

Where each one runs,
and what it can touch.

Ask AI

Where it lives
The console: its sidebar, the empty Home and Cmd or Ctrl+K
Who can use it
Everyone in your organisation
What it covers
The whole console: databases, projects, apps, billing and settings
Does it act?
Never on its own. Its cards open the right screen and you press the button
What a model reads
The sentence you typed, the kind of page you are on and a few yes-or-no facts, such as whether you have databases. No names, prices or balances
Limits
30 questions every 10 minutes per person

Talk to Database

Where it lives
Ask AI, on a managed PostgreSQL database
Who can use it
Owners and admins
What it covers
Managed PostgreSQL databases that are running
Does it act?
It reads, through a read-only account fenced to your approved file
What a model reads
Your question and the names in your approved file. Never rows or SQL
Limits
30 questions every 10 minutes per person, 300 a day per organisation, 200 rows per answer

MCP server

Where it lives
Claude Code, Cursor, Cline, Devin Desktop or any MCP client
Who can use it
Anyone in your organisation, signed in from their editor
What it covers
Managed PostgreSQL, MySQL, Redis, ClickHouse and OpenSearch, projects and app deploys
Does it act?
Yes, through our API. Destructive operations need explicit confirmation
What a model reads
Your editor’s model reads what the tools return to it
Limits
What your role allows, as in the console

Ask AI, in the console

Type what you want.
It opens the right screen.

Ask AI sits in the console’s sidebar, on the empty Home and behind Cmd or Ctrl+K. Ask in your own words and it answers with cards that open the right page with the details filled in. Nothing is created, deployed or deleted until you press the button yourself.

It answers from your account

  • The cheapest server or database for what you need, priced the way the deploy and create screens price it
  • What an app needs and whether a size is enough for it
  • How long a deploy takes, from the deploy screen’s own times
  • Your balance and how long it lasts at what you run now
  • Why a database or project stopped and how to fix it

It opens, since its October update

The SQL editorIndex AdvisorScaling for a project’s serverAn app’s updatesDeleted projectsBilling, backups, alerts and the rest of the console

Its rules

Prices, balances and status come from your account, worked out by our code. When a model writes an answer to a general question, it is marked Written by AI and carries no price. Up to 30 questions every 10 minutes per person.

Ask AI Current page: Home
I need postgres in mumbai

Here's a managed PostgreSQL database in Mumbai, ready to set up.

Create a PostgreSQL database in Mumbai Goes straight to the review: a t4g.micro in Mumbai, the smallest it runs on. Create
Replay with sample data. The words are the console's own.
Ask AI Current page: orders-db
Revenue by month this year

Revenue by month this year (2026), from Orders.

Highest: August 2026, $12,400. Lowest: January 2026, $3,150.

Copy as CSV How I got this
SELECT date_trunc('month', (t."created_at" AT TIME ZONE 'UTC')) AS "time", (SUM(amount) FILTER (WHERE status = 'paid') / 100.0) AS "revenue" FROM "public"."orders" AS t WHERE (t."created_at" AT TIME ZONE 'UTC') >= '2026-01-01 00:00:00' AND (t."created_at" AT TIME ZONE 'UTC') < '2027-01-01 00:00:00' GROUP BY 1 ORDER BY "time" ASC

The statement the read-only account ran. It carries the values in your question.

Ran today at 14:03 on orders-db

Replay with sample data. The words are the console's own.

Talk to Database, inside Ask AI

Ask your PostgreSQL.
The AI never sees a row.

Owners and admins ask a managed PostgreSQL database questions in their own words and get a sentence, a chart, a table and the SQL. A model only picks names from a file you approved. Our code writes the SQL and runs it read-only, as an account fenced to that file.

  • The starter file is made from table and column names, never a row
  • You approve the file. It is all the model reads
  • Rows and SQL never reach the model

The MCP server, in your editor

Let your editor’s agent
do the work.

The Selfhost.dev MCP server gives Claude Code, Cursor, Cline, Devin Desktop or any MCP client 216 tools across 32 modules: create and resize managed databases, restore one to a point in time, manage users and backups, create projects and deploy apps. Every tool is a real API call. Destructive operations need explicit confirmation.

$ claude mcp add selfhost -- npx @selfhost.dev/mcp-server

The first run opens your browser to sign in. Your credentials stay on your machine, readable only by you.

Not in the MCP server yet

The SQL editor, Index Advisor, app upgrades, support, deleted-project restores and resizing a project’s server live in the console for now. So do Kafka clusters.

Explore all 216 tools
your editor's agent, with the Selfhost.dev MCP server

Someone deleted rows from orders-db at about 14:40 UTC. Restore it to 14:30 into a new database.

I'll find orders-db and check how far back it can be restored.

● list_instances

orders-db   postgres   running   awsinst_3f9c2e81a07b45d6c912

● get_pitr instance_id: "awsinst_3f9c2e81a07b45d6c912"

status: enabled
oldest_restore_point: 2026-10-24T09:12:00Z
latest_restore_point: 2026-10-31T14:58:10Z

● restore_pitr target_time: "2026-10-31T14:30:00Z", name: "orders-db-1430", confirm: false

About to RESTORE instance awsinst_3f9c2e81a07b45d6c912 to 2026-10-31T14:30:00Z.
This creates a NEW instance (same engine as the source, Postgres or MySQL) named orders-db-1430 and starts provider charges. The source instance is untouched.
Call again with confirm=true to proceed.

This creates a new database, orders-db-1430, as orders-db was at 14:30 UTC. Its charges start with it. orders-db stays as it is. Go ahead?

yes

● restore_pitr confirm: true

Restore started. The new instance orders-db-1430 will appear on the dashboard once provisioning + WAL replay completes.

Started. orders-db-1430 shows up in your databases when the restore finishes.

Replay with sample data. Tool names and results are the MCP server's own.

Guardrails

What AI can do here,
and what it cannot.

Every line below is how the product behaves today, not a policy we hope to keep. What we send to AI model providers and how long we keep it is in our privacy policy.

Ask AI never acts on its own

Nothing is created, deployed or deleted from a reply. Its cards open the screen with the details filled in. You press the button there.

No figure goes to a model

Prices, balances and status are worked out by our code from your account, so a number in a reply is the number the screen shows.

Written answers are marked

When a model writes an answer to a general question, it says Written by AI and carries no price, promise or link.

Rows never reach a model

Talk to Database sends a model your question and the names in your approved file. The rows go to your browser.

Read-only, fenced to your file

Talk to Database runs as a read-only account that can read only the tables and columns your file lists.

The MCP server asks first

Destructive operations need explicit confirmation. The server never connects to your databases directly.

Frequently asked questions

What is Ask AI?
Ask AI is the assistant in the Selfhost.dev console. Type what you want in your own words on the empty Home, in the Ask AI panel or with Cmd or Ctrl+K. It answers with cards that open the right screen. It also answers from your account: prices, what an app needs, deploy times, your balance and why something stopped.
Can Ask AI change anything in my account?
No. It never creates, deploys or deletes anything on its own. Its cards open the right screen with the details filled in. You press the button there. Asked to delete something, it tells you where the delete is.
Does an AI model see my account?
Very little of it. A third-party model reads the sentence you typed, the kind of page you are on and a few yes-or-no facts, such as whether you have any databases. Prices, your balance and the status of your resources are worked out by our code in your browser, so no figure from your account goes to a model. Your resources’ names reach one only when you type them yourself. Our privacy policy lists exactly what is sent.
What is Talk to Database?
Talk to Database answers questions about the data in a managed PostgreSQL database, inside Ask AI. Owners and admins get a sentence, a chart, a table and the SQL. A model only picks names from a file you approved. Our code writes the SQL and runs it read-only. Rows never reach the model.
How is the MCP server different from Ask AI?
Ask AI guides you in the console and never acts on its own. The MCP server is for the agent in your editor, such as Claude Code or Cursor: it gives that agent 216 tools across 32 modules to create, change and restore your databases and projects through our API, asking for confirmation before anything destructive.
Is there a limit on questions?
Ask AI answers up to 30 questions every 10 minutes per person. Talk to Database has the same per-person limit, plus 300 questions a day per organisation and one question at a time per database.
Can I try Ask AI on this website?
No. There is no assistant on this website. The conversations on this page are replays with sample data, worded as the console words them. Ask AI is in the console of every Selfhost.dev account.
Does it cost extra?
There is no charge for asking. You pay for the resources you run, by the hour, from your credits. New accounts get $5 in free credit, no card needed.

Ask in the console.
Act from your editor.

Open the console

$5 in free credit, no card needed. Ask AI is in the sidebar.