You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`GOOSE_MAX_TURNS`|[Maximum number of turns](/docs/guides/sessions/smart-context-management#maximum-turns) allowed without user input | Integer (e.g., 10, 50, 100) | 1000 | No |
34
35
|`GOOSE_LEAD_PROVIDER`| Provider for lead model in [lead/worker mode](/docs/guides/environment-variables#leadworker-model-configuration)| Same as `GOOSE_PROVIDER` options | Falls back to `GOOSE_PROVIDER`| No |
@@ -43,8 +44,8 @@ The following settings can be configured at the root level of your config.yaml f
43
44
|`GOOSE_ALLOWLIST`| URL for allowed extensions | Valid URL | None | No |
44
45
|`GOOSE_RECIPE_GITHUB_REPO`| GitHub repository for recipes | Format: "org/repo" | None | No |
45
46
|`GOOSE_AUTO_COMPACT_THRESHOLD`| Set the percentage threshold at which goose [automatically summarizes your session](/docs/guides/sessions/smart-context-management#automatic-compaction). | Float between 0.0 and 1.0 (disabled at 0.0)| 0.8 | No |
46
-
|`otel_exporter_otlp_endpoint`| OTLP endpoint URL for [observability](/docs/guides/environment-variables#opentelemetry-protocol-otlp)| URL (e.g., `http://localhost:4318`) | None | No |
47
-
|`otel_exporter_otlp_timeout`| Export timeout in milliseconds for [observability](/docs/guides/environment-variables#opentelemetry-protocol-otlp)| Integer (ms) | 10000 | No |
47
+
|`OTEL_EXPORTER_OTLP_ENDPOINT`| OTLP endpoint URL for [observability](/docs/guides/environment-variables#opentelemetry-protocol-otlp)| URL (e.g., `http://localhost:4318`) | None | No |
48
+
|`OTEL_EXPORTER_OTLP_TIMEOUT`| Export timeout in milliseconds for [observability](/docs/guides/environment-variables#opentelemetry-protocol-otlp)| Integer (ms) | 10000 | No |
48
49
|`SECURITY_PROMPT_ENABLED`| Enable [prompt injection detection](/docs/guides/security/prompt-injection-detection) to identify potentially harmful commands | true/false | false | No |
49
50
|`SECURITY_PROMPT_THRESHOLD`| Sensitivity threshold for [prompt injection detection](/docs/guides/security/prompt-injection-detection) (higher = stricter) | Float between 0.01 and 1.0 | 0.7 | No |
Copy file name to clipboardExpand all lines: documentation/docs/guides/environment-variables.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,21 @@ These are the minimum required variables to get started with goose.
19
19
|`GOOSE_PROVIDER`| Specifies the LLM provider to use |[See available providers](/docs/getting-started/providers#available-providers)| None (must be [configured](/docs/getting-started/providers#configure-provider-and-model)) |
20
20
|`GOOSE_MODEL`| Specifies which model to use from the provider | Model name (e.g., "gpt-4", "claude-sonnet-4-20250514") | None (must be [configured](/docs/getting-started/providers#configure-provider-and-model)) |
21
21
|`GOOSE_TEMPERATURE`| Sets the [temperature](https://medium.com/@kelseyywang/a-comprehensive-guide-to-llm-temperature-%EF%B8%8F-363a40bbc91f) for model responses | Float between 0.0 and 1.0 | Model-specific default |
22
+
|`GOOSE_MAX_TOKENS`| Sets the maximum number of tokens for each model response (truncates longer responses) | Positive integer (e.g., 4096, 8192) | Model-specific default |
22
23
23
24
**Examples**
24
25
25
26
```bash
26
27
# Basic model configuration
27
28
export GOOSE_PROVIDER="anthropic"
28
-
export GOOSE_MODEL="claude-sonnet-4-20250514"
29
+
export GOOSE_MODEL="claude-sonnet-4-5-20250929"
29
30
export GOOSE_TEMPERATURE=0.7
31
+
32
+
# Set a lower limit for shorter interactions
33
+
export GOOSE_MAX_TOKENS=4096
34
+
35
+
# Set a higher limit for tasks requiring longer output (e.g. code generation)
0 commit comments