Slice the spaghetti squash in half. Using a spoon, remove the seeds and any stringy bits. Rub olive oil over each spaghetti squash half and season with salt and pepper.
Place the spaghetti squash halves in the air fryer, base side down. Air fry for 25 minutes, checking at the 20-minute mark. Once the strands pull apart easily, the squash is ready.
Let the squash cool for a few minutes before using a fork to separate the strands.
Add pats of butter, if desired, and serve.
Notes
Spaghetti squash size: 1 1/2 pounds will take closer to 23-24 minutes, versus a 3-pound squash, which can take closer to 30 minutes.
Serving: I like to add half a tablespoon of butter to each one before serving.