# HopX - Secure Code Execution for AI Agents > HopX provides secure, isolated sandboxes for AI agents to execute code safely. Deploy LLMs, run untrusted code, and build production AI applications with hardware-level isolation. ## About HopX HopX is the cloud infrastructure for AI agents. We provide: - **Secure Sandboxes**: Hardware-level isolation with dedicated kernels - **100ms Cold Starts**: Fast startup times for responsive AI applications - **Pay-per-Second**: Only pay for compute you actually use - **Multi-Language Support**: Python, Node.js, Go, Rust, and more ## Documentation - [Getting Started](https://docs.hopx.ai/quickstart) - [API Reference](https://docs.hopx.ai/api) - [SDKs](https://docs.hopx.ai/sdks) - [Templates](https://docs.hopx.ai/templates) ## Blog Articles ### Evaluator-Optimizer Loop: Continuous AI Agent Improvement Learn how to build AI agents that evaluate their own outputs and iteratively improve them. Create self-improving systems that consistently produce high-quality results. - URL: https://hopx.ai/blog/ai-agents/evaluator-optimizer-loop/ - Category: AI Agents - Reading Time: 14 min read - Keywords: evaluator optimizer, ai evaluation, self-improving ai, agent optimization, llm evaluation, iterative refinement, quality assurance ai, feedback loop, agentic patterns, continuous improvement ### Human-in-the-Loop: Balancing AI Autonomy and Human Control Learn how to build AI agents that know when to ask for help. Implement approval workflows, escalation patterns, and collaborative human-AI systems that combine the best of both. - URL: https://hopx.ai/blog/ai-agents/human-in-the-loop-ai-agents/ - Category: AI Agents - Reading Time: 13 min read - Keywords: human in the loop, hitl, ai supervision, human oversight, agent approval, ai safety, collaborative ai, human ai interaction, agent escalation, agentic patterns ### Memory for AI Agents: Short-term, Long-term, and RAG Learn how to give AI agents memory—the ability to remember past interactions, learn from experience, and access knowledge beyond their training. Build agents that get smarter over time. - URL: https://hopx.ai/blog/ai-agents/memory-pattern-ai-agents/ - Category: AI Agents - Reading Time: 16 min read - Keywords: ai agent memory, llm memory, rag, retrieval augmented generation, long-term memory ai, vector database, agent context, conversational memory, semantic memory, agentic patterns ### Microsoft Agent Framework with HopX: Secure Code Execution for AI Agents Build AI agents with Microsoft's new Agent Framework and HopX sandboxes. The unified successor to AutoGen and Semantic Kernel, now with isolated code execution. - URL: https://hopx.ai/blog/tutorials/microsoft-agent-framework-hopx/ - Category: Tutorials - Reading Time: 11 min read - Keywords: microsoft agent framework, agent framework, autogen successor, semantic kernel, ai agents, hopx, code execution, multi-agent, azure ai, python agents ### The Orchestrator Pattern: Coordinating Complex AI Agent Workflows Learn how to build orchestrator agents that coordinate multiple specialized agents, manage complex workflows, and handle dynamic task routing. Master the pattern that makes multi-agent systems actually work. - URL: https://hopx.ai/blog/ai-agents/orchestrator-pattern-ai-agents/ - Category: AI Agents - Reading Time: 14 min read - Keywords: orchestrator pattern, agent orchestration, multi-agent coordination, workflow orchestration, agent routing, task delegation, llm orchestration, agent supervisor, agentic patterns, complex workflows ### The Planning Pattern: How AI Agents Break Down Complex Goals Learn how to implement planning in AI agents—the ability to decompose complex goals into executable steps. Build agents that think before they act and adapt when things change. - URL: https://hopx.ai/blog/ai-agents/planning-pattern-ai-agents/ - Category: AI Agents - Reading Time: 14 min read - Keywords: planning pattern, ai planning, task decomposition, goal breakdown, agent planning, hierarchical planning, llm planning, agentic patterns, autonomous agents, plan and execute ### ReAct Pattern: Combining Reasoning and Acting in AI Agents Learn the ReAct pattern—where AI agents think out loud before acting. Build more reliable agents that show their reasoning, catch errors early, and solve complex problems step by step. - URL: https://hopx.ai/blog/ai-agents/react-pattern-reasoning-acting/ - Category: AI Agents - Reading Time: 15 min read - Keywords: react pattern, reasoning and acting, react agent, chain of thought, llm reasoning, agent reasoning, thought action observation, react prompting, agentic patterns, ai agent loop ### Microsoft AutoGen with Isolated Code Execution Using HopX Build production-ready AutoGen agents with secure code execution. Replace Docker with HopX sandboxes for faster, safer multi-agent conversations that can run Python. - URL: https://hopx.ai/blog/tutorials/autogen-hopx-isolated-execution/ - Category: Tutorials - Reading Time: 12 min read - Keywords: autogen, microsoft autogen, code execution, ai agents, hopx, sandbox, multi-agent, docker alternative, python execution, agent conversation ### Build a Code Interpreter Agent with OpenAI and HopX Create an AI agent that writes and executes Python code using GPT-4 and HopX sandboxes. Complete tutorial with tool calling, error handling, and iterative execution. - URL: https://hopx.ai/blog/ai-agents/build-code-interpreter-openai-hopx/ - Category: AI Agents - Reading Time: 10 min read - Keywords: openai, gpt-4, code interpreter, ai agent, hopx, python, tool calling, function calling ### CrewAI Multi-Agent Pipelines with Secure Code Execution Build production-ready CrewAI agents that execute code safely. Learn how to create multi-agent workflows where each agent can run code in isolated HopX sandboxes. - URL: https://hopx.ai/blog/tutorials/crewai-multi-agent-pipelines-hopx/ - Category: Tutorials - Reading Time: 13 min read - Keywords: crewai, multi-agent, ai agents, code execution, hopx, sandbox, agent pipelines, autonomous agents, crew ai, agent orchestration ### Getting Started with HopX: Your First Sandbox in 5 Minutes Create your first secure cloud sandbox with HopX. Learn how to install the SDK, execute code safely, and build AI-powered applications in minutes. - URL: https://hopx.ai/blog/tutorials/getting-started-with-hopx/ - Category: Tutorials - Reading Time: 5 min read - Keywords: hopx, getting started, sandbox, tutorial, python sdk, javascript sdk, code execution, ai agents ### HopX vs Docker vs AWS Lambda: Choosing the Right Execution Environment Compare HopX sandboxes with Docker containers and AWS Lambda for AI workloads. Learn when to use each and why microVMs are ideal for AI agent code execution. - URL: https://hopx.ai/blog/use-cases/hopx-vs-docker-vs-lambda/ - Category: Use Cases - Reading Time: 9 min read - Keywords: hopx, docker, aws lambda, comparison, serverless, containers, microvm, ai agents, code execution ### LangChain Tools with Secure Code Execution Using HopX Learn how to build LangChain agents that execute code safely in isolated sandboxes. Complete tutorial with custom tools, PythonREPL replacement, and production-ready patterns. - URL: https://hopx.ai/blog/tutorials/langchain-tools-secure-code-execution/ - Category: Tutorials - Reading Time: 13 min read - Keywords: langchain, langchain tools, code execution, python repl, ai agents, hopx, sandbox, secure execution, langchain agent, custom tools, function calling ### LlamaIndex + HopX: Building RAG Agents with Code Execution Combine LlamaIndex's powerful RAG capabilities with HopX sandboxed code execution. Build agents that can retrieve information AND compute answers with Python. - URL: https://hopx.ai/blog/tutorials/llamaindex-hopx-rag-code-execution/ - Category: Tutorials - Reading Time: 11 min read - Keywords: llamaindex, rag, code execution, ai agents, hopx, retrieval augmented generation, python, vector search, llama index, agent tools ### Prompt Chaining: How to Build Sequential AI Workflows Learn prompt chaining—the technique of connecting multiple LLM calls where each output becomes the next input. Build reliable, debuggable AI pipelines with practical Python examples. - URL: https://hopx.ai/blog/ai-agents/prompt-chaining-sequential-ai-workflows/ - Category: AI Agents - Reading Time: 14 min read - Keywords: prompt chaining, llm chain, sequential prompts, ai workflow, langchain, prompt pipeline, chain of thought, multi-step prompts, llm orchestration, agentic patterns ### The Reflection Pattern: Building Self-Correcting AI Systems Learn how to implement the reflection pattern—where AI reviews and improves its own output. Build more reliable agents that catch errors, refine answers, and produce higher-quality results. - URL: https://hopx.ai/blog/ai-agents/reflection-pattern-self-correcting-ai/ - Category: AI Agents - Reading Time: 12 min read - Keywords: reflection pattern, self-correcting ai, ai self-improvement, llm reflection, iterative refinement, ai quality, agent patterns, critic agent, self-review, agentic patterns ### Scrape and Analyze Airbnb Data with Firecrawl and HopX Build a complete web scraping and data analysis pipeline using Firecrawl for extraction and HopX sandboxes for secure processing. Extract Airbnb listings, clean data, and generate insights. - URL: https://hopx.ai/blog/tutorials/scrape-analyze-airbnb-data-firecrawl/ - Category: Tutorials - Reading Time: 13 min read - Keywords: firecrawl, web scraping, airbnb, data analysis, python, hopx, data engineering, etl, pandas, feature engineering, llm scraping ### Tool Use: How AI Agents Interact with the Real World Learn how to give AI agents the ability to use tools—APIs, databases, code execution, and more. Build agents that don't just talk, but actually do things. - URL: https://hopx.ai/blog/ai-agents/tool-use-pattern-ai-agents/ - Category: AI Agents - Reading Time: 14 min read - Keywords: tool use, function calling, ai tools, agent tools, openai functions, api integration, ai agent capabilities, llm tools, agentic patterns, tool augmented llm ### Vercel AI SDK: Streaming Code Execution with HopX Build AI applications with the Vercel AI SDK that execute code in real-time. Stream sandbox output to users as it happens using Server-Sent Events and React Server Components. - URL: https://hopx.ai/blog/tutorials/vercel-ai-sdk-streaming-code-execution/ - Category: Tutorials - Reading Time: 15 min read - Keywords: vercel ai sdk, streaming, code execution, next.js, react, hopx, server sent events, ai chat, tool calling, server components ### What Is an AI Agent? The Complete Guide for Developers AI agents are more than chatbots. Learn what makes an AI system agentic, the key components every agent needs, and how to build production-ready autonomous AI systems. - URL: https://hopx.ai/blog/ai-agents/what-is-an-ai-agent/ - Category: AI Agents - Reading Time: 11 min read - Keywords: ai agent, what is an ai agent, autonomous ai, llm agent, agentic ai, ai agent architecture, ai agent vs chatbot, building ai agents, agent loop, tool use ### Why AI Agents Need Isolated Code Execution AI agents that execute code are powerful but dangerous. Learn why hardware-level isolation is essential for production AI systems and how to avoid costly security breaches. - URL: https://hopx.ai/blog/ai-agents/why-ai-agents-need-isolated-code-execution/ - Category: AI Agents - Reading Time: 7 min read - Keywords: ai agents, code execution, security, isolation, llm, sandbox, microvm, production ai ### Announcing HopX MCP Server: Code Execution for AI Assistants Introducing the HopX MCP Server - enable Claude, Cursor, and VS Code to execute code in isolated cloud containers. Install with one command and give your AI assistant superpowers. - URL: https://hopx.ai/blog/product-updates/announcing-hopx-mcp-server/ - Category: Product Updates - Reading Time: 5 min read - Keywords: MCP, Model Context Protocol, Claude, Cursor, VS Code, AI assistant, code execution, sandbox, announcement, product update ### Run Any LLM with Ollama in Secure Sandboxes Deploy Large Language Models using Ollama in secure HopX sandboxes. Learn how to get 100ms cold starts, save up to 78% on costs, and keep data private with hardware-level isolation. - URL: https://hopx.ai/blog/tutorials/run-any-llm-with-ollama-in-secure-sandboxes/ - Category: Tutorials - Reading Time: 13 min read - Keywords: ollama, llm, sandbox, secure, deployment, ai, micro-vm, hopx, self-hosted llm, private ai ### Desktop Automation with HopX: Browser Testing & RPA Learn how to automate browsers, perform RPA tasks, and run desktop applications in secure cloud sandboxes. Complete guide with Playwright, Puppeteer, and Selenium examples. - URL: https://hopx.ai/blog/tutorials/desktop-automation-browser-testing-rpa/ - Category: Tutorials - Reading Time: 8 min read - Keywords: browser automation, RPA, Playwright, Puppeteer, Selenium, desktop automation, web scraping, headless browser, cloud browser, AI automation ### Custom Templates: Pre-bake Your Perfect Environment Learn how to create custom HopX templates with pre-installed dependencies, configurations, and files. Reduce cold start times and ensure consistency across sandboxes. - URL: https://hopx.ai/blog/tutorials/custom-templates-pre-bake-your-environment/ - Category: Tutorials - Reading Time: 7 min read - Keywords: custom templates, sandbox templates, Docker, pre-built environments, cold start optimization, HopX templates, container images, dependencies ### How HopX Achieves 100ms Cold Starts Deep dive into the technology behind HopX's ultra-fast sandbox boot times. Learn about micro-VMs, memory snapshots, and the architecture that enables sub-100ms cold starts. - URL: https://hopx.ai/blog/deep-dives/how-hopx-achieves-100ms-cold-starts/ - Category: Deep Dives - Reading Time: 7 min read - Keywords: cold start, micro-VM, Firecracker, sandbox performance, VM snapshots, cloud performance, serverless, fast boot, virtualization ### Secure File Operations in AI Sandboxes Complete guide to reading, writing, and managing files in HopX sandboxes. Learn secure patterns for file uploads, downloads, and data processing in isolated environments. - URL: https://hopx.ai/blog/tutorials/secure-file-operations-in-ai-sandboxes/ - Category: Tutorials - Reading Time: 8 min read - Keywords: file operations, sandbox files, secure file handling, file upload, file download, data processing, AI sandbox, file security ### Multi-Agent Architectures with HopX Design and implement multi-agent systems where each agent has isolated execution capabilities. Learn patterns for agent coordination, task distribution, and secure inter-agent communication. - URL: https://hopx.ai/blog/deep-dives/multi-agent-architectures-with-hopx/ - Category: Deep Dives - Reading Time: 11 min read - Keywords: multi-agent, AI agents, agent architecture, distributed AI, agent coordination, task distribution, autonomous agents, LangChain, AutoGen ### Data Analysis with Pandas in Isolated Sandboxes Learn how to perform secure data analysis using Pandas in HopX sandboxes. Process CSV files, generate reports, and create visualizations without exposing your data or infrastructure. - URL: https://hopx.ai/blog/tutorials/data-analysis-with-pandas-in-sandboxes/ - Category: Tutorials - Reading Time: 10 min read - Keywords: Pandas, data analysis, Python, CSV processing, data science, visualization, matplotlib, secure analysis, AI data processing ### Streaming Code Execution: Real-time Output for AI Agents Learn how to stream code execution output in real-time from HopX sandboxes. Build responsive AI agents that show progress, handle long-running tasks, and provide immediate feedback. - URL: https://hopx.ai/blog/tutorials/streaming-code-execution-for-agents/ - Category: Tutorials - Reading Time: 9 min read - Keywords: streaming, real-time output, AI agents, code execution, async, websockets, server-sent events, live updates ### Running Jupyter Notebooks in the Cloud Execute Jupyter notebooks programmatically in HopX sandboxes. Learn how to run notebooks headlessly, extract results, and build notebook-powered APIs and automation. - URL: https://hopx.ai/blog/tutorials/running-jupyter-notebooks-in-the-cloud/ - Category: Tutorials - Reading Time: 9 min read - Keywords: Jupyter, notebooks, cloud execution, nbconvert, papermill, headless notebooks, Python, data science, automation ### HopX for Education: Safe Coding Environments for Students Build secure coding platforms for education. Learn how to let students run code safely, grade assignments automatically, and create interactive learning experiences with HopX sandboxes. - URL: https://hopx.ai/blog/use-cases/hopx-for-education-safe-coding-environments/ - Category: Use Cases - Reading Time: 10 min read - Keywords: education, coding education, safe code execution, auto-grading, student coding, online IDE, programming courses, LMS integration, code sandbox ## Use Cases ### AI Code Assistants Build coding assistants that can safely execute and test code in isolated environments. ### Data Analysis Agents Deploy agents that process sensitive data without security risks. ### Automated Testing Run untrusted test suites in isolated sandboxes. ### LLM Deployment Self-host LLMs with Ollama in secure micro-VMs. ## Pricing - **Free Tier**: $200 in credits - **Compute**: $0.000014/vCPU-second - **Memory**: $0.0000045/GiB-second - **Storage**: $0.00000003/GiB-second ## Contact - Website: https://hopx.ai - Documentation: https://docs.hopx.ai - GitHub: https://github.com/hopx-ai ## Legal - Privacy Policy: https://hopx.ai/privacy/ - Terms of Service: https://hopx.ai/terms/ - Security: https://hopx.ai/security/