Party leadership
On 19 August 2020, she announced her intention to stand for the Liberal leadership following Grande's resignation. She became the third person after Sveinung Rotevatn and Abid Raja to announce their run for the leadership. She told reporters that she had sought advice from Grande herself and did not exclude seeking advice from her if she became leader. On 23 August, she was unanimously designated leader of the Liberal Party by the party's election committee, with Sveinung Rotevatn and Abid Raja as first and second deputy leaders.
At the party conference in September, she was unanimously elected party leader, with Rotevatn and Raja as deputy leaders.
In April 2021, she called on the leader of the Labour Party, Jonas Gahr Støre, to support the governing parties’ drug reform, which already had the support of the Socialist Left Party. She expressed that "the Labour Party now has the opportunity to show that they support ordinary people, and that it’s not just empty words and rhetoric. If Jonas Gahr Støre supports this reform, he should go in front and lead the way". Following the Labour Party's conference, where Støre announced he would not be supporting the drug reform, Melby stated that Støre had shown his true self, and called him a "defender of moralism". She further stated that the party "is pursuing a drug policy that is failing and has negative consequences".
In November, after minister of culture Anette Trettebergstuen stated that no members of the government or representatives of the state would attend the 2022 FIFA World Cup in Qatar, Melby praised Trettebergstuen, while adding that no members of the Storting should attend the event either.
In June 2022, Melby reiterated the Ukrainian ambassador's sentiment that the Norwegian government should be harsher against Russia. She noted that Norway should block Russian vessels from entering Norwegian waters, saying: "As long as Russia blocks Ukrainian vessels from going to port in Ukraine, the Russians should not be allowed to use Norwegian ports". She also praised the ambassador, noting: "Sanctions must cost us a little too, otherwise they do not have the effect we want. The fact that the government is undermining the sanctions to prevent the economic loss from becoming too great for us only contributes to financing Putin's war machine even further. Norway should not be responsible for that".
In her speech to her party's congress, Melby urged Conservative Party leader Erna Solberg to vote with the Liberal Party to close down the Wisting oil field, saying: "If you really think that the tax package was unnecessary, join the Liberal Party, then we will vote against this expansion".
Short time after Une Aina Bastholm's departure as Green Party leader, Melby and her party put through several changes to accommodate work schedules for employees with children. Some of these changes included a set time frame for group meetings, to not work beyond the scheduled working hours, time off for overtime work, and forbidding deadlines of big projects for the day after.
On 30 September, she and Progress Party leader Sylvi Listhaug called for more weapons shipments to Ukraine in the wake of Russia annexing four regions in Ukraine. Melby stated: "Today, Russia will illegally annex Ukrainian territories. This takes the war into a new phase. Putin removes the small glimmer of hope for a negotiated solution, and warns that the war will last a long time. It is more important than ever that the West supplies Ukraine with what it needs to fight back against Russia and win back its territory".
Melby was re-elected as leader in October 2022.
On 19 November 2023, Melby declared her candidacy for Prime Minister in an attempt to appeal to voters from the right wing-bloc who were dissatisfied with Erna Solberg's intentions of running for the post again in the 2025 election. Polling from early November 2023 had the Liberal Party at 6.4%, with the Conservative Party at 24% and the Labour Party at 20%. The Green Party leader Arild Hermstad expressed support for Melby's candidacy, calling it "a good idea".