/install fuel-cli
fuel-cli
Use fuel for UK fuel prices: nearby station search, station detail, ranked results with freshness tracking.
Setup
npm install -g @shan8851/fuel-cli- Register at https://www.fuel-finder.service.gov.uk for Fuel Finder OAuth credentials
export FUEL_FINDER_CLIENT_ID=***andexport FUEL_FINDER_CLIENT_SECRET=***or add to.env- Warm cache reads work without credentials until the cache needs a refresh
Nearby Stations
- By postcode:
fuel near "SE1 9SG" --fuel E10 - By coordinates:
fuel near "51.501,-0.141" --fuel B7_STANDARD - Custom radius:
fuel near "SE1 9SG" --fuel E10 --radius 8mi - Sort options:
fuel near "SE1 9SG" --fuel E10 --sort price(best, price, distance, freshest) - Limit results:
fuel near "SE1 9SG" --fuel E10 --limit 5 - Force refresh:
fuel near "SE1 9SG" --fuel E10 --refresh
Station Detail
- By name:
fuel station "tesco watford" - By node ID:
fuel station "\x3Cnode-id>" - Project one field:
fuel station "\x3Cnode-id>" --output station.prices.0.pencePerLitre - Project subtree:
fuel station "\x3Cnode-id>" --output station.openingTimes
Fuel Types
E10— E10 unleaded petrolE5— Super unleaded petrolB7_STANDARD— Standard dieselB7_PREMIUM— Premium dieselB10— B10 biodieselHVO— HVO diesel
Output
- Defaults to text in a TTY and JSON when piped
- Force JSON:
fuel near "SE1 9SG" --fuel E10 --json - Force text:
fuel near "SE1 9SG" --fuel E10 --text - Disable colour:
fuel --no-color near "SE1 9SG" --fuel E10 - Success envelope:
{ ok, schemaVersion, command, requestedAt, data } - Error envelope:
{ ok, schemaVersion, command, requestedAt, error }
Agent Notes
--fuelis required onnear— petrol and diesel are never mixed in one ranking--output \x3Cpath>is available on bothnearandstation- Paths use dot notation with zero-based array indexes, for example
stations.0.selectedPricePencePerLitreorstation.prices.0.pencePerLitre - In text mode, scalar projections print just the value; object or array projections print plain JSON
- Projection errors are structured: malformed paths return
INVALID_INPUT, missing paths returnNOT_FOUND - Data-quality advisories live under
data.quality.advisories— warn about stale prices, missing timestamps, and excluded test stations data.quality.freshnessCountsbreaks down fresh/aging/stale/unknown price counts- Likely test/demo forecourts are excluded automatically when normal stations exist; count is in
data.quality.excludedLikelyTestStations
Configuration
FUEL_FINDER_CLIENT_ID— required for live data (free registration)FUEL_FINDER_CLIENT_SECRET— required for live dataFUEL_FINDER_BASE_URL— optional, defaults to https://www.fuel-finder.service.gov.ukFUEL_CACHE_DIR— optional, override cache location (defaults to platform cache dir)
Notes
nearrequires--fuelso petrol and diesel results are never mixed- Accepts UK postcodes (
SE1 9SG) and coordinates (51.501,-0.141) - Radius accepts unitless (miles) or with
mi/kmsuffix - Persistent local cache for station and price data — works offline until cache expires
- Prices include freshness bands (fresh \x3C 30min, aging \x3C 24h, stale > 24h, unknown)
- Exit codes: 0 success, 2 bad input or ambiguity, 3 upstream failure, 4 internal error
- When a station query is ambiguous, the error includes candidate suggestions with brand, address, postcode, and node ID
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fuel-cli - After installation, invoke the skill by name or use
/fuel-cli - Provide required inputs per the skill's parameter spec and get structured output
What is Fuel CLI?
UK fuel prices CLI — find nearby stations by postcode or coordinates, get station details, ranked by price/distance/freshness, and agent-friendly JSON envelo... It is an AI Agent Skill for Claude Code / OpenClaw, with 110 downloads so far.
How do I install Fuel CLI?
Run "/install fuel-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Fuel CLI free?
Yes, Fuel CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Fuel CLI support?
Fuel CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Fuel CLI?
It is built and maintained by shan8851 (@shan8851); the current version is v0.1.0.