Updated 9pm

The Taliban announced their government on Tuesday, with a UN-blacklisted veteran of the hardline movement in the top role, weeks after they swept to power and toppled the US-backed president.

But as the Taliban transitions from militant force to governing power of Afghanistan, security officials grappled with a growing number of protests against its rule, with two people shot dead in the western city of Herat.

Mullah Mohammad Hassan Akhund -- a senior minister during the Taliban's brutal and repressive reign in the 1990s -- was appointed acting prime minister, a spokesman said at a press conference in Kabul.

The Taliban had promised an inclusive government that would reflect the ethnic makeup of the country, but all the top positions were handed to key leaders from the movement and the Haqqani network -- the most violent branch of the Taliban known for devastating attacks.

"We will try to take people from other parts of the country," spokesman Zabiullah Mujahid said, adding that it was an interim government. 

Mohammad Hassan Akhund (left) is seen in this 1999 file photo with then-Pakistani Foreign Minister Sartaj Aziz. Akhund was named Afghanistan's prime minister on Tuesday. Photo: AFPMohammad Hassan Akhund (left) is seen in this 1999 file photo with then-Pakistani Foreign Minister Sartaj Aziz. Akhund was named Afghanistan's prime minister on Tuesday. Photo: AFP

Shortly after the new lineup was revealed, Hibatullah Akhundzada, the secretive supreme leader of the Taliban who has never been seen in public released a statement, saying that the new government would "work hard towards upholding Islamic rules and sharia law".

"The new Taliban, same as the old Taliban," tweeted Bill Roggio, managing editor of the US-based Long War Journal.

Mullah Yaqoob, the son of the Taliban founder and late supreme leader Mullah Omar, was named defence minister, while the position of interior minister was given to Sirajuddin Haqqani, the leader of the Haqqani network.

Taliban co-founder Abdul Ghani Baradar who oversaw the signing of the US withdrawal agreement will be a deputy to Hassan. 

"It's not at all-inclusive, and that's no surprise whatsoever," said Michael Kugelman, a South Asia expert at the Woodrow Wilson International Center for Scholars. 

"The Taliban had never indicated that any of its cabinet ministers would include anyone other than themselves."

'The world will be watching' 

Following their 20-year insurgency, the Taliban now face the colossal task of ruling Afghanistan, which is wracked with economic woes and security challenges -- including from the Islamic State group's local chapter. 

A growing number of protests have emerged across the country over the past week, with many Afghans fearful of a repeat of the Taliban’s previous brutal and oppressive reign.

Hundreds gathered at several rallies in Kabul on Tuesday -- a show of defiance unthinkable under the last regime -- where Taliban guards fired shots to disperse the crowds.

In Herat, hundreds of demonstrators marched, unfurling banners and waving the Afghan flag -- a black, red and green vertical tricolour with the national emblem overlaid in white -- with some chanting "freedom".

Later, two bodies were brought to the city's central hospital from the site of the protest, a doctor in Herat told AFP on condition of anonymity for fear of reprisals.

"They all have bullet wounds," he said. 

Taliban spokesman Zabihullah Mujahid speaks during a press conference. Photo: AFPTaliban spokesman Zabihullah Mujahid speaks during a press conference. Photo: AFP

Demonstrations have also been held in smaller cities in recent days, where women have demanded to be part of a new government. 

The Kabul-based Afghan Independent Journalists Association said 14 journalists -- Afghan and foreign -- were detained briefly during the protests in Kabul before being released.

At the press conference on Tuesday night, the Taliban spokesman warned the public against taking to the streets. 

"Until all the government offices have opened, and the laws for protests have been explained, no one should protest,” Mujahid said. 

The group -- which executed people in stadiums and chopped the hands of thieves in the 1990s -- has previously said it would not stand for any resistance against its rule. 

Washington said Wednesday it was in "no rush" to recognise the new government. 

"It's really going to be dependent on what steps the Taliban takes," White House spokesperson Jen Psaki said.

"The world will be watching, the United States included."

Meanwhile, US Secretary of State Antony Blinken said the Taliban had reiterated a pledge to allow Afghans to freely depart Afghanistan.

US President Joe Biden has faced mounting pressure amid reports that several hundred people, including Americans, have been prevented for a week from flying out of an airport in northern Afghanistan.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.