Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Evincere/klisk/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Description
Launches the production server with a public-facing chat UI and REST API. Optimized for deployment environments.Arguments
Project name or path to serve.
Options
Port to bind the server to. Use
-p as shorthand.Default: Reads from $PORT environment variable, falls back to 8080Host address to bind to. Use
-h as shorthand.Default: 0.0.0.0 (all interfaces)Server Endpoints
The production server exposes:Chat UI
Chat API
Health Check
Examples
Default (Current Directory)
Specific Project
Custom Port
Custom Host and Port
Using Environment Variable
Cloud Deployment
Most cloud platforms set thePORT environment variable automatically:
Configuration
The server loads configuration from:- Project config:
klisk.config.yaml - Environment variables:
.envfile in the project root - Runtime options:
--portand--hostflags
Port Priority
--portflag (highest priority)$PORTenvironment variable- Default:
8080
Environment Variables
Ensure your.env file contains necessary API keys:
Production Considerations
Deployment Checklist
- Set real API keys in
.env - Configure appropriate host (
0.0.0.0for containers,127.0.0.1for local) - Use environment variable for port (cloud platforms)
- Set up health check monitoring at
/health - Consider rate limiting and authentication
Performance
The production server:- Uses production ASGI settings
- Disables hot reload (unlike
klisk dev) - Optimized for concurrent requests
- No debug mode or verbose logging
Security
For production deployments:- Use HTTPS (configure at reverse proxy level)
- Implement authentication/authorization
- Set appropriate CORS policies
- Protect API keys (never commit to version control)
Differences from klisk dev
| Feature | klisk dev | klisk serve |
|---|---|---|
| Hot reload | Yes | No |
| Studio features | Full development UI | Production chat UI |
| Port default | 8000 (from config) | 8080 (from $PORT or default) |
| Workspace mode | Supported | Single project only |
| Logging | Verbose | Production-level |
| Use case | Development | Production/staging |
API Usage
Interact with the chat API programmatically:Monitoring
Use the health endpoint for uptime monitoring:- Uptime Robot
- Pingdom
- Cloud provider health checks (AWS, GCP, Azure)
Deployment Examples
Docker
Railway
Google Cloud Run
Seeklisk deploy for automated Cloud Run deployment.
Related Commands
klisk dev- Development server with hot reloadklisk deploy- Deploy to Google Cloud Runklisk run- Run agent from CLIklisk check- Validate before serving