How canyoncodecoreai/canyonos works
CanyonOS is a control plane for deploying Python agent workflows, distributing their execution, and collecting observability. The principal path is CLI deployment into controller/reconciler-managed replicas; agent calls are queued, routed locally or across controllers, and can use the LLM gateway. Runtime telemetry is exported to the API and surfaced in the dashboard. The README documents deployment, asynchronous execution, and observability; several subsystem connections below are documented capabilities rather than inspected call sites, so they are marked dashed.
Main entry points: local_controller.py Local controller · projects.routes.ts Project API · global_controller.py Global controller · deploy.py CanyonOS CLI
Components 20
Deployment and control
- CanyonOS CLI
packages/cli/canyonos/deploy.py - Workflow manifest
packages/core/canyonos_core/schema/manifest.py - Global controller
packages/core/canyonos_core/controller/global_controller.py - Controller context
packages/core/canyonos_core/controller/controller_context.py - Reconciler
packages/core/canyonos_core/reconciler/reconciler.py - Provider runtimes
packages/core/canyonos_core/reconciler/providers
Agent runtime
- Local controller
packages/core/canyonos_core/controller/local_controller.py - Request queue
- Redis state
packages/core/canyonos_core/controller/utils/redis_client.py - LLM gateway
packages/core/canyonos_core/llm_gateway/app.py
Telemetry and analytics
- OTel exporter
packages/core/canyonos_core/otlp_exporter/otel_exporter.py - Telemetry ingestion
packages/api/src/modules/telemetry/telemetry.routes.ts - Metrics and monitoring
packages/api/src/modules/monitoring/monitoring.routes.ts
Dashboard and API
- Project API
packages/api/src/modules/projects/projects.routes.ts - Authentication
packages/api/src/modules/auth/auth.service.ts - Prompt management
packages/api/src/modules/prompts/prompts.routes.ts - Scaling policies
packages/api/src/modules/scaling/scaling.routes.ts - Web dashboard
packages/web/src/modules/projects/components/project-query-drawer.tsx
Other components
- Developer
- Dashboard user
Connections 21
- Developer → CanyonOS CLI: deploys with
- CanyonOS CLI → Workflow manifest: builds from
- CanyonOS CLI → Global controller: launches workflow
- Global controller → Reconciler: starts
packages/core/canyonos_core/controller/global_controller.py - Global controller → Controller context: uses
packages/core/canyonos_core/controller/global_controller.py - Controller context → Provider runtimes: selects runtime
packages/core/canyonos_core/controller/controller_context.py - Reconciler → Provider runtimes: dispatches
- Provider runtimes → Local controller: starts replica
- Local controller → Request queue: consumes requests
packages/core/canyonos_core/controller/local_controller.py - Local controller → Redis state: reads and writes
packages/core/canyonos_core/controller/local_controller.py - Global controller → Redis state: tracks replicas
packages/core/canyonos_core/controller/global_controller.py - Local controller → Local controller: forwards calls
packages/core/canyonos_core/controller/local_controller.py - Local controller → LLM gateway: routes model calls
- OTel exporter → Telemetry ingestion: exports telemetry
- Telemetry ingestion → Metrics and monitoring: stores telemetry
- Dashboard user → Web dashboard: explores workflow
- Web dashboard → Project API: requests project data
packages/web/src/modules/projects/components/project-query-drawer.tsx - Project API → Authentication: authenticates
- Project API → Metrics and monitoring: routes analytics
packages/api/src/modules/projects/projects.routes.ts - Project API → Prompt management: routes prompts
packages/api/src/modules/projects/projects.routes.ts - Project API → Scaling policies: routes scaling
packages/api/src/modules/projects/projects.routes.ts