Lib Dem leader Jo Swinson said: “We are delighted that an agreement has been reached.
“This is a significant moment for all people who want to support Remain candidates across the country.”
The pact follows a similar deal earlier this year in the Brecon and Radnorshire by-election, when Plaid Cymru and the Greens agreed not to put forward a candidate but instead gave way to the Lib Dems’ Jane Dodds.
She went on to defeat the Conservative incumbent, Chris Davies.