Anti-aliasing in pixel art is done by hand: you choose an in-between colour from your palette and place it, pixel by pixel, where a stepped line or curve needs softening. Used sparingly, it smooths shapes, but used everywhere, it blurs them.
An anti-aliasing pixel sits between the line and whatever lies next to it, so its colour should be roughly halfway between them in brightness, usually taken straight from an existing ramp. If no colour in the palette falls in between, leave the step alone rather than adding a colour for a single pixel.
Placement follows the steps of the line. Put one in-between pixel at the end of each step of three pixels or more, where the jump to the next row is most visible, and two at the end of the longest steps on shallow lines. Steps of one or two pixels need nothing: softening them only makes the line look thicker.
Keep the outer edge of a sprite hard. A game character moves across many backgrounds, so an in-between colour chosen for a blue sky turns into a stray halo against a dark cave. Soften the lines inside the sprite instead, and bear in mind that too much anti-aliasing takes away the sharp, deliberate look that makes it pixel art.
The automatic smoothing that drawing apps apply to brushes and text is a different thing. It blends every edge with partly transparent pixels, so switch it off when you draw. Our guide to
using pixel fonts with text smoothing switched off covers the same setting for lettering.