agentleFS
NVIDIAKnown publisherNVIDIA/NeMo-Agent-Toolkit/.cursor/rules/nat-setup/nat-toolkit-installation.mdc

NeMo-Agent-Toolkit / nat-setup

Cursor rule2.7k starsChanged 16 months agoApache-2.0View on GitHub

Follow these rules when the user's request involves installing, setting up, or configuring NeMo Agent Toolkit or its plugins

  • Reads credentials
  • Installs packages

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 4 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/NeMo-Agent-Toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/NeMo-Agent-Toolkit

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub (15 times).

On GitHub · 15

10 more on GitHub

The file

We split this nat-toolkit-installation.mdc into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before installing NeMo Agent Toolkit, verify all prerequisites are installed:

    line 12
  2. Distinctive:

    If any prerequisite is missing, install them:

    line 29
  3. Very specific:

    When installing specific plugins, refer to the [project.optional-dependencies] section of the root pyproject.toml for the authoritative, …

    line 108
  4. Distinctive:

    When installing dependencies, you can use the following groups:

    line 117
  5. Distinctive:

    After installation, verify NeMo Agent Toolkit is properly installed:

    line 123
  6. Distinctive:

    Create a test workflow to verify installation:

    line 151
  7. Distinctive:

    Python version mismatch: Ensure Python 3.11 or 3.12 or 3.13 is used

    line 192

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
nat-toolkit-installation.mdc
---
description: Follow these rules when the user's request involves installing, setting up, or configuring NeMo Agent Toolkit or its plugins
globs:
alwaysApply: false
---
# 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:

1. **Check Git installation:**
   ```bash
   git --version
   ```

2. **Check Git LFS installation:**
   ```bash
   git lfs version
   ```

3. **Check uv installation:**
   ```bash
   uv --version
   ```

If any prerequisite is missing, install them:
- [Git](mdc:https:/git-scm.com)
- [Git Large File Storage (LFS)](mdc:https:/git-lfs.github.com)
- [uv](mdc:https:/docs.astral.sh/uv/getting-started/installation)

## Installation Steps

### 1. Clone Repository and Setup

```bash
# 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

```bash
# 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 most plugins and developer tools:
```bash
uv sync --all-groups --extra most
```

#### Option B: Core Only Installation
Install just the core NeMo Agent Toolkit without plugins:
```bash
uv sync
```

#### Option C: Core + Specific Plugins
Install core plus individual plugins as needed:
```bash
# 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:
```bash
uv sync
uv pip install -e '.[profiling]'
```

## Available Plugin Options

Inspect the root pyproject.toml file for extras as the following list may be incomplete.

When installing specific plugins, refer to the `[project.optional-dependencies]` section of the root `pyproject.toml` for the authoritative, up-to-date list of available extras/plugins.

To view all options, check the root `pyproject.toml` directly. Here is an example command you can run to see all available plugin options (extras):
```bash
uv pip show nvidia-nat | grep Provides-Extra
```
or simply open `pyproject.toml` and look for entries under `[project.optional-dependencies]`.

## Dependency Groups
When installing dependencies, you can use the following groups:
- `test` - Testing utilities
- `profiling` - Profiling tools

## Verification Steps

After installation, verify NeMo Agent Toolkit is properly installed:

```bash
# 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:

```bash
# 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:

```bash
# Create workflow.yaml
cat << 'EOF' > workflow.yaml
functions:
   wikipedia_search:
      _type: wiki_search
      max_results: 2

llms:
   nim_llm:
      _type: nim
      model_name: nvidia/nemotron-3-super-120b-a12b
      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 --version` returns version information
- [ ] `nat --help` shows 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

1. **Python version mismatch**: Ensure Python 3.11 or 3.12 or 3.13 is used
2. **Git LFS not installed**: Large files won't download properly
3. **Submodules not initialized**: Some dependencies will be missing
4. **Virtual environment not activated**: Commands may not work
5. **Missing API key**: Most workflows require NVIDIA_API_KEY

## Example Installation Commands for Different Use Cases

### For LangChain/LangGraph Development:
```bash
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:
```bash
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 --extra most
export NVIDIA_API_KEY=<your_key>
nat --version
```

### For Testing Existing Workflows:
```bash
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"
```

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.