AI 编程 5.0 · 必读 2026-04-28 · X

Karpathy:本地 Demo 到线上产品,DevOps 是最难的部分

Karpathy 在回顾 MenuGen 开发历程时指出:构建一个真正上线的 AI 应用,最难的部分从来不是模型或代码本身,而是需要像 IKEA 家具一样组装各种第三方服务的 DevOps 工作——支付网关、用户认证、数据库、安全防护、域名配置等。这些基础设施的拼装和调试占据了大量工程时间,往往比训练模型更让人「痛苦」。这提醒所有 AI 开发者:Demo 和产品之间隔着一整个 DevOps 世界,vibe coding 的快乐止步于本地运行。

打开原文回到归档

Karpathy:本地 Demo 到线上产品,DevOps 是最难的部分

来源:X (Twitter)
原始链接:https://x.com/karpathy/status/2037200624450936940

When I built menugen ~1 year ago, I observed that the hardest part by far was not the code itself, it was the plethora of services you have to assemble like IKEA furniture to make it real, the DevOps: services, payments, auth, database, security, domain names, etc...

I am really looking forward to a day where I could simply tell my agent: "build menugen" (referencing the post) and it would just work. The whole thing up to the deployed web page. The agent would have to browse a number of services, read the docs, get all the api keys, make everything work, debug it in dev, and deploy to prod. This is the actually hard part, not the code itself. Or rather, the better way to think about it is that the entire DevOps lifecycle has to become code, in addition to the necessary sensors/actuators of the CLIs/APIs with agent-native ergonomics. And there should be no need to visit web pages, click buttons, or anything like that for the human.

It's easy to state, it's now just barely technically possible and expected to work maybe, but it definitely requires from-scratch re-design, work and thought. Very exciting direction!

中文翻译:

大约一年前我构建 menugen 时,意识到最困难的部分根本不是代码本身,而是你需要像宜家家具一样组装的大量服务——也就是 DevOps:服务、支付、认证、数据库、安全、域名等等……

我非常期待有一天,我只需要告诉我的 Agent:"构建 menugen"(参考那篇帖子),它就能直接运行起来。整件事一直到你部署好的网页。Agent 需要浏览大量服务、阅读文档、获取所有 API 密钥、让一切正常工作、在开发环境调试,然后部署到生产环境。这才是真正困难的部分,而不是代码本身。或者更准确地说,应该这样理解:整个 DevOps 生命周期必须变成代码,同时还需要有面向 Agent 原生体验的 CLI/API 的传感器和执行器。而且人类完全不需要访问网页、点击按钮或做任何类似的事情。

说起来容易,现在在技术上也勉强可能实现了,但绝对需要从零开始重新设计、工作和思考。非常令人兴奋的方向!