Toyota and General Motors have agreed to extend their alliance to develop environmentally friendly technology for two more years, Toyota executive vice president Katsuaki Wantanabe told journalists on Wednesday, according to Dow Jones Newswires.