np command-line tool is our recommended method for deploying and managing compute nodes directly from your terminal.
Table of Contents
Using CLI np (Recommended)
Follow these steps to install the CLI, authenticate your account, provision your first node, and connect via SSH.
1
Install the CLI
Install the
np CLI using uv (recommended) or pip. Learn more about uv:2
Authenticate Your Account
If you don’t have an API key yet, create one first:When prompted, enter your API key. Alternatively, you can set the For more details on API key management, see Authentication.
- 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.
np auth configure:NODEPICK_API_KEY environment variable in your shell.Verify access and display your account details:3
Add an SSH Public Key (Recommended)
Generate and Register an SSH public key so it is automatically injected into new nodes:
4
Deploy Your First Node
Create a new compute node with a single command:Your node is provisioned and ready in seconds.
5
Connect via SSH
List your nodes to retrieve the SSH connection command:Alternatively, inspect detailed information for your specific node:Run the printed SSH command to connect to your node:For compute nodes behind a private IP address, the
-p is required.6
Clean Up
When you finish, delete the node to terminate billing immediately:
CLI Cheat Sheet
Quick Start with Python SDK
If you prefer managing compute programmatically in your code or automated pipelines, use our Python SDK or HTTP API.1
Install the Python SDK
Install the nodepick.ai Python SDK using pip:The SDK is compatible with Python 3.8 and above.
2
Create Your First Node
Initialize the client with your API key and call Your node is live within seconds of this call returning.
create_node(). The method returns a node object containing the node’s ID and initial status:3
Connect via SSH
Call Use the SSH connection command from You will land on your dedicated Linux node. Use
get_node_details() with your node ID to retrieve SSH credentials:details to connect from your terminal:sudo to gain root access.4
Clean Up
When you finish, delete the node to stop billing immediately:The node and all stored data are removed as soon as deletion completes.
Complete Python Example
The script below demonstrates the full lifecycle using awith block to close the client automatically:
Next Steps
CLI Reference
Explore all CLI subcommands, global options, and output formats.
API Reference
Explore the full HTTP API endpoints and SDK methods.