Documentation
¶
Overview ¶
Package wrap implements `squoze wrap CMD`: run an agent command with its provider base URLs pointed at an in-process squoze proxy. The agent needs zero configuration — env injection is the whole trick.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BaseURLEnvs = []string{
"ANTHROPIC_BASE_URL",
"OPENAI_BASE_URL",
"OPENAI_API_BASE",
}
BaseURLEnvs lists the environment variables agents commonly honor for provider endpoints. Setting all of them covers Claude Code, OpenAI SDKs, Codex and most OpenAI-compatible clients.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Command []string // argv of the agent to run (required)
Upstream *url.URL // real provider base URL (required)
OriginsDir string // "" = memory-only originals
ListenAddr string // default "127.0.0.1:0" (ephemeral)
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
}
Options configures one wrap session.