The agreement came as a series of explosions in India's capital killed dozens of people in carnage that Indian leaders blamed on terrorists. Pakistan's government condemned the bloodshed.
Crossing the cease-fire line was forbidden for 58 years, until Pakistan and India agreed to a twice-monthly bus service earlier this year. That was one of the most tangible results so far of a two-year effort to end decades of animosity and resolve the Kashmir dispute. But the devastation from South Asia's worst-ever earthquake has helped override long-standing suspicions between the two countries.
The border openings begin Nov. 7. Relief goods can be sent in either direction and handed over to local authorities at the crossings, the Foreign Ministry statement said. Civilians will be allowed to cross on foot, with priority given to families divided by the border.
The Oct. 8 earthquake killed more than 78,000 people in northern Pakistan and more than 1,300 in Indian Kashmir.
Some 3.3 million people were left homeless, and fears for their lives grow as winter closes in. An estimated 800,000 people, many living in remote mountain valleys, still lack basic shelter, and relief officials say 600,000 more tents are needed.
Since the quake, India has delivered tons of supplies to Pakistan, and on Wednesday it offered $25 million to a sluggish UN appeal for emergency relief funds. It also is setting up three camps on its side of the border where Pakistani earthquake victims can get medical help, food, and relief supplies.
More than 60 nations have pledged funds, including $50 million in aid offered by Washington.
The US military has sent helicopters, a field hospital, and a construction battalion to earthquake-stricken Pakistan -- a gesture that may help improve Washington's image in the Muslim world.
''When they do something against Muslims, we condemn them. Now as they are helping us, we should appreciate them," said Yar Mohammed, 48, a farmer in Muzaffarabad, the capital of Kashmir-controlled Pakistan.