Your AI Agents Can Now Run Safely

TL;DR: Google Cloud and Anyscale are integrating gVisor sandboxes into the Ray framework. This allows developers to securely run untrusted AI-generated code at scale, a critical step for deploying advanced and agentic AI models safely.
Key facts
- Category
- Infrastructure
- Impact
- High
- Published
- Source
- Google Cloud Blog
Full summary
Google Cloud and Anyscale are adding gVisor sandboxes to Ray, letting developers safely run untrusted AI-generated code at scale.
Google Cloud and its partner Anyscale announced a significant security upgrade for the popular AI framework Ray. According to a post on the Google Cloud Blog, they are integrating Google’s gVisor sandboxing technology directly into Ray clusters. This move is a direct response to a growing challenge in the AI industry: how to safely execute code that is dynamically generated by AI models. As AI agents become more autonomous, they often write and run their own code to solve problems. This presents a major security risk, as the code is inherently untrusted. The integration aims to provide a robust, scalable solution for isolating these workloads, making it safer to build and deploy the next generation of intelligent applications.
At its core, the new feature combines two powerful technologies. Ray is an open-source framework designed to scale Python applications, making it a favorite for distributed AI and machine learning tasks. gVisor, on the other hand, is a container sandbox that creates a secure boundary around an application. It acts like a separate, lightweight operating system kernel, intercepting all the requests an application makes to the host system. By running a Ray task inside a gVisor sandbox, any potentially malicious code is trapped. It cannot access the host machine’s file system, network, or other processes, effectively neutralizing threats without significant performance overhead. This integration allows developers to apply this powerful isolation to individual functions or actors within a large, distributed Ray cluster, providing granular security control where it's needed most.
This development is critically important for developers, MLOps engineers, and security teams working with advanced AI. The rise of agentic AI—systems that can reason, plan, and execute multi-step tasks—has been hampered by security concerns. Without a reliable sandboxing mechanism, running an AI agent that can, for example, browse the web and execute code is equivalent to running arbitrary scripts from the internet on production servers. This has been a major blocker for enterprise adoption. By providing a built-in, easy-to-use sandboxing solution, Google and Anyscale are removing this obstacle. Teams can now experiment with and deploy more powerful autonomous agents with a much higher degree of confidence in the security and stability of their underlying infrastructure.
The business and industry implications of this integration are substantial. It marks a key step in the maturation of the AI development ecosystem, moving from a focus purely on model performance to a more holistic view that includes security, governance, and reliability. For companies building on Google Cloud, it strengthens the platform's value proposition as a secure, enterprise-ready environment for production AI. This capability could accelerate innovation by enabling companies to safely explore new applications for AI agents, such as automated software development, complex data analysis, and autonomous system administration. It signals a broader industry trend toward embedding security features directly into the core frameworks that power AI, treating security as a prerequisite for deployment, not an afterthought.
Looking ahead, this partnership sets a new standard for security in distributed AI computing. As AI models become more capable of interacting with external systems and generating their own operational code, the need for robust, low-overhead isolation will only grow. We can expect to see similar security-first integrations across the AI stack, from data pipelines to model serving platforms. The industry is rapidly moving beyond the experimental phase of generative AI and into a new era of enterprise-grade, production-ready systems. Features like the gVisor integration in Ray are essential building blocks for this transition, paving the way for more sophisticated and trustworthy autonomous systems.
Related on Notifire
Related stories
Primary source: Google Cloud Blog