AgentBlazor Docs

Hosting

Install behavior depends on the host shape.

Standard hosts patch cleanly. Advanced hosts stay review-first. Hosted WebAssembly uses the server host plus a remote client package.

Host types

Standard Blazor Web App

Best first target. CLI can patch startup, shell, layout, and starter workflow files.

Hosted WebAssembly server + client

Run CLI against the server host. Use AgentBlazor.Client in the browser project.

Recognizable advanced host

Safe additions still apply, but risky shell or startup edits stay manual.

Unclassified host

The CLI stops instead of guessing.

Hosted WebAssembly server + client

// Server
app.MapAgentBlazorEndpoints();
app.MapAgentBlazorRemoteChat();

// Client
builder.Services.AddScoped(_ => new HttpClient
{
    BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
});

@using AgentBlazor.Client.Chat
<AgentRemoteChatWidget Endpoint="/agentblazor/chat/run" Title="Assistant" />

What review-first means

  • The CLI still shows safe file work.
  • Risky startup, shell, or layout edits are left for manual review.
  • validate reports unresolved review items as real gaps.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.