Getting Started
This guide will help you get up and running with kasl quickly.
Installation
Section titled “Installation”Quick Install (Recommended)
Section titled “Quick Install (Recommended)”Install kasl using curl:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/lacodda/kasl/main/tools/install.sh)"Or using wget:
sh -c "$(wget https://raw.githubusercontent.com/lacodda/kasl/main/tools/install.sh -O -)"Build from Source
Section titled “Build from Source”Requirements:
- Rust 1.70 or higher
- Git
git clone https://github.com/lacodda/kasl.gitcd kaslcargo build --releasecargo install --path .Verify Installation
Section titled “Verify Installation”Check that kasl is installed correctly:
kasl --versionInitial Configuration
Section titled “Initial Configuration”Interactive Setup
Section titled “Interactive Setup”Run the interactive configuration wizard:
kasl initThis will guide you through setting up:
- Monitor settings (pause thresholds, activity detection)
- API integrations (GitLab, Jira, SiServer)
- Server configuration for report submission
Manual Configuration
Section titled “Manual Configuration”Configuration files are stored in:
- Windows:
%LOCALAPPDATA%\lacodda\kasl\config.json - macOS:
~/Library/Application Support/lacodda/kasl/config.json - Linux:
~/.local/share/lacodda/kasl/config.json
Example configuration:
{ "monitor": { "min_pause_duration": 20, "pause_threshold": 60, "poll_interval": 500, "activity_threshold": 30, "min_work_interval": 10 }, "si": { "login": "your.email@company.com", "auth_url": "https://auth.company.com", "api_url": "https://api.company.com" }, "gitlab": { "access_token": "your-token", "api_url": "https://gitlab.com" }, "jira": { "login": "your.email@company.com", "api_url": "https://jira.company.com" }}First Steps
Section titled “First Steps”1. Start Activity Monitoring
Section titled “1. Start Activity Monitoring”Begin tracking your work sessions:
# Start monitoring in the backgroundkasl watch
# Or run in foreground for debuggingkasl watch --foreground2. Enable Autostart (Optional)
Section titled “2. Enable Autostart (Optional)”Configure kasl to start automatically on system boot:
kasl autostart enable3. Create Your First Task
Section titled “3. Create Your First Task”Add a task to track your work:
kasl task add --name "Set up kasl" --completeness 1004. View Your Report
Section titled “4. View Your Report”Check your work summary:
kasl reportDaily Workflow
Section titled “Daily Workflow”Morning Routine
Section titled “Morning Routine”-
Check yesterday’s report (if needed):
Terminal window kasl report --last -
Create today’s tasks:
Terminal window kasl task add --name "Code review" --completeness 0kasl task add --name "Team meeting" --completeness 0 -
Start monitoring (if not already running):
Terminal window kasl watch
During the Day
Section titled “During the Day”-
Update task progress:
Terminal window kasl task edit 1 # Edit task by ID -
Add new tasks as needed:
Terminal window kasl task add --name "Bug fix" --completeness 0 -
View current status:
Terminal window kasl task list # Show today's tasks
End of Day
Section titled “End of Day”-
View today’s report:
Terminal window kasl report -
Submit report (if configured):
Terminal window kasl report --send -
End workday manually (if needed):
Terminal window kasl end
Common Tasks
Section titled “Common Tasks”Task Management
Section titled “Task Management”# Create a taskkasl task add --name "Task name" --comment "Description" --completeness 0
# List taskskasl task list
# Edit a taskkasl task edit 1
# Remove a taskkasl task remove 1
# Use templateskasl task add --from-templateTime Adjustments
Section titled “Time Adjustments”# Adjust work start timekasl adjust --mode start --minutes 30
# Add a pausekasl adjust --mode pause --minutes 15
# Adjust work end timekasl adjust --mode end --minutes 20Data Export
Section titled “Data Export”# Export today's datakasl export --format csv
# Export all datakasl export all --format json
# Export to specific filekasl export --output my_report.csvMonthly Summary
Section titled “Monthly Summary”# View monthly summarykasl sum
# Submit monthly reportkasl sum --sendTroubleshooting
Section titled “Troubleshooting”Check if Monitoring is Running
Section titled “Check if Monitoring is Running”kasl watch --stop # Stop any running instanceskasl watch --foreground # Start in foreground to see logsDebug Mode
Section titled “Debug Mode”Enable debug logging:
KASL_DEBUG=1 kasl watch --foregroundReset Configuration
Section titled “Reset Configuration”If you need to start over:
kasl init --deleteNext Steps
Section titled “Next Steps”- Read the Features guide to learn about advanced capabilities
- Explore API Integrations for external service connections
- Check the Configuration guide for detailed settings
- Review Commands for complete command reference