Hacker News 熱門精选71

发布 HN:machine0 (YC S26) – 来自 CLI 的持久 CPU 和 GPU VM

Launch HN: machine0 (YC S26) – Persistent CPU and GPU VMs from the CLI

· 56天前
跳到正文

精选理由

为AI代理提供可持久、可复现的云算力

AI 摘要

HN 大家好!我是 Barnaby,machine0( https://machine0.io )的创始人。我正在构建一个用于长周期代理计算的 CLI:`machine0 new mybox` 会为你的代理提供一台持久的云端 VM,按分钟计费,价格从 $0.013/hr 起,最高可达 60 vCPU / 240 GB RAM,并支持 GPU(H100s、H200s 等),VM 级别正常运行时间为 99.99%。代理可通过 CLI 或 MCP 自主运行。 演示: https://www.youtube.com/watch?v=gyllkZ0M04E 代理工作负载正在从短暂运行转向始终在线。一个处理复杂功能的编码代理会运行 6-8 小时。由代理编排的训练和 RL 运行需要数天。OpenClaw 和 Hermes 24/7 运行。随着你并行运行更多任务: - 资源:大型代码库上的几个代理就会耗尽 RAM 和 CPU。模型训练和 RL 需要你没有的 GPU。 - 安全:在你的个人机器上使用 `--yolo`,只需要一次提示注入就可能导致凭证被外泄。 - 可用性:合上笔记本电脑,代理就会在任务中途死掉。 - 隔离:你和你的代理实际最低需求之间没有清晰边界。 machine0 为每个代理提供自己的计算机。它是一个足够简单的 CLI,人类和代理无需阅读文档即可使用: `machine0 new mybox` 会创建一台可 SSH 连接、带静态 IP 和 HTTPS 端点的 VM。始终在线(VM 级别正常运行时间 99.99%),直到你将其关闭。 - 按分钟计费。1 vCPU / 1 GB 为 $0.013/hr,最高可达 60 vCPU / 240 GB,另有从 RTX 4000 Ada 到 8×H200 的 GPU。 - 暂停、快照和恢复。让你可以轻松暂停工作,之后再回来继续。也可以制作一个黄金主镜像,用于为机群批量生成克隆。 - 块存储。持久卷(从 10 GB 到 16 TB),你可以用直观的语法管理:`--yolo` 并将其挂载到你的 VM。 - Profiles。凭证、MCP 连接、提示词和环境变量的组合包,在 VM 创建时注入。因此每个代理只获得你选择的能力,除此之外什么都没有。 - 代理自助服务。把 CLI 或 MCP 服务器交给 Claude、Codex 或 OpenCode,它就能管理自己的机群:为一次构建启动一台机器,创建快照,然后销毁。 - 可复现构建。使用 NixOS flakes 或搭配 Ubuntu 的 Ansible playbooks。 人们今天如何使用它? - 代理机群。人们运行一个试点代理来界定工作范围,并将其委派给子代理,每个子代理都在自己的 VM 上:用试点代理规划项目,工作代理实现它并提交 PR。一个客户一次运行数百台机器,通过 CLI 启动和销毁。 - 模型优化和 RL 环境。ML 团队使用 machine0 来进行由代理编排的 RL 环境和模型优化工作。一个客户在 60 vCPU 机器上运行 RL 环境,一次持续运行数天;另一个客户保留一台已暂停的 H100,并在夜间让代理使用它来反复优化推理速度。 - 产品基础设施。一个客户不是自己使用 machine0,而是将他们的产品构建在 machine0 之上:每个用户会话都会从他们自己代理运行时的版本化镜像中获得一台全新的 XL 机器。他们已经发布了数百个该镜像版本,并启动了数千台机器,其中大多数只存活两分钟。 底层是什么? 每台机器都是完整的 KVM 虚拟机,不是容器或沙箱。你获得的是暴露给 guest 的真实 GPU,带有其实际驱动;可获得内核级访问权限(加载你想要的任何模块或驱动);你和硬件之间没有 syscall 拦截层。技术栈本身刻意保持朴素:TypeScript、Postgres、Redis。我们非常重视安全性、可靠性和性能,使 machine0 非常适合持续的计算密集型工作负载。 关于我 我从事云基础设施建设大约 15 年了。我曾在 Imperial College London 攻读云资源分配方向的博士,后来退学;之后作为 Upflow (YC W20) 的联合创始人兼 CTO 工作了六年,在 ARR 达到七位数的整个过程中亲自负责 DevOps、基础设施和安全,因为这些事情风险太高,不能委派。machine0 最初是我为自己做的工具,我就是自己的第一个用户 :) 请求 希望你能试用并给我们反馈(见下方)。或者,如果你是一家公司,正在为软件工厂、模型训练或 RL 环境寻找计算资源,欢迎联系 barnaby@machine0.io # 安装 machine0 $ curl -LsSf https://machine0.io/install.sh | sh # 创建一台机器并通过 ssh 登录 $ machine0 new myvm $ machine0 ssh myvm 评论 URL: https://news.ycombinator.com/item?id=49348136 点数:3 评论数:0

正文

Trusted by

Backed by

YCombinator

Get Started Now

NixOS or Ubuntu with tools pre-installed. Dedicated resources, static IPs, per-minute billing.

$curl -LsSf https://machine0.io/install.sh | sh

Designed For Long Running Agents

VMs remain on unless stopped or suspended. Reproducible builds with NixOS flakes or Ubuntu with Ansible. Dedicated resources, static IPs, per-minute billing. All images are open source: NixOS, Ubuntu.

Stable & Powerful VMs for Compute-Heavy Workloads

99.99% uptime. 1–60 vCPU, up to 240 GB RAM. Optional GPUs: H100, H200, L40S, MI300X, RTX 4000/6000 Ada.

Designed for Agents using CLI or MCP

Every operation is a CLI command with --json. A remote MCP server lets agents drive everything programmatically.

Start, Suspend, Snapshot & Resume

Freeze a VM's state, stop billing, restore later. Create golden images from any VM and spin up clones.

Integrate with your MCPs, GitHub & Environment

Inject MCP servers, credentials, prompts and environment variables into your VMs using profiles. Claude Code and Codex will pick them up automatically.

Reproducible Builds with NixOS

Deterministic builds, one-command rollbacks, no drift. Ubuntu pre-installed with Docker, Node, Python, Claude Code, and Codex.

Static IPs, HTTPS Endpoints, 5 Regions

Every VM gets a public IP and HTTPS at <vm>.mac0.io. No NAT, no tunnels. Run VMs in US East, US West, UK, EU, and Asia.

Pricing

Pay-as-you-go, billed per minute. Same price in all regions. Suspend VMs to stop billing, resume anytime. CPU VMs from $0.013/hr. GPU VMs from $0.836/hr, up to 8x H200.

CPUGPU
SizeCPURAMDisk$/hour~$/month
small1 vCPU1 GB25 GB$0.013$9
medium2 vCPU2 GB60 GB$0.034$25
large2 vCPU4 GB80 GB$0.052$38
xl4 vCPU8 GB160 GB$0.104$76
xxl8 vCPU16 GB320 GB$0.208$152
large-nvme2 vCPU4 GB80 GB$0.061$45
xl-nvme4 vCPU8 GB160 GB$0.121$88
xxl-nvme8 vCPU16 GB320 GB$0.243$177
xl-premium4 vCPU8 GB50 GB$0.236$172
xxl-premium8 vCPU16 GB100 GB$0.473$345
xxxl16 vCPU64 GB200 GB$0.825$602
4xl32 vCPU128 GB480 GB$1.980$1,445
5xl48 vCPU192 GB720 GB$2.970$2,168
6xl60 vCPU240 GB900 GB$3.714$2,711

The -nvme sizes run on newer-generation CPUs with NVMe storage for significantly higher disk IOPS — same vCPU, RAM, and disk as their regular counterparts.

The -premium sizes are dedicated (not shared) vCPUs, the fastest single-thread performance we offer.

SizeGPUVRAMvCPURAMDisk$/hour~$/month
gpu-4000ada-11x RTX 4000 Ada20 GB832 GB500 GB$0.836$610
gpu-l40s-11x L40S48 GB864 GB500 GB$1.727$1,261
gpu-6000ada-11x RTX 6000 Ada48 GB864 GB500 GB$1.727$1,261
gpu-mi300x-11x MI300X192 GB20240 GB720 GB$2.849$2,080
gpu-h100-11x H10080 GB20240 GB720 GB$4.851$3,541
gpu-h200-11x H200141 GB24240 GB720 GB$4.917$3,589
gpu-mi300x-88x MI300X1,536 GB1601,920 GB2 TB$22.792$16,638
gpu-h100-88x H100640 GB1601,920 GB2 TB$38.808$28,330
gpu-h200-88x H2001,128 GB1921,920 GB2 TB$39.336$28,715

GPU sizes are available in us-east, uk, eu, and asia.

Suspend VMs to stop billing. You pay only for image storage ($0.078/GB/month) while suspended. Minimum top-up $5. Unused credits are refundable.

Examples

Powerful VMs on Demand

Create stable & powerful VMs in your region. They're ideal for offloading compute-heavy tasks like compilation or automated research.

$ machine0 new buildbox --size 4xl --region us-east # 32 vCPU & 128 GB RAM
$ machine0 ssh buildbox
 
$ machine0 suspend buildbox # Suspend & pause compute billing
$ machine0 start buildbox   # Pick up where you left off

Running Agents with Profiles

Run agents inside VMs. Use profiles to inject credentials, MCP servers, prompts and environment variables into the VMs so your agents have everything they need to hit the ground running.

# Authenticate Claude Code, Codex & GitHub
$ machine0 integrations connect claude-code --profile default
$ machine0 integrations connect codex --profile default
$ machine0 integrations connect github --profile default
 
# Add your MCPs
$ machine0 integrations add linear --url https://mcp.linear.app/mcp --profile default
$ machine0 integrations connect linear # Triggers OAuth flow
 
# Configure Environment Variables
$ machine0 env set MY_SECRET_KEY=... --secret --profile default
 
# Add a Prompt
$ machine0 prompts new build_feature --body "Query Linear for..." --profile default
 
# Create a new VM with the profile 
$ machine0 new myvm --profile default
$ machine0 ssh myvm
 
# Claude Code is authenticated and has your MCPs & prompts in context
$ claude

Reproducible Builds with NixOS

Use the /create-machine skill to generate reproducible builds with nix code. It'll then create a snapshot for you to make as many clones as you want.

# Install the /create-machine skill
$ machine0 skills install
 
# Use the skill to create a machine
$ claude -p "/create-machine a server that auto-starts claude code in tmux on boot"
 
# Code is auto-generated
$ ls -l claude-in-tmux/
 
# SSH in and you're ready
$ machine0 ssh claude-in-tmux
$ tmux attach

Hosting

Every VM gets its own static IP and HTTPS endpoint. VMs persist until stopped, suspended, or removed, with 99.99% uptime across 5 regions. Good for hosting web apps, databases, or anything that needs a stable address.

$ machine0 new webserver --image nixos-25-11-loaded --size small
$ claude -p "Use machine0 to start a webserver on port 80 on the webserver VM"
 
# Get the VM's IP
$ machine0 get webserver
 
# Open the authenticated HTTPS endpoint in your browser
$ open https://webserver.mac0.io

FAQ

Is machine0 secure and reliable?+−
How is machine0 different from a raw VPS?+−
How is machine0 different from sandboxes like E2B or Modal?+−
What are the benefits of NixOS?+−
Will I get locked in?+−
How do I get support?+−

Get Started Now

NixOS or Ubuntu with tools pre-installed. Dedicated resources, static IPs, per-minute billing.

$curl -LsSf https://machine0.io/install.sh | sh
查看原文(Hacker News 熱門)