CommunityToolkit.Aspire.Hosting.Ngrok 13.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Ngrok --version 13.0.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Ngrok -Version 13.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Ngrok" Version="13.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Ngrok" Version="13.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Ngrok" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Hosting.Ngrok --version 13.0.0
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Ngrok, 13.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommunityToolkit.Aspire.Hosting.Ngrok@13.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Ngrok&version=13.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Ngrok&version=13.0.0
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Hosting.Ngrok library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a ngrok container.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.Ngrok

Example usage

Then, in the Program.cs file of app host, add a ngrok resource and add endpoints to be tunneled following methods:

var myService = builder.AddProject<Projects.MyService>();
var otherSevice = builder.AddProject<Projects.OtherService>();

var authToken = builder
    .AddParameter("ngrok-auth-token", "your-ngrok-auth-token", secret: true);

builder.AddNgrok("ngrok", endpointPort: 59600) // omit endpointPort to use random port
    .WithAuthToken(authToken)
    .WithTunnelEndpoint(myService, "http", "<your-ngrok-domain>")
    .WithTunnelEndpoint(otherSevice, "http"); // ngrok will generate a random domain for this service

Querying the ngrok tunneled endpoints

After the ngrok container has started, you can query the ngrok tunneled endpoints using api exposed by the ngrok container:

curl -H "Accept: application/json" -s http://localhost:59600/api/tunnels

This will return a JSON response with the ngrok tunneled endpoints.

{
  "tunnels": [
    {
      "name": "my-http",
      "ID": "5baa78f84cffb31a96cccf5bbe992451",
      "uri": "/api/tunnels/my-http",
      "public_url": "https://<your-ngrok-domain>",
      "proto": "https",
      "config": {
        "addr": "http://host.docker.internal:5165",
        "inspect": true
      },
      // ...
    }, {
      "name": "other-http",
      "ID": "f7f1351d1307e3615ca7de310bf6bb61",
      "uri": "/api/tunnels/other-http",
      "public_url": "https://0849-94-134-176-242.ngrok-free.app",
      "proto": "https",
      "config": {
          "addr": "http://host.docker.internal:3657",
          "inspect": true
      },
      // ...
    }
  ],
  "uri": "/api/tunnels"
}

Additional Information

Feedback & contributing

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.1-beta.486 23 1/12/2026
13.0.1-beta.468 990 12/3/2025
13.0.1-beta.467 627 12/3/2025
13.0.0 2,461 11/25/2025
13.0.0-beta.462 145 11/25/2025
13.0.0-beta.456 145 11/23/2025
13.0.0-beta.454 98 11/23/2025
13.0.0-beta.453 120 11/22/2025
13.0.0-beta.450 122 11/22/2025
13.0.0-beta.448 117 11/22/2025
13.0.0-beta.444 409 11/17/2025
13.0.0-beta.443 284 11/17/2025
13.0.0-beta.440 100 11/15/2025
13.0.0-beta.439 373 11/12/2025
13.0.0-beta.438 234 11/12/2025
13.0.0-beta.436 241 11/12/2025
13.0.0-beta.435 242 11/11/2025
13.0.0-beta.433 164 11/10/2025
13.0.0-beta.432 160 11/10/2025
13.0.0-beta.431 148 11/6/2025
13.0.0-beta.430 154 11/6/2025
9.9.0 4,206 11/3/2025
9.9.0-beta.427 170 11/3/2025
9.8.1-beta.426 565 11/3/2025
9.8.1-beta.424 289 10/28/2025
9.8.1-beta.420 139 10/27/2025
9.8.1-beta.419 145 10/27/2025
9.8.1-beta.417 149 10/27/2025
9.8.1-beta.414 136 10/24/2025
9.8.1-beta.413 147 10/22/2025
9.8.1-beta.410 132 10/16/2025
9.8.1-beta.408 128 10/16/2025
9.8.1-beta.407 127 10/16/2025
9.8.1-beta.406 135 10/15/2025
9.8.0 2,077 9/26/2025
9.8.0-beta.405 146 10/15/2025
9.8.0-beta.404 136 10/13/2025
9.8.0-beta.402 141 9/29/2025
9.8.0-beta.401 138 9/29/2025
9.8.0-beta.399 137 9/26/2025
9.8.0-beta.398 139 9/25/2025
9.8.0-beta.397 146 9/25/2025
9.8.0-beta.395 144 9/24/2025
9.8.0-beta.394 137 9/23/2025
9.8.0-beta.393 141 9/23/2025
9.8.0-beta.392 143 9/23/2025
9.8.0-beta.389 271 9/18/2025
9.8.0-beta.388 283 9/16/2025
9.8.0-beta.386 217 9/15/2025
9.8.0-beta.385 223 9/15/2025
9.8.0-beta.384 69 9/13/2025
9.8.0-beta.376 153 9/8/2025
9.8.0-beta.375 80 9/6/2025
9.8.0-beta.373 157 9/5/2025
9.8.0-beta.372 158 9/4/2025
9.8.0-beta.370 147 9/2/2025
9.8.0-beta.364 140 9/1/2025
9.7.2 1,504 8/29/2025
9.7.2-beta.362 183 8/29/2025
9.7.2-beta.361 190 8/29/2025
9.7.2-beta.360 189 8/29/2025
9.7.2-beta.359 187 8/28/2025
9.7.2-beta.358 185 8/28/2025
9.7.2-beta.357 195 8/28/2025
9.7.1 457 8/27/2025
9.7.1-beta.355 194 8/27/2025
9.7.1-beta.354 189 8/27/2025
9.7.1-beta.353 184 8/27/2025
9.7.1-beta.352 185 8/27/2025
9.7.1-beta.351 185 8/27/2025
9.7.1-beta.348 189 8/14/2025
9.7.1-beta.344 98 8/10/2025
9.7.1-beta.343 217 8/8/2025
9.7.1-beta.342 224 8/7/2025
9.7.1-beta.341 219 8/6/2025
9.7.1-beta.340 203 8/5/2025
9.7.1-beta.339 201 8/5/2025
9.7.0 1,794 8/1/2025
9.7.0-beta.337 100 8/1/2025
9.7.0-beta.336 118 8/1/2025
9.7.0-beta.335 108 8/1/2025
9.7.0-beta.333 122 7/30/2025
9.6.1-beta.332 121 7/30/2025
9.6.1-beta.331 123 7/30/2025
9.6.1-beta.330 118 7/30/2025
9.6.1-beta.329 122 7/30/2025
9.6.1-beta.328 126 7/29/2025
9.6.1-beta.327 137 7/28/2025
9.6.1-beta.326 132 7/28/2025
9.6.0 746 7/10/2025
9.6.0-beta.324 137 7/10/2025
9.5.1-beta.323 145 7/10/2025
9.5.1-beta.322 137 7/10/2025
9.5.1-beta.321 143 7/10/2025
9.5.1-beta.320 144 7/9/2025
9.5.1-beta.319 146 7/8/2025
9.5.1-beta.318 154 7/2/2025
9.5.1-beta.317 144 6/30/2025
9.5.1-beta.315 144 6/26/2025
9.5.1-beta.314 150 6/23/2025
9.5.1-beta.313 125 6/20/2025
9.5.1-beta.312 137 6/20/2025
9.5.1-beta.311 178 6/18/2025
9.5.1-beta.310 154 6/17/2025
9.5.1-beta.309 167 6/17/2025
9.5.1-beta.308 143 6/17/2025
9.5.1-beta.307 158 6/16/2025
9.5.1-beta.306 315 6/11/2025
9.5.1-beta.305 117 6/7/2025
9.5.1-beta.304 130 6/6/2025
9.5.1-beta.303 134 6/4/2025
9.5.1-beta.302 163 6/4/2025
9.5.1-beta.301 174 6/2/2025
9.5.1-beta.300 141 5/28/2025
9.5.0 2,585 5/27/2025
9.5.0-beta.299 144 5/27/2025
9.5.0-beta.298 150 5/26/2025
9.5.0-beta.297 97 5/24/2025
9.5.0-beta.296 108 5/24/2025
9.5.0-beta.295 90 5/24/2025
9.4.1-beta.291 143 5/19/2025
9.4.1-beta.289 189 5/16/2025
9.4.1-beta.288 214 5/16/2025
9.4.1-beta.287 202 5/16/2025
9.4.1-beta.286 213 5/16/2025
9.4.1-beta.285 222 5/14/2025
9.4.1-beta.284 227 5/13/2025
9.4.1-beta.283 227 5/12/2025
9.4.1-beta.282 158 5/7/2025
9.4.1-beta.280 148 5/2/2025
9.4.1-beta.279 144 5/2/2025
9.4.1-beta.277 159 4/23/2025
9.4.1-beta.276 166 4/23/2025
9.4.1-beta.275 156 4/23/2025
9.4.1-beta.274 169 4/23/2025
9.4.1-beta.273 157 4/23/2025
9.4.1-beta.272 178 4/23/2025
9.4.1-beta.271 573 4/23/2025
9.4.1-beta.270 213 4/20/2025
9.4.0 948 4/20/2025
9.4.0-beta.269 163 4/20/2025
9.4.0-beta.268 173 4/20/2025
9.3.1-beta.267 181 4/20/2025
9.3.1-beta.266 98 4/19/2025
9.3.1-beta.265 187 4/15/2025
9.3.1-beta.264 188 4/15/2025
9.3.1-beta.263 191 4/15/2025
9.3.1-beta.262 187 4/15/2025
9.3.1-beta.260 155 4/10/2025
9.3.1-beta.259 156 4/8/2025
9.3.1-beta.258 186 4/8/2025
9.3.1-beta.257 165 4/8/2025
9.3.1-beta.256 164 4/8/2025
9.3.1-beta.255 158 4/8/2025
9.3.1-beta.254 178 4/8/2025
9.3.1-beta.253 155 4/1/2025
9.3.1-beta.252 136 3/27/2025
9.3.1-beta.250 157 3/27/2025
9.3.1-beta.249 143 3/27/2025
9.3.1-beta.248 138 3/27/2025
9.3.1-beta.247 138 3/27/2025
9.3.1-beta.244 483 3/25/2025
9.3.1-beta.242 483 3/24/2025
9.3.1-beta.241 153 3/19/2025
9.3.0 551 3/19/2025
9.3.0-beta.239 150 3/19/2025
9.2.2-beta.237 153 3/19/2025
9.2.2-beta.236 119 3/14/2025
9.2.2-beta.230 177 3/13/2025
9.2.2-beta.229 154 3/13/2025
9.2.2-beta.228 193 3/11/2025
9.2.2-beta.227 181 3/11/2025
9.2.2-beta.226 170 3/11/2025
9.2.2-beta.225 153 3/11/2025
9.2.2-beta.224 181 3/11/2025
9.2.2-beta.223 172 3/10/2025
9.2.2-beta.222 170 3/10/2025
9.2.2-beta.220 158 3/9/2025
9.2.2-beta.218 161 3/9/2025
9.2.2-beta.217 199 3/7/2025
9.2.2-beta.216 211 3/7/2025
9.2.2-beta.215 204 3/7/2025
9.2.2-beta.214 221 3/5/2025
9.2.2-beta.213 193 3/5/2025
9.2.2-beta.212 197 3/5/2025
9.2.2-beta.211 198 3/4/2025
9.2.2-beta.210 216 3/4/2025
9.2.2-beta.208 110 3/3/2025
9.2.1 316 3/3/2025
9.2.1-beta.207 121 3/2/2025
9.2.1-beta.206 94 3/1/2025
9.2.1-beta.205 103 2/27/2025
9.2.1-beta.204 105 2/26/2025
9.2.1-beta.203 86 2/26/2025
9.2.0 202 2/26/2025
9.2.0-beta.202 108 2/26/2025
9.2.0-beta.201 100 2/26/2025
9.2.0-beta.199 95 2/26/2025
9.2.0-beta.198 109 2/26/2025
9.1.1-beta.197 100 2/25/2025
9.1.1-beta.196 120 2/25/2025
9.1.1-beta.195 96 2/25/2025
9.1.1-beta.194 103 2/25/2025
9.1.1-beta.193 128 2/25/2025
9.1.1-beta.192 128 2/24/2025
9.1.1-beta.191 168 2/24/2025
9.1.1-beta.190 109 2/19/2025
9.1.1-beta.189 97 2/19/2025
9.1.1-beta.188 117 2/19/2025
9.1.1-beta.187 127 2/19/2025
9.1.1-beta.183 108 2/18/2025
9.1.1-beta.182 107 2/18/2025
9.1.1-beta.181 123 2/18/2025
9.1.1-beta.180 109 2/17/2025
9.1.1-beta.178 100 2/17/2025
9.1.1-beta.177 118 2/12/2025
9.1.1-beta.176 121 2/11/2025
9.1.1-beta.175 98 2/11/2025
9.1.1-beta.173 101 2/10/2025
9.1.1-beta.169 209 2/6/2025
9.1.1-beta.168 117 2/5/2025
9.1.1-beta.166 98 2/5/2025
9.1.1-beta.165 89 2/5/2025
9.1.1-beta.164 104 2/3/2025
9.1.1-beta.162 93 2/3/2025
9.1.1-beta.155 94 1/30/2025
9.1.1-beta.154 90 1/30/2025
9.1.1-beta.153 87 1/30/2025
9.1.1-beta.152 80 1/29/2025
9.1.1-beta.150 102 1/29/2025
9.1.1-beta.148 95 1/26/2025
9.1.1-beta.147 90 1/26/2025
9.1.1-beta.146 116 1/23/2025
9.1.1-beta.145 116 1/22/2025
9.1.1-beta.144 98 1/22/2025
9.1.1-beta.142 92 1/22/2025
9.1.1-beta.140 112 1/22/2025
9.1.1-beta.139 91 1/21/2025
9.1.1-beta.138 114 1/20/2025
9.1.1-beta.137 102 1/17/2025
9.1.1-beta.136 101 1/15/2025
9.1.1-beta.135 67 1/15/2025
9.1.1-beta.134 66 1/15/2025