How do I install homeassistant.remote on Ubuntu machine?

Ok, I think I figured it out - stupid mistake, I didn’t have a valid command in my sensor config.

it should be:

- platform: command_line
  name: test_sensor_12
  command: "python3 /home/homeassistant/.homeassistant/pythonscripts/test.py sensor.test"

If i want to connect to my Home Assistant via the Python API do I need to install HA on the other host or can i somehow only install the homeassistant.remote ?