Sydney commuters will get the chance to book shuttle buses from or near their homes to a local transport hub within the next few months as part of a state government trial of on-demand public transport.

Pricing for a standard trip will range from $2.60 to $5.60, and customers will be able to book online, by phone or via an app on their smart device.

The eight trials of on-demand services starting as early as October will be carried out in Sydney's north west, south west and west, the eastern suburbs, northern beaches, Sutherland Shire and the Central Coast.

Ride-sharing legislation that passed early last year deregulated the booking market for buses of 12 seats or less. The latest trials will be run by private operators such as Keolis Downer, Transdev and Transit Systems.