Skip to content
Development
Command

/wrap

Explain how to launch Claude Code through the Permafrost proxy

From plugin
permafrost
234 skills4 commands1 hook
Install
> /plugin marketplace add jianzhichun/permafrost
> /plugin install permafrost@permafrost

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/wrap

Context preview

What this command does when you run it.

Explain how to launch Claude Code through the Permafrost proxy

Command definition

wrap.md
description: Explain how to launch Claude Code through the Permafrost proxy

Explain to the user how to route Claude Code through Permafrost so DeepSeek's cache hits.

Key point first: **`ANTHROPIC_BASE_URL` is read once when `claude` starts**, so the *current* session cannot be re-routed — this takes effect on the next launch.

Give them the two options:

1. **One-shot wrapper** (nothing persisted):

   permafrost wrap -- [any claude args]

This starts the proxy if needed, sets `ANTHROPIC_BASE_URL` + `ENABLE_TOOL_SEARCH=true` for that child process only, and execs `claude`.

2. **Persistent** — copy the `env` block from `settings.example.json` into `~/.claude/settings.json`, set `ANTHROPIC_API_KEY` to their DeepSeek key, run `permafrost up`, then start `claude` normally.

Remind them the upstream defaults to `https://api.deepseek.com/anthropic` and can be changed with `PERMAFROST_UPSTREAM`. Offer to write the settings block for them if they confirm the path.

Ships withpermafrost

Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic.

Get the whole plugin
Stats
23
Stars
3
Forks
Maintained
Maintenance
Python
Language
MIT
License
2mo ago
Last commit
3mo ago
Created

Repo: jianzhichun/permafrost

Other commands on permafrost.