Show HN: machine0 – 你可以通过命令行控制的持久化 NixOS 虚拟机
Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

原始链接: https://machine0.io

Machine0 提供专为开发者和智能体设计的持久化高性能虚拟机(支持 NixOS 或 Ubuntu)。平台配备专用的 KVM/QEMU 资源,配置范围从 1 核 vCPU 到 60 核 vCPU 及 240GB 内存,并支持各类高级工作负载,可选配高端 GPU(如 H100、L40S 等)。 核心功能包括: * **以开发者为中心:** 优先采用 CLI 操作,支持 JSON,并提供用于智能体编程控制的远程 MCP 服务器。 * **灵活的生命周期:** 虚拟机在停止或挂起前保持持久化,按分钟计费,并支持将当前状态快照保存为“黄金镜像”。 * **基础设施即代码:** 通过 NixOS flakes 或 Ubuntu/Ansible 无缝管理环境,确保构建的可复现性,避免配置偏移。 * **全球访问:** 在四个区域提供 99.99% 的正常运行时间,每台虚拟机均分配有独立静态 IP 和自动 HTTPS 端点。 定价透明且具有竞争力,起步价为每小时 0.013 美元。用户仅需为实际使用量付费,挂起的虚拟机仅产生极低的存储费用。Machine0 完美结合了专用服务器的强劲性能与云基础设施的弹性,是可复现开发、托管服务及运行智能体的理想选择。通过终端即可立即开始使用:`curl -LsSf https://machine0.io/install.sh | sh`。

**machine0** 是一项全新的基于 CLI 的服务,旨在简化持久化虚拟机(NixOS 和 Ubuntu)的创建、管理及快照备份。它像现代 VPS 提供商一样运行,具备高在线率、静态 IP 以及可扩展的硬件配置(最高支持 240GB 内存及可选 GPU),并采用按分钟计费模式。 该平台最显著的特点是对 **NixOS** 的一流支持。通过使用 Nix flakes,用户可以将整个操作系统配置(包括软件包、服务和防火墙规则)定义为可重现的代码。这种方法确保了系统在不同环境间的一致性,并支持便捷的审计、版本控制和即时回滚。 machine0 专为希望实现“基础设施即代码”(IaC)管理的开发者设计,能够与现有工作流无缝集成,允许用户通过 Nix flakes 或 Ansible 配置系统。由于系统状态由代码定义,用户可以避免被单一供应商锁定;只需迁移配置文件,即可在其他提供商处构建完全相同的系统。 用户可通过 npm 安装 CLI,并使用简单的终端命令管理虚拟机的生命周期——从创建到快照备份。了解更多信息,请访问 [machine0.io](https://machine0.io)。
相关文章

原文

Persistent NixOS & Ubuntu VMs, tools pre-installed. Dedicated CPU/RAM, static IPs & per-minute billing.

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 Tasks

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.

NixOS with Flakes, or Ubuntu & Ansible

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

Designed to be used from the Terminal

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

Dedicated Resources up to 60 vCPU & 240GB RAM

Real KVM/QEMU. 1–60 vCPU, up to 240 GB RAM. Optional GPUs: H100, H200, L40S, MI300X.

Start, Suspend, Snapshot & Resume

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

99.99% Uptime Across 4 Regions

US, UK, EU, and Asia at the same price. Per-minute billing starts at $0.013/hr.

Static IPs & HTTPS Endpoints

Every VM gets a public IP and HTTPS at <vm>.mac0.io. No NAT, no tunnels.

Pricing

Pay-as-you-go, billed per minute. Same price in all regions. Suspend VMs to stop billing, resume anytime.

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
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

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

Reproducible Development Environments

Define your entire OS as code with NixOS. Spin up clones of your environment with enough resources to compile code, run tests, and use tools like browsers without bottlenecks.

Create a new NixOS VM
$ machine0 new devbox --image nixos-25-11-loaded --size large
 
Clone the flake, modify the config, and rebuild
$ git clone https://github.com/fdmtl/machine0-nixos.git ./
$ claude -p "Add postgres to the loaded profile"
$ machine0 provision devbox ./flake.nix#loaded
 
SSH in and start working
$ machine0 ssh devbox
$ claude login
 
Create a golden master snapshot
$ machine0 stop devbox
$ machine0 image new devbox devbox-gm
 
Want a clean or larger VM? Spin one up from the image
$ machine0 rm devbox
$ machine0 new devbox --image devbox-gm --size xxl

Running OpenClaw & Hermes

Autonomous agents like OpenClaw and Hermes need their own machine with isolated credentials. Create a VM, SSH in, start the agent. Suspend when you're done to stop billing.

Create a new OpenClaw VM & SSH in
$ machine0 new openclaw --image nixos-25-11-openclaw --size large
$ machine0 ssh openclaw
 
Start the onboarding flow
$ openclaw onboard --install-daemon
 
Done? Back up your data and suspend the VM
$ machine0 sync pull openclaw:~/.openclaw/ ~/Backups/openclaw
$ machine0 suspend openclaw
 
Running Hermes is similar
$ machine0 new hermes --image nixos-25-11-hermes --size large
$ machine0 ssh hermes

Hosting

Every VM gets its own static IP and HTTPS endpoint. VMs persist until stopped, suspended, or removed, with 99.99% uptime across 4 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

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
联系我们 contact @ memedata.com