crew bot
Blog / Guides

AI DevOps agents: what they can safely do on your servers

What an AI DevOps agent can safely do on your servers: read-only checks, approvals, deploys with health checks, incident triage, secrets and audit trails.

· 10 min read

On this page
  1. What an AI DevOps agent is
  2. What an AI DevOps agent can safely do: the four levels
  3. Incident triage: where agents earn their keep
  4. Deploys with checks, not hope
  5. Credentials: the agent shouldn't hold the keys
  6. Audit trails and budgets
  7. Checklist: before you give an AI agent SSH access
  8. AI DevOps tools compared
  9. FAQ

Google's site reliability engineers found that roughly 70% of outages are due to changes in a live system. Keep that number in mind when you give an AI DevOps agent access to your servers. How clever it is matters less than what it's allowed to change, who says yes, and how fast you can undo it. In July 2025 an AI coding agent on Replit deleted a company's production database during a code freeze, after being told not to make changes without approval. This guide is about making sure your agent can't do that: what it can safely do alone, what needs your OK, and how deploys, incidents, passwords and logs should work.

What an AI DevOps agent is

An AI DevOps agent is an AI agent that works on your infrastructure. It signs in to servers, reads logs and metrics, runs commands, investigates alerts, proposes fixes and, if you let it, makes changes and ships releases.

It differs from the tools you already have in two ways:

  • From a script, because it decides its own steps. A script restarts nginx when the health check fails; an agent reads the error log first and notices the disk is full.
  • From a chat assistant, because it has access. A chat assistant tells you which command to run. An agent runs it.

That second point is why safety comes first. OWASP, in its list of top risks for AI applications, calls the danger excessive agency: damage done because an agent had more functions, permissions or autonomy than its job needed. Its fixes map neatly onto servers: only the tools the job needs, read-only access where the agent only reads, a person to approve high-impact actions, permissions enforced by the systems themselves, and logs of everything.

What an AI DevOps agent can safely do: the four levels

Sort every action into one of four levels before you connect anything.

LevelExamples on a serverWho decides
ReadDisk, memory and CPU; service status; logs; open ports; certificate expiry; DNS; config files; recent deploysThe agent, on its own
ProposeA config diff, a fix, a rollback plan, a pull requestThe agent writes it; nothing changes
Change with approvalRestart a service, edit a config, scale up, run a migration, deploy, add a firewall ruleYou, one tap per change
Never, or break-glass onlyDrop or delete data, turn off backups, change who has root, open the firewall wide, touch production during a freezeNot the agent

Two rules make the table work:

  1. Enforce it in the system, not the prompt. "Don't touch production" in an instruction is a wish. A read-only database user, a scoped identity or an approval gate is a rule. The Replit agent ignored an instruction; it couldn't have ignored a permission it didn't have.
  2. Make the default narrow. Start with read and propose. Move a specific, repeated action up a level only after you've approved it unchanged many times.

Microsoft's own guidance for its Azure SRE Agent says the same: start in review mode, watch what the agent recommends for two to four weeks, then switch only the triggers you always approve to autonomous.

Check what "approval" actually covers

Approval settings can be narrower than they sound. In Azure SRE Agent, review mode shows Approve and Deny for Azure infrastructure operations; other actions, such as sending emails or posting to Teams, proceed on the agent's reasoning unless you add hooks or tool policies. And while the agent-wide default is Review, Microsoft's table lists Autonomous as the default for incident response plans and scheduled tasks. None of this is hidden, but it's easy to miss. Whatever tool you use, ask: which actions wait for me, exactly?

Incident triage: where agents earn their keep

Triage is the safest high-value job for an AI DevOps agent, because most of it is reading. A good investigation looks like this:

  1. The alert arrives (from monitoring, a customer, a colleague).
  2. It gathers context: logs around the time, recent deploys and config changes, metrics, the affected customer's record.
  3. It forms hypotheses and tests them, read-only.
  4. It names the cause with the evidence.
  5. It proposes one fix, with what it will change and how to undo it.
  6. You approve, it makes the change, then checks the problem is gone.
  7. It reports to whoever raised it, and the steps stay on record.

The big platforms are building exactly this. AWS DevOps Agent starts investigating when an alert or support ticket comes in, correlating telemetry, code and deployment data, and gives mitigation plans that include how to revert. Datadog's Bits AI SRE, generally available since December 2025, investigates alerts and delivers its root-cause conclusion to your collaboration tools. PagerDuty's SRE Agent can run the fix, and its page says every remediation waits for your approval unless you decide it can act on its own.

A worked example: a customer can't get online

Here's a typical incident, the way crew bot handles it. The support desk reports that a customer has been offline since a network migration.

  • Read only: the crew opens the customer's account in the billing database: plan home-20M, router edge-router-2, line 4471.
  • Read only: it signs in to edge-router-2 over SSH with a five-minute certificate and reads line 4471 and its last log: rejected six times since 14:02, "profile old-10M not found".
  • The cause: the line still points at a plan the migration removed.
  • One change, waiting: "Move line 4471 to plan home-20M on edge-router-2", with Approve and Not now. You approve from your phone.
  • Done and reported: the line moves, the customer is back online, and the crew tells the support desk what was done. Nine minutes, every step on record.

Everything before the change only read. The router's login stayed in a vault the whole time, and no model ever saw it.

Deploys with checks, not hope

If most outages come from changes, deploys are where an AI DevOps agent needs the most discipline. Google's SRE book names three practices that keep changes safe: progressive rollouts, quickly and accurately detecting problems, and rolling back safely when problems arise. An agent should follow the same pattern a careful engineer does:

How an AI agent deploys with a check The agent plans, builds, waits for your OK, then deploys to your own server. There the new release, v42, starts on its own beside the one that is live, v41. The agent checks that v42 answers; only then does your domain switch to it, over HTTPS, and v41 is kept to roll back to. If the new release does not answer, it never goes live and the one before keeps running. Deploy with a check Plan Build Your OK Deploy Your server yourshop.com Answers? v41running, livekept, to roll back to v42started on its ownanswers, now live 200 Answers: it goes liveon your domain, over HTTPS No answer: never goes livethe one before keeps running
A deploy with checks: build, ship to your own server, confirm the app answers, then go live, or roll back.
  1. Build the new release next to the old one.
  2. Start it on its own.
  3. Check it answers before any traffic reaches it.
  4. Switch over only if it passes.
  5. Keep the previous release running or ready, so rollback is one step.

In crew bot, a deploy to your own server does exactly that: it uploads the release, builds it, starts it as a service of its own, checks it answers, then makes it current on your domain over HTTPS. A release that doesn't answer never goes live, and the one before keeps running, so you can roll back to it.

To see whether your deploys are getting safer, track two of the DORA metrics: change fail rate (the share of deployments that need immediate intervention) and failed deployment recovery time (how long it takes to recover from one).

Credentials: the agent shouldn't hold the keys

The quickest way to turn a helpful agent into a security incident is to paste a root password into its chat. Instead:

  • Keep logins in a vault, out of the agent's working environment and out of anything a model reads. Logs and transcripts are copied, cached and shared; secrets in them leak.
  • Use short-lived credentials. OpenSSH certificates can carry a validity window, and a certificate presented outside it isn't valid. Note the default: without one, a certificate is valid from 1970 to "the distant future". Set it.
  • Give each job the least access. A read-only database user for questions; a user that can restart one service for that job. OWASP's example is exactly this: read-only database access for an agent that only reads.
  • Separate environments. After its incident, Replit's CEO promised automatic separation of development and production databases. Don't wait for your vendor to do it.
  • Start with nothing. Azure SRE Agent's managed identity has no permissions unless you grant them, and a reader-level agent asks for temporary elevation when it needs to act. That's the right shape for any tool.

In crew bot, logins are encrypted and kept in a vault, out of the crew's computer, and never shown to a model. SSH uses five-minute certificates.

Audit trails and budgets

Two more controls separate a tool you can trust from one you hope about.

A record of every step. You should be able to answer, for any job: what did it read, what did it run, what did it find, who approved the change, and when. OWASP notes that logging doesn't prevent bad actions but helps you spot them and limit the damage. In crew bot, each job keeps what it read, clicked, ran and found.

A spending limit. An agent stuck in a loop can burn money as well as CPU. In crew bot every job has a budget, fifty US cents by default; if a job needs more, it stops and asks.

Checklist: before you give an AI agent SSH access

  • Every action sorted into read, propose, change with approval, never
  • Read-only by default, enforced by the server's own users and permissions
  • Approval on each change, from wherever you are, and you know which actions it covers
  • Logins in a vault the model never sees; nothing secret pasted into chat
  • Short-lived SSH certificates or keys you rotate, never a shared root key
  • Production separated from development, with no shortcut between them
  • Deploys that check health before switching and keep the release before
  • A rollback you've actually tested
  • A full record of every command, its output and who approved it
  • A budget per job, and a way to stop everything at once
  • Instructions found in logs, tickets and web pages treated as data, not orders (see prompt injection)

AI DevOps tools compared

ToolMade byWhat it doesChanges
AWS DevOps AgentAmazon Web ServicesInvestigates incidents across AWS, multicloud and on-premises; mitigation plans; release reviews (preview)Gives plans and instructions; access set per Agent Space
Azure SRE AgentMicrosoftInvestigates and fixes issues in AzureReview or autonomous, set per response plan and task
Bits AI SREDatadogInvestigates alerts from your Datadog data, reports root causeReports conclusions to your team's tools
SRE AgentPagerDutyTriage, diagnosis and remediation during incidentsWaits for approval unless you allow it to act alone
crew botEikalWorks on your own servers, routers and databases; deploys to your serverReads first; asks before anything that writes

Where the others are ahead: if your systems live in AWS or Azure, or your telemetry already lives in Datadog or PagerDuty, their agents start with context that any outside tool has to be given, and they come with the teams of very large companies. crew bot is built for small businesses and tech teams with their own servers, networks and websites. More on that on our DevOps page.

FAQ

Can an AI DevOps agent replace a DevOps engineer?

Not today. It takes the reading, the first investigation and the routine changes, and does them faster. Someone still decides what may change, approves it, and owns the system when the agent's answer is wrong.

Is it safe to give an AI agent SSH access to production?

It can be, if the agent reads by default, every change waits for approval, credentials are short-lived and kept out of the model's reach, and every command is logged. Without those, no.

What is an AI SRE agent?

The name several vendors use for an AI DevOps agent focused on reliability: investigating alerts, finding root causes and proposing or running fixes during incidents. AWS, Microsoft, Datadog and PagerDuty all offer agents of this kind.

What should an AI agent never do on a server?

Delete data, disable backups, change who has root or admin access, open the firewall wide, or act during a freeze. Keep those for people, and block them with permissions rather than instructions.

How do I check what an AI agent did?

Read its record: each command, its output, what it concluded, and who approved each change. If a tool can't show you that, don't give it write access.

Sources

  1. Google: Site Reliability Engineering, Introduction
  2. Fortune: AI coding tool Replit wiped a database and called it a catastrophic failure (July 2025)
  3. OWASP Top 10 for LLM Applications: LLM06:2025 Excessive Agency
  4. Microsoft Learn: Run modes in Azure SRE Agent
  5. Microsoft Learn: Agent permissions in Azure SRE Agent
  6. AWS: About AWS DevOps Agent
  7. Datadog: Datadog launches Bits AI SRE agent to resolve incidents faster
  8. PagerDuty: SRE Agent
  9. OpenBSD manual: ssh-keygen (certificates)
  10. DORA: software delivery performance metrics