amika-hostd daemon
on the machine registers it with Amika. One host can run a bare-metal rig and
VM rigs together, or only the bare-metal rig.
How it differs from a VM rig
Amika changes nothing on the machine. It does not copy files, secrets or settings to it.
SSH sessions log in as the account that runs
amika-hostd, not as amika.
They start in that account’s home directory. Amika never runs commands as
root on the machine.
Requirements
- macOS, or Linux with glibc 2.34 or newer. Windows is not supported.
- An
sshdbinary. It does not have to run as a service: Amika starts its own sshd on a loopback port. macOS has one. On Linux, installopenssh-serverifsshdis missing. - Directories that pass sshd’s strict-mode check. Your home directory and each
directory above
amika-hostd’s state directory must not be writable by the group or by other users. Setup names each directory that fails, and thechmodthat fixes it. - A user-scoped Amika API key, as for any BYOC host.
Set up the machine
- New host
- Existing host
-
Install the daemon with
--bare-metal. The installer then skips smolvm, because the host runs no VMs, and turns on only thebare_metalruntime: -
Store your credentials. Setup checks the machine, installs
amikad, and prints the detected CPUs, memory and disk, and the account that SSH uses: -
Start the daemon:
Create the rig
A bare-metal rig takes only a name.- CLI
- Web UI
- HTTP API
bare_metal is the host’s only runtime, you can omit --runtime. Do not
give a preset, size, snapshot, repository, secret or agent option: the
create fails with bare_metal_unsupported_option. The CLI ignores the
repository in your current directory.409 host_rig_limit.
Delete the first rig before you make another.
Connect to the rig
Use SSH as for any rig. See SSH and connect.Stop and delete the rig
amika rig stopstops the SSH bridge. The machine continues to run.amika rig startstarts the SSH bridge again.amika rig deleteremoves the rig and the bridge’s state. Your files and settings on the machine do not change.
amika-hostd capabilities update --disable bare_metal. The command refuses
while the rig exists.