AI made self-hosting fun again

(janlukas.blog)

71 points | by jlelse 1 hour ago

22 comments

  • jjcm 35 minutes ago
    In some ways it's better, in some ways it's worse.

    It's certainly easier than ever to spin up a VPS/cloudflare proxy and deploy. Agents can pretty much do that end to end.

    The bigger issue is you're then accountable for keeping up with security. Previously that meant using fail2ban and running a system update every few months. Now it means patching within 24hrs of a CVE9+ dropping, which is happening at an accelerated rate.

    It got so bad during October I made https://firefighter.sh/ as a joke (a root-permissioned agent that continuously monitors for CVEs and patches your system live as soon as they drop - it's a security nightmare given the nondeterministic aspect of AI), but I'm actually starting to come around to the idea for my non-critical servers.

    • InsidiousWombat 0 minutes ago
      debian + unattended-upgrades + scheduled reboot for kernel upgrades gets you most of the way there
    • turtlebits 6 minutes ago
      Keep it all internal with Tailscale, or use Pangolin (or Cloudflare)
    • skullone 29 minutes ago
      I have AI craft make files for common operations, patching, deploys etc. The makefiles compose terraform, ansible, misc scripts, DB migrations etc. this way, something reproducible and tested can be "trusted" to let AI operate with without it getting carried away or deep into the weeds on simple shit. Of course, I also use the same makefiles too when I want, and it's just great. Keeps credentials safe-ish, AI doesn't need to SSH itself or even know about the actual systems.
      • alexpotato 9 minutes ago
        LLMs that write and then update your Ansible really is the super combo.

        If you throw in tests that the LLM also writes and it brings together the best of DevOps and LLM.

      • 0xdeafbeef 17 minutes ago
        If only nixos existed and llms were good at it :)
        • skullone 10 minutes ago
          I'm just way more comfortable and used to traditional bare metal, kvm, and k8s via RKE2.
        • hparadiz 7 minutes ago
          gentoo is far superior in every way :)
    • AloysB 13 minutes ago
      Another massive drawback is the slop-avalanche on self-hosting communication channels.

      I don't mind someone vibing something out for their needs; but as soon as you advertise it and invite external users, I feel there was a moral obligation to provide a certain level of quality and security. Which doesn't seem to be as prevalent now.

      Building out a project used to take a fair amount of investment for the creator; now that producing code is "cheap", that price-to-entry is so low that anyone can spin up a project in a couple of hours.

      It has added a lot of noise to the community channels - making it hard for good projects to stand out among the noise.

    • LtWorf 29 minutes ago
      • selcuka 7 minutes ago
        Unattended upgrades will only patch system packages installed via apt-get. You still need to patch node, python packages, or random software you downloaded and installed (via curl piped to sh).
      • jazzyjackson 25 minutes ago
        I have a public ip VPS proxying to my home lab and I’m wondering where to go for the least attack surface if I’m just running caddy and wireguard.

        Fedora CoreOS is an interesting offering, and Debian with unattended updates sounds good too. I like what SELinux can do for hardening the filesystem. Seems like even if a subprocess gets owned you get isolation from siblings.

        • abroszka33 11 minutes ago
          Same setup. I went with Debian. Non standard ssh port, no pass, key only and wireguard. So far so good.
  • Bender 2 minutes ago
    Certainly more fun for me. I am not a proper developer. LLM's have made private forks of my favorite things and helped me remove things I did not care for and add things I wanted. I have personally found these exercises more fun that video games. Blasphemy, I know. I have learned a little bit of Lua, C and Go. Not enough to write anything useful by myself but more than enough to satisfy my curiosity.
  • randypewick 4 minutes ago
    I have been happy lately using LLMs with nixos: lots of small tasks that I had there waiting, pending, I managed to complete in a few days of sparse interaction with open LLMs. Best thing is that nix makes reviews very easy to me, so it was "do, wait for my review, deploy".
  • manjalyc 12 minutes ago
    AI has made it ridiculously easy and extremely useful. Messing with self-hosted applications that would take me days to set, configure properly, and debug is now a few minutes of chatting. It’s exhilarating.

    Seems like a lot of people here roll their own security configs, if you’re application can sit behind a gate like Cloudflare zero trust it makes security a lot simpler.

  • AntonJidkov 6 minutes ago
    So much more fun! I'm now turning my old phones into servers for all the side projects I'm spinning up. Pre ai I would have had zero inclination to go through the setup and maintenance process.
  • xtracto 43 minutes ago
    I like to self-host but all my services run behind a Wireguard VPN. Otherwise they are services waiting to be PWNED by North Korea or any other random bad actor. I should know, a droplet I had with some PoC app I had got pwned. (well, only the docker container which ran with its own non-root user, but still...)
  • markasoftware 40 minutes ago
    What's the purpose of self hosting? Sure, part of it is data sovereignty and reducing dependence on big tech and whatever, but for me the main purpose and effect was to learn and to have pride in my setup (same reason one might buy an old car), both of which LLMs negate
    • DarmokJalad1701 29 minutes ago
      I couldn't care less about knowing the details of how to configure some specific web app with all its quirks. What I do care about is not being nickel and dimed by subscriptions for every little thing.
      • jamesfinlayson 1 minute ago
        I initially did it as a learning/keeping my skills sharp thing but knowing it was always going to be a flat $5 a month quickly became the real reason.
      • bakugo 19 minutes ago
        But becoming entirely reliant on AI subscriptions is somehow better?
        • c-hendricks 8 minutes ago
          Plenty of self hostable models can be used in self hostable chat / coding harnesses with a hostable web search tool.
          • snowe2010 1 minute ago
            Which were trained on the paid models. You’re just one step removed.
        • solyin 2 minutes ago
          $20/month for OpenAI vs first you guys dodge three different non-wordpress vendors, then you gotta give WordPress you're email address. Then you gotta deal with WordPress plugins. Yes, I'd rather just give OpenAI $20/month and be done with it.
    • ygjb 36 minutes ago
      That's not true. I self host and build a lot of software using LLMs. I read everything and frequently add something like "provide a step by step configure guide rooted in documentation with supporting links, and an explanation of why you are recommending that."

      Coupled with running it in a shell my agent has visibility into, I can makes sure I learn what I am building and get interactive help if something doesn't work and links to the reasons why.

    • jazzyjackson 23 minutes ago
      I just want jellyfin and immich running even if the internet is out
    • HolyLampshade 35 minutes ago
      Honestly I think these days those first two bits can be incentive enough. I’ve been self hosting a few apps (split between LLM hack jobs and some personal projects), and I’m just unwilling to pay for the ‘privilege’ of hosting the services or the data.
    • Spivak 27 minutes ago
      I can see the appeal honestly, I self host a lot of stuff and every app is bespoke; they require pouring through often outdated and incomplete documentation and usually the source to make apps conform to the rest of my system. Stuff line OIDC and storing all data in 1-2 kinds of db and object storage (sometimes requiring FUSE for apps that demand a filesystem), backups, updates, monitoring, crash recovery.

      Writing down how the app should conform to my setup into a skill and then letting the AI do the tedious bits and outputting an Ansible role to do it would save a lot of time and let me experiment more often. I can't imagine letting AI actually build without the framework because the resulting system would be a huge mess.

    • antisthenes 32 minutes ago
      Having pride in your setup is a lot less important than self-hosting something for your friends that can bring joy to many people.

      I'm hosting Jellyfin and FoundryVTT (D&D platform) and a few other things for my friends. Couldn't care less about the "pride" in the setup - the only difference is it takes me 5 minutes with an LLM or 30 minutes following an old-school guide to set it up. This stuff isn't complicated one way or another.

      LLMs just make the discovery (e.g. that part where you look at config setup examples and troubleshooting) and troubleshooting a breeze.

      Besides, no one is really stopping you from doing it old school. By all means, learn from linux CLI utilities man pages and write complicated bash scripts from scratch by yourself.

  • trowawee 34 minutes ago
    I've had almost the exact same experience (right down to using Nix and repurposing my couple-years-old gaming box as a combo gaming machine/home server) and it's been great. I've been having more fun with homelab stuff than ever, mostly because I'm spending way less time fiddling with Docker configs and way more time actually enjoying the fruits of that work: watching shows and movies, reading books, streaming games, etc.
  • killingtime74 20 minutes ago
    I just set up a K3S Kubernetes cluster on my mini server and AI is able to easily host things, check logs, deploy, everything fully automated. While I do know Kubernetes, you wouldn't have to know it to do this because AI does it all for you.

    I use Cloud Native PG to provide databases and the Cloudflare Tunnel Operator to provide connectivity to my domain name.

    Don't have to expose any network ports or anything.

  • skybrian 22 minutes ago
    It seems like a good time to get into client-side encryption. From now on, I plan to write code using a coding agent, but that doesn't mean I want to give it access to the family photos.

    If the data is encrypted blobs, putting it in on R2 or whatever seems okay?

    This is using encryption as a system boundary to make accidental leaks less likely. It doesn't mean I want to compete with Signal. Access control still matters.

  • onaclov2000 31 minutes ago
    Self hosting at home is a blast!

    I run my AI stuff in docker containers so I am still working on ways to improve idea to actually working thing I can interact with, without having to go to a computer necessarily

  • jrecyclebin 40 minutes ago
    Not just at a personal level - seeing a lot of businesses self-host their apps as well!

    For myself, I've been working on a personal server that I can publish to over MCP. It also automates publishing over SSH - so I can manage remote servers from it. https://gitHub.com/jrecyclebin/freshbreath

  • lazzurs 34 minutes ago
    Yep, totally agree with this and pretty much mirror it. I've been self hosting for 25 years or more but recently it's gotten easier and i've been doing more of it. Security is part of that for sure and wanting to not have my home dependant on cloud services that might be compromised.
  • comrade1234 18 minutes ago
    I've been self-hosting for years and lately I've been using ai as a support-bot for configurations. It's nice but sometimes after a long day of back-and-forth communication with the ai and configuration changes I feel like I accomplished tons but then I step back and think about it and realize I probably would have been faster if I had just read some man pages and other documentation.
    • begueradj 14 minutes ago
      Same impression here.
  • _def 17 minutes ago
    it made me move away from docker to ansible managed lxc containers on proxmox. Not sure yet if that was a good idea but on the other hand I don't have to do most of the plumbing anyway, so.. i guess it's fine?
  • jraph 43 minutes ago
    It did the opposite: self hosting has been fun, but now you have to fight the constant flow of AI bots.
  • bakugo 16 minutes ago
    > I used to hate cooking, but thanks to food delivery apps, I now love cooking again!

    Slight variations of this exact post are made probably every hour, yet they somehow always fly to the top of the front page...

  • 1239876144 41 minutes ago
    Do people get an existential crisis if there is no new AI success story post for more than 10 min?

    Here are some folks who don't find self hosting easy or outsourcable to AI:

    https://gmplib.org/

  • holoduke 29 minutes ago
    Curious about others. I am running a few apps and websites for about 18 years now. I have about 50 servers on Hetzner. And till about 6 months ago issues were quite rare. But today I am in a constant fight with bot/scraper traffic. It's so extreme that if I disable things like Anubis, manual ip blocks, Cloudflare measures etc, I am getting so much traffic that my complete setup comes to a halt. Network io, disc io and cpu are all affected. Terabyte per minute is nothing crazy. Traffic originates from many different places. Some legit, some disguised as browsers. Lots of AI labs from the US, China or Singapore. But sudden moments of 1000s of ips from Germany or wherever is happening a lot. Most of the time I am able to mitigate the issues and have no downtimes in the apps. Although bot traffic remains the majority. Luckily I have a couple of AI agents that are helping me to find malicious behavior. It's the only way for I see otherwise one will lose this battle.
  • cyanydeez 48 minutes ago
    Also made it necessary. #hardforkeverything
  • therealmarv 42 minutes ago
    While it's true that self-hosting is easier now, good luck securing your own server and keeping it updated against all the new AI threats. For example, distros seem pretty slow lately at patching major security bugs (especially Ubuntu with their recent kernel fix).

    Because of this, the maintenance burden has only grown.

    So it's not a clear win.

    • randypewick 2 minutes ago
      Everything behind a VPN. I don't even have SSH open these days.
    • manjalyc 8 minutes ago
      Alternative to wireguard for some apps you can just put the public facing apps behind Cloudflare’s zero trust login

      Self-hosters should not be rolling their own security solution in this environment. It doesn't matter how fast you update, its basically the wild west right now.

    • danparsonson 17 minutes ago
      Consider hiding everything behind Wireguard and if you can afford a second server and your provider lets you build a private network, use a gateway as your public server, then you can remove all direct public access to your main server. Configure your providers firewall as well as the software firewalls and now your public attack surface is one Wireguard port and the firewalls. Not perfect by any means but it gives you a bit of breathing space when patches are delayed. Of course you should still patch everything and keep good security within your private network.
    • probably_wrong 23 minutes ago
      Security was always a problem, as there always were more CVEs than one can reasonably read and automated attacks are the background noise of the internet. Good practices (service isolation, one purpose per server) remain good practices, LLMs or not.

      Fun fact: I recently learned of a server with a 10/10 vulnerability that had been online without updates for the last two years. Sometimes being small pays off.

    • Always42 9 minutes ago
      put it behind cloudflare login?
  • GalaxyNova 41 minutes ago
    I don't think it made it less but it definitely didn't make it more fun.