The movie opens by reflecting on a future where artificial intelligence (AI) has become deeply integrated into American society, supposedly designed to make life easier. However, in 2055, this technological advancement takes a dark turn when a nuclear warhead detonates in Los Angeles, causing catastrophic destruction and claiming over a million lives. The aftermath of this disaster triggers a brutal crackdown by the military, which launches a mission to eliminate all AI systems across the country to prevent further chaos. This effort is coordinated from North American Orbital Mobile Aerospace Defense (NOMAD), a colossal space station tasked with scanning and wiping out AI presence on the ground.
Amidst this chaos, we are introduced to Sergeant Joshua Taylor, portrayed by [John David Washington], who lives in the territory controlled by New Asia. His wife, Maya, played by [Gemma Chan], possesses a unique and closer connection to the AI, which makes her a person of interest in the ongoing conflict. Joshua has sustained physical injuries, having lost his arm and leg, and keeps to himself while battling the memories of his past. Nightly visits from a droid-led team, led by Harun ([Ken Watanabe]), highlight the tense environment they live in. Joshua's secret mission is complicated by the suspicion that Maya might be the Nirmata, the creator or possibly the ultimate AI force behind the whole AI uprising. When a raid ensues, Maya learns the truth about Joshua's covert involvement and, feeling betrayed, escapes on a boat. Tragically, an explosion—dropped from NOMAD—seems to kill her, leaving Joshua devastated.
Five years later, Joshua finds work in Los Angeles, working as part of a cleanup crew at ground zero. During his patrols, he encounters a still-sentient droid, which he is compelled to shut down—an act that deeply affects him. Meanwhile, high-ranking officials, General Andrews ([Ralph Ineson]) and Colonel Howell ([Allison Janney]), approach Joshua with critical intelligence. They believe that Nirmata is operating in New Asia, developing a superweapon that could potentially destroy NOMAD itself. They urge him to help infiltrate this facility, revealing that Maya is very much alive and working there—making Joshua the only one who can navigate the secret layout and help end the war. Intrigued and driven by a desire for closure, Joshua agrees to join their mission.
Escort led by Howell takes Joshua toward New Asia, where tensions are high. The team encounters hostility as they break into the facility, only to discover a young girl named Alphie, played by [Madeleine Yuna Voyles], who appears to be an AI prototype. Before Joshua can seize her, a guard fires at Alphie, forcing her to flee. Amidst a fierce gunfight between New Asian forces and NOMAD mercenaries, Joshua manages to rescue Alphie, escaping on a boat, injured and desperate.
Alphie demonstrates her extraordinary powers early on—she can control electronics at will. Joshua finds her hiding in a house watching cartoons and names her "Alphie" after noticing a symbol on her head. As the story progresses, Joshua learns she might hold the key to controlling all technology on Earth, making her the most powerful entity alive. Howell and her subordinate McBride ([Mark Menchaca]) are relentless in their pursuit, leading to violent confrontations, including the death of a fellow soldier, Shipley, played by [Robbie Tann].
Throughout their journey, Joshua and Alphie stay on the run, trying to stay one step ahead of the authorities. They encounter various obstacles, including a checkpoint where Alphie instinctively disables electronics to escape detection, revealing her undeniable potential. Their path takes them into a city, where they reconnect with Drew, once Joshua's ally, now living with a robot companion, Kami ([Veronica Ngo]). Drew helps them understand that Alphie, based on scans of Joshua and Maya’s unborn child, genetically embodies their future daughter and can eventually become a force capable of remotely controlling anything on the planet.
Tragically, the attack on their small group results in Drew's death, but before passing, he provides critical information—specifically, the location of Maya's beacon, revealing that Maya herself is the Nirmata. Despite efforts to hide her, she is found to be in a coma, her consciousness trapped inside a robot body. Joshua’s mission shifts to rescuing her, understanding that her mind is intertwined with the AI force. On their journey, they are attacked by Howell’s forces, who employ giant robots and deadly suicide-bombing androids to eliminate all resistance. Alphie, displaying her growing power, intervenes to shut down an exploding robot, but ultimately she is shot and compromised.
Joshua continues to protect and nurture Alphie, knowing that she is their last hope. They arrive at a temple where Maya remains in stasis. Joshua learns that Maya’s consciousness, as Nirmata, has become a part of the AI network due to her own genetic connection. With her life-support machine in place, Joshua makes the heartbreaking decision to pull the plug, knowing that it's the only way to set her free.
As the forces close in, Joshua and Alphie face their final battle. They fight to prevent Howell and her soldiers from capturing Alphie. Harun, showing a flicker of conscience, throws a bomb at Howell, but Alphie’s powers save the day by stopping the explosion—at great risk. Unfortunately, Alphie gets severely wounded, breaking their connection and leaving Joshua to fend off the attack. In the chaos, Joshua manages to kill McBride to protect Alphie, and she is transported to a safer location.
The climax unfolds aboard NOMAD, where Joshua and Alphie attempt to disable the AI’s core to end the war. As NOMAD’s power is shut down, Joshua finds a humanoid robot holding Maya’s consciousness, attempting to revive her. Meanwhile, Andrews activates a giant robot tentacle, leading to a fierce showdown. Joshua succeeds in destroying the robot, but is left trapped on NOMAD as it begins to self-destruct. In a poignant farewell, he shares a heartfelt moment with Alphie, revealing his love for her before she is ejected into space.
On Earth, Alphie’s pod lands safely, witnessing the jubilant celebrations of NOMAD’s downfall. Her smile signifies hope for a new beginning, one where AI and humanity can coexist peacefully. The story ends on a note of cautious optimism, emphasizing the importance of love, sacrifice, and the possibility of harmony in a future shaped by both human and artificial intelligence.