Skip to main content

Host Configuration

Configure how Clawrium connects to hosts in your fleet, including multi-address support for different network contexts.

Architecture Overview

                    ┌─────────────────────┐
│ Control Machine │
│ (clm CLI) │
└──────────┬──────────┘

┌───────────────────┼───────────────────┐
│ │ │
│ LAN │ LAN │ Tailscale
▼ │ ▼
┌─────────┐ │ ┌─────────────┐
│ Host A │ │ │ Cloud │
│ │ │ │ (Tailscale) │
│ LAN IP: │ │ └──────┬──────┘
│ 10.0.0.5│ │ │
│ │ │ │
│ [1 addr]│ │ │
└─────────┘ │ │
▼ ▼
┌─────────────────────────────────────┐
│ Host B │
│ │
│ LAN IP: 192.168.1.50 ◄─── primary │
│ Tailscale: wolf.ts.net │
│ │
│ [2 addresses] │
└─────────────────────────────────────┘

Your control machine (where you run clm) connects to hosts via SSH. Each host can have multiple addresses for different network contexts.

Primary Address

Every host has exactly one primary address. This is the address Clawrium uses for all operations:

  • Agent installation and configuration
  • Status checks
  • Command execution
  • Secret delivery

When you add a host with clm host add, the hostname becomes the primary address.

Multiple Addresses

Hosts often have multiple network paths depending on where you're connecting from:

ContextAddress TypeExample
Home LANLocal IP192.168.1.50
Corporate VPNVPN IP10.0.100.50
TailscaleMagic DNSwolf.tail12345.ts.net
WireGuardTunnel IP10.13.13.50
PublicDomain/IPmyserver.example.com

Add additional addresses with clm host address add:

# Host already added with LAN address
clm host add 192.168.1.50 --alias wolf

# Add Tailscale address for remote access
clm host address add wolf wolf.tail12345.ts.net --label tailscale

# Add VPN address for corporate network
clm host address add wolf 10.0.100.50 --label vpn

Switching Primary Address

When your network context changes, switch the primary address:

# Working from home - use Tailscale
clm host address set-primary wolf wolf.tail12345.ts.net

# Back in the office - use LAN
clm host address set-primary wolf 192.168.1.50

All subsequent commands use the new primary address automatically.

Viewing Addresses

List all addresses for a host:

$ clm host address list wolf
Addresses for wolf
┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ Address ┃ Primary ┃ Label ┃ Added ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
192.168.1.50 │ * │ lan │ 2026-04-01 10:30 │
│ wolf.tail12345.ts.net │ │ tailscale │ 2026-04-05 14:15 │
10.0.100.50 │ │ vpn │ 2026-04-06 09:00 │
└─────────────────────────┴─────────┴───────────┴──────────────────┘

The clm host list command shows a [+N] indicator for hosts with additional addresses:

$ clm host list
Registered Hosts
┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━┓
┃ Alias ┃ Host ┃ Architecture ┃ Cores ┃ Memory (GB)
┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━┩
│ wolf │ 192.168.1.50 [+2] │ x86_64 │ 816.0
└─────────┴───────────────────────┴──────────────┴───────┴─────────────┘

Next Steps