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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call openweather.openweather_current_weather '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call openweather.openweather_current_weather '{}' --json kosmo integrations:openweather openweather_current_weather '{}' --json openweather.openweather_forecast_5_day
Get 5 day / 3 hour forecast data.
read - Parameters
- none
kosmo integrations:call openweather.openweather_forecast_5_day '{}' --json kosmo integrations:openweather openweather_forecast_5_day '{}' --json openweather.openweather_one_call
Get One Call API 3.0 current weather, forecasts, and alerts.
read - Parameters
- none
kosmo integrations:call openweather.openweather_one_call '{}' --json kosmo integrations:openweather openweather_one_call '{}' --json openweather.openweather_one_call_timemachine
Get One Call API 3.0 data for a timestamp.
read - Parameters
- none
kosmo integrations:call openweather.openweather_one_call_timemachine '{}' --json kosmo integrations:openweather openweather_one_call_timemachine '{}' --json openweather.openweather_one_call_day_summary
Get daily aggregated weather data.
read - Parameters
- none
kosmo integrations:call openweather.openweather_one_call_day_summary '{}' --json kosmo integrations:openweather openweather_one_call_day_summary '{}' --json openweather.openweather_one_call_overview
Get human-readable weather overview output.
read - Parameters
- none
kosmo integrations:call openweather.openweather_one_call_overview '{}' --json kosmo integrations:openweather openweather_one_call_overview '{}' --json openweather.openweather_air_pollution
Get current air pollution data.
read - Parameters
- none
kosmo integrations:call openweather.openweather_air_pollution '{}' --json kosmo integrations:openweather openweather_air_pollution '{}' --json openweather.openweather_air_pollution_forecast
Get forecasted air pollution data.
read - Parameters
- none
kosmo integrations:call openweather.openweather_air_pollution_forecast '{}' --json kosmo integrations:openweather openweather_air_pollution_forecast '{}' --json openweather.openweather_air_pollution_history
Get historical air pollution data.
read - Parameters
- none
kosmo integrations:call openweather.openweather_air_pollution_history '{}' --json kosmo integrations:openweather openweather_air_pollution_history '{}' --json openweather.openweather_geocoding_direct
Convert a location name into coordinates.
read - Parameters
- none
kosmo integrations:call openweather.openweather_geocoding_direct '{}' --json kosmo integrations:openweather openweather_geocoding_direct '{}' --json openweather.openweather_geocoding_reverse
Convert coordinates into location names.
read - Parameters
- none
kosmo integrations:call openweather.openweather_geocoding_reverse '{}' --json kosmo integrations:openweather openweather_geocoding_reverse '{}' --json openweather.openweather_geocoding_zip
Convert a zip or post code into coordinates.
read - Parameters
- none
kosmo integrations:call openweather.openweather_geocoding_zip '{}' --json 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
kosmo integrations:schema openweather.openweather_current_weather --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_forecast_5_day 0 parameters
kosmo integrations:schema openweather.openweather_forecast_5_day --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_one_call 0 parameters
kosmo integrations:schema openweather.openweather_one_call --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_one_call_timemachine 0 parameters
kosmo integrations:schema openweather.openweather_one_call_timemachine --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_one_call_day_summary 0 parameters
kosmo integrations:schema openweather.openweather_one_call_day_summary --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_one_call_overview 0 parameters
kosmo integrations:schema openweather.openweather_one_call_overview --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_air_pollution 0 parameters
kosmo integrations:schema openweather.openweather_air_pollution --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_air_pollution_forecast 0 parameters
kosmo integrations:schema openweather.openweather_air_pollution_forecast --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_air_pollution_history 0 parameters
kosmo integrations:schema openweather.openweather_air_pollution_history --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_geocoding_direct 0 parameters
kosmo integrations:schema openweather.openweather_geocoding_direct --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_geocoding_reverse 0 parameters
kosmo integrations:schema openweather.openweather_geocoding_reverse --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
openweather.openweather_geocoding_zip 0 parameters
kosmo integrations:schema openweather.openweather_geocoding_zip --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.