logoalt Hacker News

Claude Code for Infrastructure

260 pointsby aspectrryesterday at 6:34 PM173 commentsview on HN

Comments

falloutxyesterday at 8:04 PM

All these tools to build something, but nothing to build. I feel like I am part of a Pyramid Scheme where every product is about building something else, but nothing reaches the end user.

Note: nothing against fluid.sh, I am struggling to figure out something to build.

show 25 replies
gardnrtoday at 11:03 AM

The reason:

> Safety. I didn't want CC to SSH into a prod machine

The call to action:

> curl -fsSL https://fluid.sh/install.sh | bash

The reason this is ironic: https://x.com/sheeki03/status/2018382483465867444

show 1 reply
aspectrryesterday at 6:34 PM

Hey HN, My name is Collin and I'm working on fluid.sh (https://fluid.sh) the Claude Code for Infrastructure.

What does that mean?

Fluid is a terminal agent that do work on production infrastructure like VMs/K8s cluster/etc. by making sandbox clones of the infrastructure for AI agents to work on, allowing the agents to run commands, test connections, edit files, and then generate Infra-as-code like an Ansible Playbook to be applied on production.

Why not just use an LLM to generate IaC?

LLMs are great at generating Terraform, OpenTofu, Ansible, etc. but bad at guessing how production systems work. By giving access to a clone of the infrastructure, agents can explore, run commands, test things before writing the IaC, giving them better context and a place to test ideas and changes before deploying.

I got the idea after seeing how much Claude Code has helped me work on code, I thought "I wish there was something like that for infrastructure", and here we are.

Why not just provide tools, skills, MCP server to Claude Code?

Mainly safety. I didn't want CC to SSH into a prod machine from where it is running locally (real problem!). I wanted to lock down the tools it can run to be only on sandboxes while also giving it autonomy to create sandboxes and not have access to anything else.

Fluid gives access to a live output of commands run (it's pretty cool) and does this by ephemeral SSH Certificates. Fluid gives tools for creating IaC and requires human approval for creating sandboxes on hosts with low memory/CPU and for accessing the internet or installing packages.

I greatly appreciate any feedback or thoughts you have, and I hope you get the chance to try out Fluid!

show 8 replies
levkkyesterday at 8:24 PM

So... I already tell Claude Code to do this. Just run kubectl for me please and figure out why my helm chart is broken.

Scary? A little but it's doing great. Not entirely sure why a specialized tool is needed when the general purpose CLI is working.

show 8 replies
turtlebitsyesterday at 10:52 PM

Making clones of production isn't trivial. Is your app server clone going to connect to your production database? It is going to spin up your whole stack? Seems a bit naive.

A better approach is to have AI understand how prod is built and make the changes there instead of having AI inspect it and figure out how to apply one off changes.

Models are already very good at writing IaaC.

hebejebelusyesterday at 8:11 PM

Clever solution. I think ops (like this) and observability will be pretty hot markets for a while soon. The code is quite cheap now, but actually running it and keeping it running still requires some amount of background. I've had a number of acquaintances ask me how they can get their vibe coded app available for others to use.

I really like this idea. I do a lot of kubernetes ops with workloads I'm unfamiliar with (and not directly responsible for) and often give claude read access in order to help me debug things, including with things like a grafana skill in order to access the same monitoring tools humans have. It's saved me dozens of hours in the last months - and my job is significantly less frustrating now.

Your method of creating ansible playbooks makes _tons_ of sense for this kind of work. I typically create documentation (with claude) for things after I've worked through them (with claude) but playbooks is a very, very clever move.

I would say something similar but as an auditable, controllable kubernetes operator would be pretty welcome.

show 2 replies
keyleyesterday at 11:56 PM

It always makes me smile when you get some random domain with a good looking CSS telling you:

    Don't do the same as everyone!

    For safety...
here... Just curl this script and execute it :)
raw_anon_1111yesterday at 11:33 PM

Is this a real product? This is a solved problem.

First I’m personally never going to create infrastructure in the console. I’m going to use IAC from the get go. That means I can reproduce my infra on another account easily.

Second if I did come across an environment where this was already the case, there are tools for both Terraform and CloudFormation where you can reverse your infra to reproducible IAC.

After that, let Claude go wild in my sandbox account with a reasonably scoped IAM role with temporary credentials

JohnMakinyesterday at 11:36 PM

> LLMs are great at generating Terraform, OpenTofu, Ansible, etc. but bad at guessing how production systems work.

Sorry, that last part is absolutely not the case from my experience. IaC also uses the API to inquire about the infrastructure, and there are existing import/export tools around it, so I’m not exactly sure what you are gaining by insisting on abandoning it. IaC also has the benefit of being reusable and commitable.

show 1 reply
lfxyesterday at 7:50 PM

Hey Collin!

Interesting idea, few things:

- The website tells less than your comment here. I want to try but have no idea how destructive it can be.

- You need to add / mention how to do things in the RO mode only.

- Always explain destructive actions.

Few weeks ago I had to debug K8S on the GCP GDC metal, Claude Code helped me tons, but... I had to recreate whole cluster next day because agent ran too fast deleted things it should not delete or at least tell me the full impact. So some harness would be nice.

show 2 replies
chickensongtoday at 12:09 AM

So this is a client/server thing to control KVM via libvert and provision SSH keys to allow LLM agent access to the VMs?

How does the Ansible export work? Do the agents hack around inside the VM and then write a playbook from memory, or are all changes made via Ansible?

If Ansible playbooks are the artifact, what does features does Fluid offer over just having agents iterate on an Ansible codebase and having Ansible drive provisioning?

stackskiptonyesterday at 9:45 PM

Ops person here.

I'm already using LLM to generate things and I'm not sure what this adds. The Demo isn't really doing it for me but maybe I'm wrong target for it. (What is running on that server? You don't know. Build your cattle properly!)

Maybe this is better for one man band devs trying to get something running without caring beyond, it's running.

show 1 reply
bluelightning2kyesterday at 11:10 PM

This sounds like a uniquely good way to accidentally spend infinity money on AWS

dengsauvetoday at 1:04 AM

I use Pulumi for work, and their AI solution (Pulumi Neo) works amazingly well in troubleshooting cloud issues. It's informed of the cloud state and recent changes right from their platform, which is pretty amazing. Compared to using Azure CoPilot for the same purposes, Pulumi Neo was faster in generating responses, and these responses were actionable and solved my issues. CoPilot was laughably useless comparably.

jamesmstonetoday at 1:46 AM

This general idea is exactly why I love nix. The immutability of it is powerful. It can be useful for both running your agents in a certain environment AND your agents are useful at writing your nix config. I expand on this in a blog post here https://jamesst.one/posts/agents-nix

wayeqtoday at 1:49 AM

> curl -fsSL https://fluid.sh/install.sh | bash

what could go wrong..

Zanfatoday at 7:30 AM

Great idea! A few weeks ago a non-technical client of mine decided to optimize his AWS infra bill with the help of AI. The costs went down significantly along with the application.

IBCNUtoday at 4:31 AM

This is really cool, I don't want to think about infra tbh just want to build. Is there a wold where an on-prem version of this exists? I buy a box, install shell script, and it just works?

show 1 reply
baalimagoyesterday at 8:08 PM

It's pretty cool. What would be cooler is to have it as a MCP server... and then use claude code

onion2ktoday at 6:35 AM

A small suggestion: All those 'v run_command' blocks in the example flow could show you the command that was run.

maxdotoday at 2:47 AM

Profile and hooks + skills for cc will solve concerns . cicd with manual approve + cc will work even better . Infra is a code same as anything else .

lovegrenobletoday at 2:00 PM

Every product needs a killer feature

alexandercheemayesterday at 9:27 PM

Isn't Claude Code for Infrastructure just...Claude Code?

show 1 reply
qainsightsyesterday at 9:17 PM

Can't we just use Claude Code straight up?

jaimex2today at 12:15 AM

This will make some amazing memes. 'Sorry I caused a $100,000 bill. I've made the right changes this time to scale appropriately.'

Next month - 'Sorry I caused a $200,000 bill...'

esafakyesterday at 8:33 PM

An infrastructure tool's primary installation method should NOT be curl | sh

show 2 replies
ekaesmemyesterday at 8:20 PM

Please at least write the README.md by yourself. It's excessively lengthy.

tobi_bsfyesterday at 8:12 PM

Whats wrong with just using claude code for infrastructure? Works great tbh.

show 1 reply
scott-iiitoday at 4:14 AM

this makes sense. like giving AI a lab bench instead of just asking it to guess

bigcat12345678yesterday at 10:50 PM

This is the most plausible tool for vibe infra I can think of

zahrevskytoday at 1:39 AM

I love how the landing page is straight to the point and has zero marketing BS. It achieves the opposite of AI-written text, while still being polished.

latchkeytoday at 12:48 AM

I'm working towards this for actual infrastructure, for serving up AI compute.

"install kimi 2.5 on a 4x mi300x vm and connect the endpoint to opencode, shut it down in 4 hours"

We're getting close.

show 1 reply
Uptrendayesterday at 11:21 PM

About 90% of HN is now AI shit at any given time. I can't fucking take this shit. Can you losers talk about anything else.

show 1 reply
lijokyesterday at 7:38 PM

FUCK NO. Who in their right mind would let an LLM connect to prod?

show 5 replies
Yash16today at 3:47 AM

[dead]

cleaninglondontoday at 8:35 AM

Commercial Carpet Cleaning London is a trusted specialist in professional cleaning solutions for businesses across the capital. We deliver high-quality commercial carpet cleaning designed to revitalise workspaces, extend the life of flooring and create healthier environments for staff and visitors. Our skilled team provides expert office sofa and carpet cleaning, ensuring upholstery looks pristine and fresh. We also offer comprehensive end of tenancy cleaning for offices, retail units and commercial premises, helping landlords and tenants meet the highest standards. Our services include Reliable, efficient and detail-focused, we support London businesses with tailored cleaning solutions. Wood floor and hard floor cleaning, using industry-approved methods to restore shine and remove deep-set dirt. We are experienced in Persian rug cleaning, providing delicate care for valuable textiles, and our advanced stain removal techniques tackle even the toughest marks. Additionally, we offer professional jet washing for outdoor areas, ensuring entrances, pathways and façades remain spotless.