Cost Seals the Deal, Sovereignty Keeps Them: Cast AI's Open-Weight Model Practice

Cast AI routes 95% of coding tokens to open-weight models, signing on cost and retaining through sovereignty.
Cast AI's Laurent Gil reveals a new logic for enterprise AI procurement: customers sign because of cost and stay because of sovereignty. Cast AI routes 95% of coding tokens to open-weight models, leaving only complex tasks to closed-source ones in a pragmatic hybrid routing strategy. Supporting this are sandboxed agents—engineers hand tasks to agents running autonomously in isolated environments, and the metric shifts from 'how much code was written' to 'how long can you walk away.' The article also notes the hidden costs of open-weight models, including inference infrastructure operations and model updates, suggesting smaller teams can start with hybrid routing. The core trend: as model capability gaps narrow, procurement focus is shifting from 'who is smarter' to 'who is more controllable.'
Cost Is the Hook, Sovereignty Is the Moat
Laurent Gil is blunt: customers sign on initially because of cost. The per-token billing model of closed-source models produces staggering bills at scale, while open-weight models let enterprises deploy, optimize, and scale at their own pace. But what really keeps customers renewing is sovereignty—control over the models, data, and inference infrastructure.
This logic of "cost seals the deal, sovereignty drives retention" reflects a deeper shift in enterprise AI adoption. In the early experimental phase, teams focus more on the upper limits of model capability; once in production, predictable cost structures and data governance become harder constraints. Open-weight models have a natural advantage on both fronts: enterprises can self-host, fine-tune, and even run fully offline, without worrying about vendor lock-in or data leakage.
Why 95% of Tokens Flow to Open-Weight Models
Cast AI routes 95% of coding tokens to open-weight models, and that ratio itself is worth pondering. The remaining 5% is not randomly allocated but reserved for complex tasks where open models genuinely fall short. This hybrid routing strategy of "the vast majority go open, a small minority go closed" is essentially a pragmatic engineering trade-off.
Laurent Gil does not describe open-weight models as a wholesale replacement but emphasizes the intelligence of the routing: most coding tasks—completion, refactoring, test generation—are already good enough with open-weight models, at an order of magnitude lower cost. In his words, the key question is not "which model is the strongest" but "which model offers the best value for this task."
Open-weight models refer to models whose parameter weights are publicly downloadable and that allow enterprises to self-deploy and fine-tune, such as the Llama, Mistral, and Qwen series. They are not entirely equivalent to "open-source models": open source usually also requires releasing training data and code, whereas open weights only guarantee that the weights are available. For enterprises, the key difference is that they can be deployed privately, so inference requests never need to leave the corporate network, satisfying data compliance requirements; at the same time, domain fine-tuning can be done for business scenarios, free from vendor API changes or price hikes. The trade-off is that enterprises must bear the GPU resources, inference optimization, and model operations themselves.
Sandboxed Agents: Letting Engineers Dare to Walk Away
Cast AI's way of measuring engineers is rather counterintuitive: look at how long they can walk away. Behind this is the support of sandboxed agents. Engineers no longer need to watch every line of AI-generated code; instead, they hand tasks to agents running in isolated environments, where the agents execute, verify, and iterate autonomously, and engineers only step in at key checkpoints.
The sandbox plays a dual role here: it is both a security boundary, preventing agents' misoperations from affecting production environments, and trust infrastructure, letting engineers dare to let go. Measuring "walk-away time" seems playful, but it points to a serious metric—the time an automated agent runs reliably without supervision directly reflects the team's trust in the AI system and the robustness of the system itself.
A sandbox is an isolated execution environment that restricts the file system, network, and system calls a process can access through containers, virtual machines, or dedicated runtimes. In AI agent scenarios, the sandbox ensures that code and commands generated by agents execute only within a restricted scope, so that even accidental deletions, privilege escalation, or malicious injection will not affect the production environment. Common implementations include gVisor, Firecracker microVMs, and container-level isolation. The sandbox also provides agents with a reproducible execution environment, making test and verification results stable—this is the technical prerequisite for "unsupervised operation" to be viable.
The Hidden Costs of Open-Weight Models
What needs to be viewed soberly is that open-weight models are not without cost. Enterprises must bear the operations of inference infrastructure, model updates, and security patches themselves, and these hidden costs are often underestimated early on. Cast AI's approach is to abstract away this complexity through a routing layer and sandboxes, but the underlying capabilities still require a certain level of engineering maturity from enterprises.
Laurent Gil's view implies a premise: the open-weight model ecosystem is maturing rapidly, and toolchains and operational practices are gradually standardizing, so that "self-hosting" is no longer exclusive to big companies. For small and medium teams, hybrid routing may be the more realistic starting point—using open models for high-frequency routine tasks and closed-source models as a fallback for complex scenarios.
The hidden costs of self-hosted inference mainly come from three aspects: first, GPU capacity planning, which requires reserving resources for peak loads; when utilization is insufficient, the per-token cost can actually be higher than APIs; second, inference optimization, including quantization, batching, KV cache management, and tuning of model serving frameworks (such as vLLM and TGI), which requires dedicated engineering capabilities; third, ongoing operations, involving model version updates, security patches, monitoring and alerting, and failure recovery. These costs are hard to quantify early in a project but amplify as scale grows. The value of the routing layer lies in centralizing part of the complexity so that business teams do not need to handle each item themselves.
The Sovereignty Battle Has Only Just Begun
Placed in the context of enterprise AI procurement, the phrase "cost is the reason to sign, sovereignty is the key to retention" points to a broader trend: the capability gap between models is narrowing, and the focus of procurement decisions is shifting from "who is smarter" to "who is more controllable." Open-weight models give enterprises an option—they no longer have to choose between capability and sovereignty.
Cast AI's practice offers a reference sample: 95% of tokens go to open weights, and sandboxed agents redefine the collaboration boundary between engineers and AI. Whether this combination becomes mainstream depends on how fast the open-model ecosystem matures and how quickly enterprises build trust in "walking away."
Related articles

WorkBuddy + AI Agent: A Zero-Basics Hands-On Tutorial for Building Intelligent Agents
A popular Bilibili tutorial explains how to build a WorkBuddy + AI Agent from scratch, covering installation, Skill customization, and an e-commerce workbench, with a blue book and 12 common Skills for beginners.

Five-Layer Breakdown of Multi-Tenant Isolation for AI Agents (Interview Guide)
High-frequency interview breakdown of AI Agent multi-tenant isolation: five boundary layers—identity, data, tools, runtime, and resources—to handle follow-ups and avoid the Tenant-ID-only pitfall.

AI Agent in Practice: A Complete Guide to Muse and Grok Bot for Office Work
A Bilibili hands-on course breaks down how to use Muse and Grok Bot: connect domestic model APIs via CC Switch to skip account login, use cloud Bots to organize photos, publish docs, and check email on a schedule, with real-world tests of multi-Bot collaboration and scheduled-task delays.