Skip to content

spatialpack ai

Terminal window
spatialpack ai <command> [options]

AI-powered data analysis and enrichment.

CommandDescription
ai analyzeAnalyze a spatial data source and generate enrichment YAML.
ai configDisplay or manage AI gateway configuration.

Analyze a spatial data source and generate enrichment YAML.

Terminal window
spatialpack ai analyze SOURCE_PATH [options]

SOURCE_PATH — path (required)

Options:

OptionTypeDefaultDescription
--output, -opath-Output enrichment YAML path (default: enrichments/<layer_id>.yaml)
--accept-allflagfalseSkip interactive review, accept all proposals (CI mode)
--overwriteflagfalseOverwrite existing enrichment file
--dry-runflagfalseShow proposals without writing any file
--layer-idtext-Layer ID for enrichment (default: source filename stem)
--modeltext-Claude model to use (default: claude-haiku-4-5-20251001)
--providertext-Override provider (anthropic or openrouter)
--max-rowsinteger10000Maximum rows to profile (default: 10000)

Display or manage AI gateway configuration.

Terminal window
spatialpack ai config <command> [options]
CommandDescription
setSet a routing rule for a task type. Requires SUPABASE_SERVICE_KEY.
showDisplay current gateway configuration.

Set a routing rule for a task type. Requires SUPABASE_SERVICE_KEY.

Terminal window
spatialpack ai config set TASK_TYPE [options]

TASK_TYPE — text (required)

Options:

OptionTypeDefaultDescription
--modeltext-Primary model for this task type
--providertextanthropicProvider (anthropic or openrouter)
--fallbacktext (multiple)-Fallback model(s) in priority order
--max-tokensinteger4096Max tokens for response
--temperaturefloat0.0Temperature for response

Display current gateway configuration.

Terminal window
spatialpack ai config show