Author surrogate
As a literary technique, an author surrogate (also called an author avatar) is a fictional character based on the author. The author surrogate may be disguised, with a different name, or the author surrogate may be quite close to the author, with the same name.