Skip to main content

⚡ CuToken CLI

Fast, intelligent prompt token optimizer for your terminal. Cut AI prompt tokens by up to 50% before sending to ChatGPT, Claude, or Gemini.

PyPI version License: MIT Python 3.8+


🚀 Quick Install

pip install cutoken

⚡ Quick Start

1. Authenticate Once

Get your API key at pro.cutoken.in:

cutoken login

2. Interactive Mode (Like Claude Code)

Just type cutoken in your terminal:

cutoken
─────────────────────────────────────────────────────────────
 ⚡ CuToken CLI v1.0.0     Your Name │ 450.00 Credits
─────────────────────────────────────────────────────────────

Type or paste your prompt (multi-paragraph supported).
Commands: /mode <s|b|a>, /paste, /balance, /exit

cutoken (balanced) > Can you please rewrite this whole email to sound more professional?
✔ Optimized in 420ms
─────────────────────────────────────────────────────────────
 Original: 34 tok  Optimized: 16 tok  Saved: -18 (52.9%)  Left: 449.0
─────────────────────────────────────────────────────────────
Rewrite this email professionally for executives.
─────────────────────────────────────────────────────────────
📋 Copied to clipboard!

🛠️ Commands & Features

One-Shot Optimization

cutoken "Your long prompt text goes here"

Optimize Multi-Paragraph Files

cutoken -f system_prompt.txt

Unix Piping (Use in Scripts & Agents)

cat prompt.txt | cutoken -q | llm

Change Intensity Mode

CuToken supports 3 optimization levels:

  • safe: Gentle token cleanup, preserves exact phrasing.
  • balanced (Default): Optimal balance between compression and quality.
  • aggressive: Maximum token reduction for lowest latency and cost.

Permanently set your default mode:

cutoken mode aggressive   # or shortcut: cutoken mode a
cutoken mode balanced     # or shortcut: cutoken mode b
cutoken mode safe         # or shortcut: cutoken mode s

Or pass for a single run:

cutoken "Your prompt" -m aggressive

Check Credit Balance

cutoken balance

View Configuration

cutoken config

📋 Features

  • 🚀 Blazing Fast: Starts in milliseconds with lightweight dependency footprint.
  • 📋 Automatic Clipboard: Result is instantly copied to your clipboard.
  • 📑 Multi-Paragraph Support: Paste long multi-paragraph documents without broken line breaks.
  • 🔄 Unified Billing: Shares the exact same Pro credit balance with your web dashboard and extensions.
  • 🔒 Secure: API Key is stored locally in ~/.cutoken/config.json.

🌐 Links

📄 License

MIT License © 2026 CuToken

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cutoken-1.0.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cutoken-1.0.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file cutoken-1.0.0.tar.gz.

File metadata

  • Download URL: cutoken-1.0.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for cutoken-1.0.0.tar.gz
Algorithm Hash digest
SHA256 14dcb83473c6f2763ddf6e17dfaabe01d42c18d1a0925840880c5b1c7b77cdb3
MD5 63afb0a7c6d23e0b479f0ef7305a796c
BLAKE2b-256 b359c2e61d190229cf4b3c61b04949bcf234d9b0b1a5ac1f1d1eec0d9a3b29ed

See more details on using hashes here.

File details

Details for the file cutoken-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cutoken-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for cutoken-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7abe08087867a556a0270d7784e4ddfa999bee6bdc7881cb1803026e2b38b712
MD5 92b2c7162980a71d3e0fc152cae6a323
BLAKE2b-256 85b898b3699c06d57ea4ff9f7be09a7b573ae1aa628692754eb9f8e6ceaeb8f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page