np command-line interface lets you manage compute nodes, SSH public keys, and authentication directly from your terminal.
Installation
You can install thenp CLI using bash.
uv installs np into an isolated environment without modifying system Python packages.Global Options
Thenp 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 asbase_url) in:
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:
- Register at nodepick.ai and log in.
- Set up your credit card in the dashboard.
- In the left-hand navigation, open Developer, then go to API Keys.
- Click Generate, give the key a name, and copy and save the key immediately — it won’t be shown again.
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 keyringorenv var NODEPICK_API_KEY.
Example Output
Clear Credentials (np auth clear)
Remove the stored API key from your OS keyring.
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.