Back to blog posts

4 min read

Run Claude Code safely with Blaxel sandboxes

Connect your Claude Agent SDK agents to remote, secure Blaxel sandboxes, and cohost the agent itself for near instant latency.

Vikram VaswaniVikram Vaswani is a developer advocate at Blaxel. He is an active open source community member and developer, with deep experience in cloud-native application development and infrastructure. He is the author of seven technical books on programming and databases, published internationally and translated into multiple languages.
Run Claude Code safely with Blaxel Sandboxes

A few months ago, Anthropic released the Claude Agent SDK (formerly Claude Code SDK), a library that allows developers to build their own agents, powered by the same technology behind Claude Code. This SDK includes powerful capabilities, such as support for MCP, event hooks and sub-agents, human-in-the-loop approval and the ability to maintain context across sessions. As a result, it's quickly become one of the most popular frameworks for agent development.

Blaxel's Agents Hosting lets you deploy agents developed with any framework or SDK on Blaxel, so long as the agent exposes an HTTP endpoint for requests. We fully support all agentic frameworks like AI SDK, Mastra...and, of course, Claude Agent SDK. Once deployed, your agents are globally accessible, deeply observable with full logging, telemetry and tracing, and customizable using fine-grained deployment rules.

In addition to hosting agents, every Blaxel sandbox exposes a Model Context Protocol (MCP) server that allows agents to operate the sandbox using tool calls. These include tools for process management, filesystem operations, and code generation.

You're probably starting to see where this is headed...what if you give access to remote, secure sandboxes to your Claude Agent, and co-host it next to the sandbox so your users can experience local-like latency even at scale? Blaxel lets you do both.

To help you get started with Claude agents on Blaxel, we've put together two guides:

All you need is your Anthropic API key, a Blaxel account, and the Blaxel CLI.

[CTA:get-started description="Run Claude Code in sandboxes with near-instant latency. Sign up and get started for free in minutes."]

Check it out and see how easy it is to deploy your Claude Agent SDK projects to Blaxel - with almost no configuration required! Have feedback? Tell us in Discord.

Related articles