Greek prime minister George Papandreou survived a confidence vote, calming a vicious revolt in his Socialist party with an emotional pledge to step aside if necessary and seek a cross-party government lasting four months to safeguard a new European debt agreement.

Mr Papandreou won the critical parliamentary confidence motion 153-145 after a week of drama in Athens that horrified Greece's European partners, spooked global markets and overshadowed the Group of 20 summit in the French resort of Cannes.

The threat of a Greek default or exit from the common euro currency has worsened the continent's debt crisis, which is already struggling under bailouts for Greece, Ireland and Portugal.

Finance Minister Evangelos Venizelos, who warned that the debt-ridden country still faced "mortal danger", said the new government would last until the end of February.

But main opposition leader Antonis Samaras, who had demanded Mr Papandreou resign and a new government be formed that did not include members of any political party, called for snap elections.

He did not say whether his conservative party would join coalition talks, due to be formally launched later today when Mr Papandreou meets the country's president.

"The masks have fallen," Mr Samaras said. "Mr Papandreou has rejected our proposals in their entirety. The responsibility he bears is huge. The only solution is elections."

Mr Papandreou's government, midway through its four-year term, came under threat after his disastrous bid this week to hold a referendum on a major new European debt agreement.

The idea was swiftly scrapped on Thursday after an angry response from markets and European leaders who said any popular vote in Greece would determine whether the country would keep its cherished euro membership.

They also vowed to withhold a critical eight billion euro instalment of loans from an existing bailout deal that Greece needs urgently to stave off an imminent and catastrophic default.

Mr Papandreou's surprise referendum plan, and the international backlash against it, horrified many of his own party stalwarts.

It led to an open rebellion with high-ranking socialists saying they would only support him in the confidence vote if he pledged to seek a cross-party coalition whose mandate would be to secure the new debt deal and the disbursement next bailout loan instalment.

Struggling to face down the revolt, Mr Papandreou insisted his main concern was to save the country.

He insisted he was not concerned with retaining the premiership, but warned that elections now would have been "catastrophic", jeopardising Greece's continued bailout funding, the new debt deal and the country's euro membership.

He sought the vote of confidence "to safeguard a steady course for the country - with no power vacuum, without being dragged to election", he said.

"We must proceed in an organised way. And regardless of developments, the country must be governed tomorrow without turbulence."

After seeing nearly two years of harsh austerity measures spur crippling strikes, violent demonstrations and street attacks against his politicians, Mr Papandreou insisted the burden could not be carried without help from opposition parties.

"We, the Socialist party deputies, carried the cross of reform ... But one group in Parliament is not enough," he said. "This great task requires sincere and broad support."

Greece has been surviving since May 2010 on a first 110 billion euro bailout. But its financial crisis was so severe that a second rescue was needed as the country remained locked out of international bond markets by sky-high interest rates and facing an unsustainable national debt increase.

The new European deal, agreed on October 27 after marathon negotiations, would give Greece a 130 billion euro rescue package. It would also see banks write off 50% of the money Greece owes them, about 100 billion euro. The goal is to reduce Greece's debts to the point where the country is able to handle its finances without relying on constant bailouts.

To receive funds from the initial bailout, Greece was forced to embark on a punishing programme of tax hikes and cuts in pensions and salaries that sent Mr Papandreou's popularity plummeting and his majority in parliament whittled down from a comfortable 10 seats to just two.

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.