Skip to main content
Palyra is a high-performance, secure-by-default agentic platform designed to bridge the gap between Large Language Models (LLMs) and local/remote execution environments. It provides a robust control plane for managing agent runs, persistent memory, tool execution, and multi-channel communication (Discord, Slack, etc.) while maintaining a strict security posture through sandboxing and policy-based authorization.

Core Architecture

The platform is built as a modular monorepo primarily in Rust, with a React-based web console and a Tauri-based desktop supervisor. At its heart, the palyra-daemon (palyrad) acts as the central orchestrator.

High-Level System Context

The following diagram illustrates how the primary code entities interact to form the Palyra platform. Palyra System Map Sources: crates/palyra-daemon/src/bin/palyrad.rs#11-14, crates/palyra-cli/src/bin/palyra.rs#11-14, Cargo.toml#1-19

Key Subsystems

1. Control Plane & Daemon (palyrad)

The daemon manages the lifecycle of “Runs,” which are units of agent execution. It handles message routing, state persistence in a SQLite-backed Journal, and integrates with various LLM providers.

2. Security & Identity

Palyra employs a layered security model. Identity is managed via mTLS and X.509 certificates generated by palyra-identity. Authorization decisions are offloaded to palyra-policy, which leverages the Cedar policy language. Sensitive data is stored in palyra-vault using envelope encryption.

3. Execution & Sandboxing

Tools and skills are executed within restricted environments. The platform supports multiple sandbox tiers, including WebAssembly (Wasm) via wasmtime for lightweight plugins and OS-level sandboxing for more complex tasks.

4. Connectors & Channels

Palyra communicates with the outside world through palyra-connectors. These adapters normalize communication from platforms like Discord or Slack into a standard format the daemon can process.

Codebase Navigation

The repository is organized as a Cargo workspace with clear separation between core logic, applications, and shared schemas.
DirectoryPurposeKey Entities
crates/Core library componentspalyra-common, palyra-vault, palyra-sandbox
apps/End-user applicationsweb, desktop, browser-extension
schemas/Cross-language definitionsProtobuf (.proto), JSON Schema (.json)
scripts/Tooling and CI/CDbootstrap.sh, protocol-generate
Code Entity Association Sources: Cargo.toml#1-19, Makefile#23-33, scripts/run-pre-push-checks.sh#101-104

Licensing

Palyra is source-available under the Palyra Community Source License (PCSL) v1.1. This allows for personal and internal commercial use but prohibits the creation of competitive standalone products or services.

Next Steps

Child Pages