{"data":{"slug":"smolagents","name":"smolagents","tagline":"Apache-2.0 minimal code-agent framework from Hugging Face","category":"agents","categoryName":"AI Agents","url":"https://huggingface.co/docs/smolagents","github":"https://github.com/huggingface/smolagents","pricing":"open-source","hook":"smolagents is the few-thousand-line agent kit when LangGraph is the heavy graph runtime and you want agents that write Python to call tools.","whatsGood":"Apache-2.0. CodeAgent (executable Python) + ToolCallingAgent (JSON). Hub-native tools, multi-agent orchestration, optional E2B sandbox. First-class HF model routing. Tiny core you can read.","theCatch":"Minimalist — not Temporal durable workflows or production multi-tenant agent platform. Code execution needs sandbox discipline. Vs CrewAI/PydanticAI: HF Hub gravity, less enterprise packaging. You own evals, memory, and deploy.","verdict":"Apache-2.0 code-first agents. Free library; sandbox/ops are yours.","addedAt":"2026-09-04","featured":false,"domain":"AI Agents","subSpecialty":"Orchestration","capabilities":["agents","code","tools"],"surfaces":["Self-host"],"ecosystem":["Python"],"licenseModel":"Apache-2.0","githubStars":29153},"related":[{"slug":"claude-code","name":"Claude Code","tagline":"Terminal-first coding agent with deep repository context"},{"slug":"cursor","name":"Cursor","tagline":"The AI-first code editor that understands your codebase"},{"slug":"devin","name":"Devin","tagline":"Autonomous AI engineer for defined engineering tasks"},{"slug":"stagehand","name":"Stagehand","tagline":"AI-native browser automation that mixes code and natural language"},{"slug":"browser-use","name":"Browser Use","tagline":"Open-source framework for LLM-driven browser agents"}],"links":{"self":"/api/gems/smolagents","html":"/gems/smolagents","markdown":"/gems/smolagents.md","category":"/api/gems?category=agents","categoryPage":"/stacks/agents"}}