A surprise Taliban ceasefire appeared Monday to be holding for a second day, as authorities planned to release up to 2,000 insurgents held by security forces.

The Taliban made the three-day truce offer that started Sunday to mark the Eid al-Fitr holiday -- a move swiftly welcomed by the government, which reciprocated by announcing plans to free insurgent prisoners.

President Ashraf Ghani said the government was also ready to hold peace talks with the Taliban, seen as key to ending a nearly two-decade-long war in the impoverished country.

"The ceasefire is holding. There have been no reports of any violation so far," National Security Council spokesman Javid Faisal told AFP.

"We hope this will eventually lead to a lasting peace that the people of Afghanistan so much desire and deserve."

In the northern city of Kunduz, which the Taliban had attacked just days ago, calm prevailed, with residents celebrating Eid.

"Just two days ago panic had set in the city," said Atiqullah, a shopkeeper from Kunduz.

A motorist is checked by security at a checkpoint in the Afghan capital at the start of the Eid al-Fitr holiday
A motorist is checked by security at a checkpoint in the Afghan capital at the start of the Eid al-Fitr holiday AFP / WAKIL KOHSAR

"Today, you go out and feel as if there is no more fighting. People are actually celebrating Eid."

Violence has escalated since the Taliban signed a deal with Washington in February to withdraw all US forces from the country by early next year.

The agreement also set the stage for intra-Afghan peace talks and stipulated that the government would first release up to 5,000 Taliban prisoners, while the militants would free about 1,000 national security.

Before Sunday's announcement to free up to 2,000 Taliban prisoners as a "goodwill gesture," Kabul had already released about 1,000 Taliban inmates while the insurgents had let go roughly 300 Afghan security forces members.

The Taliban insists that Kabul must release 5,000 of its members as agreed in the deal with the US.

"This process should be completed in order to remove hurdles in the way of commencement of intra-Afghan negotiations," a Taliban spokesman Suhail Shaheen said on Twitter.

Since the US invasion of Afghanistan in 2001 there has only been one other ceasefire -- a three-day pause between the Taliban and Kabul, also marking Eid, in 2018.

That ceasefire was initiated by Ghani.