Devlets
v0.4.1MITmacOS · Linux · Windows

Devlets Relay

A small, free tool for your computer. It reads how much of your Claude Code and Codex limits you have used and sends just those numbers, encrypted, to the Devlets app on your phone, for the Fuel Cells, Claude Meter and Codex Meter widgets.

curl -fsSL https://getdevlets.com/link.sh | sh

Paste it into Terminal (Mac, Linux) or PowerShell (Windows), not Command Prompt, and press Enter. It downloads the tool, checks it, then asks to link your phone.

  1. 01 · Claude Code · Codex

    Your computer

    Claude Code and Codex hand the relay their usage numbers. It encrypts each reading with a key only your computer and your phone have.

  2. 02 · api.getdevlets.com

    Devlets server

    Holds only the latest encrypted reading. It never sees what is inside.

  3. 03 · Fuel Cells widget

    Your phone

    Fetches the reading, decrypts it and shows your Claude and Codex rings.

Set up, step by step

You need

  • The Devlets app on your Android phone.
  • Claude Code or Codex installed and signed in on this computer, even if you mostly use the Claude or ChatGPT desktop apps. The Relay asks Claude Code and Codex for your limits.
  1. Open a terminal

    Mac: press ⌘ Space, type Terminal, press Return. Windows: open Start, type PowerShell, press Enter. Use PowerShell, not Command Prompt. Linux: open your terminal app.

  2. Paste the command and press Enter

    Copy the command at the top of this page (pick your computer's tab), paste it into the terminal and press Enter. It downloads the tool and checks it before installing.

  3. Pick your tools

    It shows Claude Code and Codex with checkboxes: use the arrow keys and Space, then Enter. Then it asks whether to keep your phone current in the background. It then shows a QR code and a 6-digit code.

  4. Scan it with Devlets

    On your phone, either add Fuel Cells, Claude Meter or Codex Meter, tap Set up and then Next: scan the code; or open Settings → Computers → Link a computer. Then tap Scan code. Scanned with your phone's camera app instead? Check that the 6 digits match the ones in your terminal, then tap Link.

  5. Keep working

    The first reading is usually ready by the time you scan the code. After that your rings update after Claude Code replies (in a terminal, in VS Code or in the desktop app's Code tab), after Codex turns, and every 15 minutes in the background. Only that 15-minute check sees OpenCode and other tools signed in with ChatGPT, the Claude and ChatGPT desktop apps and websites, and Codex on GitHub and in the cloud. Run devlets status any time to see the last reading.

Troubleshooting

Windows says “irm is not recognized”
You're in Command Prompt. Open PowerShell instead and paste the Windows command again.
“devlets: command not found” or “not recognized” later on
Open a new terminal window so it picks up the newly installed tool, then run devlets link.
“Neither Claude Code nor Codex is installed on this computer.”
Install Claude Code or Codex (links above), sign in once, then run devlets link.
The app says “This code has expired”
The terminal waits 10 minutes for your phone. Run devlets link again for a fresh code.
Scan code doesn't open
Point your phone's camera app at the QR code instead. It opens Devlets.
Linked, but “Waiting for the first reading”
It's usually ready by the time you scan. If it isn't, update Claude Code and sign in, or send Claude Code or Codex a message, then check devlets status.
The app says “Relay update available”
On this computer, run devlets update, then devlets setup.
macOS shows “Background item added”
That is the Relay's 15-minute check. It's expected.

Still stuck? Email support@getdevlets.com with what your terminal shows.

Commands

CommandWhat it does
devlets linkLinks this computer to your phone.
devlets statusShows what is linked and the last reading.
devlets unlinkRemoves the link and the hooks, and deletes the stored key and token.
devlets pushReads your usage and sends it now.
devlets setupTurns the background check and the Claude Code reply hook on: if you chose Off when linking, or linked before 0.3.0.
devlets updateInstalls the latest version. Commands mention a newer one, checked at most once a day.
devlets --versionPrints the version.

What it sends

Only a short reading of your usage, encrypted on your computer with a key that only your computer and your phone have. Devlets' server never sees it. Before encryption it looks like this:

reading.json (before encryption)
{
  "v": 1,
  "computer": "JOAQUIN-PC",
  "sentAt": "2026-10-17T09:12:00Z",
  "hooked": [
    "claude",
    "codex"
  ],
  "tools": {
    "claude": {
      "readAt": "2026-10-17T09:11:42Z",
      "windows": [
        {
          "id": "five_hour",
          "usedPercent": 38,
          "resetsAt": "2026-10-17T12:00:00Z"
        },
        {
          "id": "seven_day",
          "usedPercent": 61.5,
          "resetsAt": "2026-10-21T00:00:00Z"
        }
      ]
    },
    "codex": {
      "readAt": "2026-10-17T09:11:50Z",
      "windows": [
        {
          "id": "primary",
          "usedPercent": 22,
          "minutes": 300,
          "resetsAt": "2026-10-17T13:30:00Z"
        },
        {
          "id": "secondary",
          "usedPercent": 47,
          "minutes": 10080,
          "resetsAt": "2026-10-22T08:00:00Z"
        }
      ]
    }
  },
  "relayVersion": "0.4.1"
}

It holds the computer name, which tools are hooked, the percentages and when they reset, and the Relay's version number, and nothing else. No prompts, no files, no logins.

What it never does

  • Read your logins

    It never opens ~/.claude/.credentials.json, ~/.codex/auth.json or any other credential file.

  • Spend your tokens

    The background check asks Claude Code and Codex for your limits without starting a chat, and the Relay turns it off by itself if a check ever cost anything.

  • Send readable data

    The relay in the middle only ever sees encrypted data.

How it hooks in

When you link, the tool asks before changing anything. With your yes, it sets Claude Code's status line to devlets claude-statusline. Claude Code already hands that command your usage numbers, so nothing else is read. If you had a status line, it is kept and still runs, with its output unchanged.

For Codex, it sets the notify entry in ~/.codex/config.toml, chaining any program that was there, and asks Codex's own app server for your rate limits. It sends at most once every five minutes, and only when a number has moved.

With your yes, it also adds a hook that runs devlets claude-stop when Claude Code finishes a reply, and a background task every 15 minutes (Task Scheduler on Windows, a LaunchAgent on macOS, a systemd timer or cron on Linux) that asks Claude Code and Codex for your limits, using their own sign-ins.

devlets unlink puts the hooks back exactly as they were and removes the reply hook and the background task too.

Uninstall

  1. Run devlets unlink. It also deletes the stored key and token, and removes the reply hook and the background task. Run it before deleting the folder; otherwise the task (Task Scheduler, LaunchAgent or systemd timer) stays behind and keeps trying to start a program that is gone.

  2. Delete the folder: ~/.devlets on macOS and Linux, or %LOCALAPPDATA%\Devlets on Windows.

  3. Optional: remove the export PATH=... line from your shell profile (macOS and Linux), or the ...\Devlets\bin entry from your user Path (Windows).

Source and licence

Devlets Relay is open source under the MIT licence, so you can read every line: github.com/joaquingalang/devlets-relay.

Devlets is an independent app, not affiliated with Anthropic or OpenAI. Claude and Codex are trademarks of their owners.