deeprelay launch claude-code
Run one Claude Code session on deeprelay (nothing persisted, receipt on exit)
Run one Claude Code session on deeprelay (nothing persisted, receipt on exit)
Synopsis
Runs one Claude Code session on deeprelay. The session is configured entirely through environment variables on the child process: the Anthropic-compatible base URL, your key as ANTHROPIC_AUTH_TOKEN, a deeprelay model in every model slot Claude Code uses (main, opus, sonnet, haiku, fable, and the background small-fast slot), and a session header for the receipt. Nothing is written to any settings file, and credentials for other providers (an Anthropic key, Bedrock/Vertex/Foundry modes) are removed from the child environment so they cannot leak to deeprelay or override the session.
The model slots default to the same curated models deeprelay setup claude-code uses; each chosen model is checked for tool calling before launch. Pick different ones per slot with --model, --opus-model, --sonnet-model, --haiku-model and --fable-model.
One caveat: Claude Code applies the env block of a settings file over the process environment. If ~/.claude/settings.json (or the project's .claude/settings.local.json) sets ANTHROPIC_* keys, those win over the session; launch warns and names them. A file written by deeprelay setup claude-code already points at deeprelay, so the session still works; its model choices just take precedence over launch's flags.
The receipt's last line compares the session's exact billed total with the same tokens priced at Claude's published Opus list rates, so you can see what the session saved.
deeprelay launch claude-code
deeprelay launch claude-code --model deeprelay/glm-5.3
deeprelay launch claude-code -- -p "run the tests and fix failures" < /dev/null
deeprelay launch claude-code [-- <claude args>] [flags]
Options
--fable-model string Model for the fable alias (default "deeprelay/deepseek-v4-pro")
--haiku-model string Model for the haiku alias and background tasks (default "deeprelay/deepseek-v4.1-flash")
-h, --help help for claude-code
--model string Main model (ANTHROPIC_MODEL) (default "deeprelay/deepseek-v4-pro")
--no-receipt Skip the session cost receipt on exit
--opus-model string Model for the opus alias (default "deeprelay/deepseek-v4-pro")
--print Show the command and environment that would run, without launching (the key is redacted)
--sonnet-model string Model for the sonnet alias (default "deeprelay/deepseek-v4-pro")
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay launch - Run a coding tool on deeprelay for one session, with a cost receipt on exit