Connecting it
The fastest way is to runnavige connect (see Quickstart). It signs you in through the browser, writes the block below for you with a key you never see, and adds a hook that checks every tool call Claude Code makes.
It also puts a line at the foot of Claude Code, such as Navige · saved $0.42 today · 12 model calls · 30 tool checks, so you can see what Navige did without opening the console. “Saved” counts measured savings only. A status line you set up yourself is left alone; --no-statusline skips it.
To do it by hand instead, put an env block in ~/.claude/settings.json (%USERPROFILE%\.claude\settings.json on Windows). Both the CLI and the desktop app read it, and it still applies after you close the terminal:
env block rather than replacing the file.
A single throwaway session
Exported variables reach the CLI in that one terminal only: not a second window, not the desktop app, and not the same window tomorrow. A setup that worked yesterday and is gone today usually relied on them, and the only symptom is a dashboard that has stopped filling up. Use them only when you want that one session.Two things can look like a failed setup. A shell variable takes precedence where one is set, so an old
export in a profile overrides this file without any warning. And the block may not load on the first launch after you add it, so start Claude Code twice before concluding it did not work.What Claude Code gets, and what it does not
Claude Code sends its capability headers and body fields as matched pairs. Navige does not rewrite them, so context trimming, the output ceiling and prompt caching are always off when it identifies Claude Code. Model routing does reach it, through Route Claude Code too on the Model routing page, which is on by default and works in per-call mode; untick it to keep every Claude Code call on its own model. Routing then checks each call first and keeps it on your model if it carries anything a cheaper model might not accept: a beta header not on our tested list, a body field we do not recognise, earlier thinking written by a different model, or a server tool. When a call does move, the model name changes, and on simple work Navige may also switch the cheaper model’s thinking off. These still apply, because none of them needs a body edit:- Measurement, per session and per subagent. Claude Code sends no standard correlation headers, so without this its spend is invisible. Navige reads its session id, and its agent and request-class headers where present, so a session shows up as tasks rather than as a long list of separate calls.
- Spend caps and the kill switch, on every tier including the free one. These are checked before the body is looked at, so they apply here as they do everywhere else.
- The loop guard. Stopping a runaway means refusing to forward the call, which is not a body edit, so it works on this route. The same call with the same newest message, six times running, is stopped. A retry burst or a short poll only notifies.
On a Claude plan, and past it
Signed in with a Pro or Max plan, Claude Code’s calls are covered by the plan, so Navige shows them as plan usage, not spend. Once the plan’s limit is reached and the session carries on using extra usage you bought, those calls are billed per token: Navige counts them as spend, at API rates, in your Spend pages, budgets and spend cap. It tells the two apart from the plan-limit headers Anthropic sends on each answer. Those headers are not officially documented, so a call is counted as extra usage only when they clearly say the plan’s limit was reached and extra usage paid for the answer. The richer attribution headers (request class and agent type) need Claude Code v2.1.273 withCLAUDE_CODE_GATEWAY_HINT_HEADERS=1. The session id is always sent, so basic attribution works on any version.
Claude Desktop uses a different route. The chat app is an MCP client, not a caller on this route. Connect it through
/mcp and it gets tool governance, result caching and caps, but its model call happens inside Anthropic’s own subscription, so there is no per-token measurement. Claude Code gets the controls and, unless you untick Route Claude Code too, routing; Claude Desktop gets the tool-side savings. Claude Desktop’s local tool servers can stay where they are: navige connect puts Navige in front of each one.