# Purpose: the environment Goose reads to reach a local model - either the Part 9 gateway # through the OpenAI-compatible provider, or an Ollama install directly - plus the # two settings that decide how autonomous a session is allowed to be. # Platform: all (spark, strix, mac, nvidia) # Minimum memory: 16 GB for a 30B-class coder behind the alias # Assumes: `cp goose-local-env.txt goose.env`, edit, then `set -a; . ./goose.env; set +a` # before starting Goose. Goose's documentation states that environment variables # take precedence over configuration files, which is why this file exists rather # than a hand-written config.yaml: the variables below are documented by name on # the providers and environment-variables pages read on 2026-09-09, whereas the # exact shape of the on-disk configuration file is best produced by running # `goose configure` rather than typed from memory. # ------------------------------------------------------------------ which model, and where # GOOSE_PROVIDER selects the provider; GOOSE_MODEL selects the model within it. Through the # Part 9 gateway the provider is the OpenAI-compatible one and the model is your alias. GOOSE_PROVIDER=openai GOOSE_MODEL=local/coder # The OpenAI-compatible provider's endpoint. OPENAI_HOST replaces the default host. # OPENAI_BASE_PATH exists because, as the providers page puts it, "most proxies expect # v1/chat/completions, but some are mounted at chat/completions (no v1)". Leave it unset # unless your server is one of the unusual ones. OPENAI_HOST=http://127.0.0.1:4000 # OPENAI_BASE_PATH=v1/chat/completions # The key is required by the provider even when the server behind it is yours. Generate a # virtual key on the gateway and paste it here; this file is a template and the value below # is a placeholder, not a credential. OPENAI_API_KEY=${GATEWAY_KEY} # ------------------------------------------------------------------ the no-gateway route # Uncomment these two and comment out the four lines above to talk to Ollama directly. The # documentation notes that if no host is given, Goose uses localhost:11434, and that it # prepends http:// when the scheme is neither http nor https. # GOOSE_PROVIDER=ollama # OLLAMA_HOST=http://127.0.0.1:11434 # ------------------------------------------------------------------------- how autonomous # GOOSE_MODE decides whether the agent asks before acting. Documented values are auto, # approve, chat and smart_approve. Start at approve. Move to auto only inside the container # built in this part's sandbox lab. GOOSE_MODE=approve # GOOSE_MAX_TURNS caps the loop. The documented default is 1000, which is a long way past # the point at which a small model has stopped making progress. Lower it while you are # learning what your model does, and raise it once you have watched a few transcripts. GOOSE_MAX_TURNS=40 # Sampling temperature for the session. Lower values make tool-call formatting more # consistent, which matters more for an agent than variety does. GOOSE_TEMPERATURE=0.2