# Lancetta for Raycast

URL: https://www.raycast.com/Undolog/lancetta

> View Claude Code and Codex quota, suggestions, sessions, tokens, and processes with the free Lancetta app for macOS.

- Install: raycast://extensions/Undolog/lancetta
- Author: [Giovambattista Fazioli](https://www.raycast.com/Undolog)
- Installs: 3
- Platforms: macOS
- Categories: Developer Tools, Productivity, AI Extensions
- Updated: 2026-12-03
- Source: https://github.com/raycast/extensions/tree/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta/

## Commands

- **Show Quota**: Each coding agent's 5-hour and 7-day windows with Lancetta's charts and clock, per-model weeks, refusals and suggestions
- **Agent Sessions**: The Claude Code and Codex sessions on Lancetta's wall: working, waiting on you, done; open one in your terminal
- **Token Usage**: Claude Code's tokens per day and per project, from Lancetta's scan of its transcripts
- **Codex Processes**: The Codex plugin's app-server trees running, the memory they hold, and the orphans Lancetta can reclaim

## AI tools

- **Get Quota**: Get how much of each coding agent's quota (Claude, Codex) is used and left in its 5-hour and 7-day windows, when each resets, whether the account is refusing requests, and Lancetta's suggestions, including whether the current pace runs out before the reset. Use it before answering whether a long agent run can start now.
- **Get Sessions**: Get the Claude Code and Codex sessions on Lancetta's wall: the ones working and the ones waiting on the user (a question, an approval, a finished turn, a failure), or with which set to "done" the latest ones finished with. Use it when asked what is running, what needs an answer, or what was worked on.
- **Get Token Usage**: Get Claude Code's tokens per day and the projects that used the most, over the last few days. Use it for questions about how many tokens were used, when, or on which project. Codex's tokens are not available.
- **Get Codex Processes**: Get the Codex plugin's app-server process trees running on this Mac, the memory each holds, and which are orphaned (their folder is gone). Use it when asked what Codex is holding in memory or whether anything can be cleaned up.

## README

### Lancetta for Raycast

> **This extension needs the free Lancetta app for macOS.** Show Quota, Agent Sessions and Token Usage show in Raycast what Lancetta reads, and without the app they have nothing to show. Codex Processes reads the process table itself and works without it; reclaiming the orphaned ones is done in the app.
>
> **[Download Lancetta](https://lancetta.app/download)** · free · macOS 15 Sequoia or later · Universal · signed and notarized · [lancetta.app](https://lancetta.app)

![Lancetta, the menu bar app for Claude Code and Codex](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/lancetta-app.png)

[Lancetta](https://lancetta.app) is a native macOS menu bar app that tells you **when and how to use your coding agents, Claude Code and Codex**: push on, slow down, or switch agent. It reads each account's quota without spending any, works out on your Mac whether your pace runs out before the reset, and says what to do about it, while there is still time to act. No model is asked and no token is used.

This extension brings Lancetta into Raycast: your quota with Lancetta's own charts and clock, its suggestions, the agent sessions waiting on you, Claude Code's daily tokens and the Codex processes holding memory, plus `@lancetta` for Raycast AI.

#### Watch Lancetta in 35 seconds

[![Lancetta: when and how to use your coding agents, in 35 seconds](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-promo.jpg)](https://www.youtube.com/watch?v=UPD99NTXu2M)

#### Get started

1. **[Download Lancetta](https://lancetta.app/download)** and drag it to Applications. It is free.
2. Open it and connect your agents: [Getting started](https://lancetta.app/docs/getting-started), or watch [Install Lancetta and connect your agents](https://www.youtube.com/watch?v=8kRewaOwGLM).
3. Install this extension and run **Show Quota**.

**Requires Lancetta 0.70 or later**: the extension reads Lancetta's own exports (`Lancetta history`, `sessions` and `tokens`, and the `usage.json` it writes on your Mac) and never asks Claude or Codex itself: no second keychain prompt, no extra requests against your quota. Token Usage is current without opening the app. Keep Lancetta running: when it has not written for a quarter of an hour, the extension says so and how old the numbers are.

#### Commands

##### Show Quota

Each agent's 5-hour and 7-day windows, each model's own week, a refusal by the account, and Lancetta's suggestions: "At this pace Claude stops in 3h29m, then waits 16h14m for its reset", with the steps that help.

![Show Quota](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/show-quota.png)

Press ↵ on a window for Lancetta's chart: the week so far, last week dotted, the pace carried forward to where it runs out, the stretch you would be stopped for hatched in amber. The 5-hour window is drawn as Lancetta's clock.

![Show Quota with the week's chart](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/show-quota-chart.png)

Copy the status line Lancetta prints for terminals and bars, open a problem's troubleshooting page, or jump to Lancetta to spend a Codex free reset.

##### Agent Sessions

The Claude Code and Codex sessions on Lancetta's wall: the ones working, and the ones waiting on you (a question, an approval, a finished turn). Open one in your terminal with the command Lancetta uses (`claude attach`, `claude --resume` or `codex resume`), or copy it. [How sessions work](https://lancetta.app/docs/sessions).

![Agent Sessions](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/agent-sessions.png)

##### Token Usage

Claude Code's tokens per day and per project, counted as Lancetta counts them: input, output and cache writes, without the cache reads that would drown everything else.

![Token Usage](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/token-usage.png)

##### Codex Processes

The Codex plugin's app-server trees, the memory each holds, and the orphans whose folder is gone. Lancetta reclaims them safely: it reads every process exactly before it stops one.

#### Ask `@lancetta`

In Raycast AI:

- "Can I start a long Codex run now?"
- "Which agent sessions are waiting on me?"
- "How many tokens did Claude Code use this week, and on which project?"
- "Is Codex holding memory it should not?"

Every tool is read-only.

#### Preferences

- **Show Quota**: show what is used or what is left, or follow Lancetta's own setting.
- **Agent Sessions**: the terminal app a session opens in, and whether done sessions are listed.
- **Token Usage**: the period, from 7 to 90 days.

#### More in the Lancetta app

Raycast is the quick look. The app does the rest: suggestions in a notification before an agent stops, the island under the notch, desktop widgets, Maintenance for the files your agents load at every start, reclaiming orphaned processes (the list first, then your word), and Codex's own token history.

![Lancetta's Overview](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/lancetta-window-overview.png)

![Lancetta's Limits, with the week and the 5-hour clock](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/lancetta-window-limits-charts.png)

![The island under the notch](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/lancetta-notch-open.png)

![Desktop widgets](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/lancetta-widgets.png)

#### Videos

| | |
| --- | --- |
| [![When to push on, when to slow down with Claude Code and Codex](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-launch-suggestions.jpg)](https://www.youtube.com/watch?v=KJ6PqrHH59E) | [![Fix what your coding agents load, free what they leave behind](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-launch-maintenance.jpg)](https://www.youtube.com/watch?v=P8Shkj70KPo) |
| **When to push on, when to slow down** | **Fix what your agents load, free what they leave behind** |
| [![Tutorial 01: Install Lancetta and connect your agents](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-tutorial-01.jpg)](https://www.youtube.com/watch?v=8kRewaOwGLM) | [![Tutorial 02: Act on a suggestion](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-tutorial-02.jpg)](https://www.youtube.com/watch?v=KUTP3krjJi4) |
| **Tutorial 01** · Install Lancetta and connect your agents | **Tutorial 02** · Act on a suggestion |
| [![Tutorial 03: Read your quota from the menu bar](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-tutorial-03.jpg)](https://www.youtube.com/watch?v=LWlc2akiO7o) | [![Tutorial 04: The island under the notch](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-tutorial-04.jpg)](https://www.youtube.com/watch?v=-PFOdupUYP4) |
| **Tutorial 03** · Read your quota from the menu bar | **Tutorial 04** · The island under the notch |
| [![Tutorial 05: Desktop widgets](https://github.com/raycast/extensions/raw/fb300b14d9c56b667c94c143be5b1fbf4fa1f0dc/extensions/lancetta//media/video-tutorial-05.jpg)](https://www.youtube.com/watch?v=AM-rM0UuQX4) | |
| **Tutorial 05** · Desktop widgets | |

More on the [Lancetta YouTube channel](https://www.youtube.com/@Lancetta-app).

#### Privacy

The extension reads Lancetta's files on your Mac and sends nothing anywhere. When you ask `@lancetta`, Raycast AI receives what the tool returns, as with any AI extension. Lancetta's own [privacy page](https://lancetta.app/docs/privacy) covers the app.

#### Links

- [lancetta.app](https://lancetta.app) · [Download](https://lancetta.app/download) · [Documentation](https://lancetta.app/docs/) · [FAQ](https://lancetta.app/docs/faq)
- [How Lancetta reads your quota](https://lancetta.app/docs/how-it-reads) · [Suggestions](https://lancetta.app/docs/suggestions) · [Command line](https://lancetta.app/docs/command-line)
- [Release notes](https://lancetta.app/docs/release-notes) · [Roadmap](https://lancetta.app/docs/roadmap)
- [YouTube](https://www.youtube.com/@Lancetta-app) · [@gfazioli on X](https://x.com/gfazioli)
- Lancetta is free. If it saves you a stalled afternoon, consider [sponsoring it](https://github.com/sponsors/gfazioli).
