Skip to content

Dokploy vs while: which one to choose when your AI agent deploys?

Dokploy installs an open-source PaaS on your servers, like Heroku on your own machines. while spares you from having servers at all: your AI agent deploys over MCP, and backups, updates and security are already handled.

By Grégoire Mougeolle, co-founder of Nextmap. Facts checked on November 2, 2026. How this comparison is made.

View as Markdown

What changes between Dokploy and while

What mattersDokploywhile
Who it’s forPeople who want an open-source PaaS on their own servers1People who build their apps with an AI agent, solo or as a team
Your AI agentAn MCP server with 508 tools, connected with an API key2Connected over MCP, with OAuth: it deploys, creates the database, reads the logs and fixes things
What protects productionThe tools you open to your agent, and deletions labeled so that it asks you to confirm2Sensitive actions, like deleting a production database, wait for a person
The databaseOn your server, copied to your S3 storage, with no point-in-time recovery3PostgreSQL in while, backed up every day, with point-in-time recovery
Who opens your appA password, or the company’s SSO with the Enterprise edition7Everyone, a password, or the company account with the Pro plan
In FranceIf you rent your server in France4Yes, with Nextmap, a French company
To get startedFree, or $4.50 per month per server for Dokploy Cloud, plus your servers5A trial without an account. Then €0 to get started, and €13.75 per month for an app and its database

Try while on your app, without an account. Copy the instructions

Dokploy, the open-source PaaS you install yourself

Dokploy turns your servers into a PaaS: Nixpacks, a Dockerfile or Docker Compose, one-click databases, previews for each pull request, and an MCP server that exposes its whole API to your agent1,2. The software is open source, and your code and your data stay on your servers, even with Dokploy Cloud4.

With while, your AI agent does the rest

  • No server to maintain. No system to update, no disk to watch, no certificate to renew: your agent deploys, and the rest is taken care of.
  • Your databases are backed up for you. Every day, with point-in-time recovery, and a production backup tested every day.
  • Nothing serious happens without you. Deleting a production database waits for your approval, before it runs, and every action is recorded in a signed activity log.
  • Your keys stay secret. Your app uses them, your agent never sees them.
  • Your colleagues sign in with the company account. Google Workspace or Microsoft 365, on the Pro plan, with no sign-in page to code.

Moving from Dokploy to while

Take over your app

You, to your agent: Move our Dokploy app to while.

Your agent writes while.yaml from your code or your Dockerfile, and deploys the app.

Copy your PostgreSQL database

You, to your agent: Copy our PostgreSQL database to while.

Your agent exports the database with pg_dump, then loads it into while.

Carry over your variables

You, to your agent: Carry over our environment variables.

Your agent carries your settings over to while. You enter your secret keys yourself: it never sees them.

Which one to choose

  • Choose Dokploy if you want to keep your own servers, and backups and updates don’t scare you.
  • Choose while if you want your AI agent to deploy with no server to maintain, with your databases backed up and your keys kept safe.

Next steps

Sources

  1. Dokploy, documentation, accessed November 2, 2026
  2. Dokploy, the MCP server, accessed November 2, 2026
  3. Dokploy, database backups, accessed November 2, 2026
  4. Dokploy Cloud, accessed November 2, 2026
  5. Dokploy, pricing, accessed November 2, 2026
  6. Dokploy, differences between editions, accessed November 2, 2026
  7. Dokploy, SSO in front of an app (Enterprise edition), accessed November 2, 2026

Questions

Is Dokploy free?

Yes, when self-hosted. Dokploy Cloud costs $4.50 per month per server, and you rent the servers separately5.

Who backs up my databases?

With Dokploy, you do: the copies go to your own S3 storage, on the schedule you set3. With while, every database is backed up every day, and a production backup is tested every day.

Dokploy or Coolify?

Both turn your servers into an open-source PaaS, with an MCP server. while, for its part, spares you the servers.

Can my agent move from Dokploy to while?

Yes, it takes over your code or your Dockerfile, copies the database and carries over your variables.

Connect your agent, it takes care of the rest

To paste into your agent

Read while.sh/agents, then deploy my app with while.

Copy the instructions

No account needed to try: your app is live right away. To keep it, sign in.

A project for your company? Talk to the team: hello@while.sh