From codesession
Tracks AI coding session costs, tokens, file changes, and git commits using MCP tools like start_session, log_ai_usage, and check_budget. Proxy mode enables zero-config API tracking.
npx claudepluginhub brian-mwirigi/codesession-cli --plugin codesessionThis skill uses the workspace's default tool permissions.
You have access to codesession MCP tools for tracking AI session costs. Use them throughout your workflow.
Tracks Claude Code session costs, sets budget alerts, and provides token optimization strategies. Useful for mid-session checks, budgeting, and multi-session planning.
Generates daily cost reports for Claude Code usage including total spend, running sessions, token stats via claude-view MCP tools. Useful for cost, spending, budget queries.
Tracks tokens, analyzes caching behavior, identifies bottlenecks in tool usage, and estimates costs to optimize Claude Code session performance and efficiency.
Share bugs, ideas, or general feedback.
You have access to codesession MCP tools for tracking AI session costs. Use them throughout your workflow.
start_session with a descriptive namelog_ai_usage with provider, model, and token countscheck_budget before expensive operationsadd_note for milestones and progressend_session with completion notes| Tool | Purpose |
|---|---|
session_status | Get active session status (cost, tokens, duration) |
start_session | Start a new tracking session |
end_session | End session and get full summary |
log_ai_usage | Log token usage (auto-prices 21+ models incl. Codex) |
add_note | Add timestamped notes |
get_stats | Overall statistics across all sessions |
list_sessions | List recent sessions |
check_budget | Check spending breakdown by model |
Cost is auto-calculated for known models. Supported providers: anthropic, openai, google, mistral, deepseek. Codex models supported: codex-mini-latest, gpt-5.1-codex-max, gpt-5.1-codex-mini, gpt-5.3-codex. If a model is unknown, provide the cost parameter manually.
check_budget before expensive operationsUsers can view all session data in a web dashboard:
npx codesession-cli dashboard
For zero-config tracking, users can either:
cs run <command> — one command that starts a session, starts the proxy, runs the command, and shows a cost summary on exit. No separate terminals needed.cs proxy [--session name] — start the proxy and set ANTHROPIC_BASE_URL / OPENAI_BASE_URL to http://127.0.0.1:3739. All API calls are auto-tracked.The proxy binds to 127.0.0.1 only and never stores prompt text or API keys.