Goose
Goose is your local AI agent, automating engineering tasks seamlessly. Official site: block.github.io/goose
1.1 Usage
Method 1: Built-in OpenAI Provider
- Set the OpenAI-compatible endpoint and API key in environment variables:
export OPENAI_API_KEY="your-hpc-ai-api-key"
export OPENAI_HOST="https://api.hpc-ai.com/inference/v1"
export GOOSE_PROVIDER="openai"
export GOOSE_MODEL="minimax/minimax-m2.5"
-
Restart goose and verify the configuration with
goose info -v. -
If you want to persist settings, edit
config.yaml:- macOS/Linux:
~/.config/goose/config.yaml - Windows:
%APPDATA%\Block\goose\config\config.yaml
- macOS/Linux:
Method 2: Custom Provider
Create a custom provider JSON file:
- macOS/Linux:
~/.config/goose/custom_providers/ - Windows:
%APPDATA%\Block\goose\config\custom_providers\
Example:
{
"name": "hpcai",
"engine": "openai",
"display_name": "HPC-AI",
"api_key_env": "HPC_AI_API_KEY",
"base_url": "https://api.hpc-ai.com/inference/v1",
"models": [
{
"name": "minimax/minimax-m2.5",
"context_limit": 128000
}
]
}
Then select the custom provider by name:
export HPC_AI_API_KEY="your-hpc-ai-api-key"
export GOOSE_PROVIDER="hpcai"
export GOOSE_MODEL="minimax/minimax-m2.5"
1.2 Notes
- Custom providers can include custom headers in the CLI or by editing the provider file after creation.
- If you are using the built-in OpenAI provider with
OPENAI_HOST, keepGOOSE_PROVIDER="openai". Use a value such ashpcaionly after creating a custom provider with that exact name.