Real-time oil, gas, and commodity prices for Gemini CLI.
gemini extensions install https://github.com/OilpriceAPI/gemini-extensionOr install with auto-update:
gemini extensions install https://github.com/OilpriceAPI/gemini-extension --auto-updateSet your API key as an environment variable:
export OILPRICEAPI_KEY="your-api-key-here"Get an API key at oilpriceapi.com.
Once installed, you can ask Gemini about commodity prices:
> What's the current Brent oil price?
> Give me a market overview of all energy prices
> Compare WTI and Brent crude prices
> How has natural gas changed?
| Tool | Description |
|---|---|
get_commodity_price |
Get current price for a commodity |
get_market_overview |
Get all prices, optionally filtered by category |
compare_prices |
Compare 2-5 commodities |
list_commodities |
List all available commodities |
- Brent Crude (global benchmark)
- WTI (US benchmark)
- Urals (Russian)
- Dubai (Middle East)
- US Henry Hub
- UK NBP
- European TTF
- Diesel, Gasoline, Jet Fuel, Heating Oil
- Coal, Gold, Carbon Credits, Forex
Ask naturally - the extension understands:
- "brent oil" → BRENT_CRUDE_USD
- "natural gas" → NATURAL_GAS_USD
- "european gas" → DUTCH_TTF_EUR
- "diesel" → DIESEL_USD
MIT