8000 GitHub - YK-Fu/NAIS · GitHub
[go: up one dir, main page]

Skip to content
YK-FuPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

NAIS

English | 繁體中文

NAIS sets up NVIDIA-focused research projects for Claude Code, Codex, and OpenClaw on Windows, macOS, and Linux.

Features

  • Agent setup and launch: configure agents on the current machine and choose a supported terminal, desktop, or browser interface.
  • NVIDIA skills: browse and install the NVIDIA/skills catalog, with update checks and approved upgrades. Built-in NAIS workflow skills are included in source and Python-package installations.
  • Research workflow: guidance for NVIDIA SDK selection, isolated experiments, reproducibility, and implementation reviews.
  • Compute integration: configure local or cluster execution, with native Taipei-1 tools for login, uploads, remote editors, and job management.
  • Optional integrations: alphaXiv OpenResearch for experiment management, NeMo Switchyard for model routing, and NeMo Relay for observability and provider-reported token usage.

Installation

From source

Open a checkout of this repository and run:

# Windows
.\nais.cmd
# macOS / Linux
./nais.sh

Source setup requires Python 3.11+ and Git. If Python is missing, Windows setup can offer installation through winget; Unix setup can use an existing uv installation. Otherwise, install Python and rerun. Installing missing coding agents requires Node.js LTS/npm. Setup asks for approval before running installers.

Configuration

First launch opens the setup wizard. Start by choosing the Project directory: the folder where NAIS will save .nais/project.toml, install project skills, and launch the agent. Choose your working project rather than the NAIS source folder if you are setting up a separate project.

New and existing projects follow the same questions, with saved answers prefilled when available. Optional questions appear as needed for your choices.

During the setup walkthrough, select Back to revisit the previous question; it is available after the first setting. In checkbox menus such as Agent hosts, highlight Back and press Enter. Text fields offer Enter value / Back, and the skill selection tree has a Back button. Completed settings remain visible above the active prompt; outdated answers are hidden while you revise them. Ctrl+C cancels setup.

Agents and compute

Local runs work on the machine running NAIS; Taipei-1 or Other cluster runs work on the selected cluster.

  • Compute cluster: where experiments should execute. Local uses the machine running NAIS (a laptop, workstation, or server), Taipei-1 uses native TP-1 tools, and Other cluster needs your SSH/access information and the site's execution procedures. This choice does not move the agent or submit a job.
  • Job submission tool: for local or other-cluster targets, choose python/bash for direct execution, slurm for scheduled jobs, or other and provide the submission instructions. Taipei-1 selects its native submission workflow automatically. Site accounts, partitions, and limits need checking before execution.
  • Agent hosts: the applications that run the assistant: Codex, Claude Code, or OpenClaw. Select one or more; this is separate from choosing a model or GPU.
  • Research workspace: Standalone launches the agent directly with NAIS guidance. OpenResearch adds project and experiment management through orx; choose it when OpenResearch should own experiment runs, logs, and submission.

NVIDIA skills

Skills give the agent SDK instructions and workflows; they do not install SDK runtimes. Choose the full NVIDIA catalog, selected by default, browse/search for a subset, or select No NVIDIA skills. The custom picker also accepts an empty selection. Choosing none skips the catalog download and update checks; built-in NAIS workflow skills remain available. Changing the selection removes unselected NAIS-managed NVIDIA skills while preserving custom skills and protecting local edits. Optional launch-time update checks use a 24-hour cache; updates require approval before installation.

Model infrastructure

Choose how the agent's model requests are handled. Leave both integrations off for a basic setup using the agent's existing model and login.

  • NeMo Relay: enables model-traffic observability and reported token usage. Relay alone keeps native model selection and authentication unless you specify a custom upstream URL.
  • NeMo Switchyard: routes requests between models. Choose a routing recipe, such as a single model, planner/worker, or adaptive capable/efficient models. Switchyard currently supports CLI sessions only.
  • Upstream connection and authentication: the provider URL is the model service Switchyard calls; use the agent default or a compatible custom endpoint. API-key mode asks for an environment-variable name, not the secret itself. Codex-only projects can instead use Codex web login after signing in with codex login. No-auth mode is for endpoints that accept unauthenticated requests.
  • Models and route: select the upstream models for the chosen recipe. The public route ID, default nais/research, is the alias the agent calls. Reasoning effort controls each role's requested reasoning level; default keeps the agent/provider choice. Use a custom TOML file for an existing Switchyard deployment.

See the routing guide for recipe choices and custom deployments. Managed proxies support Codex and Claude Code.

Relay observability

Available when Relay is enabled. Choose Disabled for no trace export, Local to save traces locally, OpenTelemetry collector to send them to your collector, or Both. Collector modes ask for its endpoint and an optional credential environment-variable name. Full prompt/response capture is a separate opt-in; leave it off for metadata only. Reported token accounting remains available without trace export.

Desktop shortcut

On a graphical desktop, optionally create a shortcut that opens NAIS's terminal launch menu for this project. It does not select the agent's desktop interface.

Review and apply

At Apply this configuration?, choose:

  • Review details to see settings and their current values. Select an answer to edit it directly. Edit prompts have no Back option; confirming the answer returns to the updated details. Unchanged answers are retained, and newly required fields are prompted as needed. Select Done to return to Apply.
  • Apply to save .nais/project.toml and proceed with installation.
  • Cancel to leave the proposed configuration unapplied.

Run the launcher again after setup to start an agent and choose a supported interface. To reconfigure later, run .\nais.cmd configure on Windows or ./nais.sh configure on macOS/Linux.

Common commands

Append these commands to your launcher:

Command Purpose
start Choose an agent and interface
start --ui cli Launch a terminal session
configure Walk through project settings and review changes
doctor Check configuration and dependencies
skills list --search "dataframe GPU" Search the skills catalog
skills check Check for skill updates
study init my-study Create a study folder
uninstall Remove managed files while preserving studies and configuration

For example, run .\nais.cmd doctor or ./nais.sh doctor. With no arguments, the launcher opens setup or the launch menu.

Documentation

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0