codex 를 사용하고 부턴 질문 몇개에 금방 5h limit 에 걸려 보니 input token 이 2M가 금방찬다.
https://github.com/ryoppippi/ccusage 는 claude-code/codex 의 사용량 현황을 알려준다.
참고로 사용자 .jsonl 의 토큰 및 캐시 사용 기록 파악한다.
~/.claude/projects/<project>/*.jsonl
~/.codex/sessions/<year>/<month>/<day>/*.jsonl
# claude-code usage
bunx ccusage
bunx ccusage daily
bunx ccusage weekly
bunx ccusage monthly
# codex usage
bunx @ccusage/codex@latest
bunx @ccusage/codex@latest daily
bunx @ccusage/codex@latest weekly
bunx @ccusage/codex@latest monthly
다음과 같이 둘을 비교해보니 한달치 input token 이 claude-code 가 훨씬 적다.
codex reasoning(내부 추론) 과정은 캐시 키를 매번 바꿔서 캐시를 무효화시키는 경향이 있다고 한다.
fast 모드도 비용에 영향을 준다고 함.
다음 설정을 해서 줄여볼 수 있다고 하는데 여전히 input token 이 팍팍 증가한다.
# ~/.codex/config.toml
model_reasoning_effort = "low"
model_reasoning_summary = "concise"
model_verbosity = "low"
[features]
fast_mode = false # /fast 자체가 숨김 처리된다.
comments:
댓글 쓰기