Skip to content

feat: add CLI command to download local-inference models (no goosed server required) #8282

@eugenio

Description

@eugenio

Problem

Downloading local GGUF models for the local-inference feature currently requires:

  1. Starting the goosed agent HTTP server
  2. Knowing the secret key (randomly generated, printed to stderr as GOOSE_SERVER__SECRET_KEY or needing GOOSE_SERVER__SECRET_KEY env var)
  3. Using curl with the correct API endpoint, headers, and URL-encoded model IDs:
    curl -sk -X POST -H "X-Secret-Key: $SECRET" -H "Content-Type: application/json" \
      -d '{"spec":"bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M"}' \
      https://127.0.0.1:3000/local-inference/download
  4. Monitoring progress via a separate GET endpoint
  5. Stopping the goosed server when done

This is especially painful when:

  • Configuring local provider via goose configure — it says "Model not found" with no hint about downloading
  • Setting up the toolshim interpreter — GOOSE_TOOLSHIM=true fails with cryptic Ollama errors if no local model is downloaded
  • Running headless / on servers where there is no desktop UI

Proposed Solution

Add a CLI subcommand for model management:

# List available models and their download status
goose models list

# Download a model
goose models download bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M

# Show download progress
goose models status

# Remove a downloaded model
goose models remove <model-id>

Benefits

  • No need to start goosed server just to download a model
  • goose configure for Local Inference could auto-prompt to download if model not found
  • Toolshim setup becomes: set env var + goose models download — no Ollama, no goosed

Current Workaround

Start goosed with a known secret key and use the HTTP API:

$env:GOOSE_SERVER__SECRET_KEY = "localtest123"
goosed agent
# In another terminal:
curl -sk -X POST -H "X-Secret-Key: localtest123" -H "Content-Type: application/json" -d '{"spec":"bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M"}' https://127.0.0.1:3000/local-inference/download

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions