Overview
All schemas are built using Zod for runtime validation and TypeScript type inference. Import schemas from@better-openclaw/core/schema.
Core Enums
ServiceCategorySchema
Defines available service categories.MaturitySchema
Service maturity level indicator.PlatformSchema
Supported deployment platforms.ProxyTypeSchema
Reverse proxy options.DeploymentTypeSchema
Deployment method for the stack.DeploymentTargetSchema
Target environment for deployment.Service Definition Schemas
ServiceDefinitionSchema
Complete schema for a service definition with Docker configuration, dependencies, and metadata.Unique service identifier (lowercase alphanumeric with hyphens)
Human-readable service name
Service description
Service category
Emoji or icon identifier
Docker image name
Docker image tag
Port mappings for the service
Volume mappings for the service
Environment variable definitions
Required dependency service IDs
Recommended companion service IDs
Service IDs that cannot coexist
PortMappingSchema
Defines a container port mapping.Host port (1-65535)
Container port (1-65535)
Human-readable port description
Whether to expose on host network
VolumeMappingSchema
Defines a volume mount for a service.Volume name or bind-mount path
Mount path inside container
Volume purpose description
Docker volume driver
EnvVariableSchema
Defines an environment variable for a service.Environment variable name
Default value
Whether this is a secret that should be auto-generated
Variable purpose description
Whether variable is required
Regex pattern for value validation
Generation Input Schema
GenerationInputSchema
Input configuration for generating a complete OpenClaw stack.Project name (lowercase alphanumeric with hyphens)
Service IDs to include
Skill pack IDs to include
AI provider configurations
Reverse proxy to use
Domain for proxy routing
Target platform
Deployment target
Deployment method
Auto-generate secret values
Include monitoring stack
Enable GPU passthrough
OpenClaw version tag
Resolver Output Schema
ResolverOutputSchema
Output from the dependency resolver.All resolved services with dependency information
Dependencies automatically added
Services removed due to conflicts
Non-blocking validation warnings
Blocking validation errors
Whether configuration is valid
Estimated total memory requirement
Compose Options Schema
ComposeOptionsSchema
Options for Docker Compose file generation.Docker Compose project name
Reverse proxy configuration
Custom HTTP port for proxy
Custom HTTPS port for proxy
Domain for routing
Enable GPU reservations
Target platform
Apply security hardening (cap_drop, no-new-privileges)
How to install OpenClaw (docker or direct)
Usage Example
See Also
- Resolver API - Use schemas with the dependency resolver
- Composer API - Generate Docker Compose with validated schemas
- Validator API - Validate resolved configurations