# App Usage for Raycast

URL: https://www.raycast.com/GouravAkaJojo/app-usage

> Track screen time on your Mac locally and see which apps you use and for how long, with daily reports and Raycast AI usage summaries.

- Install: raycast://extensions/GouravAkaJojo/app-usage
- Author: [Gourav](https://www.raycast.com/GouravAkaJojo)
- Installs: 43
- Platforms: macOS
- Categories: Productivity, System, AI Extensions
- Updated: 2026-11-20
- Source: https://github.com/raycast/extensions/tree/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage/

## Commands

- **Collect Usage**: Records the focused application once a minute. Runs automatically in the background. Disabling this stops all tracking.
- **Usage Report**: See which applications you have used and for how long.
- **Daily Usage**: Browse the last seven days, one day at a time.

## AI tools

- **Get Usage Report**: Read tracked app usage, idle time, and hourly activity for today, yesterday, the last 7 days, or the last 30 days only. For other periods, including last year, use range unsupported and ask the user to choose a supported period. Does not change or delete data.

## README

<p align="center">
  <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//assets/extension-icon.png" width="96" alt="App Usage icon" />
</p>

<h1 align="center">App Usage</h1>

<p align="center">
  See your screen time and which apps you actually use.<br />
  Local tracking, with optional Raycast AI usage summaries.
</p>

<p align="center">
  <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-3.png" width="49%" alt="Usage Report — apps ranked by time tracked today" />
  <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-4.png" width="49%" alt="App detail — rank, comparison to average, and busiest hour" />
</p>

#### How it works

A background command samples the focused application once a minute and writes the result
to disk. Nothing else happens: no window, no toast, no network call.

Time is attributed to the app that was focused when the sampling window opened, and idle
time is subtracted, so walking away from your desk does not inflate the numbers. Idle time
is recorded separately rather than discarded, so the report can show time at the machine
alongside time actually working.

#### Getting started

Raycast leaves background commands off after a Store install, so nothing is recorded until
you do one of these:

- Open **Collect Usage** once from Raycast root search, or
- Enable **Collect Usage** in the extension's preferences.

Data appears a few minutes later. Until then, Usage Report and Daily Usage explain how
to turn tracking on and offer a shortcut to the preferences.

#### Screenshots

<table>
  <tr>
    <td width="50%">
      <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-1.png" alt="Root search showing the three App Usage commands" />
      <p align="center"><sub>Three commands, right in Raycast's root search</sub></p>
    </td>
    <td width="50%">
      <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-2.png" alt="Daily Usage view with an hour-by-hour active/idle chart" />
      <p align="center"><sub>Daily Usage — hour-by-hour activity for any of the last 7 days</sub></p>
    </td>
  </tr>
  <tr>
    <td width="50%">
      <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-3.png" alt="Usage Report list ranked by time tracked" />
      <p align="center"><sub>Usage Report — every app, ranked, with total tracked time up front</sub></p>
    </td>
    <td width="50%">
      <img src="https://github.com/raycast/extensions/raw/e38232e713cc42a58cac81b8d3af9261fd1624e5/extensions/app-usage//metadata/app-usage-4.png" alt="App detail pane with rank, average comparison, and busiest hour" />
      <p align="center"><sub>Drill into any app — rank, comparison to your average, and busiest hour</sub></p>
    </td>
  </tr>
</table>

#### Privacy

1. **Local tracking.** Collect Usage, Usage Report, and Daily Usage make no network requests.
   When you use Ask AI, the requested usage summary is sent to Raycast AI for processing.
2. **Application names only.** Never window titles, document names, URLs, or clipboard
   contents. Window titles would leak the contents of your work; app names do not.
3. **Local storage only.** Usage data is plain readable JSON under the extension's support
   directory, next to a cache of application icons copied out of the apps themselves.
4. **Excluded apps never hit disk.** An excluded app produces no record at all.
5. **One-action erase.** Clearing all data is a single action.
6. **Bounded retention**, 30 days by default, matching the longest range the report can show.

#### Accuracy

The numbers are a good estimate, not a system-level audit. Be aware that:

- Sampling only happens while Raycast is running.
- The sample interval is one minute, so very short app switches are missed.
- Raycast schedules background commands with some tolerance to save energy, so the
  extension measures real elapsed time between ticks rather than assuming a fixed gap.

The Usage Report shows how much time it actually tracked, so you can see the coverage
rather than having to trust the total.

#### Commands

| Command       | Runs                                                                                                  |
| ------------- | ----------------------------------------------------------------------------------------------------- |
| Collect Usage | Automatically, every minute in the background, once enabled (see [Getting started](#getting-started)) |
| Usage Report  | When you open it                                                                                      |
| Daily Usage   | When you open it                                                                                      |

Disabling **Collect Usage** stops all tracking.

#### Ask AI

Open **Ask App Usage** in Raycast, or mention `@app-usage` in AI Chat. Raycast AI
requires Raycast Pro. Try asking:

- Which apps did I use most today?
- How much time did I spend in Safari yesterday?
- When was I most active over the last 7 days?

AI can read usage for today, yesterday, or the last 7 or 30 days. It cannot change
settings or erase history. Results reflect recorded samples only. Missing days do
not mean zero usage. Requested summaries include app names, active and idle time,
and hourly totals, and are processed by Raycast AI.

#### Development

```sh
npm install
npm test          # unit tests for the sampler and the store
npm run dev       # load into Raycast for local development
npm run build     # production build, does extra type checking
npm run lint
```

The logic in `src/core/` has no Raycast imports, so the accuracy rules are unit-testable
without a Raycast runtime.
