KosmoKrator

data

OpenWeather CLI for AI Agents

Use the OpenWeather CLI from KosmoKrator to call OpenWeather tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

OpenWeather CLI Setup

OpenWeather can be configured headlessly with `kosmokrator integrations:configure openweather`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure openweather --set api_key="$OPENWEATHER_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor openweather --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key OPENWEATHER_API_KEY Secret secret yes API Key

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call openweather.openweather_current_weather '{}' --json
Provider shortcut
kosmo integrations:openweather openweather_current_weather '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs openweather --json
kosmo integrations:docs openweather.openweather_current_weather --json
kosmo integrations:schema openweather.openweather_current_weather --json
kosmo integrations:search "OpenWeather" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

openweather.openweather_current_weather

Get current weather data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_current_weather '{}' --json
Shortcut
kosmo integrations:openweather openweather_current_weather '{}' --json

openweather.openweather_forecast_5_day

Get 5 day / 3 hour forecast data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_forecast_5_day '{}' --json
Shortcut
kosmo integrations:openweather openweather_forecast_5_day '{}' --json

openweather.openweather_one_call

Get One Call API 3.0 current weather, forecasts, and alerts.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_one_call '{}' --json
Shortcut
kosmo integrations:openweather openweather_one_call '{}' --json

openweather.openweather_one_call_timemachine

Get One Call API 3.0 data for a timestamp.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_one_call_timemachine '{}' --json
Shortcut
kosmo integrations:openweather openweather_one_call_timemachine '{}' --json

openweather.openweather_one_call_day_summary

Get daily aggregated weather data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_one_call_day_summary '{}' --json
Shortcut
kosmo integrations:openweather openweather_one_call_day_summary '{}' --json

openweather.openweather_one_call_overview

Get human-readable weather overview output.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_one_call_overview '{}' --json
Shortcut
kosmo integrations:openweather openweather_one_call_overview '{}' --json

openweather.openweather_air_pollution

Get current air pollution data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_air_pollution '{}' --json
Shortcut
kosmo integrations:openweather openweather_air_pollution '{}' --json

openweather.openweather_air_pollution_forecast

Get forecasted air pollution data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_air_pollution_forecast '{}' --json
Shortcut
kosmo integrations:openweather openweather_air_pollution_forecast '{}' --json

openweather.openweather_air_pollution_history

Get historical air pollution data.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_air_pollution_history '{}' --json
Shortcut
kosmo integrations:openweather openweather_air_pollution_history '{}' --json

openweather.openweather_geocoding_direct

Convert a location name into coordinates.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_geocoding_direct '{}' --json
Shortcut
kosmo integrations:openweather openweather_geocoding_direct '{}' --json

openweather.openweather_geocoding_reverse

Convert coordinates into location names.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_geocoding_reverse '{}' --json
Shortcut
kosmo integrations:openweather openweather_geocoding_reverse '{}' --json

openweather.openweather_geocoding_zip

Convert a zip or post code into coordinates.

Read read
Parameters
none
Generic call
kosmo integrations:call openweather.openweather_geocoding_zip '{}' --json
Shortcut
kosmo integrations:openweather openweather_geocoding_zip '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

openweather.openweather_current_weather 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_current_weather --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_forecast_5_day 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_forecast_5_day --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_one_call 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_one_call --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_one_call_timemachine 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_one_call_timemachine --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_one_call_day_summary 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_one_call_day_summary --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_one_call_overview 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_one_call_overview --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_air_pollution 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_air_pollution --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_air_pollution_forecast 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_air_pollution_forecast --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_air_pollution_history 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_air_pollution_history --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_geocoding_direct 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_geocoding_direct --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_geocoding_reverse 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_geocoding_reverse --json
ParameterTypeRequiredDescription
No parameters.
openweather.openweather_geocoding_zip 0 parameters
Schema command
kosmo integrations:schema openweather.openweather_geocoding_zip --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.