Skip to main content
The np command-line interface lets you manage compute nodes, SSH public keys, and authentication directly from your terminal.

Installation

You can install the np CLI using bash.
uv installs np into an isolated environment without modifying system Python packages.

Global Options

The np CLI supports global options that apply to all subcommands.

Debug Logging

To output detailed diagnostic logs during command execution, pass the --debug flag before the subcommand:

Output Formatting

Commands that list or display resources support output formatting via the --format (-f) option:
  • table: Render formatted interactive tables (default).
  • json: Return raw structured JSON output for scripting and pipe processing.

Configuration

The CLI stores non-sensitive configuration settings (such as base_url) in:
API keys are stored separately in your operating system’s secure keyring service (nodepick-cli).

Environment Variables

You can also configure CLI behavior using the following environment variables:

Authentication (np auth)

Use np auth commands to store, test, and remove API authentication credentials.

Configure Credentials (np auth configure)

Save your API key securely in the OS keyring and set an optional base URL. If you don’t have an API key yet:
  1. Register at nodepick.ai and log in.
  2. Set up your credit card in the dashboard.
  3. In the left-hand navigation, open Developer, then go to API Keys.
  4. Click Generate, give the key a name, and copy and save the key immediately — it won’t be shown again.
Configure the CLI by saving your API key securely in the OS keyring. When prompted, enter your API key:
You can also set the NODEPICK_API_KEY environment variable in your shell or CI environment to authenticate without storing credentials in the keyring.

Options

Examples


Test Access (np auth test)

Verify your stored API key against the nodepick.ai API and display your account details.

Output Information

  • Authentication status: Confirms valid API access.
  • User email: Account email associated with the key.
  • Organization: Associated organization name.
  • Base URL: Target API base URL.
  • Key source: Indicates whether credentials came from OS keyring or env var NODEPICK_API_KEY.

Example Output


Clear Credentials (np auth clear)

Remove the stored API key from your OS keyring.
Clearing credentials removes the stored key from your local OS keyring. You will need to run np auth configure or set NODEPICK_API_KEY before running subsequent CLI commands.

AI Agent Integration (np ai mcp)

Configure Model Context Protocol (MCP) servers on AI development agents to interact with your compute nodes.

Configure MCP Server (np ai mcp configure)

Register the MCP server endpoints of one or more compute nodes into your AI agent’s configuration using HTTP stream transport with self-signed certificate verification bypassed.

Arguments

Examples


Next Steps

Manage Nodes

Learn how to list, create, boot, shutdown, reboot, inspect, and delete compute nodes.

SSH Keys

Register public SSH keys for automatic injection into new compute nodes.