sehercode 0.0.13

CLI tool to monitor Claude API rate limits and execute code after reset
Documentation

Seher

Seher is a CLI tool that waits for Claude's Rate Limit to reset, then executes a specified prompt using Claude Code.

How it works

By default, it retrieves Chrome's cookie information and uses it to call Claude's API to get the Rate Limit reset time. The browser and profile from which cookies are retrieved can be changed with options.

Supported Browsers

Seher supports reading cookies from the following browsers:

Chromium-based browsers

  • Chrome
  • Microsoft Edge
  • Brave
  • Chromium
  • Vivaldi
  • Comet (Perplexity AI browser)
  • Dia (The Browser Company)
  • ChatGPT Atlas (OpenAI browser)

Other browsers

  • Firefox (all platforms)
  • Safari (macOS only - uses sandboxed cookies location)

All Chromium-based browsers use the same cookie storage format and encryption. Firefox uses a different SQLite schema without encryption. Safari uses a proprietary binary format on macOS.

Note: On recent versions of macOS, Safari cookies are stored in a sandboxed location: ~/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies

Installation

Homebrew (macOS / Linux) - recommended

brew install takumi3488/tap/seher

Pre-built binaries

Pre-built binaries are available for macOS and Linux (x86_64 and aarch64):

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/takumi3488/seher/releases/latest/download/seher-installer.sh | sh

Build from source

cargo install --git https://github.com/takumi3488/seher

Usage

# Default
seher "fix bugs"
# Launch vim to input a prompt
seher
# Change the browser and profile from which cookies are retrieved
seher --browser edge --profile "Profile 1" "fix bugs"
# Use Firefox
seher --browser firefox --profile "default-release" "fix bugs"
# Use Safari (macOS only)
seher --browser safari "fix bugs"
# Most Claude Code options can be used as is
seher --chrome --disallowedTools "Bash(git:*)" --permission-mode bypassPermissions "fix bugs"

It is recommended to alias frequently used options as follows:

alias shr="seher --profile 'Profile 1' --permission-mode bypassPermissions"

Configuration

You can customize seher's behavior by creating ~/.seher/settings.json. If the file does not exist, the default configuration (using claude with no extra arguments) is applied.

Settings

Field Type Description
agents array List of agents to use
agents[].command string Command name ("claude" or "copilot")
agents[].args array of strings Additional arguments (optional)

Example

{
  "agents": [
    {
      "command": "claude",
      "args": ["--permission-mode", "bypassPermissions"]
    },
    {
      "command": "copilot",
      "args": []
    }
  ]
}

When multiple agents are configured, seher preferentially selects agents that are not rate-limited.