Intelligent Claude Code status line with multi-provider AI support, real-time token counting, and universal model compatibility. Supports Claude (Sonnet 4: 1M, 3.5: 200K), OpenAI (GPT-4.1: 1M, 4o: 128K), Gemini (1.5 Pro: 2M, 2.x: 1M), and xAI Grok (3: 1M, 4: 256K) with verified 2025 context limits.
git clone https://github.com/dwillitzer/claude-statusline.gitClaude-statusline is a real-time context usage monitor designed for Claude Code CLI that tracks token consumption across multiple AI providers including Claude, OpenAI, Google Gemini, and xAI Grok. It provides intelligent token counting by integrating directly with Claude Code's internal token data and includes fallback tiktoken-based estimation. The tool automatically detects model types and sets appropriate context limits, displaying information in verbose, compact, or custom formats with provider-aware color coding. Developers using Claude Code can monitor their session context in real-time, preview recent messages, and track remaining tokens without external dependencies.
Clone the repository to ~/.claude/claude-statusline, install Node.js and jq dependencies, then set up the enhanced token counter script. Configure Claude Code's settings.json to use the statusline.sh script and choose your preferred display mode (verbose, compact, or custom format) via command-line flags or environment variables.
Monitor token usage and remaining context during extended Claude Code sessions
Track context consumption across different AI models with provider-specific formatting
Display customized status information in Claude Code's statusline with emojis and templates
Automatically detect and adapt to different AI provider models with appropriate context limits
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/dwillitzer/claude-statuslineCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a status line for my AI tool that includes real-time token counting and model compatibility. The tool is [TOOL_NAME], used in the [INDUSTRY] industry. It supports the following models: [MODEL_1], [MODEL_2], [MODEL_3], and [MODEL_4]. Include the context limits for each model as of 2025.
# AI Tool Status Line **Tool Name:** DataInsight Pro **Industry:** Healthcare ## Supported Models - **Claude Sonnet 4:** 1,000,000 tokens - **Claude 3.5:** 200,000 tokens - **GPT-4.1:** 1,000,000 tokens - **GPT-4o:** 128,000 tokens - **Gemini 1.5 Pro:** 2,000,000 tokens - **Gemini 2.x:** 1,000,000 tokens - **Grok 3:** 1,000,000 tokens - **Grok 4:** 256,000 tokens ## Real-Time Token Counting - Current Token Usage: 45,234 - Remaining Tokens: 954,766 - Model in Use: Claude Sonnet 4 ## Context Limits (2025) - **Claude:** 1,000,000 tokens - **OpenAI:** 1,000,000 tokens (GPT-4.1), 128,000 tokens (GPT-4o) - **Gemini:** 2,000,000 tokens (1.5 Pro), 1,000,000 tokens (2.x) - **xAI Grok:** 1,000,000 tokens (3), 256,000 tokens (4)
Interactive storytelling with AI-powered character interactions
Pioneering accessible, high-performance AI models
Google's multimodal AI model and assistant
AI assistant built for thoughtful, nuanced conversation
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan