# DevTunnelOptions

- Kind: `class`
- Package: [Aspire.Hosting.DevTunnels](/reference/api/csharp/aspire.hosting.devtunnels.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.DevTunnels`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

Options for the dev tunnel resource. Controls the creation and access settings of the underyling dev tunnel.

## Definition

```csharp
namespace Aspire.Hosting.DevTunnels;

public sealed class DevTunnelOptions
{
    // ...
}
```

## Constructors

- [DevTunnelOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions/constructors.md#constructor)

## Properties

- [AllowAnonymous](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions/properties.md#allowanonymous) : `bool` `get; set` -- Whether to allow anonymous access to this dev tunnel. If `false`, authentication is required. Defaults to `false`.
- [Description](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions/properties.md#description) : `string?` `get; set` -- Optional description for the tunnel.
- [Labels](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions/properties.md#labels) : `List<string>` `get; set` -- Optional labels to attach to the tunnel.
