Instruction file imported from esthor/NeMo-Agent-Toolkit (
.cursor/rules/nat-setup/nat-toolkit-installation.mdc). Copyright stays with the author.
NeMo Agent Toolkit Installation Guide
This rule provides comprehensive instructions for installing NeMo Agent Toolkit from source, including prerequisites, installation options, and verification steps.
Prerequisites Check
Before installing NeMo Agent Toolkit, verify all prerequisites are installed:
-
Check Git installation:
git --version -
Check Git LFS installation:
git lfs version -
Check uv installation:
uv --version
If any prerequisite is missing, install them:
Installation Steps
1. Clone Repository and Setup
# Assuming the repository is cloned in the current directory. If not, ask user to input the path to the repository.
cd nemo-agent-toolkit
# Initialize, fetch, and update submodules
git submodule update --init --recursive
# Fetch LFS files
git lfs install
git lfs fetch
git lfs pull
2. Create Python Environment
# Create virtual environment with seed packages
uv venv --seed .venv
# For specific Python version (if multiple versions available):
uv venv --seed .venv --python 3.11
# or
uv venv --seed .venv --python 3.12
# or
uv venv --seed .venv --python 3.13
# Activate the environment
source .venv/bin/activate
3. Installation Options
Choose the appropriate installation option based on requirements:
Option A: Full Installation (Recommended for Development)
Install with all plugins and developer tools:
uv sync --all-groups --all-extras
Option B: Core Only Installation
Install just the core NeMo Agent Toolkit without plugins:
uv sync
Option C: Core + Specific Plugins
Install core plus individual plugins as needed:
# First install core
uv sync
# Then install specific plugins (examples):
uv pip install -e '.[langchain]'
uv pip install -e '.[llama-index]'
uv pip install -e '.[crewai]'
uv pip install -e '.[mem0ai]'
Option D: Core + Profiling Tools
Install core with profiling dependencies:
uv sync
uv pip install -e '.[profiling]'
Available Plugin Options
When installing specific plugins, these are the available options:
agno- Agno integrationcrewai- CrewAI integrationlangchain- LangChain/LangGraph integrationllama_index- LlamaIndex integrationmem0ai- Mem0 integrationmysql- MySQL database integrationopentelemetry- OpenTelemetry observability integrationphoenix- Phoenix observability integrationragaai- RAGA AI evaluation integrationredis- Redis memory integrations3- AWS S3 object storage integrationsemantic_kernel- Microsoft Semantic Kernel integrationweave- Weights & Biases Weave integrationzep_cloud- Zep Cloud integration
Dependency Groups
When installing dependencies, you can use the following groups:
test- Testing utilitiesprofiling- Profiling tools
Verification Steps
After installation, verify NeMo Agent Toolkit is properly installed:
# Check version
nat --version
# Check help
nat --help
Expected output should show version information and help text without errors.
API Key Setup
For most workflows, set up the NVIDIA API key:
# Set NVIDIA API key (obtain from build.nvidia.com)
export NVIDIA_API_KEY=<your_api_key>
# Optionally add to shell profile for persistence:
echo 'export NVIDIA_API_KEY=<your_api_key>' >> ~/.bashrc
# or for zsh:
echo 'export NVIDIA_API_KEY=<your_api_key>' >> ~/.zshrc
Quick Test - Hello World Example
Create a test workflow to verify installation:
# Create workflow.yaml
cat << 'EOF' > workflow.yaml
functions:
wikipedia_search:
_type: wiki_search
max_results: 2
llms:
nim_llm:
_type: nim
model_name: meta/llama-3.1-70b-instruct
temperature: 0.0
workflow:
_type: react_agent
tool_names: [wikipedia_search]
llm_name: nim_llm
verbose: true
parse_agent_response_max_retries: 3
EOF
# Test the workflow
nat run --config_file workflow.yaml --input "List five subspecies of Aardvarks"
Ready State Checklist
NeMo Agent Toolkit is ready for development when:
-
nat --versionreturns version information -
nat --helpshows command options - NVIDIA_API_KEY environment variable is set
- Virtual environment is activated
- Required plugins are installed for your use case
- Hello world example runs successfully (optional but recommended)
Common Installation Issues
- Python version mismatch: Ensure Python 3.11 or 3.12 or 3.13 is used
- Git LFS not installed: Large files won't download properly
- Submodules not initialized: Some dependencies will be missing
- Virtual environment not activated: Commands may not work
- Missing API key: Most workflows require NVIDIA_API_KEY
Example Installation Commands for Different Use Cases
For LangChain/LangGraph Development:
git clone git@github.com:NVIDIA/NeMo-Agent-Toolkit.git nemo-agent-toolkit && cd nemo-agent-toolkit
git submodule update --init --recursive
git lfs install && git lfs fetch && git lfs pull
uv venv --seed .venv && source .venv/bin/activate
uv sync
uv pip install -e '.[langchain]'
export NVIDIA_API_KEY=<your_key>
nat --version
For Full Development Environment:
git clone git@github.com:NVIDIA/NeMo-Agent-Toolkit.git nemo-agent-toolkit && cd nemo-agent-toolkit
git submodule update --init --recursive
git lfs install && git lfs fetch && git lfs pull
uv venv --seed .venv && source .venv/bin/activate
uv sync --all-groups --all-extras
export NVIDIA_API_KEY=<your_key>
nat --version
For Testing Existing Workflows:
git clone git@github.com:NVIDIA/NeMo-Agent-Toolkit.git nemo-agent-toolkit && cd nemo-agent-toolkit
git submodule update --init --recursive
git lfs install && git lfs fetch && git lfs pull
uv venv --seed .venv && source .venv/bin/activate
uv sync
uv pip install -e examples/simple
export NVIDIA_API_KEY=<your_key>
nat run --config_file=examples/getting_started/simple_web_query/configs/config.yml --input "What is LangSmith"