Skip to main content
Set up a C# project for Speckle automation: install the Speckle.Sdk NuGet package, then register the SDK once at startup. When to read this: before your first compile against Speckle.Sdk. Read next: Build your first model analysis tool, then Automate with scripts for the canonical bootstrap snippet.

Requirements

Speckle.Sdk targets three frameworks, so it runs in both modern and legacy host apps:
Speckle.Sdk works on Windows, macOS, and Linux.

Install with the .NET CLI

Install a 2026.9 build of Speckle.Sdk:
The command writes this reference into your project file:
2026.9.0-beta.7 is a prerelease; a plain dotnet add package Speckle.Sdk installs 2026.8, which has no Receive3. A later stable 2026.9.0 replaces the pin without changing the calls.
Speckle.Sdk’s public API may not be wholly stable between releases. Pin an explicit version rather than using a floating range in production projects, and review release notes before upgrading.

Geometry types

Geometry types such as Point, Line, Mesh, and Brep ship in Speckle.Sdk. You do not need a second package, and the namespaces stay Speckle.Objects.*.
Projects on Speckle.Sdk 2026.8 or earlier also reference Speckle.Objects. Update every Speckle package to the same 2026.9 version, then remove the Speckle.Objects reference. See Update packages.

Register the SDK (one-time bootstrap)

Speckle.Sdk uses Microsoft.Extensions.DependencyInjection internally. Script authors: use the canonical bootstrap in Automate with scripts — do not duplicate it here. Connector authors: register on your app’s IServiceCollection:
Example
Built-in geometry types register automatically. Pass an assembly to AddSpeckleSdk only when you register your own Base types.

Verify installation

Confirm the package resolves and the SDK registers correctly:
Example

Dependencies

Speckle.Sdk brings in these dependencies automatically:
You don’t need to install these manually — NuGet handles them automatically. Speckle.Sdk.Dependencies and Speckle.Sdk.Parquet bundle additional transitive dependencies and should not be referenced directly.

FAQ

Your project still references a Speckle.Objects package that does not match Speckle.Sdk. Update every Speckle package to the same version, then remove the Speckle.Objects reference. Its types are part of Speckle.Sdk.
No. You paste a short AddSpeckleSdk block once — see Automate with scripts. Read Dependency injection (connectors) only if you are building a connector or sharing a container with a host app.
Match your host app. Use netstandard2.0 for older hosts such as Revit on .NET Framework 4.8. Use net8.0 or net10.0 for new standalone apps and services.

Next Steps

Build your first model analysis tool

End-to-end CSV report from a live model

Automate with scripts

Canonical bootstrap and Receive3

Authentication

Connect with a personal access token
Last modified on October 19, 2026