spatialpack ai
Synopsis
Section titled “Synopsis”spatialpack ai <command> [options]Description
Section titled “Description”AI-powered data analysis and enrichment.
Commands
Section titled “Commands”| Command | Description |
|---|---|
ai analyze | Analyze a spatial data source and generate enrichment YAML. |
ai config | Display or manage AI gateway configuration. |
Command Details
Section titled “Command Details”ai analyze
Section titled “ai analyze”Analyze a spatial data source and generate enrichment YAML.
spatialpack ai analyze SOURCE_PATH [options]Arguments
Section titled “Arguments”SOURCE_PATH — path (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--output, -o | path | - | Output enrichment YAML path (default: enrichments/<layer_id>.yaml) |
--accept-all | flag | false | Skip interactive review, accept all proposals (CI mode) |
--overwrite | flag | false | Overwrite existing enrichment file |
--dry-run | flag | false | Show proposals without writing any file |
--layer-id | text | - | Layer ID for enrichment (default: source filename stem) |
--model | text | - | Claude model to use (default: claude-haiku-4-5-20251001) |
--provider | text | - | Override provider (anthropic or openrouter) |
--max-rows | integer | 10000 | Maximum rows to profile (default: 10000) |
ai config
Section titled “ai config”Display or manage AI gateway configuration.
spatialpack ai config <command> [options]Subcommands
Section titled “Subcommands”| Command | Description |
|---|---|
set | Set a routing rule for a task type. Requires SUPABASE_SERVICE_KEY. |
show | Display current gateway configuration. |
ai config set
Section titled “ai config set”Set a routing rule for a task type. Requires SUPABASE_SERVICE_KEY.
spatialpack ai config set TASK_TYPE [options]Arguments
Section titled “Arguments”TASK_TYPE — text (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--model | text | - | Primary model for this task type |
--provider | text | anthropic | Provider (anthropic or openrouter) |
--fallback | text (multiple) | - | Fallback model(s) in priority order |
--max-tokens | integer | 4096 | Max tokens for response |
--temperature | float | 0.0 | Temperature for response |
ai config show
Section titled “ai config show”Display current gateway configuration.
spatialpack ai config show