Sporadic fighting between Turkish and Kurdish forces continued in a key border town in northeastern Syria on Friday but officials from both sides said a US-brokered ceasefire appeared to be largely holding.

There were reports of continued shelling and small arms fire in the town of Ras al-Ain, despite commitments by both Turkey and the Kurds to a five-day ceasefire negotiated by US vice president Mike Pence.

However, the rest of the Syrian-Turkish border appeared quiet and both Kurdish and Turkish officials said they believed the agreement was largely holding. “The fighting has stopped in almost all the places,” said Kino Gabriel, a spokesman for the Syrian Democratic Forces (SDF).

Ilnur Cevik, an advisor to Recep Tayyip Erdoğan told the BBC: “[The Kurds] are still throwing some rockets into Turkey but in general it is holding.”

Under the terms of the deal, there will be a five-day pause in fighting while Kurdish forces withdraw from the border, an arrangement that hands Turkey most of what it was looking to achieve with its military offensive.