Skip to main content
Create a machine, run a command, retrieve output, then open SSH.

CLI

Control machines from a terminal, script, or agent.
1

Install the CLI

2

Set your API key

Get a Dedalus API key from the Dashboard and set it in your shell.
3

Create a machine

The CLI calls the Machines API.
Save the machine_id. Later commands use it.
4

Run a command

The CLI runs commands directly, without opening a shell.
Machine IDs start with dm-.
Save the execution_id. Use it to retrieve the result.
5

Get the result

Poll the execution until its status is succeeded, then fetch the captured output.

SSH

Use executions for agents. Use SSH for human shells and debugging. Install packages and run normal Linux commands.

SDK

These examples create a machine, run a command, and print output.
Next: sleep, wake, watch, or delete the machine in Lifecycle.
Last modified on July 29, 2026