mirror of
https://github.com/wirenboard/agent-vm.git
synced 2026-07-09 16:00:54 +00:00
Add ccusage wrapper for tracking usage across all agent-vm instances
This commit is contained in:
parent
47c362bf1a
commit
1a42270a3a
2 changed files with 18 additions and 0 deletions
5
bin/ccusage
Executable file
5
bin/ccusage
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
# Wrapper for ccusage that includes all agent-vm session directories
|
||||
agent_vm_dirs=$(find "$HOME/.local/state/agent-vm" -maxdepth 2 -name "claude-sessions" -type d 2>/dev/null | paste -sd,)
|
||||
export CLAUDE_CONFIG_DIR="$HOME/.claude,$HOME/.config/claude${agent_vm_dirs:+,$agent_vm_dirs}"
|
||||
exec npx ccusage@latest "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue