3 min read
Claude Code
Use your existing Claude Code workflow with a session cap, loop detection and a local off switch.
On this page
Protect one conversation
Set ANTHROPIC_API_KEY privately in your environment, then launch Claude through Leash. A new session is created for each leash run invocation. The child process receives the Leash endpoint automatically.
leash run --cap 5 -- claudeInstall persistent protection
The installer backs up the existing Claude Code configuration, updates the provider endpoint and adds lifecycle hooks. Unrelated settings are preserved. Start the proxy before opening the agent.
leash init
leash install claude-code
leash start
# Later, restore the pre-Leash configuration:
leash uninstall claude-codeKeep long conversations manageable
The dashboard conversation checkpoint uses metered context size, spend and request activity to suggest when to pause. Save your goal, decisions and next action into a private handoff before opening a fresh conversation.
leash handoff --goal "Finish the checkout flow" --next "Run the payment failure tests"
leash run --cap 5 -- claudeSomething unclear?Help us improve this guide