Install
Install TokenWarden in opencode.
Run one install command, restart opencode, and TokenWarden starts reducing unnecessary AI input tokens.
Install
Choose where to install it.
Use the global command for every project or the local command for one project. macOS and Linux are supported. Windows is in beta.
opencode plugin @tokenwarden/opencode -g -f
opencode plugin @tokenwarden/opencode -f
Run
Start opencode normally.
Restart opencode after installation so TokenWarden can load.
Press Ctrl + P in opencode
Useful commands.
TokenWarden: Report
Shows the input tokens removed and your estimated savings.
TokenWarden: Status
Checks whether TokenWarden is running.
TokenWarden: Account
Opens your account page.
TokenWarden: Connect
Connects this machine to your account.
TokenWarden: Disconnect
Disconnects this machine from your account.
Shorter sessions
Less text goes to the AI.
TokenWarden shortens large file reads, noisy command output, old session history, and long answers.
It keeps paths, commands, errors, failed tests, decisions, blockers, and next steps when they matter.
Planning stays detailed when the task needs a plan.
For larger files, it reads the relevant structure and code instead of sending the whole file by default.
How it works
See what TokenWarden changes.
The how-it-works page explains what gets shortened and which coding details stay.
How it worksBenchmark
See the test results.
Compare average input-token use with no plugin and with other optimization plugins.
View resultsSavings
Review your savings.
See the tokens removed, estimated cost saved, model price used, and available plans.
Savings reportContact
Need help?
Email paul@contact.tokenwarden.ai for setup or product questions.
You can also find support from the Contact page in the site menu.
CLI
Use terminal commands.
tokenwarden report --session SESSION_ID --no-color
tokenwarden connect --email you@example.com
Use these commands to view savings, check status, open your account, and connect or disconnect a machine.
Storage
Your work stays local.
Your development data stays on your machine by default.
Workflow
Check TokenWarden without asking the AI.
Open status, reports, and account controls directly from the command palette.
Command palette > TokenWarden: Connect
Browser opened. Waiting for authorization...
Command palette > TokenWarden: Status
TokenWarden active. Local context policy loaded.
Command palette > TokenWarden: Account
Command palette > TokenWarden: Disconnect
Local connection state cleared.
Site menu
Find any page.
Use the menu for installation, pricing, results, savings, account, support, privacy, and terms.