ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 shelltime

shelltime-statusline

터미널과 데스크톱 앱에서 Git, 모델, 세션 및 일일 비용, 할당량, 에이전트 시간, 컨텍스트를 보여 주는 Claude Code용 ShellTime 상태 표시줄입니다.

shelltime@shelltime

shelltime/claude-code-mods/tree/main/plugins/shelltime-statusline

번역 완료

이 mod 소개

shelltime-statusline

Claude Code 모드로 제공되는 ShellTime 상태 표시줄입니다. 프롬프트 위의 밴드에 ShellTime 상태 표시줄을 그립니다. 터미널과 Claude 데스크톱 앱의 Code 탭에서 실행되며, 후자에서는 settings.json의 statusLine 명령이 그려지지 않습니다.

터미널에서는 Claude Code 테마 색상으로 shelltime cc statusline과 같은 한 줄을 표시하므로 /theme를 따릅니다.

🌿 main* | 🤖 Opus 5.5 | 💰 $1.23 | 📊 $12.50 | 🚦 5h:23% 7d:45% | ⏱️ 1h5m | 📈 42%

데스크톱 앱에서는 테두리나 패딩이 없는 한 줄을 밝은 테마와 어두운 테마 모두에서 읽을 수 있는 색조로 표시합니다. 할당량과 컨텍스트의 각 백분율 옆에 가는 막대를 보여 줍니다. 컴포저의 바닥글에 이미 모델이 표시되므로 데스크톱에서는 모델을 생략합니다.

🌿 main*   💰 $1.23   📊 $12.50   🚦 5h ━━── 23%  7d ━━━─ 45%   ⏱️ 1h5m   📈 ━━── 42%

| 구간 | 표시 내용 | 색상 | 링크 | | --- | --- | --- | --- | | 🌿 | Git 브랜치. 트리가 변경되었을 때 * 표시 | 녹색, 저장소 밖에서는 회색 - | | | 🤖 | 모델(터미널만) | | | | 💰 | 현재 세션 비용 | 청록색 | shelltime.xyz의 세션 | | 📊 | 오늘의 Claude Code 비용 | 노란색(데스크톱에서는 호박색), 데이터가 없으면 회색 - | 코딩 에이전트 페이지 | | 🚦 | 사용한 5시간 및 7일 할당량 | 녹색, 50%부터 노란색, 80%부터 빨간색. 데스크톱에서는 각 버킷에 자체 막대와 색상이 있음 | claude.ai 사용량 | | ⏱️ | 오늘의 AI 에이전트 시간 | 자홍색, 데이터가 없으면 회색 - | 프로필 | | 📈 | 사용한 컨텍스트 창, 데스크톱에서는 막대 포함 | 녹색, 50%부터 노란색, 80%부터 빨간색 | |

설치

claude plugin marketplace add shelltime/claude-code-mods
claude plugin install shelltime-statusline@shelltime

같은 컴퓨터의 데스크톱 세션은 같은 설치 플러그인을 불러옵니다.

설정

이 모드에는 설정할 것이 없습니다. CLI와 같은 순서로 ShellTime CLI 자체의 설정 파일 ~/.shelltime/config.yaml(또는 .yml / .toml이며 config.local.*을 병합)을 읽습니다. shelltime init을 한 번 실행하면 모드가 토큰을 가져옵니다. 파일 변경은 다음 새로 고침에 반영됩니다.

shelltime 바이너리나 데몬은 필요하지 않습니다. 토큰이 없어도 Git, 모델, 세션 비용, 할당량, 컨텍스트를 표시합니다. 일일 비용과 에이전트 시간은 -으로 표시되며 ShellTime에 아무것도 보내지 않습니다.

숫자의 출처

| | shelltime cc statusline | 이 모드 | | --- | --- | --- | | git | 데몬이 git을 실행 | 같은 git 명령(GIT_OPTIONAL_LOCKS=0)을 실행 | | 모델, 세션 비용, 컨텍스트 | Claude Code 상태 표시줄 JSON | Claude Code에서 직접 같은 수치를 가져옴 | | 할당량 | 데몬이 키체인의 OAuth 토큰으로 Anthropic 사용량 API를 호출 | Claude Code가 마지막 API 응답에서 이미 읽은 속도 제한. 키체인에 접근하지 않으며 모든 OS에서 작동 | | 일일 비용, 에이전트 시간 | 데몬이 ShellTime API를 조회 | 같은 GraphQL 쿼리를 최대 15 s마다 실행 | | 세션 → 프로젝트 매핑 | ShellTime API로 전송 | 세션과 디렉터리마다 한 번씩 같은 요청을 보냄 |

기본 상태 표시줄과 마찬가지로 대화가 바뀔 때 갱신됩니다. 프롬프트를 보낼 때, 각 도구 호출 뒤, 턴이 끝날 때 갱신하며 세션이 유휴 상태일 때는 폴링하지 않습니다.

터미널

~/.claude/settings.json에도 shelltime cc statusline을 실행하는 statusLine이 있으면 터미널에 두 줄이 모두 표시됩니다. 둘 다 유지하거나 하나를 제거하면 됩니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add shelltime/claude-code-mods
claude plugin install shelltime-statusline
원문 / README

shelltime-statusline

The ShellTime statusline as a Claude Code mod. It draws the ShellTime statusline in a band above the prompt. It runs in the terminal and in the Code tab of the Claude desktop app, where the statusLine command from settings.json is not drawn.

In the terminal it is the same line as shelltime cc statusline, in Claude Code's theme colors, so it follows /theme:

🌿 main* | 🤖 Opus 5.5 | 💰 $1.23 | 📊 $12.50 | 🚦 5h:23% 7d:45% | ⏱️ 1h5m | 📈 42%

In the desktop app it is one flat row, with no borders or padding, in tones that read on the light and the dark theme. Quota and context get a thin bar beside each percentage. The model is left out there, since the composer's footer already shows it.

🌿 main*   💰 $1.23   📊 $12.50   🚦 5h ━━── 23%  7d ━━━─ 45%   ⏱️ 1h5m   📈 ━━── 42%

| Segment | Shows | Color | Link | | --- | --- | --- | --- | | 🌿 | Git branch, with * when the tree is dirty | green, gray - outside a repo | | | 🤖 | Model (terminal only) | | | | 💰 | This session's cost | cyan | the session on shelltime.xyz | | 📊 | Today's Claude Code cost | yellow (amber on desktop), gray - with none | your coding agent page | | 🚦 | 5-hour and 7-day quota used | green, yellow from 50%, red from 80%; on desktop each bucket has its own bar and color | claude.ai usage | | ⏱️ | Today's AI agent time | magenta, gray - with none | your profile | | 📈 | Context window used, with a bar on desktop | green, yellow from 50%, red from 80% | |

Install

claude plugin marketplace add shelltime/claude-code-mods
claude plugin install shelltime-statusline@shelltime

Desktop sessions on the same machine load the same installed plugins.

Configuration

There is nothing to configure in the mod. It reads the ShellTime CLI's own config file, ~/.shelltime/config.yaml (or .yml / .toml, with config.local.* merged over it), in the same order the CLI does. Run shelltime init once and the mod picks up your token. Changes to the file are picked up on the next refresh.

The mod doesn't need the shelltime binary or its daemon. Without a token it still shows git, model, session cost, quota and context. Daily cost and agent time show -, and nothing is sent to ShellTime.

Where the numbers come from

| | shelltime cc statusline | this mod | | --- | --- | --- | | git | the daemon runs git | runs the same git commands (GIT_OPTIONAL_LOCKS=0) | | model, session cost, context | Claude Code's statusline JSON | the same figures, from Claude Code directly | | quota | the daemon calls Anthropic's usage API with the OAuth token from the Keychain | the rate limits Claude Code already read from its last API response. No Keychain access, works on any OS | | daily cost, agent time | the daemon queries ShellTime's API | the same GraphQL query, at most once every 15 s | | session → project mapping | sent to ShellTime's API | the same request, once per session and directory |

Like the native statusline, it refreshes as the conversation changes: when you send a prompt, after each tool call, and when a turn ends. It doesn't poll while the session is idle.

Terminal

If ~/.claude/settings.json also has a statusLine running shelltime cc statusline, the terminal shows both lines. Keep both, or remove one.

비슷한 프로젝트