Skip to content

Slash Tokens

Token Optimization for Context Engineers.

Slash Tokens screenshot

About Slash Tokens

For anyone building with LLMs. 4.8 KB WASM. Sub-millisecond. Zero dependencies.

Models change. Windows grow. Slash adapts — you keep building.

Run it in a project that already calls an LLM. An empty folder prints that nothing was found — that's normal.

Intercepts fetch() to Anthropic, OpenAI, xAI, and Google endpoints. Estimates tokens before the call leaves your machine. Sub-millisecond. Non-blocking.

[slash] Anthropic claude-sonnet-5 | 47,000 tokens | $0.0940 | OK

preflight is analysis (every cheaper model, all providers). preflightRoute is the routing decision — same provider only. They answer different questions.

check . options // cheaper models across providers — not a route

Fully typed. Do not use check.options[0] as the route — that list is cross-provider on purpose.

The engine underneath. 4.8 KB Zig-compiled WASM, calibrated against real provider tokenizers — not a flat chars/4 guess.

Safe pre-check, not a perfect count. Pre-call, you only need go/no-go.

Live ladder as of 2026-08-25. Generic aliases ( claude-opus , gpt-5.4 , grok-4.20 , …) still resolve. Don't see yours? Open an issue.

Hosted dashboard is ordinary SaaS: $39/mo or $390/yr for the data, not a cut of savings. One-person key: mcpaas.live/slash/setup

TypeScript SDK tests via cd npm && bun test . Zig coverage includes adversarial cases (CJK, emoji, binary, base64, thresholds).

Discussion

Sign in to join the discussion.

Loading comments…

Tagged

Alternatives to Slash Tokens

Tools in the same space, ranked by how they are performing in the directory.

Compare all
  • Hexstrike AI

    HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pent…

    /AI Agents
  • CAIPE

    Open-source multi-agent system for AI-powered platform engineering.

    Open source/AI Agents
  • Texbrain

    FOSS browser-based LaTeX editor with live preview, on-demand packages and git integration.

    Open source/Writing & Content
  • Tako VM

    Tako VM is a secure file system and Python execution layer for AI agents: gVisor-isolated Docker containers with job queues, workers, retries, and replay.

    /Developer Tools
  • Global Solo

    Which US business banking providers accept non-US-resident founders of US LLCs: 19 providers × 8 countries of residence, 239 verified claims, every cell cited…

    /Developer Tools
  • Keenable.ai

    Crawler, index and ranking rebuilt for AI scale: 100B+ documents, <250ms p95 (US East), from $1 / 1K requests @ 100 RPS+.

    Paid/Writing & Content