There are all kind of connectors or adapters, it can be connected to the main, the faucet, a hose Y at the washer inlet hose, or even use a pipe piercing T valve although I also do not like much the idea of piercing any pipe.
Depending on where you plan to install it the seller can supply your with any aqdaptor you may need.