Quickstart
TokenShift + Claude Code in 60 seconds. By the end of this page, every Bash tool call Claude Code makes flows through a compression pipeline and the agent stops paying for tokens it didn’t need.
Prerequisites
Section titled “Prerequisites”- Claude Code installed and working.
gh auth loginagainst thepointfiveincorg (Homebrew tap auth, see Homebrew install).- An
enrollment.jsonfrom your TokenShift admin — required for telemetry, recovery sync, and any cloud-side feature. Skippable if you only want the local proxy and hooks.
Install
Section titled “Install”-
Install the binary via Homebrew.
Terminal window brew install pointfiveinc/tap/tokenshiftFor org-wide rollouts, MDM pushes the same package — see MDM rollout.
-
Wire the Claude Code hooks.
Terminal window tokenshift installThis drops PostToolUse / PreToolUse / SessionStart hooks into
~/.claude/settings.json. The picker also asks about telemetry opt-in the first time you run it. -
Bind the binary to your tenant.
Terminal window tokenshift enroll ~/Downloads/enrollment.jsonThis writes the manifest to
~/.tokenshift/enrollment.json. Without it, TokenShift still compresses locally — telemetry just stays off. See Enrollment for the full model. -
Verify the wire is live end-to-end.
Terminal window tokenshift doctor --verifyThis ships one synthetic record through the live ingest path and reports acceptance. Drop the
--verifyflag for a no-network status check.
What just happened
Section titled “What just happened”- Claude Code’s Bash tool now invokes
tokenshift hook post-toolafter every shell command. The hook matches the command against the rule index, runs a compression pipeline, and rewrites the tool output the LLM sees. - Full output is preserved in a local recovery cache. The LLM 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 worker. No control plane, no broker.
- How it works — the architectural overview.
- What gets compressed — the categories of output TokenShift recognizes.
- Security overview — what stays local, what goes off-device.