@machine0/cli 1.0.69 → 1.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +7 -0
  2. package/dist/cli.js +250 -251
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -41,6 +41,13 @@ The environment variable takes precedence over the session file. You can get a t
41
41
 
42
42
  `machine0 account login` and `machine0 account logout` still work when `MACHINE0_API_TOKEN` is set — they manage the session file independently and will warn you about the environment variable.
43
43
 
44
+ ## Using machine0 with AI agents
45
+
46
+ When driven from a coding agent (Claude Code, Cursor, etc.) the CLI runs without a TTY. Two supported paths:
47
+
48
+ 1. **MCP server (recommended for agents).** The API hosts an MCP endpoint at `https://app.machine0.io/mcp` with tools for listing, creating, starting, stopping and destroying VMs, managing images and keys, and running SSH commands. Point your agent at this URL and authenticate with OAuth or `MACHINE0_API_TOKEN`. This is the stable, structured interface.
49
+ 2. **CLI with `MACHINE0_API_TOKEN`.** For scripts and CI, set the env var and the CLI works non-interactively. Destructive commands (`rm`, `update`) require `--yes` when there is no TTY — the CLI fails loudly rather than silently destroying resources.
50
+
44
51
  ## Benefits
45
52
 
46
53
  - 🧰 **Fully Loaded:** VMs come pre-installed with everything you need to work with AI.