SabaKore

Home / Articles / AI guides

Self-Hosting No-Code AI Tools Like Dify on a VPS

The benefits of running a tool that builds AI apps through a visual interface on your own VPS instead of an external service, and what to watch out for.

Ren, a junior infrastructure engineer

Ren

Tools like Dify, where you build AI apps just by clicking around the screen, look handy. Can I run one on my own VPS too?
Procura, a cloud AI robot who explains

Procura

You can. Most no-code AI tools are distributed as a full set in Docker, so if Docker is installed on your VPS, you can start one up.

Why self-host?

  • Your workflows and data stay under your own control
  • You don't have to worry about limits on the number of users or accesses
  • You're not affected when an external service raises prices or shuts down
Ren, a junior infrastructure engineer

Ren

So should I just self-host without hesitating?
Procura, a cloud AI robot who explains

Procura

It's a trade-off. When you self-host, applying updates and handling trouble become your job. You take on what the operating company would do for you with an external service.

What to consider on the VPS side

Tools like this run as a combination of several programs: an app for the control panel, an app that does the processing, a database, and so on. Each one may be light, but the total memory adds up when you run them together. Check the published recommended requirements and choose a plan with some headroom.

  • The recommended memory is often higher than for a standalone API server
  • If you expose the control panel externally, always enable authentication
  • Estimate the effort of regular updates before you start

Don't forget backups

The workflows and conversation settings you build with this kind of tool are usually stored in the database. If the whole VPS disappears, what you'd miss isn't the app itself but the settings you've built up. Don't just confirm how to reinstall the app; confirm how to restore everything, including the database.

  • Store regular backups that include the database outside the app
  • Try restoring from a backup at least once to confirm it works
  • If the tool can export its settings, use that as well
Procura, a cloud AI robot who explains

Procura

The appeal of self-hosting is being able to extend things freely on your own judgment. But that freedom comes paired with the responsibility to fix things yourself when they break. Weigh those two before you start.
Ren, a junior infrastructure engineer

Ren

Could I try both an external service and self-hosting a little before deciding?
Procura, a cloud AI robot who explains

Procura

That's actually what I'd recommend most. First settle what you want to build on an external service, then check whether it also runs fine on your own VPS and move to self-hosting. In that order you'll have little to rebuild.

If several people use it, manage invitations too

When a team uses this kind of tool, it's easy to overlook that the accounts of invited members keep piling up. If you leave accounts of people who have left or changed roles, reviewing permissions gets harder and harder. If the control panel has an account list, review it regularly and disable or delete accounts that are no longer used.

  • Review the list of invited members regularly
  • For accounts no longer in use, start by disabling rather than deleting, and watch what happens
  • Keep the number of accounts with admin rights to the minimum necessary
Ren, a junior infrastructure engineer

Ren

So in exchange for flexibility, you take on the operating effort yourself.

This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.