Einstein did not believe in a personal God or an afterlife.
But he was not an a-theist. Not by a long shot.
He had a great appreciation and awe for what/who he called "the Old One"...the cosmic intelligence that laid out the universe whose secrets he could only dimly appreciate through scientific theory. Selected quotations do not adequately address Einstein's beliefs.
I have no idea what you think the difference between a 'personal god' and a 'cosmic intelligence' is. Einstein used the metaphor of 'god' to express his feeling that the Universe obeyed a set of meaningful and consitent laws. He also expressed regret this metaphor was exploited by the religious to attribute to him beliefs he did not hold. This thread is a case in point.