Tokensaver marketplace: winter0123/Tokensaver provides installable Codex and Claude Code SKILL packages without manual MCP setup. OpenCode uses its own Git plugin command. See installation details. Existing native ZIP downloads below remain supported.
Created by winter0123 · Original repository · Authors · MIT License
Convert documents, images and audio into reusable Markdown for Codex, Claude Code and OpenCode. The updated source also archives project research and retrieves short, cited excerpts.
Click your OS button to download, then choose your agent in the installer.
Extract the entire ZIP and run the installer once. Select the installed Codex, Claude Code, or OpenCode agents to register. No separate Python is needed.
macOS: double-click install.command, or run sh install.command in the extracted folder.
Windows: open PowerShell in the extracted folder and run .\install.ps1. If device policy blocks it, follow your device policy; the installer does not change it.
Install the CLI for your chosen agent first, then restart the agent after installing the plugin.
macOS arm64 installer was exercised locally. Windows/Intel Mac passed binary bundle tests; the unified Windows launcher and real Windows/Intel host installation remain experimental. Binaries are unsigned/not notarized. Linux currently has source installation only.
Paste the command for your OS. It downloads and verifies the installer bundle, then shows the detected agents. Use Tab or the arrow keys to move, Space to check or uncheck agents, and Enter to install the checked agents. The installer registers the selected agents as plugins.
macOS
curl -fsSL --proto '=https' 'https://github.com/winter0123/tokensaver-docs/releases/download/v0.5.7/install.sh' -o tokensaver-docs-install.sh && sh tokensaver-docs-install.sh --repo winter0123/tokensaver-docs --version v0.5.7
Windows PowerShell
& { $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://github.com/winter0123/tokensaver-docs/releases/download/v0.5.7/install.ps1' -OutFile tokensaver-docs-install.ps1 -ErrorAction Stop; & .\tokensaver-docs-install.ps1 -Repo winter0123/tokensaver-docs -Version v0.5.7 }
Advanced: individual agent archives
| Operating system | Claude Code | Codex | OpenCode |
|---|---|---|---|
| macOS Apple Silicon | ZIP | ZIP | ZIP |
| macOS Intel | ZIP | ZIP | ZIP |
| Windows x64 | ZIP | ZIP | ZIP |
Attach a file or image to your chat and ask in your own words.
Turn this file into a Markdown file.
Put the text in this image and a description of it into a Markdown file.
When your agent can open the attachment, the tool uses the original name and a default destination, then tells you where it saved the Markdown. Answer any first-use image model or analysis prompts shown by the agent.
Since v0.5.7, you can enable the archive once per project using the command printed by the installer. After that, ask normally.
Look up the return policy and summarize it in this project.
When an enabled agent saves research materials, TokenSaver keeps versioned originals, searchable Markdown and a summary for readers in the project. Reports link to available originals and evidence lines. References with only a URL are recorded as links. In a new session, ask about the saved research to find relevant excerpts within the default 500-token budget.
Public web snapshots from approved sites, local audio transcription, and automatic image analysis are optional per project. Setup and advanced usage · Verification results
The forthcoming native CLI can save conversion preferences once in a shared user
configuration file (conversion-preferences.json next to the existing TokenSaver
configuration). Subsequent prepare FILE requests reuse the selected image mode
and model automatically, regardless of project or whether the host is Codex,
Claude Code, or OpenCode. The user changes these preferences only when requested.
A text-only document never requires a model call.
tokensaver-docs preferences
tokensaver-docs preferences --set-mode preserve
tokensaver-docs preferences --set-mode placeholder
tokensaver-docs list-image-models --provider ollama
tokensaver-docs preferences --set-mode analyze --runtime local --provider ollama --model YOUR_MODEL --network-policy local_only
tokensaver-docs prepare /path/to/document.htmlThe local model must already be installed and expose an OpenAI-compatible
/v1/models and /v1/chat/completions interface. For LM Studio use
--provider lmstudio. Use --provider openai_compatible --endpoint http://10.0.0.5:8000/v1 --network-policy internal_only for approved private-IP
servers; the default local_only permits only loopback. No proxy, redirect,
unapproved DNS endpoint or external-model fallback is allowed. Network-policy
validation does not independently certify the entire local server's behavior.
For OpenRouter API, first select its exact model and explicitly authorize
persistent future image transmissions to that provider/model before saving
--set-mode analyze --runtime api --provider openrouter --model MODEL --network-policy external_allowed --allow-external-images. Codex/Claude CLIs
remain separately supported. OpenCode model catalog entries can be selected for native image analysis through
opencode run --standalone --archived --file ... --model ...; the specific
provider/model must be authorized for persistent image transfer. Local-only
mode instead uses a validated loopback/private API endpoint. A model catalog can report unknown vision
support and must not be treated as proof.
Release limitation: the marketplace launcher and native ZIP downloads currently pin v0.5.7. These development-source commands will not become available to plugin installs until new native binaries are released and the launchers are updated. Updating only the OpenCode Git plugin is insufficient.
To switch image models, ask your agent “Change the image conversion model.”
| File | Extensions | Markdown content |
|---|---|---|
.pdf |
Text; image analysis of selected scanned pages | |
| Word | .docx |
Text, tables, embedded images |
| Excel | .xlsx |
Sheets, cells, embedded images |
| HTML | .html, .htm |
Body content, tables, embedded images |
| Images | .png, .jpg, .jpeg, .webp, .bmp, .tif, .tiff, .gif |
Preserved images, optional text and descriptions |
| Audio and video audio tracks | .wav, .mp3, .m4a, .ogg, .flac, .aac, .mp4 |
Speech converted to text; video frames are not analyzed |
Legacy .doc/.xls files are unsupported. Image/audio quality depends on the model. Token savings depend on the document and retrieved scope; see benchmarks and limitations.
Agent connections, search, audio, development · Plugin installation and distribution · Verification status · Report an issue · MIT license