horizon-machines

horizon-machines is a skill for Claude Code from peters/horizon. It costs 140 tokens per session (3,566 once invoked), scanned D, original, MIT.

A command-line workflow for renting, preparing, connecting to, stopping, and deleting remote Linux machines and GPU machines from cloud providers you have already signed into.

In plain words
What is it for?
Use it to create or clean up cloud virtual machines and GPU workloads through AWS, Google Cloud, Azure, Hetzner, or RunPod command-line tools.
Why use it?
It avoids manually switching between provider tools and keeps account details and destructive actions under your control. It also lets you connect machines to a Tailscale private network when needed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the horizon plugin — 5 skills shipped together

Good fit Use it to create or clean up cloud virtual machines and GPU workloads through AWS, Google Cloud, Azure, Hetzner, or RunPod command-line tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peters/horizon/horizon-machines
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add peters/horizon --skill horizon-machines
Clone the repo
git clone --depth 1 https://github.com/peters/horizon

Made for: Claude Code.

Or install horizon, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for horizon-machines

README.md
[![agentmods](https://agentmods.dev/badge/skills/peters/horizon/horizon-machines/github.svg)](https://agentmods.dev/skills/peters/horizon/horizon-machines)
Your own site
<a href="https://agentmods.dev/skills/peters/horizon/horizon-machines"><img src="https://agentmods.dev/badge/skills/peters/horizon/horizon-machines/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for horizon-machines

Your own site · 80×15
<a href="https://agentmods.dev/skills/peters/horizon/horizon-machines"><img src="https://agentmods.dev/badge/skills/peters/horizon/horizon-machines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00140 $0.03566
Opus 5.5 $0.00056 $0.01426
Sonnet 5.5 $0.00028 $0.00713
Haiku 4.5 $0.00014 $0.00357

Measured today against content hash c92170884b08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

horizon-machines scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

should report `no`; use `sudo -n` if not root).

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

`az account set`, `~/.aws/config`, `~/.aws/credentials`). Pass account,
assets/plugins/claude-code/skills/horizon-machines/SKILL.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Horizon machines

Use this skill to rent, prepare, register, open, and delete remote Linux machines using the provider CLIs that the person already installed and authenticated on this computer, together with Horizon's public machine MCP tool (--browser-mcp).

The machine MCP tool

machine operations are set, remove, list, and open.

  • set registers or updates a machine in ${HORIZON_HOME:-$HOME/.horizon}/machines.json (mode 0600) with fields name, host, and optional user, port, identity_file, known_hosts_file, folder, provider, size, place, and price_per_hour.
  • remove removes a registered machine by name from machines.json.
  • list returns all registered machines from machines.json.
  • open focuses an existing SSH panel matching (name, session) or opens a new tmux SSH panel in the active workspace (preset defaults to shell and accepts shell, claude, codex, open_code, agy, kilo_code, pi, grok; set place_workspace: true to place the active workspace on that machine; session must match [a-z0-9_-]+).

When an agent runs inside a Horizon panel or when one Horizon window runs in the same Horizon home, set, remove, and list notify the live Horizon host so the sidebar Machines section, workspace Place menu, and Remote Hosts overlay update immediately (live_host_notified: true). When zero or multiple Horizon windows run, set, remove, and list still update machines.json atomically (live_host_notified: false), while open refuses with host_unavailable or ambiguous_host. Never pass credentials or secrets through machine; pass only per-machine key file paths and isolated known_hosts paths.

Background tmux session watcher

By default (features.watch_machine_sessions: true), Horizon opens one persistent background ssh ... sh connection per registered machine in machines.json (BatchMode=yes, StrictHostKeyChecking=yes, polling tmux and ps every 2 seconds, or every 30 seconds when no tmux server is running).

Read the full file on GitHub · 262 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +98 lines · +25 tokens per session c92170884b08
  2. yesterday First seen · 164 lines · 115 tokens per session scan D 94f187150a90

Subscribe to this mod's changes

horizon-machines is a skill published in the GitHub repository peters/horizon (726 stars, last pushed today), licensed MIT. It adds 140 tokens to every session and 3,566 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-30.

Related

horizon-machines compared with skills from other repositories

horizon-machines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
horizon-machinespeters/horizonSkill726todayMITD140Claude Code
web-infotimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA50Claude Code
web-publishtimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA48Claude Code
web-stoptimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA31Claude Code
orca-per-workspace-envstablyai/orcaSkill147ktodayMITA107Claude Code, Codex
azure-storage-blob-rustmicrosoft/skillsSkill3.3kyesterdayMITA57Claude Code
hotpath_init_grafanapawurb/hotpath-rsSkill1.9k9d agoMITA109Claude Code