Know exactly how long you code. Zero setup. Zero cloud. Zero accounts.
Install from VS Code Marketplace · Official Website · Report a Bug · Request a Feature
Dev Code Tracker automatically logs how long you spend on each project. Open a folder — the timer starts. Go idle — the session saves. Come back — a new session begins. No clicks, no config, no account.
Your data lives in a .devCodeTracker/sessions.json file inside your project. It never leaves your machine unless you explicitly set up optional self-hosted sync.
| Feature | Dev Code Tracker | Cloud-Based Trackers |
|---|---|---|
| Account required | No | Yes |
| Data stays on your machine | Always | No |
| Works fully offline | Yes | Partial |
| Cost | Free | Paid plans |
| Self-hosted sync | Optional | No |
Open project → timer starts → ⏱ Dev Code Tracker - 0s
Coding... → timer counts live → ⏱ Dev Code Tracker - 1h 23m 45s
Idle 5 min → session auto-saves → ⏱ Dev Code Tracker - 1h 23m
Come back → new session starts → ⏱ Dev Code Tracker - 0s
Close editor → session auto-saves
- Works with VS Code, Cursor, Windsurf, Claude Code, and VSCodium
- Multi-Root Workspaces — tracks the folder of the currently active file
- Click the status bar timer to open the dashboard
Search Dev Code Tracker in the VS Code Extensions panel (Ctrl+Shift+X) and click Install.
Or install directly from the VS Code Marketplace.
Open the local offline dashboard inside VS Code — no browser or internet needed.
- Bar charts by day and by project
- Per-session breakdown with start/end times
- Today's total at a glance
Shortcut: Cmd+Alt+L (Mac) / Ctrl+Alt+L (Windows/Linux)
Open the Command Palette (Ctrl+Shift+P) and type Dev Code Tracker:
| Command | Shortcut |
|---|---|
| Open Dashboard (Online / Local) | Cmd+Alt+D |
| Open Local Dashboard (Offline View) | Cmd+Alt+L |
| Show Today's Summary | — |
| Set Display Name for Project | — |
| Configure Online API | — |
| Sync to Server Now | — |
| Clear Project Data | — |
| Setting | Default | Description |
|---|---|---|
devCodeTracker.idleTimeoutMinutes |
5 |
Pause timer after N minutes of inactivity |
devCodeTracker.syncIntervalMinutes |
5 |
Auto-sync interval (online mode) |
devCodeTracker.apiUrl |
— | Your PHP API endpoint |
devCodeTracker.apiKey |
— | Your API secret key |
Want history across machines or a team view? Self-host the included PHP + MySQL backend:
- Upload the
server/directory to your server - Run
server/setup.sqlto create the tables - Edit
api.php— set DB credentials, API key, andtimezone_offset(e.g.330for IST,-300for EST) - In VS Code:
Ctrl+Shift+P→ Dev Code Tracker: Configure Online API - Enter your
api.phpURL and secret key
Sessions sync automatically every 5 minutes.
A rating takes 30 seconds and helps other developers find this extension.
Leave a review on the VS Code Marketplace
Found a bug or have a feature idea? Open an issue — all feedback is welcome.
If Dev Code Tracker saves you time, consider giving the repo a star — it helps others find it.
MIT — see LICENSE
Built by Kuldipsinh Parmar