News Froggy
newsfroggy
HomeTechReviewProgrammingGamesHow ToAboutContacts
newsfroggy

Your daily source for the latest technology news, startup insights, and innovation trends.

More

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

Categories

  • Tech
  • Review
  • Programming
  • Games
  • How To

© 2026 News Froggy. All rights reserved.

TwitterFacebook
Tech

industry: How Shopify built an AI stack that doesn't care which

Shopify has developed a resilient AI stack featuring an LLM proxy for automatic failover between AI providers and a sophisticated distillation pipeline for creating specialized, cost-effective models. This strategy ensures continuous AI operations, avoids vendor lock-in, and significantly boosts efficiency and accuracy across its platform.

PublishedJune 25, 2026
Reading Time5 min
industry: How Shopify built an AI stack that doesn't care which

Shopify has engineered an advanced AI stack designed for unparalleled resilience and flexibility, ensuring continuous operation regardless of changes or outages among large language model (LLM) providers. Central to this strategy is an internal LLM proxy, which automatically reroutes engineers to alternative AI services if a primary model becomes unavailable or undergoes updates. This innovative approach, detailed by Farhan Thawar, Shopify’s head of engineering, on a recent VentureBeat Beyond the Pilot podcast, prevented workflow interruptions when Claude Fable 5 unexpectedly shut down, seamlessly shifting users to Claude Opus or GPT 5.5.

This sophisticated proxy allows Shopify to purchase AI tokens in bulk, providing comprehensive usage reporting and enabling instant failover. Thawar emphasizes that this system is critical for enterprises to avoid being "super tied" to a single provider, offering a vital backup plan against disruptions. The ability to "spray across different providers" ensures that engineering workflows remain uninterrupted, protecting against the inherent volatility of the rapidly evolving AI model landscape.

Beyond vendor independence, Shopify heavily leverages AI model distillation to enhance efficiency and accuracy. This process involves training smaller "student models" on specific tasks, learning from larger "teacher models." These specialized small language models (SLMs) often outperform generalized, off-the-shelf LLMs for particular functions, such as those performed by Shopify's flagship AI assistant, Sidekick, which automates various merchant subtasks.

Thawar highlights significant benefits from using distilled SLMs, noting they can be two times faster and cheaper than larger models, with extreme cases showing up to a 30-fold improvement in cost and speed. Crucially, this strategy also prioritizes accuracy, ensuring that specialized models deliver precise results for their targeted applications. This balance of cost, latency, and precision is central to Shopify's AI philosophy.

Shopify's Universal Distillation Pipeline (UDP) streamlines the creation and deployment of these specialized models. Engineers input a teacher model, training data, evaluations, and a target model (e.g., distilling Opus 4.8 down to Qwen 3.5). The pipeline then runs for approximately a day, generating an evaluation report on the fine-tuned model's speed, cost, and accuracy for the specific subtask. If the trade-off is favorable, engineers can deploy the model without needing further approval, demonstrating an agile and efficient development cycle. The internal platform, Tangle, provides real-time visualization of this process.

Thawar envisions a future where the distillation pipeline becomes even more autonomous. His "dream" is for users to eventually provide only the teacher model, data, and evaluations, and let the system intelligently recommend the optimal distillation target model, potentially uncovering surprisingly small yet effective models that could even run on mobile devices. This forward-looking perspective underscores Shopify's commitment to pushing the boundaries of AI optimization.

Shopify encourages its engineers to move from "AI reflexivity" – using AI without deep thought – to "AI leverage," where they strategically integrate AI to maximize workflow benefits. To support this, the company provides access to various AI harnesses like Claude Code, Codex, and GitHub Copilot, allowing engineers to experiment and find tools best suited for their individual workflows.

To manage resource consumption and promote thoughtful AI use, Shopify implemented a detailed usage dashboard. This dashboard tracks not only token spend but also identifies users with high-cost token usage, time spent on reasoning tasks, and the types of models utilized across different disciplines. "Circuit breakers" are in place to flag unusually long-running models or high token consumption, prompting users with inquiries like, "Did you mean to spend this?" This proactive monitoring helps prevent accidental overspending and encourages mindful AI adoption.

This robust AI ecosystem is built upon Shopify's foundational philosophy of prioritizing infrastructure development. Thawar explicitly states, "We've always built more infra. We will continue to always build more infra." This commitment ensures that scalable, resilient systems are in place before features are deployed, forming a solid base for advanced AI capabilities.

Further illustrating its comprehensive AI strategy, Shopify also deploys internal AI agents such as River, which creates a "substrate of information" across the company, and OpenClaw, an agent that demonstrated impressive contextual awareness by deducing Thawar's travel plans from his calendar. These examples highlight the practical application and ongoing evolution of AI agents within Shopify's operational framework.

FAQ

Q: What is Shopify's LLM proxy and why is it important?

A: Shopify's LLM proxy provides engineers with access to multiple AI model providers, automatically switching between them if one experiences an outage or update. This is crucial for ensuring uninterrupted workflows, preventing vendor lock-in, and establishing a robust backup plan in the volatile AI landscape.

Q: How does Shopify leverage AI model distillation, and what are its benefits?

A: Shopify uses distillation to create specialized small language models (SLMs) from larger "teacher" models. These SLMs are tailored for specific tasks, offering significant improvements in speed (up to 30x faster), cost (up to 30x cheaper), and accuracy compared to generalized models. This strategy supports applications like Shopify's Sidekick AI assistant.

Q: What is the significance of Shopify's shift from "AI reflexivity" to "AI leverage"?

A: The shift from "AI reflexivity" to "AI leverage" encourages engineers to think deeply and strategically about how AI can best be integrated into their workflows, rather than using it without critical consideration. Shopify supports this by providing diverse AI tools, monitoring usage, and implementing "circuit breakers" to promote mindful and efficient AI adoption.

#Shopify#AI Infrastructure#LLM Proxy#AI Distillation#Enterprise AI

Related articles

Applied Computing wants to give oil and gas operators an AI model for
Tech
TechCrunch AIJul 16

Applied Computing wants to give oil and gas operators an AI model for

Applied Computing, a London-based startup, has secured $20 million in Series A funding to advance its foundation AI model, Orbital, for the oil, gas, and petrochemical industry. Orbital aims to integrate disparate data sources—sensor readings, engineering data, and physics models—to provide real-time operational insights, drastically reducing investigation times and enhancing efficiency. The company plans to use the capital for international expansion, hiring, and new client deployments, building on its rapid growth and strategic partnerships with industry giants like KBR.

JPMorgan Chase Taps Seattle for Critical AI Control Layer Development
Tech
GeekWireJul 15

JPMorgan Chase Taps Seattle for Critical AI Control Layer Development

Global financial giant JPMorgan Chase is making a significant strategic investment in Seattle, establishing a new AI software infrastructure team. This pivotal group will build an "AI control layer" to manage the bank's AI operations, aiming to control costs, protect intellectual property, and prevent vendor lock-in.

The Motorola Edge 70 Max is all about power: Android — Key Details
Tech
The VergeJul 15

The Motorola Edge 70 Max is all about power: Android — Key Details

Motorola has launched its new flagship, the Edge 70 Max, designed for power users with a massive 7100mAh silicon-carbon battery and 25W Qi2 wireless charging. It’s the first Android phone since the Pixel 10 Pro XL to support full 25W Qi2, surpassing other Qi2-enabled Androids capped at 15W. The device also offers 90W wired charging and a Snapdragon 8 Gen 5 chip.

FaceID Inventor's AI Startup Aims to Revolutionize Brain Health
Tech
WiredJul 16

FaceID Inventor's AI Startup Aims to Revolutionize Brain Health

Former Apple FaceID and Vision Pro co-inventor Gidi Littwin is making waves in the artificial intelligence sector with his startup, Hemispheric. The company has secured $52 million in funding to advance its frontier AI

DeepMind CEO calls for independent body to regulate frontier AI
Tech
TechCrunchJul 14

DeepMind CEO calls for independent body to regulate frontier AI

DeepMind CEO Demis Hassabis has proposed an independent standards body, modeled after FINRA, to regulate frontier AI models. The body would test advanced AI systems and develop best practices for their release, initially on a voluntary basis before potentially becoming mandatory. This initiative aims to provide technically focused, adaptable oversight to the rapidly evolving field of AI.

OnePlus is reportedly bailing on the US: Oppo — Key Details
Tech
The VergeJul 14

OnePlus is reportedly bailing on the US: Oppo — Key Details

OnePlus, and parent company Oppo, are reportedly exiting the US and European markets, with an announcement due shortly. This follows months of rumors and signals a major shift in the Western smartphone landscape.

Back to Newsroom

Stay ahead of the curve

Get the latest technology insights delivered to your inbox every morning.