On June 10, 1902 Pope Leo XIII appointed Keane as the third bishop of Diocese of Cheyenne. He was consecrated on October 28, 1902 by Archbishop John Ireland of Saint Paul. Bishops Joseph Bernard Cotter of Winona and James McGolrick of Duluth were the principal co-consecrators. Keane came to Wyoming at a time of increased population and economic expansion. Bishop Keane needed to recruit priests who would be willing to work in the difficult environment of Wyoming, and was successful in doing so. The diocese was incorporated according to the laws of the state of Wyoming. The parishes of the diocese were likewise incorporated with the bishop, the pastor and two lay trustees serving as a corporate board at each parish. He was successful in his appeals to the newly formed Catholic Church Extension Society for funds to expand the church across the state. He also directed the building of Cheyenne's St. Mary's Cathedral and a new episcopal residence. The cathedral was dedicated in 1909. He served the diocese as its bishop for nine years.
Following the retirement of Archbishop John Keane, Pope Pius X named Bishop Keane the fifth bishop and third archbishop of Dubuque on August 11, 1911. Even though he succeeded a man who shared his last name, they were not related, the two men had very different personalities. John Keane was well liked in the community, and nicknamed "Sugar" for his kind and generous nature. James Keane however, would come to be nicknamed "Hickory" due to his stern nature. On the same day that Keane was named Archbishop of Dubuque, the Diocese of Des Moines was established from the western half of the Diocese of Davenport. To compensate it for the loss of territory, Clinton County was given to the Davenport Diocese from the archdiocese. At this time the present boundaries of the archdiocese were established. One of Keane's interests as archbishop was Columbia College. When he came to Dubuque, Columbia had an enrollment of 330 and a staff of 20. By the time he died it had an enrollment of 700 and a faculty of 48. He began an endowment fund for the college in 1917, and it became one of only seven Catholic educational institutions in the U.S. with an endowment fund of at least one million dollars . He also started the diocesan newspaper, the Witness. Two movements were of interest to Keane during his time as archbishop. He was known as a staunch supporter of the temperance movement, and Keane took every opportunity to speak out against alcohol consumption. He was also a member of the Irish Peace Commission of 1920, which was focused on the conflict between England and Ireland. He gained national notoriety as one of the speakers at the 1926 World's Alliance for International Friendship. Keane led the archdiocese for 18 years until his death on August 2, 1929. Like his predecessor, James Keane was buried at Mount Olivet Cemetery in Key West, Iowa.