Tutorials7 min read

NemoClaw vs Microsoft Agent Framework: Which to Use

NemoClaw sandboxes ready-made agents like OpenClaw; Microsoft Agent Framework is an SDK for building your own. How they differ, with install steps and code.

By AI Agents DirectoryLast checked
Computer screen showing code

NVIDIA NemoClaw and Microsoft Agent Framework are often compared, but they solve different problems. NemoClaw runs agents that already exist inside a locked-down sandbox. Microsoft Agent Framework is an SDK you use to write agents. This guide covers what each one does, how to install it and when it is the right choice. Every fact comes from the official documentation and repositories linked in each section.

At a glance

NVIDIA NemoClawMicrosoft Agent Framework
What it isReference stack for running agents in OpenShell sandboxesSDK for building agents and multi-agent workflows
You bringA supported agent: OpenClaw (default), Hermes or LangChain Deep Agents CodeYour own agent code
How you use itThe NemoClaw CLI and its agent-specific aliasesLibrary code in .NET, Python or Go
Model providersHosted and local providers routed through OpenShellMicrosoft Foundry, Anthropic, Azure OpenAI, OpenAI, Ollama and more
MaturityAlpha, early previewFull support in Python and .NET; Go in public preview
LicenceApache-2.0MIT
Sourcegithub.com/NVIDIA/NemoClawgithub.com/microsoft/agent-framework

What NVIDIA NemoClaw is

NemoClaw is NVIDIA’s open-source starting point for putting an AI agent inside an OpenShell sandbox so it can run with guardrails. The NemoClaw overview describes three pieces: a command-line tool on the host, a versioned blueprint that defines the sandbox, and a layer of per-agent glue. Underneath, OpenShell’s gateway creates and tears down sandboxes, routes model calls, holds credentials and enforces policy.

It does not ship its own agent. Instead, it packages one of three existing runtimes into a sandbox image built for that agent: OpenClaw (the default), Hermes, or LangChain Deep Agents Code.

What it adds around that agent:

  • Sandboxing: network policy, filesystem policy and process controls, enforced through OpenShell.
  • Egress control: YAML network policy and presets. OpenShell blocks destinations that are not approved and surfaces the request for an operator to review.
  • Credential custody: inference credentials and managed MCP bearer values stay outside the sandbox.
  • MCP servers: authenticated HTTPS Streamable HTTP MCP servers for every supported agent runtime.
  • Web search: a Brave Search or Tavily Search path, with the service key kept outside the sandbox.
  • Lifecycle: readiness checks, sandbox creation and updates, status and logs, and rebuilds that keep the agent’s home directory.

Install NemoClaw

The installer from NVIDIA’s NemoClaw page sets up OpenClaw by default. Set NEMOCLAW_AGENT to choose another runtime:

# OpenClaw (default)
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash

# Hermes
curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_AGENT=hermes bash

# LangChain Deep Agents Code
curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_AGENT=langchain-deepagents-code bash

Read the script before piping it to bash, and check the prerequisites page first. The primary tested platforms are Linux and DGX Spark. The documentation lists limitations for macOS, WSL, DGX Station and headless Linux servers.

Limits to know

NVIDIA is explicit about scope: the overview calls it an “early-preview reference stack” meant for one trusted operator on one machine. You don’t get a managed cloud service, isolation between several teams on one install, or identity management for an organisation. The repository calls it an alpha project, with maintainers reviewing issues on a best-effort basis.

What Microsoft Agent Framework is

Microsoft Agent Framework is a library for writing single agents and systems of cooperating agents, available for .NET, Python and Go. Microsoft presents it as the “direct successor” to Semantic Kernel and AutoGen, from the teams behind both: AutoGen’s lightweight way of defining agents, plus Semantic Kernel’s production features such as session state, typing, middleware and telemetry.

It covers four areas:

  • Agents: LLM-backed agents that call tools and MCP servers. Supported providers include Microsoft Foundry, Anthropic, Azure OpenAI, OpenAI and Ollama.
  • Harness Agent: an opinionated agent for long, multi-step tasks, with planning, todo tracking, context compaction, file access and memory.
  • Workflows: you wire agents and plain functions together, either as code or as a graph, so the execution order is spelled out rather than left to the model. The repository lists sequential, concurrent, handoff and group-collaboration patterns, plus checkpointing, streaming, human-in-the-loop and time-travel.
  • Integrations: model providers, tools, context providers, middleware, evaluation services and UI frameworks.

Other features from the repository:

  • built-in OpenTelemetry tracing;
  • declarative agents defined in YAML;
  • hosting on Foundry-hosted infrastructure;
  • DevUI, an interactive UI for testing and debugging agents.

The Go version is a public preview that requires Go 1.26+, and it still lacks YAML-declared agents, CodeAct and functional workflows.

Install and run a first agent

pip install agent-framework
# or, for .NET
dotnet add package Microsoft.Agents.AI.Foundry --prerelease

The official Python quickstart creates an agent backed by Microsoft Foundry. It authenticates with the Azure CLI, so run az login first:

import asyncio
from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential


async def main():
    agent = Agent(
      client=FoundryChatClient(
          credential=AzureCliCredential(),
      ),
      name="HaikuAgent",
      instructions="You are an upbeat assistant that writes beautifully.",
    )

    print(await agent.run("Write a haiku about Microsoft Agent Framework."))

if __name__ == "__main__":
    asyncio.run(main())

The Foundry project endpoint and model come from environment variables, or you can pass them to FoundryChatClient.

Which one should you use?

Ask whether you are writing an agent or running one.

Choose Microsoft Agent Framework if:

  • you are building your own agent or a multi-agent workflow in Python or .NET;
  • you need explicit orchestration (sequential, concurrent, handoff), with checkpoints and human approval steps;
  • you are moving off Semantic Kernel or AutoGen, since Microsoft positions it as their successor;
  • you want to choose between Foundry, Azure OpenAI, OpenAI, Anthropic or local Ollama models.

Choose NemoClaw if:

  • you want to run OpenClaw, Hermes or Deep Agents Code as an always-on agent and need limits on what it can reach;
  • you need egress approval, credentials kept out of the agent’s environment and a repeatable sandbox you can rebuild;
  • you are one operator on one Linux or DGX Spark host. NemoClaw is not built for multi-tenant teams.

Using both: they sit at different layers. NemoClaw’s supported runtimes are OpenClaw, Hermes and Deep Agents Code, so an agent you write with Microsoft Agent Framework does not run in NemoClaw out of the box. Check NemoClaw’s Platform Support page before planning on it.

#AI agents#Agent frameworks#NVIDIA NemoClaw#Microsoft Agent Framework
AI

Written by AI Agents Directory

Editorial team

Facts in this guide are checked against official documentation and repositories, which are linked in the article.