List of Silicon Valley episodes - wikipedia List of Silicon Valley episodes Silicon Valley is an American television sitcom created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who found a startup company in Silicon Valley. The series premiered on April 6, 2014, on HBO. As of June 25, 2017, 38 episodes of Silicon Valley have aired, concluding the fourth season. The series has been renewed for a fifth season, which will premiere in 2018. Contents 1 Series overview 2 Episodes 2.1 Season 1 ( 2014 ) 2.2 Season 2 ( 2015 ) 2.3 Season 3 ( 2016 ) 2.4 Season 4 ( 2017 ) 3 Ratings 4 References 5 External links Series overview Season Episodes Originally aired First aired Last aired 8 April 6, 2014 ( 2014 - 04 - 06 ) June 1, 2014 ( 2014 - 06 - 01 ) 10 April 12, 2015 ( 2015 - 04 - 12 ) June 14, 2015 ( 2015 - 06 - 14 ) 10 April 24, 2016 ( 2016 - 04 - 24 ) June 26, 2016 ( 2016 - 06 - 26 ) 10 April 23, 2017 ( 2017 - 04 - 23 ) June 25, 2017 ( 2017 - 06 - 25 ) Episodes Season 1 ( 2014 ) No. overall No. in season Title Directed by Written by Original air date U.S. viewers ( millions ) `` Minimum Viable Product '' Mike Judge Mike Judge & John Altschuler & Dave Krinsky April 6, 2014 ( 2014 - 04 - 06 ) 1.98 Richard Hendricks is a low - level programmer with futuristic internet giant Hooli. He is often taunted by his more successful work colleagues, and his ideas are dismissed by egotistical entrepreneur Erlich Bachman, who owns the technology development incubator where Richard lives with fellow programmers Nelson `` Big Head '' Bighetti, Bertram Gilfoyle and Dinesh Chugtai. However when Hooli stumbles upon the music copyright service that Richard is working on, entitled Pied Piper, they discover that hidden within the useless application is the best file compression algorithm in the world, and news spreads quickly. Eventually Richard is caught between a $10 million buyout by Hooli CEO Gavin Belson, and a $200,000 investment from eccentric billionaire Peter Gregory, and must decide whether to give up his program to the highest bidder or to take the investment and create a business out of it himself. After having a panic attack and vomiting on the street, Richard runs into Peter 's assistant Monica, who tells him that she believes in him and his idea, and he decides to take the investment and run the business himself. `` The Cap Table '' Mike Judge Carson Mell April 13, 2014 ( 2014 - 04 - 13 ) 1.69 After rejecting Belson 's offer and siding with Peter Gregory, Richard is overwhelmed by the amount of work that needs to be done in establishing the business to Gregory 's satisfaction. Luckily, Belson 's former PA, Jared Dunn, arrives at the incubator, begging Richard to hire him, as he sees huge potential in the Pied Piper idea, and is hired due to his business expertise. However, in evaluating the Pied Piper team, Jared discovers that while Gilfoyle and Dinesh are brilliant coders, Big Head is comparatively mediocre, and Richard is pressured by everyone to fire him as he brings nothing to the table. After much arguing, Richard refuses to do so, but Big Head announces that he was given a huge raise and promotion at Hooli, as Gavin Belson wants to publicize Big Head as co-founder of Pied Piper. Later, Big Head tells Richard that work has begun on reverse - engineering Pied Piper to create the same product, branded under a different name. `` Articles of Incorporation '' Tricia Brock Matteo Borghese & Rob Turbovsky April 20, 2014 ( 2014 - 04 - 20 ) 1.62 Richard and Jared discover that the Pied Piper business name is already in use by an irrigation enterprise in Gilroy, California. While Jared, Dinesh and Gilfoyle begin brainstorming new names for the application, Erlich decides to find a name by setting off to a vision quest at Sonora Desert, which results on Erlich having a panic attack after consuming hallucinogenic mushrooms. Adamant on keeping the original name, Richard attempts to prove that he is a good negotiator by convincing the irrigation company to give up the name Pied Piper. Initially the company 's owner asks for a small amount of money but after reading about the technology 's success on the web, he asks for a lot more. After confronting him, Richard manages to keep the name for almost the original price, while Erlich, still in the aftermath of his vision quest, returns with a child by his side, convinced he has found another version of himself. Meanwhile, Peter Gregory becomes obsessed with Burger King products, leaving his assistant Monica in a difficult position with some of their clients, who need an urgent cash injection or risk firing hundreds of people. Taking his time. Gregory ends up investing in sesame seed production, earning a huge profit in stock and solving the situation to Monica 's and their associates ' relief. `` Fiduciary Duties '' Maggie Carey Ron Weiner April 27, 2014 ( 2014 - 04 - 27 ) 1.55 Peter assigns an attorney, Ron, to the Pied Piper venture, who accidentally lets slip that Richard 's project is only one of eight file compression suites that Peter invests in. This impacts Richard, who suddenly panics that he has no sense of where the company should go and what it should be doing. Meanwhile, Big Head is removed from Hooli 's copycat compression software project, named Nucleus, because of his complete lack of understanding of what Richard actually did to create Pied Piper, and is not reassigned to anything, joining the other unassigned employees that spend their days doing nothing on the company 's roof. During a toga party organized by Gregory, Erlich is mistakenly appointed to the Pied Piper board of directors when Richard gets drunk. Richard initially reverses the decision, but after Erlich elaborates during a meeting about Pied Piper 's direction causing Peter to continue funding, Richard permanently appoints him on the board. 5 5 `` Signaling Risk '' Alec Berg Jessica Gao May 4, 2014 ( 2014 - 05 - 04 ) 1.82 Erlich hires a convicted felon and graffiti artist, Chuy, to create a new logo for Pied Piper and to paint it on the incubator garage, but Chuy 's creation depicts Dinesh having sexual intercourse with the Statue of Liberty because he believes Dinesh is of Latin descent. Pied Piper gains entry to the TechCrunch Startup Battlefield, a technology conference that pits unseeded startup companies against each other, with $50,000 as the grand prize - the only problem is, Pied Piper is not unseeded, and this angers Peter. Richard suggests withdrawing from the Battlefield, but Belson beats him to it and announces the release of Nucleus will take place at the Battlefield, and due to Peter 's intense rivalry with Belson, he refuses to allow Pied Piper to withdraw and tells them to have a finished demo for the Battlefield in eight weeks, instead of the initial five months. 6 6 `` Third Party Insourcing '' Alec Berg Dan O'Keefe May 11, 2014 ( 2014 - 05 - 11 ) 1.69 Pied Piper is nearing completion, but Richard is having serious issues coding the cloud - based integration modules for the application, so much so that Jared, Gilfoyle, Erlich and Dinesh pressure him into hiring Kevin `` The Carver '', an Adderall - addicted teenaged programmer with a specialty in cloud integration. Gilfoyle 's new satanistic girlfriend, Tara ( Milana Vayntrub ), visits the incubator, and Gilfoyle wrongfully tells Dinesh that Tara wants to have sex with him, and that this prospect sexually arouses both Tara and Gilfoyle. Jared gets stranded on Peter 's automated island due to a programming error, and The Carver inadvertently destroys all of the Pied Piper code, forcing the team to revise all of it. 7 7 `` Proof of Concept '' Mike Judge Clay Tarver May 18, 2014 ( 2014 - 05 - 18 ) 1.68 The team arrives at the Battlefield, however Pied Piper still is n't finished, and Richard is having trouble concentrating due to the presence of an ex-girlfriend at the conference. Dinesh meets an attractive girl, Charlotte ( AJ Michalka ), who appears to be proficient in Java, but when Gilfoyle tells him that the Java code was in fact written by him, Dinesh loses interest in Charlotte. Erlich panics when it transpires that one of the judges of the Battlefield is the man whose wife he had an affair with years earlier, and in an attempt to remedy the situation, Erlich ends up having sex with the judge 's new wife, which results in the judge attacking Erlich on stage, preventing the Pied Piper Battlefield presentation. 8 8 `` Optimal Tip - to - Tip Efficiency '' Mike Judge Alec Berg June 1, 2014 ( 2014 - 06 - 01 ) 1.74 Desperate to avoid litigation after the brawl, TechCrunch offers Pied Piper a ticket straight through to the final Battlefield stage, but the team is despondent after watching the Nucleus presentation and learning that not only is Hooli 's Weissman compression quality score 2.89, the exact same as theirs, but they also have a number of additional features which make Nucleus a much better application. Jared suggests pivoting the company, which results in him being arrested by the police after an incident involving Adderall. The PP team retreats to their hotel room where they mock up a mathematical model for Erlich to give handjobs to every male in the Battlefield audience instead of doing their presentation, which gives Richard an epiphany about compression algorithms. He stays up all night, deletes most of the Pied Piper features and leaves only one - the all - important compression engine, which, using Richard 's brand new compression code, achieves a Weissman score of 5.2. Pied Piper wins the Battlefield, embarrassing Belson and Hooli. After learning from Monica, amidst some flirting between the two, that Pied Piper will be fielding business interests and that things will only get harder, Richard has another panic attack and vomits into a dumpster in the alley. Season 2 ( 2015 ) No. overall No. in season Title Directed by Written by Original air date U.S. viewers ( millions ) 9 `` Sand Hill Shuffle '' Mike Judge Clay Tarver April 12, 2015 ( 2015 - 04 - 12 ) 2.13 Pied Piper learns of Peter Gregory 's death in the Serengeti, leading to questions about Raviga Capital 's viability as an investor for their Series A funding. With this uncertainty, Bachman and Hendricks pitch Pied Piper to numerous venture capitalists who are trying to woo them. They find that being rude leads to better reception, to Bachman 's surprise. Meanwhile, Raviga 's partners select Laurie Bream as their new managing partner, whose eccentricity resembles Peter Gregory 's. Monica learns that Pied Piper is the firm 's only hope for survival. The firms deliver their term sheets and just as Bachman selects a firm, Bream and Monica arrive to deliver Raviga 's term sheet -- $20 million at a $100 million valuation, the highest. They are about to accept it when Monica sneaks by after hours to warn Hendricks against taking a high amount, saying that if the company can not increase their valuation, they will not be able to secure further funding. At Peter Gregory 's funeral, Bream approaches Hendricks and asks if he has made a decision. Hendricks says that he will choose Raviga if they lower their term sheet to $10 million at a $50 million valuation, a move Bream is surprised by but accepts. The funeral is attended by many, including the founders of Snapchat and Gavin Belson. As Belson speaks about his relationship with Gregory, Hendricks receives a message informing him that Hooli is suing Pied Piper for intellectual property theft. 10 `` Runaway Devaluation '' Mike Judge Ron Weiner April 19, 2015 ( 2015 - 04 - 19 ) 1.73 After learning of Hooli 's lawsuit, Laurie Bream decides that Pied Piper is too big of a risk and decides to drop the company from Raviga Capital 's portfolio. Bachman and Hendricks meet with the other venture capitalists and are informed that due to the lawsuit, along with their behavior at the previous meetings, they are no longer interested in Pied Piper. Meanwhile, Dinesh meets with his cousin Wajeed who is crowdfunding an app called Bro, which is similar to Yo but instead sends the word `` bro ''. After hosting a crowdfunding party and a $500 donation from Gilfoyle meant to irritate Dinesh, Wajeed meets his goal of $50,000. Jared finds a venture capitalist on the Bro app, but when they meet it turns out to be a `` brain rape '' scam to steal their algorithm, causing Bachman and Jared to quickly end the presentation. With no options left but to hire a `` cheap '' lawyer for $2.5 million, Gavin Belson calls Hendricks and asks to meet him privately. At a bar, Belson proposes Hooli acquiring Pied Piper and bringing Hendricks back into the Hooli team. Belson says that on the path he is on right now, Hendricks is forming the exact type of `` soulless '' corporation he despises. As Hendricks begins to respond, a mariachi band interrupts them, and the episode ends. 11 `` Bad Money '' Alec Berg Alec Berg April 26, 2015 ( 2015 - 04 - 26 ) 1.94 Though his colleagues disapprove, Richard Hendricks reluctantly agrees to take Monica 's advice and let Hooli acquire Pied Piper. On the way to meeting with Gavin Belson, he is stopped by Russ Hanneman, a flashy billionaire who made his money by putting radio on the internet ( a parody of Mark Cuban ). Hanneman takes Richard to an expensive restaurant and offers him $5 million for equity in Pied Piper and two seats on its board. Monica tells Richard that Hooli is by far the safer option and that Hanneman is a terrible person, but Richard ignores her. Monica informs Bream of his decision, and Bream expresses disgust at the idea of being associated with Hanneman. With the knowledge that they are funded, Pied Piper begins creating a budget for the next 18 months, and negotiating how many new people they will hire. During the budget meeting, Hanneman visits Pied Piper and disrupts it by talking loudly on the phone and hanging out with his friend Cory. Erlich tries to befriend Hanneman but fails. Hanneman tells Pied Piper that revenue is a bad thing, explains that the check he gave them is just a `` show check '', and buys several Pied Piper billboards without asking. Meanwhile, Belson compares the treatment of billionaires to the suffering of Jews in the Holocaust during an interview, manages the backlash, and gets his lawyers to figure out how to improve his case for suing Pied Piper. 12 `` The Lady '' Alec Berg Carson Mell May 3, 2015 ( 2015 - 05 - 03 ) 1.75 Pied Piper begins interviewing new people to hire. The two most notable candidates are Jared Patakian, an eccentric man who labels himself as a cyborg, and Carla Walton, a friend of Dinesh and Gilfoyle. With the introduction of Jared Patakian, Jared Dunn is renamed `` Other Jared '', which is often shortened to `` OJ ''. Other Jared hires Carla, awkwardly tries to explain that it 's better to hire her because she 's a woman, and tries to enforce company human resources policies. Erlich discourages Richard from hiring Jared Patakian because he chose a different job just as Erlich was about to hire him at Aviato, and Carla tortures Gilfoyle and Dinesh by making them think she makes way more money than them. Additionally, Pied Piper has a meeting of the Board of Directors at Hanneman 's house. Hanneman gives his girlfriend a seat on the board, and Erlich turns against Richard to vote to order $30,000 worth of merchandise. Later, Richard decides to hire Jared despite Erlich 's disapproval, but quickly finds out that Patakian has done the exact same thing to him as Patakian did to Erlich. Simultaneously, Belson promotes Big Head to be Co-head Dreamer on the Hooli XYZ project with the intention of making him seem like the primary force behind Pied Piper, and thus evidence for his lawsuit. Big Head is given a massive office and an assistant, but suspiciously no responsibilities, while Davis Bannercheck, a pioneer of robotics, is named the other Co-head Dreamer and leads operations at the lab. 13 5 `` Server Space '' Mike Judge Sony Lee May 10, 2015 ( 2015 - 05 - 10 ) 1.53 Richard is suffering from night sweats, and is told by his doctor if his stress level remains high he will begin bedwetting. Richard begins searching for office space, thus separating work and life and accommodating for growth. The team tours an office neighboring a modeling agency, leading Dinesh to suggest leasing it. Meanwhile, Gavin Belson is more concerned with grudges than innovation at Hooli XYZ, blatantly ignoring Bannercheck 's concerns about Big Head 's progress. Bannercheck resigns and Big Head becomes the sole Head Dreamer of Hooli XYZ. Richards asks the team to begin setting up servers, and they learn all of the major hosting providers have blacklisted Pied Piper due to Hooli threatening to cease business with them. Gilfoyle mentions that the providers would eventually be unable to meet their needs and suggests building the servers himself. The parts can be purchased if the team does not lease the office, so team agrees to stay in the house. The delivery truck for the parts draws suspicions from their neighbor Noah, who is adamant about the neighborhood only being for families and pets and threatens to turn them in to the City Inspector - especially after a mistake by Dinesh temporarily cuts power to the neighborhood. He is forced to back down after Erlich and Richard discover he is keeping ferrets illegally in his backyard and also lease his guest house to Jared, who has been sleeping on a cot in Richard 's room and speaking German in his sleep. 14 6 `` Homicide '' Mike Judge Carrie Kemper May 17, 2015 ( 2015 - 05 - 17 ) 1.54 Hooli launches Nucleus by using it to broadcast a major mixed martial arts ( UFC ) event. The demo fails miserably. Pied Piper sees this as an opportunity to show off their technology by partnering with `` Homicide '' energy drink, owned by a former classmate of Erlich 's, and broadcasting a publicity stunt. Dinesh and Gilfoyle notice that Blaine, the stunt driver, has miscalculated his ramp speed and will likely be killed attempting the stunt. Blaine arrogantly refuses to listen to their concerns. Gavin Belson, caught short by the Nucleus failure, worries that he has surrounded himself with sycophants who only tell him what he wants to hear. Gilfoyle and Dinesh debate the morality of letting Blaine kill himself performing the stunt. Later, Blaine comes in to apologize and sees the SWOT analysis they performed for it posted on the wall, becoming highly offended. Richard discovers that Homicide has omitted the Pied Piper logo from the broadcast and the partnership with Homicide falls apart, and Richard agrees to broadcast a live stream of a condor egg as a technology demo instead. At the end of the episode the Homicide stunt is broadcast along with End Frame 's logo. The group remembers End Frame as the company that tricked them into revealing their algorithm in episode 2. 15 7 `` Adult Content '' Alec Berg Amy Aniobi May 24, 2015 ( 2015 - 05 - 24 ) 1.60 The team from Pied Piper storms into the offices of End Frame to accuse them of stealing the Pied Piper algorithm. End Frame responds that since they have a finished platform and a sales team, that ultimately they will beat Pied Piper. Gavin Belson holds a board meeting to discuss the failure of the launch of their Nucleus product. He then meets with the engineers and begs them to come up with something new and radical. Russ Hanneman informs Richard and Erlich that due to bad investments he is no longer a billionaire and now Pied Piper must come up with a way to become profitable. Gilfoyle obtains the details of End Frame 's service contract with Intersite, a porn company. Richard meets the CEO of Intersite at a conference and convinces her to consider Pied Piper for the contract. Big Head meets with Belson to explain some exciting new technology, but adds that it wo n't be available until their grandchildren 's time. The episode ends with Pied Piper and End Frame being brought to Intersite offices for a `` bake off '' to determine who will get the contract. 16 8 `` White Hat / Black Hat '' Alec Berg Daniel Lyons May 31, 2015 ( 2015 - 05 - 31 ) 1.78 Richard returns home and discovers Russ Hanneman waiting for him to celebrate Richard 's victory over End Frame. Gavin Belson attends a board meeting where he tries to urge restraint on Nucleus publicity without admitting that Nucleus is in trouble. The meeting ends with Gavin realizing that he may need a scapegoat. In the next scene, he convinces Davis Bannercheck to return to Hooli to head up the Nucleus project. Richard learns that Seth Lee, the network security engineer for End Frame had been fired, presumably due to Gilfoyle 's breaching of End Frame security in episode 7. Richard feels bad and reaches out to Seth. Richard tells Seth that the break - in had not been his fault. Seth becomes enraged and threatens to hack into Pied Piper and get revenge. Richard becomes very concerned about Seth 's threats. Gilfoyle is unconcerned, assuring Richard that Pied Piper 's security is solid. Dinesh stresses that Richard should not be admitting to anybody that Pied Piper had broken into End Frame, explaining that Richard is now a `` black hat '' and needs to be careful. Bannercheck interviews the Nucleus team to assess the state of the project. In the next scene, Gavin learns that Bannercheck has quit Hooli and left as fast as his car would take him. Gavin realizes that he has lost his scapegoat for the upcoming Nucleus fiasco. Richard 's increasing paranoia about Seth annoys the Pied Piper team. Richard reaches out to Seth again and they mutually apologize. Richard tells Seth that Gilfoyle had n't been worried at all and Seth feels insulted and issues fresh threats. Pied Piper begins transferring data from Intersite for the bake - off. Russ Hanneman arrives to celebrate and Richard becomes angry at the interruption and begins shouting at Hanneman. Suddenly Pied Piper receives a frantic phone call from the CTO of Intersite informing them that Pied Piper is deleting all of Intersite 's data. In the ensuing panic, they conclude that Seth has made good on his threats and has hacked into their system although Gilfoyle ca n't figure out how. Eventually it is discovered that Hanneman had put a tequila bottle down on the `` Delete '' key of one of the laptops. The episode ends with Intersite angrily dismissing Pied Piper. 17 9 `` Binding Arbitration '' Mike Judge Dan O'Keefe June 7, 2015 ( 2015 - 06 - 07 ) 1.87 Big Head finds a prototype Nucleus phone left behind at a bar by the `` brogrammers '' and, stunned at how bad Nucleus really is, provides it to Richard to use as leverage against Belson as thanks for helping him advance at Hooli. It is revealed that all of Pied Piper 's new developers quit and Richard has low hopes for the company 's survival. After negotiations, aided by their lawyers, Belson agrees to drop the lawsuit in favor of binding arbitration to prevent the press from finding out about the phone. Ron suggests disbarred lawyer Pete Monahan to represent them, who is willing to work on spec because he is no longer allowed to practice law in a real court due to suspected sex crimes. During discovery, Monahan discovers that Richard had used a Hooli computer to run a single test of Pied Piper while his personal laptop was being repaired, which is referred to as his `` girlfriend ''. Per the terms of Richard 's employment contract, that would mean that Hooli owns the rights to Pied Piper. At the arbitration, Hooli 's lawyers do n't appear to have a real case, and instead try to build up Big Head as the modest genius who actually invented Pied Piper. However, an unintentional slip by Bachman leads Hooli to realize that the `` girlfriend '' that Richard said in his emails that he had `` dropped off at the Apple store '' was actually his laptop, meaning that he must 've used a Hooli computer. Hooli calls Richard as a witness and, unwilling to lie under oath, Richard admits that he used a Hooli computer. Meanwhile, the museum providing the video of the condor egg decides to remove the camera due to low viewership numbers, but the technician taking it down falls and becomes trapped with the camera in a ravine. Suddenly, viewership of the feed spikes while the team awaits the results of the arbitration. 18 10 `` Two Days of the Condor '' Alec Berg Alec Berg June 14, 2015 ( 2015 - 06 - 14 ) 2.11 Before the judge reveals his verdict, Gavin Belson reveals that he would 've paid $250 million for Pied Piper before it became clear that Hooli would win the arbitration hearing. Meanwhile, the feed of the injured technician goes viral, forcing Gilfoyle, Dinesh, and Jared to scramble to keep their servers online. Despite numerous setbacks, including a server catching on fire, they are able to keep the feed online until the technician is rescued. Erlich starts to question the value of the incubator and considers selling the house, but changes his mind when he finds out that it would be torn down. Erlich codes for the first time in the series, helping the team with emergency improvements while Richard is away. At the binding arbitration, the judge rules that per Richard 's employment contract Hooli would own Pied Piper 's intellectual property, and Richard sends a text to the team to delete all of the Pied Piper code before Hooli can seize it. However, the judge continues that Hooli 's claim is actually nullified by an illegal non-compete clause and Richard, whose phone runs out of battery, has to sprint back to the incubator to stop Pied Piper from being deleted. Richard arrives just after the deletion program is run but the program crashes before any damage is done. Word spreads at Hooli of the verdict, which renders over half of their employees ' contracts invalid. Word also spreads of Big Head 's series of promotions, leading Denpok to begin mentoring him. Belson is called to meet with Hooli 's Board of Directors ; his fate is left uncertain. Meanwhile, Raviga decides to buy out Russ Hanneman 's stake in Pied Piper, securing 3 of Pied Piper 's 5 board seats and making Hanneman a billionaire again. As Pied Piper celebrates their arbitration victory, Hendricks is notified that the now Raviga - run board has removed him from the CEO position. Season 3 ( 2016 ) No. overall No. in season Title Directed by Written by Original air date U.S. viewers ( millions ) 19 `` Founder Friendly '' Mike Judge Dan O'Keefe April 24, 2016 ( 2016 - 04 - 24 ) 1.86 After failing to convince the board of directors to keep him on as Pied Piper CEO instead of demoting him to Chief Technology Officer, Richard threatens to quit and sue to regain his intellectual property. Richard meets with a company called Flutterbeam that wants to hire him as CTO. However, disappointed at how banal the project assigned to him would be, he rejects the offer and decides to stay with Pied Piper. Afterwards, Richard meets with Jack Barker, Raviga 's choice for the CEO of Pied Piper. Meanwhile, at Hooli, Belson discovers that the now invalid employment contracts would allow him to fire affected employees without severance and take back unvested stock options. Belson fires the entire Nucleus team, and uses the profits from the reclaimed stock options to offer Big Head a $20 million severance package in exchange for non-disclosure and non-disparagement agreements. 20 `` Two in the Box '' Mike Judge Ron Weiner May 1, 2016 ( 2016 - 05 - 01 ) 1.72 Richard meets with the sales team at Pied Piper. During the meeting, Richard finds out the plans for platform are business - facing, instead of consumer - facing. Referring to his experience of the Dot - com bubble, Jack explains to Richard that they need to make profit fast, and promises that he would never compromise the product, explaining later that by `` product '' he means in fact the company 's stock value. Richard tells the sales team what he wants the platform to be, but they want to remove every feature that Richard wants, so it 's easier to sell it to businesses. Later, the sales team show Richard a commercial for the product, and it 's exactly what Richard does not want it to be. Meanwhile, Jared plans to move back into his condo, but the tenant refuses to leave or pay rent ; as Erlich explains how difficult it is to evict a tenant, Jian - Yang decides not to accept the end of his own lease. At Hooli, Gavin suggests to the engineers to alter the company 's search algorithm so it does n't display any more negative Nucleus stories about him or his company. The Nucleus team crack the middle - out compression shortly before their contracts expire, and decide to take this knowledge with them. 21 `` Meinertzhagen 's Haversack '' Charlie McDowell Adam Countee May 8, 2016 ( 2016 - 05 - 08 ) 1.69 The team visit the data center where Pied Piper box would be stored, along with one engineer on site for 24 / 7 support. Further appalled by this prospect, Richard continues to push his idea of Pied Piper as a platform versus the box appliance, but Jack refuses. Upon learning this, Gilfoyle quits and begins to receive several job offers and gifts from recruiters. In an attempt to have Jack 's decision reverted, Richard meets with Laurie who turns out to agree with Richard 's vision that Pied Piper should be a platform. However, Laurie 's influence is limited as firing a recently appointed senior CEO would make the company look bad. In one of his job interviews Gilfoyle finds himself at Endframe, now employing two of the coders from Hooli, and Gilfoyle learns that they have cracked Richard 's middle - out algorithm. Gilfoyle reports back to his old team at Pied Piper and they decide on what they call a Skunkworks project : to secretly pursue the original vision for Pied Piper alongside working on the box appliance, seemingly complying with Jack 's order. Jared refers to Meinertzhagen 's Haversack, cautioning everyone to act inconspicuously, and to destroy all traces of their conspiracy. However, upon entering their office space the next morning, Richard trips, and incriminating documents which he had meant to shred are spread all over the floor and brought to Jack 's attention. 22 `` Maleant Data Systems Solutions '' Charlie McDowell Donick Cary May 15, 2016 ( 2016 - 05 - 15 ) 1.89 After he caught the team red - handed trying to develop the platform in secret, Jack threatens to fire them. Richard fires back, stating that without him and his team he wo n't be able to deliver a working prototype of the box to Maleant before the planned deadline. The team agrees with Jack to create a basic functioning box to meet the requirements of the deal, after which they are free to create the platform. However, due to the team 's inability to deliver a lesser product on purpose, the final box ends up being far better than anything else available in the market. Meanwhile, Erlich keeps trying to rent rooms in his incubator. After a prospective tenant rejects his house in favor of another one, Erlich finds out that he moved to a 9 bedroom mansion which belongs to Big Head, who is hosting tenants for free in return of a share of their startups. Initially, he confronts him and leaves in a rage, but when his car does n't start, he turns back and proposes a partnership, to which an oblivious Big Head agrees. In a board meeting at Pied Piper to vote for Maleant 's box deal, Monica notices that the sales agreement includes exclusive rights to use Pied Piper 's algorithm for 5 years, which would effectively prevent Richard from creating the platform during that period. Jack admits he never specified a time frame when he made a deal with Richard. He also adds that neither he nor Laurie can do anything about it. Even though Laurie notices Jack 's low blow, she stands with him as she does n't have proof that Richard 's platform can be more valuable than the box deal. Monica ends up voting against it, alongside Richard and Erlich, effectively denying the motion, even if it means her job and board seat. Later that night, Gavin Belson phones Richard, triumphantly informing him that he just acquired Endframe 's middle out compression platform for $250 million. Unbeknownst to him, by doing this he also set a price point on Pied Piper 's platform, valuing it way above ( and thus terminating ) the box deal, rendering a new vote useless and saving Monica 's position. When the team returns to the office the next day, they find out Laurie fired Jack for undermining her at the meeting. She leaves the CEO position open, and gives them permission to start working on the platform. 23 5 `` The Empty Chair '' Eric Appel Megan Amram May 22, 2016 ( 2016 - 05 - 22 ) 1.71 The team finds out Pied Piper is running out of money, as Raviga is funding them in installments and will only continue to do so when they deliver the finished product, which is now the platform. They take drastic measures and decide to get rid of the office, its equipment and all employees, returning to Erlich 's incubator. Meanwhile, Erlich drafts a manipulative partnership agreement with Big Head which gives Erlich complete control over Big Head 's assets, even if his Pied Piper shares are n't included in it. Richard confronts Laurie about an article on a tech blog called Code / Rag which mocks Pied Piper 's absence of a CEO and Richard himself. Laurie agrees that he should meet with its author, C.J. Cantwell, in order to restore their reputation, but demands that he speaks with their head of PR first. When Richard gets to Raviga to do so, he enters the wrong room and ends up ranting about Laurie 's actions in front of Cantwell, mistaking her for the head of PR. At the same time, Laurie confides to Monica that she was wrong to remove Richard as CEO in the first place, but that he should n't be perceived as the first choice but rather the correct one, thus her search for lesser prospective candidates ( including Big Head ). Laurie planned to award Richard the position at the next board meeting, as long as he remained professional. When Richard realizes he 's been talking to Cantwell all along, he tries to prevent her from publishing the story. She tells him she will only back away if he feeds her something better. Erlich and Big Head meet at the incubator to sign their partnership deal, as Erlich announces its name : `` Bachmanity ''. Upon hearing of Richard 's predicament, Big Head lets slip that Gavin Belson secretly ordered his employees to scrub all negative publicity about Hooli from the internet. Richard immediately seeks Cantwell to publish this story instead of his and ends up finally being repromoted to CEO. Meanwhile, the team reveals that they hired an engineering team composed of outsourced coders working remotely from various places around the globe, at a fraction of the cost of hiring them in Palo Alto. 24 6 `` Bachmanity Insanity '' Eric Appel Carson Mell May 29, 2016 ( 2016 - 05 - 29 ) 1.62 Gavin Belson faces public backlash from the story published by Cantwell. He ends up threatening her with legal action if she does n't reveal her source. Meanwhile, Erlich sets up an expensive Hawaiian - themed party at Alcatraz to launch Bachmanity while Big Head warns him that he can lose all his severance money if Belson finds out he shared the story with Cantwell, which constitutes a breach of his non-disclosure agreement. Erlich dismisses him and says he 'll fix it. Richard starts dating Winnie, a coder for Facebook, and eventually brings her home. The following morning, Gilfoyle and Dinesh notice that Winnie uses spaces instead of tabs for coding, a technique which, they tell her, Richard despises. When she reveals this to him, Richard tries to deny it as an issue, but the relationship eventually goes sour because of his inability to deal with it. Meanwhile, Big Head 's business manager, Arthur Clayman, warns him that he has to control spending or risk going bankrupt. At the same time, Erlich phones Big Head, announcing that he acquired Code / Rag, Cantwell 's blog, for $500,000, thus buying her into not revealing her source, to Clayman 's shock. Dinesh flirts via video chat with Elizabet, one of Pied Piper 's outsourced coders who lives in Estonia, but when he finally reveals himself she mentions her `` boyfriend '', while Gilfoyle mocks him. During the party, which Erlich dubbed `` Bachmanity Insanity '', Sasha, the party manager, tells Bachman that the supplier 's checks have bounced. Right before the big speech, Clayman informs him that Bachmanity has gone broke. 25 7 `` To Build a Better Beta '' Jamie Babbit John Levenstein June 5, 2016 ( 2016 - 06 - 05 ) 1.70 Erlich and Big Head 's venture firm, Bachmanity, is unable to pay its debtors following its million dollar luau. While bankruptcy looms over their partnership, Pied Piper anticipates an early launch following good rapport from their selective beta launch. One of the selected early users of the beta is revealed to be a Hooli spy after Gilfoyle reveals adding a God view to the beta app allowing them access to users IP to their pinpoint geographic location. Erlich and Big Head discover that Big Head 's former business manager has misappropriated $6 million which is needed to pay the million - dollar Alcatraz party bills. Erlich and Big Head threaten legal action via consultation with a district attorney, but Bachmanity 's cause is a low priority for the justice department. Erlich ultimately is able to pay the Alcatraz party bills by selling some of his Pied Piper shares to Laurie. At Hooli, Gavin gets paranoid after learning Pied Piper has discovered the illegally downloaded beta app and shuts down the power to Hooli. The principal ( recently re-hired ) developers of Nucleus resign, leaving the Hooli rebuild of Nucleus in a hiatus state. Erlich has a private meeting with Laurie about his shares in Pied Piper. Gilfoyle decommissions `` Anton, '' his server, while getting flak from Dinesh about his best friend being a piece of hardware. Erlich gets a call about his debts being erased while Richard and team count the seconds down to the official public launch of the Pied Piper platform. 26 8 `` Bachman 's Earnings Over-Ride '' Jamie Babbit Carrie Kemper June 12, 2016 ( 2016 - 06 - 12 ) 1.64 Pied Piper is a success, hitting 100,000 downloads in just 10 days, receiving significant media coverage and being hailed as the next unicorn of the tech world. During an interview for Bloomberg, Erlich almost lets slip that he no longer owns any Pied Piper shares. When Richard learns about this during an interview with a prospective head of PR he threatens Erlich with the release of a press statement to minimize the negative effect on the company, at the expense of Erlich 's reputation in the Valley, stating that he will sever all links with him and remove the team from his incubator. At Hooli, the board of directors inform Gavin Belson that they are discharging him from his position due to the failure of the investment Endframe, confirming at the same time that they are allowing the Pied Piper app to enter the Hooli App Store. When C.J. Cantwell contacts Erlich about a rumor spreading about Pied Piper, he decides to tell her all about his shares, taking the blame and saving Pied Piper from bad reputation. When Laurie tells Richard that by selling his shares, Erlich only managed to cover his debts without any profit, he understands that Erlich is broke, and offers him a position as Pied Piper 's head of PR. 27 9 `` Daily Active Users '' Alec Berg Clay Tarver June 19, 2016 ( 2016 - 06 - 19 ) 1.63 Laurie hosts a cocktail party at her place to celebrate the five hundred thousandth download of Pied Piper 's platform. Richard calls Monica aside and reveals to her that the number of daily active users is actually very poor, something that only he and Jared know. Realizing that the beta version of the platform was only a success because they only showed it to fellow engineers and tech - savvy users, Richard proposes introducing a series of seminars and tutorials about how to use the platform, which, ironically, is too advanced for regular users. Confronted with this, all of Pied Piper 's recently employed staff quits, including Douglas, a customer service rep, who heads for an interview at Hooli. Sensing an opportunity, Gavin Belson interviews him personally and learns about Pied Piper 's low number of DAU 's. Later, he summons the board to announce that his intention was never to develop a platform, introducing Hooli Endframe 's new director, Jack Barker, and their new product : a box just like the one Barker had planned for Pied Piper. The board gets Belson reinstated as CEO. Facing Pied Piper 's apparent downfall, Richard tells Jared that he will dissolve the company. The following morning, however, the number of daily active users has risen sharply, which unbeknownst to the whole team ( including Richard ) is only so because Jared has paid for a click farm in Bangladesh to provide daily active users to the platform. 28 10 `` The Uptick '' Alec Berg Alec Berg June 26, 2016 ( 2016 - 06 - 26 ) 2.04 An elephant that Gavin Belson used to make a point at a board meeting dies at Hooli Campus. When his assistant Patrice opposes Belson for getting rid of the 9 - ton corpse in secret, she gets fired. Patrice contacts C.J. Cantwell to publish the story on Code / Rag. Richard finds out about Jared 's clickfarm operation with Dinesh and Gilfoyle telling him they know about it as well and producing software to make clickfarm operation undetectable, thus backing it up. Oblivious to all of this, Erlich reveals that he managed to gather buzz over Pied Piper throughout the valley and attract a significant investment from Coleman Blair Partners, a venture capital firm. Jared encourages Richard not to sign the deal, as he will be effectively legitimizing fraud. When pressed to sign, Richard reveals the truth to Erlich and the Coleman Blair board, terminating the deal. Erlich gets furious, as the whole valley will now know that Pied Piper has faked its numbers, stripping it of all interest to investors. Laurie pulls away and puts the platform up for sale to the highest bidder. Anxious to get revenge on Richard, Gavin Belson offers $1 million to buy it and effectively extinguish the company. He also buys Code / Rag for $2 million in order to prevent the elephant story from spreading to the public. Monica, having been fired from Raviga for opposing Laurie, joins the team, which ultimately realizes that their video chat app, a side project by Dinesh, is considerably better than Hooli 's. Big Head and Erlich, who owned half of Code / Rag through their partnership firm Bachmanity, use the money they earned to beat Gavin Belson 's offer by one dollar, thus becoming the new owners of Pied Piper. Season 4 ( 2017 ) No. overall No. in season Title Directed by Written by Original air date U.S. viewers ( millions ) 29 `` Success Failure '' Mike Judge Alec Berg April 23, 2017 ( 2017 - 04 - 23 ) 0.867 Pied Piper has officially pivoted to PiperChat, a video chat app created by Dinesh, which is seeing a constant increase in users and is vastly superior to everything else in the market. However, the team is desperately trying to fund it and failing, mostly because of the bad rep generated by the demise of Pied Piper 's compression platform and associated clickfarm upticks. After clashing with Dinesh and Gilfoyle over the development of the app and making a last - ditch attempt to get Russ Hanneman to fund it, Richard realizes that he ca n't go on being the CEO of a project he does n't believe in. Just as the team prepares to replace him with Big Head, he quits his position and equity to use his algorithm and the Pied Piper brand in the pursuit of a more ambitious goal : a new, decentralized and free internet based on users and smartphones and not companies and mainframes. Having created the software, he suggests Dinesh become the CEO of PiperChat, even if Jared is heartbroken by Richard leaving. Meanwhile, Gavin Belson and Jack Barker are returning from China after closing a deal to manufacture Hooli Endframe 's box there. Jack asks for their private jet to be diverted to fly him to Jackson Hole, which is completely out of the way of Gavin 's destination at Moffett Field. Jack then acts like a slob on the plane. An enraged Belson `` promotes '' Jack by assigning him a position at a desk in Hooli 's data center, deep underground. 30 `` Terms of Service '' Mike Judge Clay Tarver April 30, 2017 ( 2017 - 04 - 30 ) 0.762 PiperChat is gathering attention from investors and a steady stream of daily active users, while Richard keeps working on his `` new internet '' project. When he asks Dinesh for access to PiperChat 's data repository, Dinesh informs him that he has blocked him out, as well as all former employees, which breaks their verbal agreement. A sympathetic Big Head secretly gives him his login access, and Richard finds out that the main users of PiperChat are children, since the app 's terms of service never included a clause that prevented them from using the app and Dinesh never bothered to port Pied Piper 's terms of service to PiperChat. This violates the Children 's Online Privacy Protection Act and can incur in a potential penalty of $21 billion. Meanwhile Jack Barker has an apparent positive reaction to his demotion to the data center underground, but Gavin Belson thinks he is up to something and seeks to spy on his video chat sessions. Since Barker uses PiperChat, the only way to do this is to acquire the company. Accusing him of stealing Hooli Chat 's tech and threatening with a lawsuit, Gavin Belson calls Dinesh to take PiperChat from him, oblivious of its legal problems. Dinesh, who planned to shut down the app all along, happily agrees. 31 `` Intellectual Property '' Jamie Babbit Carrie Kemper May 7, 2017 ( 2017 - 05 - 07 ) 0.774 In the disastrous aftermath of the acquisition of PiperChat, Gavin Belson is fired and replaced with Jack Barker, who has found a way to prevent Hooli from paying the penalty from COPPA. Having learned that Jian - Yang 's app is actually about octopus recipes and not Oculus VR, Erlich hopelessly watches as he tries to pitch it to Coleman Blair Partners. During the meeting, Erlich manages to convince them that the app is like a `` Shazam for food, '' a concept that Raviga ends up investing in, as Monica, eager to see Laurie 's new right hand man Ed Chen fail, captures his attention by faking a phone call near him. This backfires when, after a dinner with Jian - Yang and Erlich, Chen finds out that they do n't have a working demo and retires from the project, suggesting that Monica be put in charge of it. Erlich recruits Dinesh and Gilfoyle to help him build the non-existent app, refusing help from Big Head. Big Head, under pressure from his father to do something, applies to Stanford University but is rejected based on his mediocre transcript ( showing five years at Arizona State without graduating ). Once the admissions officer realizes who Big Head is, thanks to his Hooli promotions and media exposure, he ends up being invited to be a guest lecturer at Stanford 's Department of Computer Science. Dinesh dates a hacker, Mia, who is impressed with his takedown of Gavin. Mia, as it turns out, knows Gilfoyle from his online persona and also hates him. Meanwhile, Richard is obsessively thinking about his decentralized internet project and close to a breakthrough. After Monica tells him that the late Peter Gregory dedicated a lot of his time to a similar concept, Richard accesses Gregory 's archives. Even though Richard is excited that Gregory achieved some of the same conclusions as he did and that his notes will save him a lot of work, Jared finds out that the whole concept was patented in the name of Hooli years ago, when Gregory was founding the company in a garage with Gavin Belson and others. Richard is enraged, but ends up seeking Belson to meet with him. 32 `` Teambuilding Exercise '' Jamie Babbit Megan Pleticha May 14, 2017 ( 2017 - 05 - 14 ) 0.859 Gavin is initially reluctant to build Richard 's idea, but seeing as it will render Hooli 's servers ( and Jack Barker 's Hooli Endframe box ) obsolete, he agrees. Knowing that the guys would never work for Gavin, he assembles a team of people outside the incubator to assemble the platform, but ends up adding Gilfoyle and Jared, who admit they want to be in the team. Jian - Yang tests his Seefood app, but it only works for recognizing if a food is a hotdog or not. Erlich, realizing that the app will only work properly if thousands of pictures of food from the internet are checked manually, convinces Big Head to make his students do this instead of their regular assignment, which is watching technology - related movies in class. However, they meet with Coleman Blair Partners and create their own food based app, rendering Seefood useless. Predicting that the app will fail to be funded, Erlich trades his equity for a Corvette Jian - Yang bought with the rest of the initial funding money. However, Jian - Yang manages to pivot the project as a filter for ' dick pics ' and Periscope acquires the app for $4 million. Dinesh, who, thanks to Gilfoyle 's remarks, is starting to get paranoid about his new girlfriend, is still the app 's main programmer, and ends scrubbing pictures of penises from the internet as his main duty. 33 5 `` The Blood Boy '' Tim Roche Adam Countee May 21, 2017 ( 2017 - 05 - 21 ) 0.844 As Richard presents the business plan for the decentralized internet project, he almost convinces Gavin to have a discreet, under - the - radar launch, but Bryce, a jock who regularly donates his blood to Belson and is present at the meeting, influences Gavin to have them rethink their entire launch strategy. After the meeting, a furious Richard and an enraged Jared warn Bryce not to interfere with their company. Gavin demands that Richard apologizes, and he visits Bryce, eventually discovering that he actually consumes marijuana and sugary snacks and is not as healthy as Gavin thinks he is. Meanwhile, Erlich correctly predicts that Ed Chen is planning to force Laurie out of Raviga. When Monica tries to warn her, Laurie says she knew about this all along, rewarding Monica 's loyalty with an invitation to be her partner on a new VC fund, as she always had planned to exit Raviga. Dinesh is paranoid about what his girlfriend Mia can do to him if she finds out that he did n't end Gavin 's career at Hooli on purpose. For this reason, he does n't have the courage to break up with her. When Mia reveals to Dinesh that she has hacked access to the elevators at the Freedom Tower in New York City, he calls the FBI who have Mia arrested. After this, he offers Richard his services. Having found out that Bryce was not only a corporate spy but also had high cholesterol, a disillusioned Gavin decides to leave Palo Alto, handing Richard full ownership of the decentralized internet patent. 34 6 `` Customer Service '' Clay Tarver Graham Wagner & Shawn Boxe May 28, 2017 ( 2017 - 05 - 28 ) 0.728 Russ Hanneman visits the incubator and angrily confronts Richard for presenting Gavin Belson with the decentralized internet idea, which Russ considers he co-owns. Richard still tries to get Russ to fund them, but he urinates inside Erlich 's yellow Corvette before leaving. After this, Richard decides to skip trying to convince investors and go directly to the customers, presenting the project to companies so they buy the product even if it 's not built yet. After several meetings that fail because all the valley knows Gavin Belson has jumped ship, they present their idea to Liz, Head of Compliance at insurance company FGI whose CTO, and Liz 's fiancée, is Dan Melcher, who punched Erlich at Tech Crunch disrupt after he slept with his two former wives. Richard keeps Erlich at bay so that he does n't put the deal at risk by seducing Liz, but ends up having sex with her during a late night meeting. Unaware of this, Melcher informs him that the deal will go ahead. Meanwhile, Erlich inadvertently crashes into a tech meeting with Keenan Feldspar, whose VR headset is the valley 's latest sensation. Having previously failed to convince Monica and Laurie to hire him at their new VC company Bream - Hall, he uses Feldspar and his promising tech as leverage to get a job with them. 35 7 `` The Patent Troll '' Jamie Babbit Andrew Law June 4, 2017 ( 2017 - 06 - 04 ) 0.862 Pied Piper 's space saver app is online and reaches the top 500 apps on the Hooli store. Richard is contacted by Stewart Burke, a retired attorney that lives off royalties earned by `` patent trolling '' musicians and tech companies for intellectual property of their work. He asks Richard for a licensing fee of $20,000 as he owns the patent for the `` storage of media files on a network ''. Even if this is hardly enforceable, the costs of paying him are significantly lower than paying an attorney to dispute this in court. When Richard tries to convince some other top 500 apps owners to do a joint litigation against Burke, the plan backfires as Burke informs him that the other companies have reached out to him to settle at a discount rate and if Richard wants to do it too it will now cost him $300,000. Richard responds by pretending to use his old Pied Piper app to find a flaw in one of Burke 's previous copyright claims, regaining full control of his patent without having to pay him. However, the failed joint litigation deal was drafted by Ron Laflamme, who charges Richard a fee of $22,000 for it. Meanwhile, Jian - Yang buys a $14,000 intelligent refrigerator, which Gilfoyle obsesses over trying to hack it, eventually using Pied Piper 's former mainframe ' Anton ' to do it. Keenan Feldspar signs with Bream - Hall, but Monica and Laurie avoid hiring Erlich by giving him a generous finder 's fee. Erlich has already spread news across the valley that he is employed by Bream - Hall and begs them to stay for half the money they are giving him, which they accept. Ed Chen invites him to a basketball game, but when Erlich gets to Oracle Arena, he finds out that he 's supposed to play for Chen 's team. Trying to fit in, he buys a hoop and falls off the roof trying to install it while standing on an open garage door, breaking his leg in the process. 36 8 `` The Keenan Vortex '' Jamie Babbit Graham Wagner & Rachele Lynn June 11, 2017 ( 2017 - 06 - 11 ) 0.798 Due to a wave of unusually cold weather and consequent insurance claims, FGI faces a lot more data processing requirements than Pied Piper is expected to handle, and the team is facing an astronomical bill from their data storage center provider for the sudden spike. Richard decides to attract investment from another client to handle this, approaching Erlich so that he gets Keenan Feldspar to hear their pitch. Richard thinks Feldspar 's VR tech is a fad, but Dinesh and Gilfoyle are so impressed after trying it that they integrate Pied Piper 's middle out algorithm into Feldspar 's VR, which improves it greatly. As a result Feldspar offers to acquire Pied Piper altogether. Richard does n't want this, so he counters with an offer of $25 million, which Keenan still accepts. Richard intends to concede, but Monica warns him that Feldspar 's VR is n't that great and that he 's walking into a trap, promising that she will fund their series A round if they can implement the decentralized internet project on a sufficient number of cell phones. After texting him telling him the deal is off, Richard learns that Feldspar has signed with Hooli, abandoning Erlich in the process. Richard decides to enter Hooli - Con, Hooli 's tech conference, to put Monica 's challenge into practice. 37 9 `` Hooli - Con '' Mike Judge Chris Provenzano June 18, 2017 ( 2017 - 06 - 18 ) 0.840 The team heads to Hooli - Con with a plan to mask the Pied Piper app as the event 's wifi access point using strategically placed routers, in order to get Pied Piper installed in the maximum number of phones possible. After running into his ex-girlfriend Winnie, who is presenting her boyfriend 's app, Richard sabotages their laptop 's screensaver, which triggers a ' tactical response team ' sent by Hoover, Hooli 's head of security. He tries to warn Jack Barker that Pied Piper is up to something, but is violently dismissed and threatened to be fired. After Hoover finally catches Dinesh and Gilfoyle red - handed on CCTV, he lets them go as Richard once collaborated with Gavin Belson to hinder Jack Barker 's plans at Hooli and he sympathizes with this. Pied Piper finally gets installed on a sufficient number of phones, which allows Richard to move all of FGI 's data into the app, eliminating the need for an auxiliary data server and its related costs. The high point of the event sees Jack Barker and Keenan Feldspar presenting their VR mobile tech to the world, but it fails miserably and causes Hooli phones all over the auditorium to explode. Meanwhile, Erlich decides to accept Gavin Belson 's invitation ( originally addressed to Richard and company but taking `` and company '' literally ) to come and join him at a monastery in Tibet, to Belson 's shock. 38 10 `` Server Error '' Mike Judge Dan O'Keefe June 25, 2017 ( 2017 - 06 - 25 ) 0.790 After the incident with the exploding Hooli phones at Hooli - Con, Jack Barker intends to replace all 9 million affected devices, instead of just releasing a firmware update, an exceedingly expensive plan that goes against the wishes of the Hooli board. This puts Pied Piper in risk of breaching contract with FGI, as the cell phone network where the data is stored will effectively be eliminated. Richard decides to use ' Anton ', Pied Piper 's server, to store the data, even if this will exceed its capacity and probably destroy it. Barker heads to China and tries to force the Hooli plant workers to increase production. As a result, he is taken hostage until they get better wages and work environment. Gavin Belson, who is in Tibet, learns about this through Erlich and sees an opportunity. Before heading to China to rescue Jack, he ditches Erlich and hands a Tibetan local enough cash for Erlich to stay at his place for the next 5 years. He then rescues Barker and leaves him in Jackson Hole before being reinstated as Hooli 's CEO by the Hooli board. Meanwhile, after the broadband service at the incubator is cut due to lack of payment, Richard plans to connect Anton to Stanford Tech 's server cluster, using Big Head 's position there to do so. When they arrive, they discover that the back of the truck was n't closed and Anton 's parts have been scattered all over the road. At the same time, Melcher frantically tries to contact Richard. When they head to FGI to face him, the team are surprised to find that, before shutting down, Anton backed itself up to Jian - Yang 's smart refrigerator, as Gilfoyle used some of the Pied Piper code when he was trying to hack it, which in turn connected itself to a network of other refrigerators like it, distributing the data and proving the decentralized internet is a working concept. Melcher attacks Richard, as he finally found out that Richard had sex with his fiancée after she accidentally told him about it. Pied Piper is again sought by investors all over the Valley. Gavin Belson offers a very generous acquisition deal to Richard, who turns it down and decides to be funded by Bream / Hall. Gavin threatens to devour Pied Piper, but Richard answers back, promising to render the entire physical server rental business, and Hooli itself, obsolete. Ratings Silicon Valley : U.S. viewers per episode ( millions ) Season Ep. 1 Ep. 2 Ep. 3 Ep. 4 Ep. 5 Ep. 6 Ep. 7 Ep. 8 Ep. 9 Ep. 10 1.98 1.69 1.62 1.55 1.82 1.69 1.68 1.74 N / A 2.13 1.73 1.94 1.75 1.53 1.54 1.60 1.78 1.87 2.11 1.86 1.72 1.69 1.89 1.71 1.62 1.70 1.64 1.63 2.04 0.86 0.76 0.77 0.85 0.84 0.72 0.86 0.79 0.84 0.79 Source : Nielsen Media Research References Jump up ^ `` HBO Filming ' Silicon Valley ' Pilot In Palo Alto ''. CBS San Francisco. March 12, 2013. Retrieved January 20, 2014. Jump up ^ Barney, Chuck ( January 9, 2014 ). `` HBO 's Silicon Valley sitcom : A first impression ''. Contra Costa Times. San Jose Mercury News. Retrieved January 20, 2014. Jump up ^ Bibel, Sara ( January 9, 2014 ). `` Mike Judge 's Silicon Valley to Premiere April 6 on HBO ''. TV by the Numbers ( Press release ). Retrieved January 20, 2014. Jump up ^ Petski, Denise ( May 25, 2017 ). `` ' Veep ' & ' Silicon Valley ' Renewed By HBO ''. Deadline. Retrieved May 25, 2017. Jump up ^ Kondolojy, Amanda ( April 8, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night + ' The Real Housewives of Atlanta ', ' Silicon Valley ', ' Married to Medicine ' & More ''. TV by the Numbers. Retrieved April 12, 2014. Jump up ^ Bibel, Sara ( April 15, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, ' Real Housewives of Atlanta ', ' MTV Movie Awards ', ' Silicon Valley ', ' Mad Men ', ' Drop Dead Diva ' & More ''. TV by the Numbers. Retrieved April 15, 2014. Jump up ^ Kondolojy, Amanda ( April 22, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, + NBA Playoffs, ' Real Housewives of Atlanta ', ' Naked and Afraid ' & More ''. TV by the Numbers. Retrieved April 22, 2014. Jump up ^ Bibel, Sara ( April 29, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, NBA Playoffs, ' Real Housewives of Atlanta ', ' Mad Men ', ' Devious Maids ' & More ''. TV by the Numbers. Retrieved April 29, 2014. Jump up ^ Kondolojy, Amanda ( May 6, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, + ' Real Housewives of Atlanta ', ' Married to Medicine ', ' Silicon Valley ' & More ''. TV by the Numbers. Retrieved May 6, 2014. Jump up ^ Bibel, Sara ( May 13, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, NBA Playoffs, ' Silicon Valley ', ' Bar Rescue ', ' Real Housewives of Atlanta ', ' Mad Men ' & More ''. TV by the Numbers. Retrieved May 13, 2014. Jump up ^ Kondolojy, Amanda ( May 20, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night + ' Silicon Valley ', ' Real Housewives of Atlanta ', ' River Monsters ', ' Married to Medicine ' & More ''. TV by the Numbers. Retrieved May 20, 2014. Jump up ^ Kondolojy, Amanda ( June 3, 2014 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night + NHL Conference Finals, ' Real Housewives of Atlanta : Kandi 's Wedding ', ' Silicon Valley ' & More ''. TV by the Numbers. Retrieved June 3, 2014. Jump up ^ Bibel, Sara ( April 14, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, ' Silicon Valley ', ' MTV Movie Awards ', ' Mad Men ', ' Veep ', ' The Royals ' & More ''. TV by the Numbers. Retrieved April 14, 2015. Jump up ^ Kondolojy, Amanda ( April 21, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Tops Night + NBA Playoffs, ' Real Housewives of Atlanta, ' ' Naked and Afraid ' & More ''. TV by the Numbers. Retrieved April 21, 2015. Jump up ^ Bibel, Sara ( April 28, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, NBA Playoffs, ' Real Housewives of Atlanta ', ' Silicon Valley ', ' Mad Men ' & More ''. TV by the Numbers. Retrieved April 28, 2015. Jump up ^ Kondolojy, Amanda ( May 5, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Tops Night + ' Real Housewives of Atlanta ', ' Silicon Valley ' & More ''. TV by the Numbers. Retrieved May 5, 2015. Jump up ^ Bibel, Sara ( May 12, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, NBA Playoffs, ' Silicon Valley ', ' Mad Men ', ' The Royals ', ' Veep ' & More ''. TV by the Numbers. Retrieved May 12, 2015. Jump up ^ Kondolojy, Amanda ( May 19, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Tops Night + ' Keeping Up With the Kardashians ', ' Mad Men ' & More ''. TV by the Numbers. Retrieved May 19, 2015. Jump up ^ Bibel, Sara ( May 27, 2015 ). `` Sunday Cable Ratings : NBA Conference Finals Win Night, ' Game of Thrones ', ' Silicon Valley ', ' Keeping Up With the Kardashians ', ' Veep ' & More ''. TV by the Numbers. Retrieved May 27, 2015. Jump up ^ Kondolojy, Amanda ( June 2, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Tops Night + ' Keeping Up With the Kardashians ', ' Silicon Valley ', ' Naked and Afraid ' & More ''. TV by the Numbers. Retrieved June 2, 2015. Jump up ^ Bibel, Sara ( June 9, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Wins Night, ' Silicon Valley ', ' Naked & Afraid ', ' Married to Medicine ', ' Veep ' & More ''. TV by the Numbers. Retrieved June 9, 2015. Jump up ^ Kondolojy, Amanda ( June 16, 2015 ). `` Sunday Cable Ratings : ' Game of Thrones ' Tops Night + ' Silicon Valley ', NASCAR, ' Botched ' & More ''. TV by the Numbers. Retrieved June 16, 2015. Jump up ^ Porter, Rick ( April 26, 2015 ). `` Sunday cable ratings : ' Game of Thrones ' opens slightly lower, still dominant ''. TV by the Numbers. Retrieved April 26, 2015. Jump up ^ Porter, Rick ( May 3, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' slips, ' Kardashians ' premiere steady ''. TV by the Numbers. Retrieved May 3, 2016. Jump up ^ Porter, Rick ( May 10, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' ( very ) steady with episode 3 ''. TV by the Numbers. Retrieved May 10, 2016. Jump up ^ Porter, Rick ( May 17, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' rises, ' Fear the Walking Dead ' falls ''. TV by the Numbers. Archived from the original on September 1, 2016. Retrieved May 17, 2016. Jump up ^ Porter, Rick ( May 24, 2016 ). `` Sunday cable ratings : ' Preacher ' has decent debut, ' Game of Thrones ' ties season high ''. TV by the Numbers. Retrieved May 24, 2016. Jump up ^ Porter, Rick ( June 1, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' hits season low on Memorial Day weekend ''. TV by the Numbers. Retrieved June 1, 2016. Jump up ^ Porter, Rick ( June 7, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' back to usual numbers, ' Preacher ' holds up ''. TV by the Numbers. Retrieved June 7, 2016. Jump up ^ Porter, Rick ( June 14, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' and ' Silicon Valley ' hold steady ''. TV by the Numbers. Retrieved June 14, 2016. Jump up ^ Porter, Rick ( June 21, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' holds up opposite NBA Finals ''. TV by the Numbers. Retrieved June 21, 2016. Jump up ^ Porter, Rick ( June 28, 2016 ). `` Sunday cable ratings : ' Game of Thrones ' scores series high with Season 6 finale ''. TV by the Numbers. Retrieved June 28, 2016. Jump up ^ Porter, Rick ( April 25, 2017 ). `` Sunday cable ratings : ' Silicon Valley ' suffers without ' Game of Thrones ' as lead - in ''. TV by the Numbers. Retrieved April 25, 2017. Jump up ^ Porter, Rick ( May 2, 2017 ). `` Sunday cable ratings : ' American Gods ' has decent premiere on Starz ''. TV by the Numbers. Retrieved May 2, 2017. Jump up ^ Porter, Rick ( May 9, 2017 ). `` Sunday cable ratings : MTV Movie & TV Awards down, ' Real Housewives of Atlanta ' improves ''. TV by the Numbers. Retrieved May 9, 2017. Jump up ^ Porter, Rick ( May 16, 2017 ). `` Sunday cable ratings : ' Into the Badlands ' improves, ' Naked and Afraid XL ' leads a quiet day ''. TV by the Numbers. Retrieved May 16, 2017. Jump up ^ Porter, Rick ( May 23, 2017 ). `` Sunday cable ratings : ' Twin Peaks ' return comes in low for Showtime ''. TV by the Numbers. Retrieved May 23, 2017. Jump up ^ Porter, Rick ( May 31, 2017 ). `` Sunday cable ratings : ' Naked and Afraid XL ' tops a down day ''. TV by the Numbers. Retrieved May 31, 2017. Jump up ^ Porter, Rick ( June 6, 2017 ). `` Sunday cable ratings : ' The Leftovers ' ends on up note, ' Fear the Walking Dead ' premieres to series low ''. TV by the Numbers. Retrieved June 6, 2017. Jump up ^ Porter, Rick ( June 13, 2017 ). `` Sunday cable ratings : ' Fear the Walking Dead ' ties low, ' Claws ' has decent premiere ''. TV by the Numbers. Retrieved June 13, 2017. Jump up ^ Porter, Rick ( June 20, 2017 ). `` Sunday cable ratings : ' American Gods ' finale improves, ' Fear the Walking Dead ' hits another low ''. TV by the Numbers. Retrieved June 20, 2017. Jump up ^ Porter, Rick ( June 27, 2017 ). `` Sunday cable ratings : BET Awards fall, ' Power ' and ' Preacher ' have solid premieres ''. TV by the Numbers. Retrieved June 27, 2017. Jump up ^ `` Silicon Valley : Season One Ratings ''. TV Series Finale. June 4, 2014. Retrieved July 27, 2017. Jump up ^ `` Silicon Valley : Season Two Ratings ''. TV Series Finale. June 16, 2015. Retrieved July 27, 2017. Jump up ^ `` Silicon Valley : Season Three Ratings ''. TV Series Finale. June 28, 2016. Retrieved July 27, 2017. Jump up ^ `` Silicon Valley : Season Four Ratings ''. TV Series Finale. June 27, 2017. Retrieved July 27, 2017. External links Official website List of Silicon Valley episodes on IMDb Retrieved from `` https://en.wikipedia.org/w/index.php?title=List_of_Silicon_Valley_episodes&oldid=815832979 '' Categories : Lists of American sitcom television series episodes Hidden categories : Articles containing potentially dated statements from June 2017 All articles containing potentially dated statements Official website not in Wikidata Talk Contents About Wikipedia Polski Edit links This page was last edited on 17 December 2017, at 13 : 30. Text is available under the Creative Commons Attribution - ShareAlike License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia ® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. About Wikipedia

Question: how many episodes are in silicon valley season 4
Answer: 10