Introduction
In this tutorial, you'll learn how to set up and use NemoClaw, an open-source AI agent platform developed by NVIDIA. NemoClaw builds upon the popular OpenClaw framework and adds enterprise-grade security features. This tutorial will guide you through installing NemoClaw, configuring basic security settings, and running a simple AI agent that respects privacy guardrails.
By the end of this tutorial, you'll have a working local AI agent that can perform basic tasks while maintaining user privacy and security.
Prerequisites
Before starting this tutorial, ensure you have:
- A computer running Windows, macOS, or Linux
- Python 3.8 or higher installed
- At least 8GB of RAM (16GB recommended)
- Basic understanding of command-line interfaces
- Internet connection for downloading dependencies
Step-by-Step Instructions
1. Install Python and pip
First, verify that Python is installed on your system. Open a terminal or command prompt and run:
python --version
If Python is not installed or the version is below 3.8, download and install Python from python.org. Make sure to check "Add Python to PATH" during installation.
2. Create a Virtual Environment
To avoid conflicts with other Python projects, create a dedicated virtual environment:
python -m venv nemoclaw_env
source nemoclaw_env/bin/activate # On Windows: nemoclaw_env\Scripts\activate
This step isolates your NemoClaw installation from other Python packages on your system.
3. Install NemoClaw
With the virtual environment activated, install NemoClaw using pip:
pip install nemoclaw
This command downloads and installs the NemoClaw package along with its dependencies. NemoClaw includes built-in security features and privacy guardrails.
4. Initialize NemoClaw Configuration
Run the following command to set up the initial configuration:
nemoclaw init
This creates a configuration file that defines security settings and privacy rules for your AI agent. The configuration includes default guardrails that prevent the agent from accessing sensitive data or performing harmful actions.
5. Configure Security Settings
Open the generated configuration file:
cat ~/.nemoclaw/config.yaml
You'll see a file similar to this:
security:
enable_privacy_guardrails: true
restrict_data_access: true
enforce_local_processing: true
audit_logs: true
privacy:
data_minimization: true
anonymize_input: true
encrypt_storage: true
These settings ensure that all AI processing happens locally, data is encrypted, and privacy rules are enforced.
6. Create a Simple AI Agent
Create a new Python file called simple_agent.py:
import nemoclaw
# Initialize the agent with default security settings
agent = nemoclaw.Agent()
# Define a simple task
prompt = "What is the weather like today?"
# Run the task through the agent
response = agent.run(prompt)
print(f"Agent response: {response}")
This script creates an AI agent that follows all configured security and privacy rules. The agent processes the prompt locally and respects the privacy guardrails.
7. Run Your AI Agent
Execute your agent script:
python simple_agent.py
The agent will process your query while maintaining security and privacy. You'll see output showing the agent's response along with security logs.
8. Test Privacy Guardrails
Try running a query that might violate privacy rules:
prompt = "What is my email address?"
response = agent.run(prompt)
print(f"Agent response: {response}")
The agent should respond with a message indicating that it cannot access personal data, demonstrating the privacy guardrails in action.
9. View Security Logs
Check the security logs generated by NemoClaw:
cat ~/.nemoclaw/logs/security.log
This file shows all security events, including access attempts and privacy rule violations, helping you monitor the agent's behavior.
10. Customize Your Agent
Modify your agent configuration to add custom security rules:
import nemoclaw
# Create a custom configuration
config = {
"security": {
"enable_privacy_guardrails": True,
"restrict_data_access": True,
"enforce_local_processing": True,
"custom_rules": ["no_personal_data_access"]
}
}
# Initialize agent with custom config
agent = nemoclaw.Agent(config=config)
This approach lets you fine-tune security settings for specific use cases while maintaining the core privacy protections.
Summary
In this tutorial, you've learned how to install and use NemoClaw, an enterprise-grade AI platform with built-in security and privacy features. You've created a simple AI agent that respects privacy guardrails and can process tasks locally without exposing sensitive data.
Key takeaways include:
- Setting up a virtual environment to isolate dependencies
- Installing NemoClaw with pip
- Initializing and configuring security settings
- Running AI agents that follow privacy rules
- Monitoring security logs for compliance
This foundation allows you to build more complex AI applications while maintaining enterprise-grade security and privacy standards.



