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

Procura
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

Procura
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

Ren

Procura
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
This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.