Modal Claude Agent SDK Python — AI skill for Claude Code
This package wraps the Claude Agent SDK to execute AI agents in secure, scalable Modal containers.
How to install Modal Claude Agent SDK Python
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sshh12/modal-claude-agent-sdk-python and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Modal Claude Agent SDK Python does
This package wraps the Claude Agent SDK to execute AI agents in secure, scalable Modal containers. It provides progressive complexity—simple usage mirrors the original Agent SDK, while advanced features expose Modal's full capabilities (GPU, volumes, image customization, etc.).
Alternatives in AI
- Generative Media Skills — Multi-modal Generative Media Skills for AI Agents (Claude Code, Cursor, Gemini CLI) 3k ★
- Proxypal — A desktop app that lets you use your AI subscriptions (Claude, ChatGPT, Gemini, GitHub Copilot) with any codin 1.2k ★
- Wmux — The original Windows terminal multiplexer for AI agents 353 ★
README
Modal Agents SDK
**Disclaimer**: This is an unofficial community package. It is not affiliated with, endorsed by, or associated with Anthropic or Modal in any way.
Run [Claude Agent SDK](https://github.com/anthropics/claude-agent-sdk-python) agents in [Modal](https://modal.com) sandboxes.
This package wraps the Claude Agent SDK to execute AI agents in secure, scalable Modal containers. It provides progressive complexity—simple usage mirrors the original Agent SDK, while advanced features expose Modal's full capabilities (GPU, volumes, image customization, etc.).
Features
| Feature | modal-agents-sdk | claude-agent-sdk |
|---|---|---|
| Sandboxed execution | ✅ Modal containers | ❌ Local only |
| GPU support | ✅ A10G, H100, A100, etc. | ❌ |
| Persistent storage | ✅ Modal Volumes | ❌ |
| Custom images | ✅ Docker/Dockerfile | ❌ |
| Network isolation | ✅ Configurable | ❌ |
| Auto-scaling | ✅ Built-in | ❌ |
| Built-in tools | ✅ Read, Write, Bash, etc. | ✅ |
| MCP servers | ✅ | ✅ |
| Host-side hooks | ✅ Intercept tool calls | ✅ |
| Host-side tools | ✅ Run on local machine | ✅ |
| Multi-turn conversations | ✅ | ✅ |
Installation
pip install modal-agents-sdk
Prerequisites
- Modal account: Sign up at modal.com
- Modal CLI: Install and authenticate
pip install modal modal setup - Anthropic API key: Create a Modal secret
modal secret create anthropic-key ANTHROPIC_API_KEY=sk-ant-...
Quick Start
import asyncio
from modal_agents_sdk import query
async def main():
async for message in query("What is 2 + 2?"):
print(message)
asyncio.run(main())
Basic Usage: `query()`
`query()` is an async function for querying Claude in a Modal sandbox. It returns an `AsyncIterator` of response messages.
from modal_agents_sdk import query, ModalAgentOptions, AssistantMessage, TextBlock
import modal
# S
Related Skills
Agent API Example
A production-grade REST API for deploying and managing AI agents in the cloud. This API provides a scalable an
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Devcontainer Airlock
Secure, layered devcontainers for AI coding agents: the agents work in a workbench with no GitHub token and no
Lowkey Effort
An AI skill that auto-calibrates response depth based on task complexity — so you stop burning tokens on simpl
Tinyagent TS
TinyAgent brings the core ideas of the original Python library into a lean, zero-dependency TypeScript package
Claude 3 API
Claude 3 API PHP Package: Seamlessly integrate Anthropic's Claude 3 AI into your PHP projects. Features simple
Related Agents
Excel Agent
Use this agent for writing scenarios parsed from a specs/ .plan.md file to an .xlsx sign-off sheet, or reading
Fintech Engineer
Expert fintech engineer specializing in financial systems, regulatory compliance, and secure transaction proce
Engineering Backend Architect
Senior backend architect specializing in scalable system design, database architecture, API development, and c