Standalone Aspire dashboard for OpenTelemetry
Run the Aspire dashboard as a standalone OTLP viewer to inspect local application logs, distributed traces, and metrics without an AppHost. Keep your existing application startup workflow, including Docker Compose, and configure your apps to export OpenTelemetry to the dashboard.
You can start the dashboard in two ways:
- Use the Aspire CLI to start the dashboard with default local endpoints.
- Use the standalone dashboard container image when you want to run it with Docker or another OCI-compliant container runtime.
Both options receive telemetry from OpenTelemetry-enabled apps. Instrumentation and export configuration are required in each application; starting the dashboard doesnât instrument your code. For language-specific setup, see Python telemetry or JavaScript and Node.js telemetry.

Start the dashboard
Section titled âStart the dashboardâChoose the startup path that best fits your workflow. The Aspire CLI provides the shortest local setup, while the container image works well when you already manage tools through a container runtime.
Aspire CLI
Section titled âAspire CLIâThe quickest way to start the standalone dashboard is to use the Aspire CLI via npx.
The npx command is a package runner included with Node.js.
To run the Aspire CLI package with npx:
npx -y @microsoft/aspire-cli dashboard runOr install the Aspire CLI, then start the dashboard:
aspire dashboard runThe dashboard starts with the following defaults:
- Frontend UI at
http://localhost:18888 - OTLP/gRPC endpoint at
http://localhost:4317 - OTLP/HTTP endpoint at
http://localhost:4318
The dashboard is secured with a browser token by default. A login URL with the token is displayed in the terminal output. Use --allow-anonymous to disable authentication during local development. For the security implications, see Dashboard security considerations.
For all available options, see the aspire dashboard run command reference.
Container image
Section titled âContainer imageâThe dashboard also ships as a standalone container image. Use this option when a container workflow fits your environment or you want to manage dashboard hosting with your existing container tooling.
docker run --rm -it -p 18888:18888 -p 4317:18889 -p 4318:18890 -d --name aspire-dashboard \ mcr.microsoft.com/aspire/dashboard:latestdocker run --rm -it -p 18888:18888 -p 4317:18889 -p 4318:18890 -d --name aspire-dashboard ` mcr.microsoft.com/aspire/dashboard:latestThe preceding Docker command:
- Starts a container from the
mcr.microsoft.com/aspire/dashboard:latestimage. - The container exposes three ports:
- Mapping the dashboardâs port
18888to the hostâs port18888. Port18888has the dashboard UI. Navigate tohttp://localhost:18888in the browser to view the dashboard. - Mapping the dashboardâs OTLP/gRPC port
18889to the hostâs port4317. Port4317receives OpenTelemetry data from apps using OTLP/gRPC. - Mapping the dashboardâs OTLP/HTTP port
18890to the hostâs port4318. Port4318receives OpenTelemetry data from apps using OTLP/HTTP.
- Mapping the dashboardâs port
Container image repositories and migration
Section titled âContainer image repositories and migrationâThe dashboard images are published to Microsoft Container Registry (MCR) under the aspire product family:
| Channel | Repository | Use |
|---|---|---|
| Stable | mcr.microsoft.com/aspire/dashboard | Released dashboard images; recommended for standalone use. |
| Nightly | mcr.microsoft.com/aspire/nightly/dashboard | Preview builds for testing upcoming changes. |
Use the stable image catalog or nightly image catalog to check available tags. Nightly builds arenât a substitute for stable releases.
If you manage a dashboard container yourself, update the image repository in your Docker commands, Compose files, Kubernetes manifests, and image-mirroring or allowlist configuration:
| Previous repository | New repository |
|---|---|
mcr.microsoft.com/dotnet/aspire-dashboard | mcr.microsoft.com/aspire/dashboard |
mcr.microsoft.com/dotnet/nightly/aspire-dashboard | mcr.microsoft.com/aspire/nightly/dashboard |
Preserve your stable or nightly channel and verify that your chosen tag exists in the new repository before changing it. The migration doesnât guarantee that all historical tags are available at the new names. If a version-specific tag isnât available in the new repository, keep the legacy reference rather than silently upgrading the dashboard. The latest tag follows the latest image in its repository; choose a published version tag to stay on a version line, or a digest when you need an immutable image reference.
The repository change doesnât rename the aspire-dashboard container, change its ports or environment variables, or change aspire dashboard run. Docker Compose and Kubernetes output generated by an older Aspire release can still contain a legacy image reference. Keep that output aligned with the publisher version rather than assuming the image repository migration changes installed tooling.
Login to the dashboard
Section titled âLogin to the dashboardâData displayed in the dashboard can be sensitive. By default, the dashboard is secured with authentication that requires a token to login.
When the dashboard is run with aspire dashboard run, the Aspire CLI prints the login URL directly in the terminal. Open that URL in your browser to log in.
When the dashboard is run from a standalone container, the login token is printed to the container logs. The logs are displayed in the Docker Desktop user interface on the Logs tab for the aspire-dashboard container:

After copying the highlighted token into the login page, select the Login button.
Alternatively, you can obtain the token from the logs by using the docker command:
#!/bin/bashloginLine=$(docker container logs aspire-dashboard | grep "login?t=")match=$(echo "$loginLine" | sed -n 's/.*login?t=\([^[:space:]]*\).*/\1/p')echo -n "$match" | xclip -selection clipboardecho "$match"$loginLine = docker container logs aspire-dashboard | Select-String "login\?t="$matches = [regex]::Match($loginLine, "(?<=login\?t=)(\S+)")$matches.Value | Set-Clipboardecho $matches.ValueFor more information about logging into the dashboard, see Dashboard authentication.
Explore the dashboard
Section titled âExplore the dashboardâThe dashboard offers a UI for viewing telemetry. Refer to the documentation to explore the telemetry functionality:
Although there is no restriction on where the dashboard is run, the dashboard is designed for development and short-term diagnostics rather than production telemetry retention:
- Telemetry is automatically removed if telemetry limits are exceeded.
- The dashboard can be configured to persist telemetry, but it is intended for development history and a limited number of diagnostics, not long-term production observability.
Unavailable features when standalone
Section titled âUnavailable features when standaloneâTelemetry service names arenât AppHost-managed resources. In standalone mode, the dashboard doesnât provide process health, console output capture, or start/stop/restart controls through the resources UI. To enable those resource features, configure a resource service.
An OTEL-only dashboard also doesnât have resource terminals or the AppHost terminal dock. Sending telemetry canât create a terminal session: dashboard terminals require a live AppHost connection and a terminal producer.
AI coding agents can still use the standalone dashboard via the Aspire CLI and MCP server. See Dashboard and AI coding agents for details.
Send telemetry to the dashboard
Section titled âSend telemetry to the dashboardâApps send telemetry to the dashboard using OpenTelemetry Protocol (OTLP). The dashboard must expose a port for receiving OpenTelemetry data, and apps are configured to send data to that address.
Both startup options shown earlier configure the dashboard to receive OpenTelemetry data on port 4317 (gRPC) and port 4318 (HTTP). The OTLP endpoint addresses are http://localhost:4317 for gRPC and http://localhost:4318 for HTTP. The Docker command maps the containerâs OTLP ports to the same host ports.
Configure OpenTelemetry SDK
Section titled âConfigure OpenTelemetry SDKâApps collect and send telemetry using their languageâs OpenTelemetry SDK.
Important OpenTelemetry SDK options to configure:
- OTLP endpoint, which should match the dashboardâs configuration, for example,
http://localhost:4317for gRPC orhttp://localhost:4318for HTTP. - OTLP protocol. The dashboard supports all OTLP protocols:
To configure applications:
- Use the OpenTelemetry SDK APIs within the application, or
- Start the app with known environment variables:
OTEL_EXPORTER_OTLP_PROTOCOLwith a value ofgrpc,http/protobuf, orhttp/json.OTEL_EXPORTER_OTLP_ENDPOINTwith a value ofhttp://localhost:4317for gRPC orhttp://localhost:4318for HTTP.
Query telemetry with the Aspire CLI
Section titled âQuery telemetry with the Aspire CLIâThe Aspire CLI can query telemetry data directly from the dashboardâs API, allowing you to view logs, traces, and spans from the terminal without opening the dashboard UI.
The dashboardâs telemetry API is secured with API key authentication by default. When using the CLI commands, you can pass the dashboardâs login URL (including the browser token) via --dashboard-url and the token is automatically exchanged for an API key. Alternatively, if the dashboard is started with aspire dashboard run --allow-anonymous or the ASPIRE_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS environment variable is set to true, no authentication is required. See Dashboard security considerations for the security implications.
View telemetry with aspire otel
Section titled âView telemetry with aspire otelâThe aspire otel commands retrieve telemetry from the dashboard. Use --dashboard-url to point at a standalone dashboard â you can paste the full login URL and the browser token is automatically exchanged for an API key:
aspire otel logs --dashboard-url "http://localhost:18888/login?t=<token>"aspire otel traces --dashboard-url "http://localhost:18888/login?t=<token>"aspire otel spans --dashboard-url "http://localhost:18888/login?t=<token>"For more details, see the aspire otel logs, aspire otel traces, and aspire otel spans command references.
Use AI agents with aspire agent mcp
Section titled âUse AI agents with aspire agent mcpâThe aspire agent mcp command starts an MCP (Model Context Protocol) server that AI assistants can connect to. When used with --dashboard-url, it runs in dashboard-only mode and exposes telemetry tools (structured logs and traces) to MCP-compatible clients:
Unlike aspire otel, the MCP command doesnât exchange the browser token from a login URL. Start the dashboard with an explicit telemetry API key:
aspire dashboard run --Dashboard:Api:AuthMode=ApiKey --Dashboard:Api:PrimaryApiKey="<api-key>"Then start the MCP server in a separate terminal with the dashboard base URL and the same key:
aspire agent mcp --dashboard-url "http://localhost:18888" --api-key "<api-key>"Use a high-entropy key and donât commit or share it. For more information, see Secure the telemetry API endpoint.
Enable persistence
Section titled âEnable persistenceâThe standalone dashboard defaults to no persistence and telemetry is lost when the dashboard shuts down. To retain data, choose one of the persistent modes:
Runpreserves each dashboard session as a separate run and enables selection of historical runs.Resumecontinues the same telemetry history across dashboard restarts. New telemetry is appended.
For more information about persistence modes, run history, and retention, see Aspire dashboard data persistence.
Aspire CLI persistence
Section titled âAspire CLI persistenceâPass a persistent mode and a stable application name to aspire dashboard run.
aspire dashboard run --application-name my-app --persistence runThe application name partitions persisted data.
Persist data between container runs
Section titled âPersist data between container runsâFor a dashboard container more configuration is required because the local filesystem is ephemeral. You must mount persistent storage.
docker volume create aspire-dashboard-data
docker run --rm -d --name aspire-dashboard \ -p 18888:18888 \ -p 4317:18889 \ -p 4318:18890 \ --mount type=volume,source=aspire-dashboard-data,target=/home/app \ -e ASPIRE_DASHBOARD_APPLICATION_NAME=my-app \ -e ASPIRE_DASHBOARD_DATA_DIRECTORY=/home/app/dashboard-data \ -e ASPIRE_DASHBOARD_PERSISTENCE_MODE=run \ mcr.microsoft.com/aspire/dashboard:latestdocker volume create aspire-dashboard-data
docker run --rm -d --name aspire-dashboard ` -p 18888:18888 ` -p 4317:18889 ` -p 4318:18890 ` --mount type=volume,source=aspire-dashboard-data,target=/home/app ` -e ASPIRE_DASHBOARD_APPLICATION_NAME=my-app ` -e ASPIRE_DASHBOARD_DATA_DIRECTORY=/home/app/dashboard-data ` -e ASPIRE_DASHBOARD_PERSISTENCE_MODE=run ` mcr.microsoft.com/aspire/dashboard:latestThe dashboard container runs as a non-root user, so the volume is mounted at that userâs home directory, /home/app. Docker gives a new volume the ownership of the directory itâs mounted over. A volume mounted at a path that doesnât exist in the image is owned by root, and the dashboard fails to start with an âAccess to the path is deniedâ error.
Stop the container and run the same docker run command again to access the retained data. Keep the volume, application name, and persistence mode unchanged between container runs.
Persisted telemetry can contain sensitive data. Restrict access to the volume and see Aspire dashboard data persistence for persistence behavior and Dashboard security considerations for security requirements.
For a sample of using the standalone dashboard, see the Standalone Aspire dashboard sample app.