Skip to content
Angelo edited this page Mar 17, 2026 · 1 revision

TokenSense Wiki

Welcome to TokenSense! This wiki helps you get the most out of our LLM token cost calculator.

Quick Links


Getting Started

TokenSense is a free, open-source token cost calculator for LLMs. No signup required.

Online Version

Visit tokensense.app to use it right now.

Local Setup

git clone https://github.com/artosien/tokensense-ai.git
cd tokensense-ai
npm install
npm run dev

Then visit http://localhost:3000


How to Use

  1. Paste your prompt in the input field
  2. Select your model (Claude, GPT-4, Llama, etc.)
  3. See instant cost estimates for input & output tokens
  4. Compare models to find the most cost-effective option

Pro Tips

  • Use for budgeting API costs before deployment
  • Compare model pricing across providers
  • Estimate costs for batch processing
  • Check token limits before sending large prompts

Supported Models

Anthropic

  • Claude 3 Opus
  • Claude 3 Sonnet
  • Claude 3 Haiku

OpenAI

  • GPT-4
  • GPT-4 Turbo
  • GPT-3.5 Turbo

Meta

  • Llama 2
  • Llama 3

Mistral

  • Mistral 7B
  • Mistral Large

More models coming soon!


FAQ

Is my data tracked or stored?

No. TokenSense is local-first. Your prompts are never sent to any server.

Can I use this offline?

Yes! Run the local version for completely offline usage.

Is this free?

Yes! The core calculator is free and open-source (Apache 2.0). Premium features coming soon.

How accurate are the costs?

Costs are based on official pricing from each provider. Accuracy depends on model updates - we keep it current.

Can I export my calculations?

Yes! You can copy results or take screenshots. Export feature coming in v1.1.


Troubleshooting

"Token count is wrong"

  • Token counting can vary slightly by model
  • We use official tokenizers where available
  • Let us know in Issues

App won't load locally

# Try:
npm install
npm run dev

# Clear cache if issues persist:
rmdir .next -r -force
npm run dev

Model pricing seems outdated

Check Issues or submit an update via PR.


Contributing

Found a bug? Want to add a model?

See CONTRIBUTING.md in the main repo.


Need Help?


Last updated: March 2026