preview.
This preview writes Goose’s model and URL settings without changing the keyring or
secrets.yaml. Set OPENAI_API_KEY in Goose’s launch environment. Confirm the settings and request destination in a new Goose chat before relying on this preview.on requires --preview. Preview is not a dry run: it writes settings and sends a request using credits. Helper mode is the default; literal key mode is refused.Connect Goose
Have Goose installed, a workspace API key, and available RunInfra credits.on. In an interactive terminal, Connect starts login if needed. Review and approve the proposed changes. Connect saves a snapshot, writes the configuration, and makes a real Chat Completions request that uses credits. Complete the environment handoff below before launching Goose.
To choose a model during setup:
What Connect writes
Connect uses an absolute
GOOSE_PATH_ROOT instead of those locations when set. It writes config/config.yaml inside that root. On Windows, Connect requires absolute APPDATA and PROGRAMDATA values for the default path and system-configuration check.
Connect sets active_provider to openai, enables and configures providers.openai, and sets its model to the selected catalog id. It writes OPENAI_HOST: https://api.runinfra.ai with OPENAI_BASE_PATH: v1/chat/completions. It does not combine that recipe with OPENAI_BASE_URL.
Connect writes only the selected model id. It does not add context or output metadata. Review system and additional configurations, command-line flags, process overrides, auxiliary model settings, and token limits before starting a new chat.
Connect could not confirm the OPENAI_HOST/OPENAI_BASE_PATH URL recipe, GOOSE_PATH_ROOT and XDG_CONFIG_HOME overrides, complete override and file precedence, OpenAI provider and model-id acceptance, or required model fields and optional limits against the current Goose documentation; check the environment guide, provider guide, and multi-model guide before relying on it.
Key placement
Helper mode is the default; pass the key throughOPENAI_API_KEY. Connect leaves the keyring unchanged and does not put the key in Goose’s YAML. You do not need to pass --key-source helper explicitly. Set RUNINFRA_API_KEY securely, then run this handoff in the environment that launches Goose:
- macOS and Linux
- PowerShell
OPENAI_API_KEY in its actual process environment.
Connect does not change the keyring, secrets.yaml, dotenv files, or shell profiles. Companion-secret groups, including custom headers, require manual review. Do not assume Goose automatically loads a dotenv file.
Goose ignores provider keys in config.yaml. OPENAI_API_KEY in the launching process takes precedence over stored secrets. Confirm it contains the intended key without printing it.
Connect could not confirm companion-secret resolution, missing or empty handoff values, keyring fallback details or automatic dotenv loading against the current Goose documentation; check the environment guide and configuration implementation before relying on it.
Verify
Connect’s API probe does not prove Goose loaded the configuration or replaced an active chat. Confirm the settings and request destination in a new Goose chat. After restarting, inspect settings locally with the diagnostic Connect names. Connect does not execute it:- macOS and Linux
- PowerShell
Restart
Fully restart Goose withOPENAI_API_KEY in its process environment. Start a new chat.
Troubleshooting
Connect could not confirm BOM, duplicate-key, alias or flow-style trailing-comma handling, unknown-field acceptance, native comment preservation, concurrent saves, permissions or post-save restoration against the current Goose documentation; check the configuration implementation before relying on it.
Revert
off restores the original bytes from before the first on in the active connection. If the managed file did not exist then, Connect removes it. Later on calls and key rotations keep that restore point.
If Goose or another editor changed the file, Connect refuses to overwrite it. Back up and review the edits before choosing to discard them:
OPENAI_API_KEY process environment yourself. File restoration does not undo manual environment or keyring changes.
Related
Connect
Set up, inspect, and restore your coding agent.
Chat completions
Read the request contract.
Models
Find model ids and context windows.