launcher

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteClaudeCode

func ExecuteClaudeCode(env []string, args []string) error

ExecuteClaudeCode runs the Claude Code CLI with configured environment. Uses syscall.Exec to replace the current process — never returns on success.

func LaunchWithProxy added in v0.4.0

func LaunchWithProxy(p config.Provider, opt config.OptimizationConfig, args []string) error

LaunchWithProxy starts a local proxy for request transformation, then runs Claude Code as a child pointed at the proxy. The Go process stays alive until Claude exits so the proxy can serve requests.

func SetupEnvironment

func SetupEnvironment(p config.Provider, opt config.OptimizationConfig) []string

SetupEnvironment prepares environment variables for Claude Code, starting from the parent environment with any pre-existing ANTHROPIC_/CLAUDE_CODE_ entries stripped (to prevent parent-shell leakage).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL