goose_configure: Configure Goose CLI Settings

View source: R/cli_integration.R

goose_configureR Documentation

Configure Goose CLI Settings

Description

Set up Goose CLI configuration. Note: If Goose CLI is already configured (e.g., for Block employees), this function is not needed. The package will use the existing CLI configuration automatically.

Usage

goose_configure(
  provider = NULL,
  model = NULL,
  api_key = NULL,
  save_to_renviron = FALSE,
  check_cli_first = TRUE
)

Arguments

provider

Character string specifying the AI provider (e.g., "openai", "anthropic")

model

Character string specifying the model (e.g., "gpt-4", "claude-3")

api_key

Character string with the API key (stored securely)

save_to_renviron

Logical, whether to save to .Renviron file

check_cli_first

Logical, check if CLI already works before configuring (default TRUE)

Value

Invisible TRUE if successful

Examples

## Not run: 
# For Block employees with configured CLI, just check:
goose_test_cli()

# For external users who need API keys:
goose_configure(provider = "openai", model = "gpt-4", api_key = "your-key")

## End(Not run)

gooseR documentation built on Feb. 6, 2026, 5:07 p.m.