Sapient Ship

""Shit," the ship said to itself."

- Philip K. Dick, "I Hope I Shall Arrive Soon"

Some space ships aren't just big pieces of metal that happen to fly through the stars. Some can think intelligently, and even interact with the other characters. Sometimes the ship is a true example of Mechanical Lifeforms. Sometimes this occurs because of an advanced AI in the case of a mechanical ship. Sometimes the ship is actually a living being. Occasionally the ship is a hybrid of the two with a living being grafted on to a ship to the point where they become one entity. Whether the ship is actually alive or not is generally a matter for the work in question to resolve.

Generally when these are seen in fiction they're female thanks to a long maritime tradition. Often represented by a Spaceship Girl, the ship's walking talking female avatar.

This trope does not cover ships that are organic, but do not think on a level higher than simple animal instincts. Those are covered by Organic Ship. It also does not cover ships that happen to have AIs when those AIs are treated as separate entities that are not integrated into the ship itself.

Acting as both a character and setting, the sapient ship is perhaps the best example of the Fisher King, as the environment quite justifiably mimics the ship's mood, health, and situation.

Of course, looked at rationally, it's not clear that it is desirable for a ship to be sapient, at least from the point of view of the crew. If the ship is happy things tend to run smoothly, but upset a sapient ship and you might wind up locked in your quarters or having your life support cut off.

Despite the problems that can arise from the setting having a mind of it's own, there are narrative advantages. Having the ship able to take over roles such as pilot, and navigator cuts down on crew requirements (and thus cast size) which in turn cuts down on life support and accommodation requirements, sometimes to the point where a crew may be an optional extra. The level of sentience and independence will determine just how much of an advantage this is.

Not to be confused with Setting as a Character where the ship is just treated like a character by the cast but isn't necessarily alive. Compare Sapient Steed which is this trope applied to steeds and smaller vehicles that are used for transport instead of living on. Some Sapient Ships are big enough to be Genius Loci. Spaceship Girl is a subtrope when the AI creates a humanoid avatar that is an attractive woman. When this is accomplished by plugging a human brain into the computer, it's Wetware CPU.

Anime and Manga

 * Tenchi Muyo!: the Juraian spacecraft are powered by living, semi-sapient trees.  Also, Ryo-Ohki, who is the cute mascot character that transforms into a Living Ship.
 * Infinite Ryvius: The Vaia Ships are mostly technological, but each has a living Vaia at its core. The Vaia are sapient, though only one is a full-fledged Spaceship Girl.
 * Outlaw Star: the titular ship has a sapient onboard AI, but must also be connected to the Spaceship Girl Melfina. Near the end of the series,.
 * Lost Universe gives us the Swordbreaker and its A I: Canal.
 * Captain Harlock series portrays the Arcadia as a living ship, after Tochiro uploaded his mind in the computer, or, depending on the series, died and started to haunt the ship. Various incarnations reveal the Arcadia to be able to empathize with the crew, hold nonverbal conversations with the Captain, and even move around without a physical pilot. This is also an unusual example of a sapient ship being explicitly male.
 * One Piece: The Going Merry proved to be just this as early as the Skypeia Arc, when Usopp saw a spirit repairing the Merry. Many arcs later, Franky revealed that Usopp saw a manifestation of the soul of the Merry, which developed because the ship was loved and cared for deeply. Later on in the same arc, the Merry's status as sapient is driven home when the ship itself comes back to save the Straw Hats at Eines Lobby.

Comic Book

 * The Authority: The Carrier - a spaceship that, while being made of metal, is fully sapient. However, it has only once spoken directly to anyone (and then it was only to tell hapless assassin Kev Hawkins what a prick he is).
 * X-Men: The Brood used lobotomized Space Whales for transport, and the surviving ones at liberty were both sapient and not happy at all about the situation.
 * The original X-Factor team liberated a Sapient Ship that was enslaved by Apocalypse, named, appropriately enough, Ship, which had a long and varied career in the various X-Titles over the years. It happily became friends with X-Factor after they freed it from Apocalypse, and served as their base of operations, home, and long-range transportation. Ship was a several thousand year old piece of Celestial technology and the size of a large skyscraper, being so huge that, while in it's usual docked location of standing on-end in a building lot, it became a well-known part of the New York City skyline. The physical form of Ship was later destroyed in a final battle with Apocalypse, but the artificial intelligence survived by downloading itself into a small module. It soon traveled into the future with Cyclops's son Nathan, who later became Cable, and the intelligence of Ship eventually became Cable's space station Greymalkin, and then eventually his floating island Providence. At one point a copy of the AI was even downloaded into Cable's techno-organic bionic arm.
 * Fantomex's nervous system externalises itself as a UFO-like techno-organic ship called E.V.A.
 * New Mutants: The shapeshifting Warlock often turned "him"self into a starship to transport the New Mutants around.
 * Power Pack: The group had a sapient "smartship" called Friday.
 * Micronauts: Biotron was at one point rebuilt into a Living Ship-slash-Humongous Mecha called Bioship. Bioship was a cyborg, utilizing Organic Technology in his workings.
 * The Transformers Classics story "Cheap Shots" features a sentient (non-transforming) space battleship looking for her kidnapped binary-bonded organic pilot.
 * Shalise, the sinister female personality of the police clone training ship in Megalex.

Film

 * 2001: A Space Odyssey: HAL, while not the ship but its controlling computer.
 * Battle Beyond the Stars. Shad sets forth on his quest to find The Magnificent Seven Samurai in Nell, one of the few spacecraft in Science Fiction that appears to have breasts (see the poster) and a female voice to match. Nell's last pilot was an Akiran warrior (the last one left) and she's none too impressed with the wet-behind-the-ears Shad and his reluctance to kill.

Literature

 * The Ship Who... series: is about ships that serve as the bodies for humans with perfectly good minds, but non functional bodies.
 * Berserker: are giant space ships that are programmed to kill every form of life in the universe. They are quite good at it, but don't consider themselves "alive" due to not being organic.
 * Nightingale: the titular hospital ship in Alastair Reynolds' short story is sapient. Also, the
 * Robin Hobb's Liveship Traders trilogy features many living ships (liveships) with sapient, talking, humanoid figureheads. Notable ships include Vivacia, Ophelia, and the mad ship Paragon. Liveships gain their sapience mostly by absorbing the lives/memories of three members of their owning family, at which point they quicken and become alive. Note the "mostly"...
 * Trader Team: stories center on the crew of the ship Muddlin' Through, largely run by the ship computer, Muddlehead.
 * The Culture: The Culture's ships are living ships; self modifying, self repairing and with godlike Minds.
 * Xeelee Sequence: a race of spacegoing, whale-like starships called the Spline, who intentionally modified themselves to be able to survive in space.
 * Star Wars Expanded Universe: various space ships that are operated by droid brains.
 * Nights Dawn Trilogy: there are both spaceships (Voidhawks and Blackhawks) and habitats (that can be tens of kilometres long) that are alive and sapient, based on "bitek".
 * Commonwealth Saga: features a pacifistic alien ship that lets aliens and humans alike live in giant crystals that it grows on itself depending on how it feels.
 * Wild Cards: the Takisians use and breed sapient (or semi-sapient) ships. Dr. Tachyon's ship - which he named "Baby" - regenerates its "ghost drive gland" over a period of years or decades, after he burned it out trying to go real fast.
 * Hyperion Cantos: The Consul's "singleship" is piloted by an AI (and lacks obvious manual controls).
 * Star Trek novel Memory Prime: introduced the concept that every once in a while, a starship's computer would gain sentience. The mind would thus be moved to the huge computers at, well, Memory Prime, to help support the Federation.
 * Further explored in the first Strange New Worlds short story Of Cabbages and Kings, where the Enterprise-D, lost in a hostile dimension without her crew, activates a computer protocol to become sentient to survive. After crew and ship are safe, the new A.I. backs itself up into the Minuet hologram.
 * Path of the Fury: the protagonist steals a Cool Ship that can only be run by an AI that imprints on and merges with the mind of its pilot; she winds up with Megarea, a smart-mouthed and unusually independent version of same.
 * Remnants: "Mother" is a sapient starship. Unfortunately,
 * Polity Series: Polity war ships are commanded by AI's and one of the older ships also has a human captain who is wired directly into the ship and in a sense is the ship.
 * The Walrus And The Warwolf: there is a sapient spaceship that expresses irritation with the pirates on board who are distracting it from contemplating the deeper mysteries of the universe. The pirates think the ship is a flying island and
 * Tuf Voyaging: subverted, where the biological warship Tuf 'inherits' as the last surviving member of a freelance salvage team is specifically NOT sapient, though it could have been made so; there is mention of other Earth warships with AI installed mutinying and/or fighting each other.
 * The Fall Of The Galaxy: the fleet of the Bargon Empire almost entirely consists of small biomechanical raider ships instead of the Standard Sci-Fi Fleet, which is used by the other major human powers (the Galaxy and the Seven Systems' Union). These ships have proven to be extremely effective at operating both on their own and in small groups to conduct raids into enemy territory and wreak havoc with supply lines and even destroy major targets before jumping to safety. Despite the fact that the ships are crewed, the demands of fast-paced ship-to-ship combat require split-second decisions that are best made by the biomechanical brains of the ships themselves. Normal raider ships with electronic brains have proven themselves vastly inferior to the melding of rapid computer calculations and biological unpredictability.
 * The Artifact: all Brotherhood ships are cybernetically "alive", Boaz has even managed to become self aware.
 * Faction Paradox: timeships, lovely ships capable of time travel. Except when they are sapient. Or they happen to rebel. Or if they happen to be psychotic.
 * Forever Free: the AI of the ship passed the Turing Test.
 * Bolo: multi-thousand-ton, sapient main battle tanks.
 * Posleen War Series: The USS Des Moines in Yellow Eyes, after is installed as part of her upgrades to fight the Posleen.
 * Wor Ship by Frank Herbert: after a Generation Ship becomes self-aware, it hijacks the crew and demands humanity learn how to WorShip it.
 * Empire From the Ashes: Dahak is a planetoid dreadnought the size of the Moon, which attained sentience during 52,000 years of unsupervised operation. Fortunately, given its ability to wipe out star systems simply by FTLing/deFTLing in the wrong place, it's a good guy.
 * Fluffy from Pat Murphy's There and Back Again is an intelligent space fighter developed as an experiment by the Resurrectionists. Her brain matter comes from a combination of an adventurer and her cat, hence the name.
 * In The Quantum Thief by Hannu Rajaniemi, Perhonen

Live Action TV
"Doctor: Amy:"
 * Andromeda: the "Andromeda Ascendant" is a ship with an AI. And by no means the only Commonwealth capital ship with one. Most have a semi-autonomous android avatar as well.
 * Blakes Seven: the starship Liberator is fully sapient but entirely mechanical. In the recent audiobook remake/reboot of the series, the ship is at least partly biological and
 * Lexx: the titular ship is mostly (and often gruesomely) biological. It can speak directly to its crew, and its hobbies include blowing up planets. Strangely enough, it even reproduces at the end of the series, spawning a smaller light-white version of itself when it dies...of old age. Since Little Lexx has no mechanical parts added to the hull or machinery of any kind like the original's cryo-pods and moth breeder bay, it's likely that the non-organic elements were added to the original as it was growing. Little Lexx even has a glowing angler horn.
 * Farscape: Moya is a Leviathan, one of a species of sentient biological starships who communicate through their bonded Pilots. Her son Talyn, as a hybrid, does not need a Pilot to communicate. Instead, he has a direct neural link to his commander that can be used by any species (presumably.)
 * Red Dwarf: The AI of the spaceship is represented by Holly, a floating head on a black background that appears on monitors all over the ship. Originally it took the form of a bald, middle-aged man, but switched to a blonde woman before turning back again.
 * The Hitchhiker's Guide To The Galaxy: The spaceship Heart Of Gold is maintained by Eddie, a Sirius Cybernetics Corporation computer with a sickeningly cheerful and optimistic programmed personality. Other equally unlikable computers have been installed to run other functions on the ship as well, right down to automated doors run by programs that live for the chance to open and close for someone. At one point Zaphod discovered that Eddie had an emergency backup personality - unfortunately, it was worse.
 * There was also a police ship which committed suicide after talking to Marvin.
 * Babylon 5: Vorlon ships are at least semi-sapient - they can sing, they're customized to be loyal to their captain, and they grieve over his death and would fall into rage if he was attacked.
 * The original AI for the Babylon 5 station itself was apparently sentient. It also had an extremely surly and abrasive personality so it was disabled in favour of the basic AI seen for most of the show. One episode had the original AI inadvertently reactivated. It drove the crew to distraction.
 * Battlestar Galactica: The Cylons of the 2004 re-launch despite being mechanical in appearance, the Base Stars are controlled by a humanoid cylon that is fully integrated into the ship. They're a bit on the "crazy" side though.
 * The Doctor's TARDIS in Doctor Who, and presumably all the other ones before they went up in smoke with the other Time Lords. In "The Doctor's Wife",


 * Destiny, from Stargate Universe is somewhat sentient - while it doesn't (usually) talk to the crew, it knows their needs and is very dedicated to its mission.

Tabletop Games

 * Traveller adventure The Kinunir: The Kinunir's AI security system goes berserk and kills the entire crew of the ship. The PCs must deal with it in order to bring the Kinunir home.
 * Warhammer 40,000: The Eldar ships combine elements of this and the ghost ship, with the implanted spirits of the dead giving the ship its own personality.
 * Many Chaos ships are infused with Daemons, in many cases giving them sapience. Some extreme examples of this slowly devour, or even forego entirely, human crew.
 * Dungeons & Dragons
 * Spelljammer: features a legendary Living Ship known as... well, "the Spelljammer". It also spawns little cute Smalljammers - unarmed, but very agile living boats with magical mimicry abilities.
 * Voyage of the "Princess Ark" story published as a series of Dragon magazine articles, was about an Alphatian vessel set out to explore the world of Mystara. Although initially a "plain" sailing ship enchanted to fly, the Princess Ark eventually had a spirit of an extraplanar creature bound to it, and later became its new "body", acquiring a new layout, the capacity for self-direction and self-defense, and a quirky personality.
 * Magic: The Gathering has the Skyship Weatherlight, which gains sentience as its engine is upgraded with new pieces of the Legacy.
 * Paranoia has warbots (tanks, up to and including the Mark IV) and flybots (aircraft).

Video Games

 * Homeworld: The Mothership is actually a Kharakid Scientist, Karan Sjet, who is embedded in the core. She developed the technology to conect a human brain to the Mothership, according to the manual, and she refused it's usage on any other person save herself. During gameplay it's her voice who represents the entire ship, along with the spokesman for Fleet Intelligence. It's her image that appears when the mothership is talking. Finally, it's the only named character that appears in all 3 games of the series, and implicitly the Player Character.
 * Mass Effect:
 * Also occurs when
 * Sexy Parodius, Vic Viper and Lord British seem to be sapient beings, rather than mere ships with pilots in them. Of course, this being Parodius, this is played up for comedy.
 * Metroid Prime 3: One of the few games to mention how an intelligent computer can benefit a normally crew-run ship; Olympus-class battleships with an Aurora Unit have cut down on the crew requirements, leaving room for more weapon systems.
 * Albion: The Toronto mining ship, NED, the computer operates everything with the crew's main purpose is maintenance or operating individual equipment, and the ship itself is described to function similarly to a living organism, settling on the surface of a planet and using a percentage of the mined materials to grow and eventually cover and exhaust the entire planet.
 * The Cetans in Perfect Dark are implied to be this, although gameplay-wise, the Cetan ship you explore doesn't really do anything.
 * The titular ship in Twinbee, along with the other Bee series ships Winbee and Gwinbee, are explicitly sentient in all continuities (this naturally carries over to their appearances in the Parodius series).
 * Opa-Opa of Fantasy Zone. It is even a playable character in Sonic & Sega All-Stars Racing, racing as itself.
 * Opa-Opa of Fantasy Zone. It is even a playable character in Sonic & Sega All-Stars Racing, racing as itself.

Web Comics

 * Schlock Mercenary: It's a rare exception when a capital ship is flown by a human pilot or even a mobile robot. Almost every armed starship we see is inhabited by its own AI, who "is" the ship and considers the whole structure its body. A number of them from different factions ended up networked together and now represent the most powerful independent force in the galaxy. The only ships noted to lack such features are either lobotomised for some reason or are small civilian vessels with a simple mission profile (like taxi) - they usually have a "synthetic intelligence" (an euphemism for cheap AI simplified enough that they are not considered "sentient" in any way), but so do missiles and even some limpet mines.
 * Zap: The Excelsior is sapient, chooses its own captain, and is also apparently having an affair with Robot.
 * Freefall: The Savage Chicken will frequently talk to the crew and makes witty retorts. As well as try to maim the captain.
 * Beyond Reality: Sebastian is the A.I. for a dimension traveling flying pirate ship.

Web Original

 * Orion's Arm: Has a variety of these, to the point where the only polities that don't have them are virulent human supremacists. The most intelligent ones are non-biological due to the prevailing attitude that meat can only get you past the second Singularity or so.
 * Red vs. Blue: Sheila, the AI that inhabited the Blue Team's tank before being transferred to the CPU of a spaceship. Another AI by the name of Phyllis (later renamed Sheila by Church since Phyllis' voice sounds identical) was encountered later on, but Phyllis wasn't in a ship.
 * The same AI, actually; Phyllis was Sheila's original name, but a time-travelling Church expected it to be Sheila and accidentally renamed Phyllis.
 * As of Season 9, Phyllis is the AI on board the Freelancer ship Mother of Invention and seems to be in control of all weapon systems.

Western Animation

 * Tripping the Rift: The space ship was both sapient and afraid of wide open spaces...
 * Futurama episode "Love and Rocket": the Planet Express Ship gets a new AI, which quickly falls in love with Bender.
 * In Transformers Animated, it turns out that Optimus's team's ship is . For most of the first and second seasons, he was in stasis lock and therefore was not sentient until Ratchet revived him with the help of Sari's key.
 * Green Lantern: The Animated Series: Aya, the interceptor is one who builds her own body from parts in the ship.