Skip to main content
Once a rig is running, you have a few ways to get inside it:
  • rig ssh: interactive shells, one-off commands, and port forwarding.
  • rig connect (CLI-only): a plain interactive shell over the same transport.
  • scp (CLI-only): copy files to and from a rig.
  • rig open (CLI-only): opens the rig in an editor or app over SSH. Supported apps are Cursor, VS Code, Claude Desktop, Codex, Paseo, and Herdr.

Prerequisites

  • A rig in the active / running / started state. See Create a rig.
  • An SSH key. Create one with amika secret ssh-keygen, or upload an existing public key with amika secret ssh-keygen --import ~/.ssh/id_ed25519.pub.

Open an interactive SSH session

The TypeScript SDK has no SSH methods. Use the CLI to open a shell.

Run a one-off command

amika rig ssh works like ssh: options go before the rig name, and the command goes after it. Use -t to allocate a TTY when the remote command needs one.

Forward a port

Every ssh option works, including port forwarding. Forward a local port to a port in the rig with -L, and add -N to skip the remote shell:
Local (-L) and dynamic (-D) forwarding are supported. Remote (-R) and X11 forwarding are not. Agent forwarding is on by default and uses a dedicated agent that holds only your Amika SSH key, so your other keys never reach the rig.

Copy files

Use amika scp to copy files between your machine and a rig. It uses the same SSH identity as amika rig ssh and accepts standard scp options such as -r, -p, and -C.
A relative rig path starts under /home/amika. Use an absolute path when the file lives elsewhere in the rig. To see the scp command Amika would run without running it, add --print:
See amika scp for copying between rigs and other SSH hosts.

Open a plain shell (CLI only)

amika rig connect opens an interactive shell in the rig over the same transport as rig ssh. Use it when you don’t need SSH options or a remote command.

Open in an editor (CLI only)

amika rig open opens the rig in Cursor, VS Code, Claude Desktop, Codex, Paseo, or Herdr over SSH. See Open a rig in your editor for the full command and instructions for other Remote-SSH editors.

Next steps

Programmatic walkthrough

Rig lifecycle

CLI reference