Install TokenEconomizer
You need Python 3.10+ on PATH and one supported agent. Install from an ostack checkout and keep the checkout in place: the agents run the plugin from the vendored path.
git clone https://github.com/0libote/ostack
Claude Code
claude plugin marketplace add "$PWD/ostack/plugins/tokeneconomizer"
claude plugin install tokeneconomizer@tokeneconomizer
Start claude, trust the folder, and run /tokeneconomizer:status. Once per machine, and again after Claude Code updates, run /tokeneconomizer:toolprune refresh-catalog.
Codex
codex plugin marketplace add "$PWD/ostack/plugins/tokeneconomizer"
codex plugin add tokeneconomizer@tokeneconomizer
Start codex, choose Trust and continue, then Trust all and continue at the hooks review. The hooks take effect from your next session, so quit, start codex again, and check with $tokeneconomizer:status.
OpenCode (experimental)
mkdir -p ~/.config/opencode/plugins
ln -s "$PWD/ostack/plugins/tokeneconomizer/plugin/opencode/tokeneconomizer.ts" ~/.config/opencode/plugins/
Start opencode, send a prompt, then check with ~/.tokeneconomizer/bin/te --host opencode status. Upstream lists this support as experimental.
t3code-docker
Run the same commands inside the container as t3, substituting the container-side path of your ostack checkout so the vendored copy and Codex configuration live on the persistent /home/t3 volume:
docker compose exec -u t3 t3code bash -lc 'codex plugin marketplace add <path-to-ostack>/plugins/tokeneconomizer && codex plugin add tokeneconomizer@tokeneconomizer'
Restart Codex sessions after installation.
Update
git -C ostack pull --ff-only
Plugin updates arrive through the upstream sync, one PR per plugin; pull the checkout to get them (plus the codex plugin add line again for Codex). The upstream README documents other agents, troubleshooting, and every setting.