Getting Started
Prerequisites
Python 3.8 or later (Python 3.11 recommended)
pip for installing packages
Network access to install the SDK from PyPI
On macOS, if you need to manage Python versions, pyenv is a convenient way to install and select Python 3.11.
Installation
Create and activate a virtual environment, then install the SDK.
Windows (Command Prompt):
python -m venv venv
venv\Scripts\activate.bat
pip install ncp-sdkWindows (PowerShell):
python -m venv venv
venv\Scripts\Activate.ps1
pip install ncp-sdkmacOS / Linux:
python3 -m venv venv
source venv/bin/activate
pip install ncp-sdkTo verify the Python version being used:
Quick Verification
Confirm the SDK is installed and an agent can be constructed:
This quick test checks only that the SDK imports and an agent can be constructed. It does not exercise deployed platform features - capabilities such as memory, file access, knowledge search, and telemetry are only available once the agent is deployed on the platform. For authenticating with the platform and deploying, see SDK Workflow.
Upgrading the SDK
When a new version of the NCP SDK is released, upgrade it in your environment with pip:
bash
To move to (or pin) a specific version:
bash
Verify the installed version:
bash
After upgrading, re-run ncp validate . on your agent projects and re-package/redeploy them so they build against the new version.
Add it to Getting Started, immediately after Verify Installation, under Troubleshooting. Also link to it from SDK Workflow near validation and packaging.
Use this wording:
Troubleshooting SDK issues
If you encounter issues, check that your local NCP SDK version is compatible with your NCP platform release. Upgrade to the latest compatible SDK version, then retry.
Run the upgrade in the same virtual environment where you installed the SDK:
If your platform requires a specific SDK version, install that version instead of upgrading to the latest release.
For available versions and package details, see NCP SDK on PyPI
Last updated
