Requirements
The Pinecone Go SDK requires a Go version with modules support.SDK versions
SDK versions are pinned to specific API versions. When a new API version is released, a new version of the SDK is also released. The mappings between API versions and Go SDK versions are as follows:
When a new stable API version is released, you should upgrade your SDK to the latest version to ensure compatibility with the latest API changes.
Install
To install the latest version of the Go SDK, add a dependency to the current module:Upgrade
Each major version carries its version number in the module path, so crossing a major requires updating the import path in every file that uses the SDK. For example, moving fromv6 to v7 means changing:
v5.0.0 and v6.0.0 are backward compatible with the release lines before them. v7.0.0 targets API version 2026-07 and includes the breaking changes listed above. To stay on API version 2026-04, keep using v6.
If you already have the Go SDK, upgrade to the latest version as follows:
Initialize
Once installed, you can import the SDK and then use an API key to initialize a client instance:AdminClient with service account credentials instead: