weatherclaw
v0.1.0
Published
OpenClaw plugin that exposes wttr.in weather report tools.
Maintainers
Readme
Weatherclaw
Weatherclaw is an OpenClaw plugin that exposes first-class weather report tools backed by wttr.in. It is intentionally small: no API key, no secrets, and no provider account setup.
This is useful as both:
- a practical weather integration for locked-down OpenClaw agents; and
- a reference plugin showing OpenClaw tool registration, package metadata, agent tool allowlisting, and runtime verification.
Why a plugin instead of a weather skill?
OpenClaw already has weather-oriented skills and public skill examples that tell agents how to call wttr.in with shell tools such as curl. Weatherclaw is different: it registers typed OpenClaw tools, so sandboxed/minimal agents can retrieve weather without broad exec access.
Benefits:
- first-class
weather_currentandweather_forecasttools - typed parameters and structured output
- least-privilege allowlisting by tool name
- no shell/curl requirement for the agent
- no need to grant broad
exec, shell, orcurlaccess to sandboxed agents
Tools
weather_current— concise current weather report from wttr.in.weather_forecast— text forecast report from wttr.in, 1-3 days.
Both tools accept either:
location: place name, airport code, or address, such asSeattle, WA; orlatitudeandlongitude: numeric coordinates.
Optional parameters:
units:metricorimperial(metricby default)days: forecast length forweather_forecast, clamped to 1-3 (3by default; wttr.in text reports support up to 3 days)
The tools return a structured payload containing:
summary: first useful line of the wttr.in report, suitable for quick agent repliesreport: raw wttr.in text reportlocation,units,source, andurl
Requirements
- OpenClaw
2026.4.24or newer - Node.js compatible with the installed OpenClaw runtime
- Outbound HTTPS access to
https://wttr.in
No API keys, secrets, or local config are required.
Development
npm install
npm run verifynpm run verify cleans the repo, builds TypeScript, and runs the Node test suite.
To verify the package contents before sharing or publishing:
npm run verify:packageInstall from a local checkout
From this repository:
npm install
npm run build
openclaw plugins install . --force
openclaw plugins enable weather
openclaw plugins inspect weather --jsonIf your OpenClaw config uses an explicit plugins.allow list, make sure it includes weather; otherwise OpenClaw will discover the plugin but block activation.
Then confirm OpenClaw can see the plugin:
openclaw plugins list --verbose
openclaw plugins doctorIf your gateway is already running, restart or reload it if plugin changes are not visible:
openclaw gateway restartUsing with sandboxed agents
Weatherclaw is designed to work well with agents that have OpenClaw sandboxing enabled. Install and enable the plugin normally, then allow the weather tools for the agent that should use them:
openclaw plugins enable weatherIf your OpenClaw config uses explicit tool allowlists, include these tools for the target agent:
weather_currentweather_forecast
The agent does not need exec, shell, or curl permissions to retrieve weather reports through this plugin.
Install from a packaged archive
Build and pack the plugin:
npm install
npm run verify
npm packInstall the generated archive from another checkout or OpenClaw host:
openclaw plugins install ./weatherclaw-0.1.0.tgz --force
openclaw plugins enable weather
openclaw plugins inspect weather --jsonRuntime smoke test
After installing, ask an agent with access to the plugin tools one of:
- "Use
weather_currentto get the weather for Seattle, WA." - "Use
weather_forecastfor San Francisco for 2 days in imperial units."
Expected behavior: the tool returns a payload from wttr.in with summary, report, source: "wttr.in", and a https://wttr.in/... URL.
Example prompts
- "What's the weather in Seattle right now?"
- "Will it rain in San Francisco this weekend?"
- "Give me a 2-day forecast for 37.7749,-122.4194 in imperial units."
Troubleshooting
- Plugin not listed: run
openclaw plugins inspect weather --jsonandopenclaw plugins doctor; rebuild withnpm run build, reinstall with--force, then restart the gateway if needed. - Tools not visible to a sandboxed agent: confirm the plugin is enabled and the target agent's tool allowlist includes
weather_currentandweather_forecast. - Network/DNS errors: the sandbox must allow outbound HTTPS to
https://wttr.in. - Rate limits: wttr.in may return HTTP 429. Retry later or reduce repeated weather checks.
- Empty report: retry with a more specific location or coordinates.
Privacy and network access
The plugin sends requested location names or coordinates to wttr.in. No API keys or credentials are used.
Support and status
Weatherclaw is maintained in this repository and is not bundled with OpenClaw.
License
MIT. See LICENSE.
