It all depends on the device.
If it’s Matter over Wi-Fi, in this case, you can usually pair it with the manufacturer’s app and then you can share the device on Matter.
If it’s Matter over Thread, then you need a border router, you can find them from Google, Apple… after that you can find Thread keys that also act as border routers.