Shadow is a black and red hedgehog created as a dark counterpart to Sonic, introduced in Sonic Adventure 2. He is defined by his abrasiveness and by a past he cannot fully remember.
Shadow's history involves tragedy and loss, and much of his arc across the series turns on recovering or protecting the memory of who he was. Dr. Eggman's involvement — including the creation of an android duplicate of him — muddies the question of identity further, since Shadow cannot always be certain whether he is the original or a copy.
Grumpy, blunt and impatient with Sonic's optimism, Shadow is driven rather than cheerful. That single-mindedness is the point: he will go to considerable lengths, including clashing directly with Sonic, to reclaim his memories and settle his past.
Over time the games soften him slightly, but the edge remains his defining trait.