Server Settings
This page covers server-specific settings for Janâs local API. For general Jan settings, see the main Settings Guide.
Accessing Server Settings
Section titled âAccessing Server SettingsâNavigate to Settings in Jan to configure server-related options.
Server Configuration
Section titled âServer ConfigurationâAPI Server Settings
Section titled âAPI Server SettingsâConfigure the local API server at Settings > Local API Server:
- Host & Port - Network binding configuration
- API Key - Authentication for API requests
- CORS - Cross-origin resource sharing
- Verbose Logging - Detailed request/response logs
See our API Configuration Guide for complete details.
Engine Configuration
Section titled âEngine ConfigurationâConfigure llama.cpp engine at Settings > Model Providers > Llama.cpp:
- Backend Selection - Hardware-optimized versions
- Performance Settings - Batching, threading, memory
- Model Defaults - Context size, GPU layers
See our Engine Settings Guide for optimization tips.
Logging & Monitoring
Section titled âLogging & MonitoringâServer Logs
Section titled âServer LogsâMonitor API activity in real-time:
- Enable Verbose Server Logs in API settings
- View logs at System Monitor > App Log
- Filter by
[SERVER]tags for API-specific events
Log Management
Section titled âLog Managementâ- Location: Stored in Jan Data Folder
- Retention: Automatically cleared after 24 hours
- Manual Clear: Settings > Advanced > Clear Logs
Performance Tuning
Section titled âPerformance TuningâMemory Management
Section titled âMemory ManagementâFor optimal server performance:
- High Traffic: Increase parallel slots in engine settings
- Limited RAM: Reduce KV cache quality (q8_0 or q4_0)
- Multiple Models: Enable model unloading after idle timeout
Network Configuration
Section titled âNetwork ConfigurationâAdvanced networking options:
- Local Only: Use
127.0.0.1(default, most secure) - LAN Access: Use
0.0.0.0(allows network connections) - Custom Port: Change from default
1337if conflicts exist
Security Considerations
Section titled âSecurity ConsiderationsâAPI Authentication
Section titled âAPI Authenticationâ- Always set a strong API key
- Rotate keys regularly for production use
- Never expose keys in client-side code
Network Security
Section titled âNetwork Securityâ- Keep server on
localhostunless LAN access is required - Use firewall rules to restrict access
- Consider VPN for remote access needs
Troubleshooting Server Issues
Section titled âTroubleshooting Server IssuesâCommon Problems
Section titled âCommon ProblemsâServer wonât start:
- Check port availability (
netstat -an | grep 1337) - Verify no other instances running
- Try different port number
Connection refused:
- Ensure server is started
- Check host/port configuration
- Verify firewall settings
Authentication failures:
- Confirm API key matches configuration
- Check Authorization header format
- Ensure no extra spaces in key
For more issues, see our Troubleshooting Guide.
Related Resources
Section titled âRelated Resourcesâ- API Configuration - Detailed API settings
- Engine Settings - Hardware optimization
- Data Folder - Storage locations
- Models Overview - Model management