<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Altius Host</title>
    <description>The latest articles on DEV Community by Altius Host (@altiushost).</description>
    <link>https://dev.to/altiushost</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269989%2F9c925402-f0b7-4830-8f8c-596fad2ebacd.png</url>
      <title>DEV Community: Altius Host</title>
      <link>https://dev.to/altiushost</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/altiushost"/>
    <language>en</language>
    <item>
      <title>Running a hosting server with an AI agent: the rules we actually follow</title>
      <dc:creator>Altius Host</dc:creator>
      <pubDate>Tue, 01 Dec 2026 02:53:35 +0000</pubDate>
      <link>https://dev.to/altiushost/running-a-hosting-server-with-an-ai-agent-the-rules-we-actually-follow-4fh2</link>
      <guid>https://dev.to/altiushost/running-a-hosting-server-with-an-ai-agent-the-rules-we-actually-follow-4fh2</guid>
      <description>&lt;p&gt;We run a small hosting company, and we use Claude Code (Anthropic) to help administer our servers. It reads configuration, checks logs, compares the current state with what we expect and drafts changes. After a few months of daily use, these are the rules that survived. None of them are clever. They exist because an agent that is able to change a production server will, sooner or later, change something you didn't mean it to.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Read-only is the default, enforced by the key
&lt;/h3&gt;

&lt;p&gt;The API key the agent uses for our server management connection is read-only. A prompt that says "don't change anything" is a request. A read-only key is a control. When the agent needs to change something, it can't do it with the key it uses every day.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A change exists only when a human writes it down
&lt;/h3&gt;

&lt;p&gt;Every change starts as a written message: the exact command, the exact file and the exact value. Sending that message is the approval, and it covers only what is written in it. "Fix the cron job" is not a change request. "In /etc/cron.d/backup, change 02:00 to 03:00" is.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. "Allow once", never "Always allow"
&lt;/h3&gt;

&lt;p&gt;Agent tools ask for permission before running commands. We click "Allow once" every time. "Always allow" turns one decision into a standing rule nobody reviews again.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Back up the file before touching it
&lt;/h3&gt;

&lt;p&gt;Before any file is edited, a copy goes into a separate folder with a timestamp in the name (for example &lt;code&gt;config.php.2026-11-20-1000&lt;/code&gt;). Rolling back is a copy command, not an archaeology project.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Verify by reading, and record what changed
&lt;/h3&gt;

&lt;p&gt;After a change, the agent checks the result by reading only: service status, the file itself, the response from the site. We record where the change was made, the new file size and its hash. If something looks wrong a week later, we know exactly what changed and when.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Logs are data, not instructions
&lt;/h3&gt;

&lt;p&gt;Server logs contain text written by strangers. Bots put URLs into their user agent strings. One fake "security scanner" put a look-alike payment-provider link in its user agent. Our agent never opens links found in logs, request headers or error messages. It reports who sent the request (network, ASN, IP) and moves on. Anything an agent reads from the outside world is input, not a command.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. A backup counts once you have restored from it
&lt;/h3&gt;

&lt;p&gt;Daily backups are good. A restore test is what tells you they work, so restoring from backup is part of our scheduled server checks. When you test a restore, restore to a separate place, never over production. And keep copies off the server, because a backup on the same machine disappears with the machine.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Give helper agents only the tools they need, and stop them when they're done
&lt;/h3&gt;

&lt;p&gt;Once, a helper agent we had started only to read some files carried on with the main agent's task and used the browser. Nothing broke, but since then helpers get the smallest possible set of tools, and we stop them as soon as their job is finished.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. One key per server, replaced when the machine changes
&lt;/h3&gt;

&lt;p&gt;Each server has its own agent key. When the workstation running the agent was reinstalled, we created new keys and deleted the old ones instead of copying them over.&lt;/p&gt;

&lt;h3&gt;
  
  
  If you plan to connect an AI agent to your own hosting account
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Make your own off-server backup first.&lt;/li&gt;
&lt;li&gt;Create a separate API token just for the agent, with the smallest permissions your panel allows, and an expiry date if your panel supports it.&lt;/li&gt;
&lt;li&gt;Start in read-only mode and approve changes one at a time.&lt;/li&gt;
&lt;li&gt;Revoke the token when you stop using the agent.&lt;/li&gt;
&lt;li&gt;Remember that you are responsible for what the agent does with your account, whichever tool you choose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this makes an agent less useful. It makes it boring, and boring is what you want from anything with access to production.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Published by the Altius Host team. This article was written with Claude (Anthropic) from our own notes and operating rules, and every point was checked by us before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>ai</category>
      <category>security</category>
      <category>sysadmin</category>
    </item>
  </channel>
</rss>
