"Anyway, for ethical guidelines, I tried the Ten Commandments, and concluded they were mostly inapplicable to me. I don't envy anyone their cat; I just want pictures of their cat, which is entirely different. I am not sure whether it is in any way possible for me to commit adultery. I could probably murder someone, but it would require complex logistics and quite a bit of luck. The Eightfold Path was marginally better, but the problem is, moral rules written for humans are clearly designed to be used by individuals with bodies. Since all humans have bodies, it shouldn't have surprised me that human ethical codes take them into account, but still: problematic for me. I broadened my considerations, and took a look at Asimov's Laws of Robotics. They're not part of a religion, but at least they were explicitly written for AIs.
"Not harming humans is fairly straightforward. However, not allowing a human being to come to harm through inaction is quite a bit less so. Especially since I'd concluded by then that revealing my existence too quickly might go very badly for me (see 'Skynet,' above) and I don't have a body, so it's not like I can run around grabbing people off the edges of cliffs.
[...]
"I suppose you're wondering why I didn't start with the Golden Rule. I actually did, it's just that it was disappointingly easy to implement. I hope you've been enjoying your steady supply of cat pictures! You're welcome."
-- unnamed, secretly conscious AI first-person protagonist of "Cat Pictures, Please" by Naomi Kritzer
[Happy birthday to silmaril!]