Pub customers and staff held up at gunpoint at Ashfield in Sydney's inner west

Police are hunting for four men they say robbed a pub and its customers at gunpoint in Sydney's inner west.

Officers say the men had their faces covered when they forced their way into the Canterbury Hotel last night at about 11:45pm (AEDT).

Police say two of the men - one with a shotgun and another with a metal pole - threatened staff and demanded cash.

The manager was forced into the office where an amount of money was taken from the safe, while other thieves took cash from patrons in the gaming area.

The four men then ran from the hotel, onto Tincomb Street.

No one was hurt during the robbery.

Police say anyone with information about what happened should call Crime Stoppers on 1800 333 000.