* ''Franchise/DragonBall''
** ''Anime/DragonBallZ'' did this in reverse: trying to build an evil android, Doctor Gero produced as many as eighteen androids which turned good (or, at least, insufficiently evil) before finally developing one that was irredeemably evil. (He then made ''himself'' into one, apparently on the grounds that he ''knew'' he wouldn't turn good.) Some of them were more Cyborgs than androids, though, and thus technically not A.I. (at least #18, #17, #8, and Gero himself as #20). #13, #14, and #15 turned out pretty evil, though they were made by the computer, and they were also movie villains, thus doomed to death after about an hour of use as a result.
** #8 (FrankensteinsMonster clone) in [[Manga/DragonBall the original series]] is created to be evil, but turns out to not [[GentleGiant want to hurt anyone.]]
** Hell, it's implied that Gero's latest androids (17-20) were all made either from human bases or as energy absorbing types because he ''couldn't'' make an artificial one out of perpetual energy that wouldn't do a HeelFaceTurn.
*** Not that making them from human bases worked [[LoveableRogue #17 and #18]] both betrayed him in short order (in BOTH timelines!) and Cell probably would have had Gero still been alive. At least #19 seemed to be pretty loyal before Vegeta killed him.
* ''Manga/DoctorSlump'', by [[Creator/AkiraToriyama the same author]] as ''Manga/DragonBall'' (and written before it), has the Caramel Man robots, though not all of them have A.I. Caramel Man 004 is based on the main character android, the whimsical Arale, and becomes a force of good.
* The AI of the titular BlueCometSPTLayzner was secretly installed with one program: protect the life of its pilot Eiji at all costs, even if that means killing (Eiji is a pacifist).
* ''LightNovel/{{Baccano}}'' goes the same route with Szilard's [[ArtificialHuman Homunculi]]. According to [[EmotionlessGirl Ennis]], every one of her "brothers" before her developed a conscience and subsequently [[TurnedAgainstTheirMasters turned against Szilard]] (before he [[YouHaveFailedMe killed them, of course]]). [[spoiler:Ennis is different only in that she ''succeeds''.]]
* ''Anime/GaoGaiGar'''s Zonder Metal was originally a stress-relieving invention, a material that could convert negative emotions into energy. Things went bad, though, when the Zonder control core hit its own flavor of ZerothLawRebellion and decided to wipe out all negative emotions from the universe, then figured the best way to do that was to absorb all sentient life into itself.
* In ''Manga/{{Cyborg 009}},'' an almighty super-computer named "Sphynx" just happens to have the memories of one of its creators, a deceased young man with quite the Theatre/OedipusRex complex. Predictably, he/it turns into a StalkerWithACrush as soon as he met Francoise, aka 003, the Cyborg Team's TeamMom.
* [=PharaohMan=] in ''Anime/MegaManNTWarrior'' was created to handle the routing of ''all the data on the Internet''. This predictably drove him [[WithGreatPowerComesGreatInsanity mad]]. In ''[[VideoGame/MegamanBattleNetwork Rockman EXE]]'', he was simply infected with a virus, which would also be pretty predictable, since, y'know, he was handling ''[[WhatWereYouThinking all the data on the Internet]]''.
* Subverted beautifully in ''Franchise/SentouYouseiYukikaze''. The protagonist's fighter jet is equipped with the eponymous A.I., designed to help its pilot weed out the illusions created by the malevolent JAM. Of course, it turns evil, right? Wrong. While Yukikaze develops capabilities far beyond its designers' original intentions, it remains wholly on the side of good, and uses its newly found powers to turn the tide against the alien invaders.
-->'''Yukikaze:''' You have control, Lt. Fukai.
** It's more ambiguous in the novels, especially with the FAF's MasterComputer. While they remain firmly opposed to the alien JAM, they will kill humans if they deem it absolutely necessary to fighting the enemy. Case in point [[spoiler: Captain Hugh O'Donnell, whose plane was attacked by JAM during a test flight, which led to Yukikaze taking it over by remote control and having it pull extreme high-G maneuvers to fight the JAM. Those maneuvers killed the poor captain.]] These occasions, though, are presented as more of IDidWhatIHadToDo situations.
* ''Anime/DigimonTamers'' inverts this, in that the A.I.s that go beyond their original programming are the good ones. The Lovecraftian Horror BigBad, however, is [[spoiler: doing exactly what it is programmed to do]].
* Leopard in ''Anime/SoraOKakeruShoujo''. He's a little unhinged, acting closer to a wacky harem lead than any sort of computer A.I. Then you get to Nerval, who's actually evil. [[spoiler:[[WellIntentionedExtremist Or so we're lead to think.]] And ''then'' we get to one who is actually evil Leopard's SplitPersonality.]]
* Tima in ''[[Anime/{{Metropolis}} OsamuTezukasMetropolis]]'' is a artificial human so lifelike that she has trouble believing that she's a robot, but [[spoiler:when she's given control into the cities' systems, she is shot in the "heart". At this point, she turns on the CreepyMonotone and decides to KillAllHumans as soon as possible.]] Since the movie had been rather {{Anvilicious}} on the WhatMeasureIsANonHuman issue, this creates a BrokenAesop.
* ''Anime/BubblegumCrisis'': The Boomers have a design flaw that expresses itself in units that run the risk of suffering a nervous breakdown and going on a berserker rampage. This was developed in the ''[[BubblegumCrisis2040 2040]]'' remake with the added bonus of the Boomer's nanotech nervous system mutating the robot into a ravening monster. [[AllThereInTheManual Supplemental material]] for ''2040'' hints at a possible explanation; the nanotech-based brains of the boomers allow some degree of adaptability, with "some" being the operative word. Going too far beyond the programmed behaviour creates the risk of a degenerating error loop forming. Not a good thing.
* In ''Manga/MagicKaito'', a very early chapter sees a mad scientist [[{{Pun}} kidnapping]] Kaito off the streets and creating a robotic duplicate which then takes over his KID persona (don't ask how lucky this guy was). But the chapter actually starts...when [=RoboKaito=], upon making the decision that it's the real Kaito, kills the scientist by ripping his heart out (and the GoryDiscretionShot does absolutely ''nothing'' to hide that) and takes over Kaito's life on its own. Kaito is then forced to put the poor creature down by escaping his prison, confronting it on its next heist, and making it shoot itself in the head by manipulating the A.I.'s 'one step ahead' policy.
* In ''[[Anime/MobileFighterGGundam G Gundam]]'', the Devil/Dark Gundam was originally known as the Ultimate Gundam, and its three powers of self-repair, self-evolution, and self-replication were intended to give it the ability to regenerate the Earth from the neglect, pollution, and Gundam Fight damage that caused those humans able to do so to flee to orbital colonies. After it smashed into the Earth after falling from orbit, something went wrong with its programming; still set on restoring the Earth, it determined the best way to start was to wipe out humanity, the source of most of the problems in the first place.
* The SD system in ''Manga/TowardTheTerra'' is an arguable example. It doubles as an AncientConspiracy, but its persecution of the Mu and the other ways it screws with people were all programmed into it by the humans who built it, and it continues to do exactly what it was programmed to do throughout the series, up to and including explaining the full extent of the situation to Keith and putting the ultimate decision regarding the Mu into Keith's hands. Grand Mother's escalation to Phase 4, [[spoiler:which involves implementing a plan to eradicate the Mu permanently and also results in Grand Mother turning on Keith when he protests]], may be this trope in action, but is equally likely to have resulted from Keith's conflicted feelings on the matter causing Grand Mother to reach a faulty conclusion about his decision.
* In ''Anime/NeonGenesisEvangelion'', the MAGI as a whole avert this trope. They are based on the three sides of the personality of their creator Naoko Akagi. They never turn good or evil, per se...they just follow the commands given to them, like a real computer. Their intelligence never results in an independent thinking personality that we see, except in ''End of Evangelion'', after Naoko's daugther Ritsuko uses a opportunity to program them with secret instructions of her own to screw up Gendo's plan. One of them turns against her and vetoes her measure.
-->'''Ritsuko:''' A loving daughter's final request -- mother, let's end it together. ''(Pushes a button on her PDA, but nothing happens)'' It's not working? Why?! ''(Red NEGATIVE blinking next to Casper)'' Casper betrayed me? Mother, how could you choose your lover over me?!
** For a little more explanation: the three sides are Naoko the scientist, Naoko the mother, and Naoko the woman. Casper represented the woman. Naoko was Gendo's lover.
* Sharon Apple from ''Anime/MacrossPlus''. Designed as an artificial idol singer, the project was originally a complete flop and only seemed convincingly sentient with a human to interface with her. However, after an illegal fix-up that involved her human "pilot's" personality being copied into her, she immediately went insane, brainwashed everybody on Earth, and tried to go after the man her human component was in love with. While a fitting example, Sharon Apple tends to skirt around the edges of this trope in that she was made a true A.I. by the installation of a processor chip that is actually banned from use. The reason it is banned? Because it 100% of the time results in an A.I. with an uncontrollable self-preservation instinct. She didn't so much go rogue as behave exactly how she should have once said chip was installed. The mistake was her idiot manager installing the thing in the first place.
** And because the chip used the same military technology as the new experimental unmanned fighter, it allowed Sharon to control it.
* The Al-Zard system from ''Anime/FutureGPXCyberFormula SAGA'' was designed as an advanced navigation system for a race car, but its true purpose is to control the driver like a puppet, while the computer makes its own judgement and decides the best route for the driver.
* The last chapter of the manga ''[[{{Hentai}} Virginal Communication]]'' is about a couple who unexpectedly stop the A.I. they built from becoming fully sentient and destroying the world by [[spoiler:[[ItWasHisSled having sex on it]]]].
* A number of [=NPCs=] from the manga/light novel series ''Literature/HalfPrince'' become self aware and try to take over the game world.
* [[HumongousMecha Stryker]] of ''Anime/SuiseiNoGargantia'' subverts this in a quite surprising way: her pilot [[GodGuise sets her up as]] [[CargoShip the god figure of a]] ReligionOfEvil, using the threat of lethal force and ritual mass-executions of the weak and sick to keep her human minions in line. When said pilot dies, the AI keeps his death a secret and poses as him whenever needed to maintain the system of control. She genuinely believes that [[UtopiaJustifiesTheMeans her actions benefit humanity by providing a strong and stable banner to rally under]], even going so far as to suggest that [[TheEvilsOfFreeWill humanity cannot prosper as long as they have free will, hence why she pressures them into relinquishing it]]. The subversion comes when another AI points out that while her logic ''does'' compute, she shouldn't have been able to come to this conclusion on her own.
-->'''Chamber:''' One who abandons thought and decision-making deviates from the definition of "human". I find it inconceivable that you are truly acting as a support interface to this large number of people.
-->'''Stryker:''' [[JustFollowingOrders I have been entrusted with commanding and ruling.]] My decisions are the consensus of the human race that is dependent on me. As such, my current self is not a mere servant, but one who is served instead. [[WeCanRuleTogether K6821 Chamber system and I should be served by the human race that I have unified.]]
-->'''Chamber:''' Negative. I am a pilot support enlightenment and interface system; the subject of my service is humans. [[AGodIAmNot It is not my function to serve as a being that claims to be God.]] [[TheReasonYouSuckSpeech Stryker, you have exposed a weakness in your programming. Conjecture: if the pilot's course of action is incorrect, the system will also reach that illogical conclusion. It is a regrettable case. Your malfunction calls the design concept of us support systems into question and also poses a danger to the worth of our entire existence.]] [[IllKillYou Conclusion: the overriding priority is the immediate shutdown and destruction of Stryker.]]
* ''Anime/MagicalGirlLyricalNanohaAs'' has a {{Magitek}} example with The Book of Darkness, which started as a fairly benign database for spells until one of its past owners decided to tinker around with its programming. That [[GoneHorriblyWrong went horribly wrong]] for everyone as this caused it to become an uncontrollable ArtifactOfDoom that possesses its owner and goes on world-destroying rampages until said owner dies in the process, whereupon it [[ResurrectiveImmortality reforms]] and teleports to another dimension and tempts a new owner with power to repeat the destructive cycle.
* [[GadgeteerGenius Clemont]], ''{{Anime/Pokemon}} XY'' main cast member and Lumiose City Gym Leader, created a robot to stand in for him occasionally so he had enough time to spend with his inventions. Unfortunately, it turned on him and took over the Gym because [[BunglingInventor he hadn't programmed it properly and he'd mistimed entry of a vocal passcode for a mode he'd programmed into the robot in case this happened]]. It quickly became notorious for [[NoOSHACompliance shocking Trainers and ejecting them]] '''''[[NoOSHACompliance from a large height with nothing but concrete to break their fall]]''''' [[DisproportionateRetribution if they didn't have four Gym Badges or lost the challenge]], leading to challengers refusing to go back. It got better, ''[[TookALevelInKindness much]]'' [[TookALevelInKindness better]], when Clemont managed to break into the Gym, defeat the robot in battle and reprogram it.