AIKernel Package Installation Guide
The runtime example uses the published AIKernel SDK 0.1.4. Check the table for the published version of the Provider you need. If you are starting from an empty folder, the Quick Start gives you a project to run and the output to check. If you already use 0.1.3, start with the 0.1.4 migration guide.
NuGet Packages
From the directory containing your .NET project, check that .NET 10 is available and add the runtime package.
dotnet --list-sdks
dotnet add package AIKernel.Core --version 0.1.4
dotnet list package --include-transitive
Check that AIKernel.Core resolves to 0.1.4. If your solution uses Central Package Management, check the corresponding PackageVersion in Directory.Packages.props. If restore fails, check which feed serves AIKernel.* and run dotnet nuget list source before changing versions.
| What you want to build | Add |
|---|---|
| A console sample using the runtime | AIKernel.Core 0.1.4 |
| An application using .NET Generic Host | AIKernel.Hosting 0.1.4 |
| One application service exposed over HTTP and MCP | AIKernel.Providers.Distributed 0.1.4 with Hosting |
Published Provider versions by task
Configure any model or native runtime required by the Provider in your host. NuGet normally restores the shared contracts as dependencies. Check each Provider's NuGet dependencies if your project pins a contract directly in Directory.Packages.props.
| Task | NuGet package | Task-specific shared contract |
|---|---|---|
| Local chat generation | AIKernel.Providers.LocalLlm 0.1.6 | — |
| Text embeddings | AIKernel.Providers.Embedding 0.1.4 | AIKernel.Contracts.Embedding 0.1.4 |
| Rerank search results | AIKernel.Providers.Reranker 0.1.4 | AIKernel.Contracts.Reranking 0.1.4 |
| Transcribe WAV audio | AIKernel.Providers.Stt 0.1.4 | AIKernel.Contracts.SpeechRecognition 0.1.4 |
| Synthesize speech | AIKernel.Providers.Tts 0.1.4 | — |
| Retrieve documents with citations | AIKernel.Providers.DocumentSearch 0.1.4 | — |
| Stylize images and remove backgrounds | AIKernel.Providers.Image 0.3.0 | AIKernel.Contracts.Images 0.3.0 |
| Edit images with FLUX.2 klein 4B | AIKernel.Providers.Flux 0.1.5 | AIKernel.Contracts.Images 0.1.5 |
| Run FLUX.2 klein 4B with CUDA | AIKernel.Providers.Flux.Cuda 0.1.5 | AIKernel.Contracts.Images 0.1.5 |
| Connect a Cosmos runtime | AIKernel.Providers.Cosmos 0.1.4 | — |
| Select a Provider placement target | AIKernel.Providers.ProviderPlacement 0.1.4 | AIKernel.Contracts.ProviderPlacement 0.1.4 |
A Provider's initial release uses the SDK version 0.1.4. Module-only updates increment the fourth component, for example 0.1.4.1 and 0.1.4.2. Some LocalLlm, image, and WebGPU packages were published under other versions, which are shown in the tables.
For other providers and dependencies, see the module map or the published NuGet packages.
Add WebGPU
Choose the provider that fits your host. Both use .NET 10 and support the AIKernel 0.1.4 SDK.
| Host | Package | Use |
|---|---|---|
| Native .NET | AIKernel.Dawn.Provider 0.1.4 | Run compute.vector_add with D3D12 or Vulkan |
| Browser WebAssembly | AIKernel.Wasm.WebGpuComputeProvider 0.1.5 | Upload pages of immutable OPFS weights into a WebGPU buffer |
dotnet add package AIKernel.Dawn.Provider --version 0.1.4
dotnet add package AIKernel.Wasm.WebGpuComputeProvider --version 0.1.5
Dawn was verified on Linux with Ubuntu 24.04 and a Vulkan driver. Serve the browser assets from localhost or HTTPS and use a dedicated worker. The browser and WebGPU guide shows the prerequisites and how to verify execution.
Use CUDA
For CUDA on Windows x64 and Linux x64, use the CUDA Driver bundled with AIKernel.Kernel 0.1.4. Its only native runtime prerequisite is the NVIDIA driver.
dotnet add package AIKernel.Kernel --version 0.1.4
AIKernel.Cuda13.0 is the legacy LibTorch reference implementation through 0.1.3. Maintenance has ended.
PyPI Packages
Use a virtual environment and run these commands with its Python interpreter.
python -m pip install aikernel-net==0.1.4
python -m pip show aikernel-net
Check that Version: 0.1.4 appears. The aikernel-net project on PyPI lists its Python requirements and available files. If pip reports no matching distribution, check the interpreter version and the configured package index.
Historical Lines
| Version | When to consult it |
|---|---|
| 0.1.4 | Current installation steps, including HTTP and MCP hosting and the standard CPU inference path. |
| 0.1.3 | Earlier configurations. See the 0.1.4 migration guide. |
| 0.1.2 and earlier | Historical documentation for reproducing earlier deployments. |
When upgrading, update your directly referenced AIKernel packages together and check the versions of the resolved dependencies. For repository integration tests with local build packages, use a separate feed and a fresh package cache so that the packages under test are identifiable.
Host configuration for 0.1.4
Configure a host principal, PDP, and Guard before using the KernelRequest entry point. Both vfs.open and model.execute require approval. For a file provider, set CredentialValidator and enable AllowWrite explicitly when writes are needed. Keep the physical VFS root and its directories under host control. For HTTP file providers, configure injected HTTP handlers with automatic redirects disabled. The built-in ROM verifier requires a SHA-256 pin over the complete ROM file keyed by its VFS path. Dynamic provider DLLs require a host-provisioned SHA-256 digest in TrustedAssemblyDigests.
List each destination the standard network provider may contact when registering it, for example services.AddAIKernelStandardProviders("https://api.example.org"). An empty list disables outbound requests through this provider. Include the port for nonstandard endpoints and use a separate tcp://host:port entry for raw TCP.
operations/PACKAGE_INSTALLATION_GUIDE.md