Skip to content

Quickstart

By the end of this page every Bash tool call the agent makes flows through a compression pipeline and the agent stops paying for tokens it didn’t need.

  • One of the supported agent harnesses installed and working — Claude Code, Cursor, or GitHub Copilot CLI. tokenshift install detects which you have and wires the right hooks for each.
  • Your tenant ID (a UUID handed to you at onboarding) — required for telemetry, recovery sync, and any cloud-side feature. Skippable if you only want the local proxy and hooks. See Enrollment.

All artifacts are signed and hosted on Cloudflare R2. Each link below redirects to a presigned URL valid for 5 minutes; if it expires before the download completes, click it again.

PlatformArchitectureDownload
macOSApple Silicon (arm64)tokenshift_darwin_arm64.tar.gz
macOSIntel (amd64)tokenshift_darwin_amd64.tar.gz
Linuxx86_64 (amd64)tokenshift_linux_amd64.tar.gz
Linuxaarch64 (arm64)tokenshift_linux_arm64.tar.gz
Windowsx86_64 (amd64)tokenshift_windows_amd64.tar.gz

Untar, drop the tokenshift binary on your PATH, done. Each archive ships a per-platform SHA-256 alongside it — verify with sha256sum -c or fetch the hash via /v1/version/latest on the ingestor.

  1. Run the install:

    Terminal window
    tokenshift install

    The installer detects which agent harnesses are installed and wires the right hook file for each — ~/.claude/settings.json for Claude Code, ~/.cursor/hooks.json for Cursor, ~/.copilot/hooks/tokenshift.json for GitHub Copilot CLI. The picker also asks about telemetry opt-in the first time you run it.

  2. Bind the binary to your tenant:

    Terminal window
    tokenshift enroll --tenant-id=00000000-0000-4000-8000-000000000001

    One flag — everything else is defaulted (Tier 2 telemetry, raw directory name as the project label). This writes ~/.tokenshift/enrollment.json. Without it, TokenShift still compresses locally; telemetry just stays off. Need to override a default, or prefer a manifest file? See Enrollment.

  3. Verify the wire is live end-to-end:

    Terminal window
    tokenshift doctor --verify

    Ships one synthetic record through the live ingest path and reports acceptance. Drop --verify for a no-network status check.

  • The agent’s Bash tool now invokes tokenshift hook post-tool after every shell command. The hook matches the command, runs a compression pipeline, and rewrites the tool output the model sees.
  • Full output is preserved in a local recovery cache. The model gets a hint like [Full output: tokenshift recover a1b2c3d4] and can fetch the original whenever it needs it.
  • Telemetry, if you enrolled, ships hybrid-encrypted records straight to the ingest endpoint. No control plane, no broker.