Configuration
Configure AutoTrack to your needs with API keys, environment variables, and custom settings.
API Keys
API keys are used to authenticate the Chrome Extension and npm package with your dashboard.
Generate API Key
- Log in to app.autotrack.dev
- Go to Dashboard → API Key
- Click "Generate New API Key"
- Copy the key immediately (you can only see it once!)
- Store it securely
Important
Using API Key
Chrome Extension
The Chrome Extension automatically asks for your credentials on first use. You don't need to manually enter the API key.
npm Package
Run the init command and enter your credentials:
autotrack init
Revoke API Key
If your API key is compromised:
- Go to Dashboard → API Key
- Click "Revoke API Key"
- The old key is invalidated
- Generate a new key
- Update your extension/package with the new key
Environment Variables
The npm package can be configured with environment variables.
Dashboard URL
By default https://app.autotrack.dev/api/worklog
is used. You can change this:
export WORKLOG_DASHBOARD_URL="https://custom.domain.com/api/worklog"
Auto-Submit
By default entries are automatically sent to the dashboard. You can disable this:
export WORKLOG_AUTO_SUBMIT="false"
If you disable this, entries are only stored locally. You'll need to manually synchronize them.
Default Project Name
By default the repository name is used as project. You can set a custom name:
export WORKLOG_PROJECT="my-custom-project-name"
Complete .bashrc / .zshrc Setup
Add these lines to your ~/.bashrc
or~/.zshrc
:
# AutoTrack Configuration
export WORKLOG_DASHBOARD_URL="https://app.autotrack.dev/api/worklog"
export WORKLOG_AUTO_SUBMIT="true"
export WORKLOG_PROJECT="my-project"
# Optional: Add custom git user info
export GIT_AUTHOR_NAME="Your Name"
export GIT_AUTHOR_EMAIL="your.email@example.com"
After adding, reload your shell: source ~/.bashrc
orsource ~/.zshrc
Git Hooks Configuration
Hooks Location
Git hooks are installed in:
~/.git-templates/hooks/
These hooks are automatically copied to every new git repository you create.
Reinstall Hooks
If the hooks aren't working, reinstall them:
npx @svenjens/mcp-autotrack-server postinstall
Disable Hooks (Per Repository)
If you want to disable hooks for a specific repository:
cd your-repository rm .git/hooks/post-commit
Chrome Extension Settings
Default Duration
In the extension popup you can set a default duration that's automatically filled in for new entries.
- Open the extension popup
- Click the settings icon (⚙️)
- Set your preferred default duration
- Click "Save"
Auto-fill Project
The extension automatically detects the project based on the URL. You can add custom mappings:
- Open the extension popup
- Click the settings icon (⚙️)
- Go to "Project Mappings"
- Add custom URL → Project mappings
Notifications
You can enable or disable notifications:
- Open the extension popup
- Click the settings icon (⚙️)
- Toggle "Show Notifications"
- Click "Save"
Dashboard Settings
Profile Settings
Update your profile information:
- Log in to app.autotrack.dev
- Go to Profile (top right)
- Update your name, email, timezone, etc.
- Click "Save Changes"
Email Report Settings
Configure automatic email reports (Pro feature):
- Go to Dashboard → Email Reports
- Enable "Automatic Reports"
- Configure:
- Frequency (weekly, monthly)
- Recipients (email addresses)
- Report format
- Click "Save Settings"
Timezone Settings
Make sure your timezone is set correctly for accurate timestamps:
- Go to Profile → Settings
- Select your timezone
- Click "Save"
Advanced Configuration
Custom API Endpoint
For enterprise users with self-hosted version:
# Set custom API endpoint
export WORKLOG_API_ENDPOINT="https://your-domain.com/api"
# Set custom dashboard URL
export WORKLOG_DASHBOARD_URL="https://your-domain.com"
Debug Mode
Enable debug logging:
export WORKLOG_DEBUG="true"
This shows extra logging in the terminal and browser console.
Offline Mode
Work completely offline (entries are only stored locally):
export WORKLOG_OFFLINE_MODE="true"
Troubleshooting
Environment variables don't work
- Check if you've added them to
~/.bashrc
or~/.zshrc
- Reload your shell:
source ~/.bashrc
- Verify with:
echo $WORKLOG_AUTO_SUBMIT
- Restart your terminal completely
API key doesn't work
- Check if the key was copied correctly (no extra spaces)
- Verify that the key hasn't been revoked
- Generate a new key and try again
- Check if you're logged in to the correct account