The judges' move strips Maduro's opponents in the National Assembly legislature of what little grip they had over a key pillar of government.

The high court (TSJ) has consistently backed the leftist president in his power struggle with the legislature.

It had on Tuesday also stripped parliamentary immunity from lawmakers in the assembly.

"The unconstitutional decisions by the TSJ to strip parliamentary immunity from the members of the National Assembly and assume the legislative function are the latest actions taken by the authoritarian regime to subvert the constitutional order in Venezuela and eliminate all semblance of democracy," Almagro's statement said.

He said he "denounces the self-inflicted coup d'etat perpetrated by the Venezuelan regime against the National Assembly, the last branch of government to be legitimized by the will of the people of Venezuela," the OAS statement said.

- Army urged to act -

The court based its latest decision on an earlier ruling that the opposition majority was in contempt of court.

"As long as the National Assembly's contempt of court and invalidity persist, parliamentary powers shall be exercised directly by (the Supreme Court's) constitutional chamber or by the body it designates to safeguard the rule of law," it said late Wednesday night.

The speaker of the National Assembly, Julio Borges, urged the army, which has thus far supported Maduro, to take a stand.

"The Venezuelan armed forces cannot remain silent as the constitution is breached," he said, appealing to soldiers who are also suffering through what he called the "chaos" of the economic crisis.

With the public support of the military and control of most state institutions, Maduro has been resisting opposition calls for early elections.

A European Union spokesman in a statement urged Venezuela "to establish a clear electoral calendar and to respect the National Assembly and all its members, as foreseen in the Constitution."

- Contempt of court -

The court said the National Assembly leadership was in contempt for swearing in three lawmakers who were banned over alleged electoral fraud.

The opposition Democratic Unity Roundtable (MUD) condemns the fraud charges as a trumped-up bid to curb its power after it won a landslide in legislative elections in December 2015 with a promise to oust Maduro.

The court has overturned every law passed by the opposition-led legislature.

"To legally overtake the functions of a branch of government is a coup," said Latin America specialist Christopher Sabatini of Columbia University in New York.

- Oil deals at stake -

The court's expansion of its own powers came as part of a ruling on an oil law. It enables the government to launch joint ventures with private oil companies without legislative approval.

Venezuela has the world's biggest oil reserves but the collapse in prices has sapped its revenues, prompting shortages of food, medicine and basic goods like toilet paper.