Choose a routing method
valar claude-desktop on selects the proxy lane when the proxy is provisioned; otherwise it uses the direct lane. Pass --direct to explicitly choose the provider profile.
On-device proxy
Provision the shared component once, then enable Desktop:Direct lane
--with-chat on each on that should include Chat. The direct profile has its own chat history; it does not merge with your claude.ai history when you switch lanes.
Switch lanes and running sessions
You can switch directly between lanes:- No: routing and the running app remain unchanged.
- Yes: Valar quits the app, applies the change, and reopens it. On Windows, Claude Desktop stays in the notification area after its windows close, so Valar ends the app a few seconds after asking it to close.
--force: approve that restart without a prompt, for examplevalar claude-desktop on --direct --force.
--force is supplied.
History and MCP servers on the direct lane
On the proxy lane, Claude Desktop keeps its normal history and MCP servers unchanged. The direct lane runs the app in a separate provider profile. When you switch lanes, Valar copies your local Code sessions (and local Cowork sessions on macOS) and scheduled tasks between the two, and never deletes a session. It also adds your local MCP servers to the direct-lane profile each time you turn the direct lane on. Chat history is stored by Claude and is not affected. To distribute a fixed list of servers for the direct lane, place a JSON array at~/.valar/claude/desktop-mcp.json (%USERPROFILE%\.valar\claude\desktop-mcp.json on Windows), in the schema Claude Desktop uses for managed MCP servers (name, transport, then command/args/env or url/headers). An entry there replaces any server with the same name. The file is read whenever Valar writes the profile; a file that is not valid JSON stops the command with an error rather than being skipped.
Check routing
Quota-first: use your own subscription first
With Desktop on the proxy lane and signed into an eligible Claude account:Turn off routing
Provider profile details
Files and backup
Files and backup
The direct lane writes a Valar profile to Claude Desktop’s provider-profile folder:
It records the Valar endpoint, coding key, model list, and request-attribution headers.The pre-enable profile configuration is backed up at
~/.valar/claude/desktop-backup.json (%USERPROFILE%\.valar\claude\desktop-backup.json on Windows). OFF restores that configuration; it removes the configuration tree if Valar created it.Single-session mode
Single-session mode
Open a separate direct-routed instance:It uses
~/.valar/claude/desktop-session-3p (%USERPROFILE%\.valar\claude\desktop-session-windows\Claude-3p on Windows) and keeps its history there. Your main app’s configuration, login, and reported routing stay unchanged.Only one such instance runs at a time. Add --force to replace an existing instance. Explicit --direct allows this mode even when the shared proxy is provisioned.Security and machine changes
Certificate trust, shared proxy services, and corporate network controls are documented under On-device proxy.Collect CLI logs for support
Inspect~/.valar/cli.log for command/setup failures and valar proxy logs for proxy traffic diagnostics. See Support logs for collection, redaction and rotated history. Review logs before sharing them.
Next steps
On-device proxy
Shared setup, certificates, and network policies.
Claude Code
Configure the terminal CLI separately.