Skip to main content
The Palyra Web Console is a React-based single-page application (SPA) that serves as the primary graphical user interface for operators. It provides a comprehensive dashboard for managing AI agents, inspecting system logs, configuring security policies, and interacting with the gateway through a rich chat workspace. The console communicates with the palyrad daemon via the ConsoleApiClient, utilizing a specialized control plane API that supports both standard RESTful interactions and NDJSON-based streaming for real-time agent feedback.

System Architecture

The console is built using a “shell and section” architecture. The ConsoleRoutedShell manages the global layout, including the ConsoleSidebarNav, while the ConsoleSectionContent component dynamically switches between different functional modules based on the active route.

High-Level Component Relationship

The following diagram maps the logical components of the dashboard to their corresponding code entities. Sources:

Core State and Authentication

Global application state is managed by the useConsoleAppState hook. This hook handles:

Authentication Flow

The console supports multiple entry points, including a direct login via admin token and a “browser handoff” mechanism where the Desktop Application (Tauri) transfers a session to the web browser. Sources:

Console Sections

The dashboard is organized into five primary navigation groups, defined in sectionMetadata.ts and navigation.ts.
GroupPurposeKey Sections
ChatReal-time agent interactionchat
ObservabilityMonitoring and logsoverview, sessions, usage, logs
ControlHuman-in-the-loop and automationapprovals, cron, channels, browser
AgentCapability managementagents, skills, memory
SettingsSystem configurationauth, access, config, secrets
For details on section implementation, see Console Sections and Navigation. Sources:

Chat Workspace

The ChatConsolePanel is the most complex component in the console, providing a “workspace” for interacting with agents. It leverages useChatRunStream to manage the real-time flow of RunStream events from the daemon.

Key Workspace Features:

For details, see Chat Workspace. Sources:

API and Control Plane

The ConsoleApiClient (defined in consoleApi.ts) is the TypeScript implementation of the Palyra Control Plane. It handles: For details, see ConsoleApiClient and Control Plane. Sources:

Child Pages

Child Pages