KosmoKrator

data

ExchangeRate CLI for AI Agents

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

5 functions 5 read 0 write No credentials auth

ExchangeRate CLI Setup

ExchangeRate can be configured headlessly with `kosmokrator integrations:configure exchangerate`.

# 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 exchangerate --enable --read allow --write ask --json
kosmokrator integrations:doctor exchangerate --json
kosmokrator integrations:status --json

Credentials

Authentication type: No credentials none. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

No credentials are required.

Call ExchangeRate Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call exchangerate.exchangerate_list_currencies '{
  "query": "example_query"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:exchangerate exchangerate_list_currencies '{
  "query": "example_query"
}' --json

Agent Discovery Commands

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

kosmo integrations:docs exchangerate --json
kosmo integrations:docs exchangerate.exchangerate_list_currencies --json
kosmo integrations:schema exchangerate.exchangerate_list_currencies --json
kosmo integrations:search "ExchangeRate" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to ExchangeRate.

exchangerate.exchangerate_list_currencies

Read read

List all available currencies (fiat, crypto, precious metals, stablecoins). Supports 340+ assets. Optionally filter by name or code.

Parameters
query

Generic CLI call

kosmo integrations:call exchangerate.exchangerate_list_currencies '{"query":"example_query"}' --json

Provider shortcut

kosmo integrations:exchangerate exchangerate_list_currencies '{"query":"example_query"}' --json

exchangerate.exchangerate_convert_currency

Read read

Convert an amount from one currency to another. Supports 340 fiat currencies, cryptocurrencies, and precious metals. Common codes: usd, eur, gbp, jpy, cny, chf, cad, aud, btc, eth, sol, xau, xag.

Parameters
from, to, amount, date

Generic CLI call

kosmo integrations:call exchangerate.exchangerate_convert_currency '{"from":"example_from","to":"example_to","amount":"example_amount","date":"example_date"}' --json

Provider shortcut

kosmo integrations:exchangerate exchangerate_convert_currency '{"from":"example_from","to":"example_to","amount":"example_amount","date":"example_date"}' --json

exchangerate.exchangerate_rates

Read read

Get all exchange rates for a base currency. Optionally filter to specific target currencies. Supports 340 fiat currencies, cryptocurrencies, and precious metals.

Parameters
base, date, currencies

Generic CLI call

kosmo integrations:call exchangerate.exchangerate_rates '{"base":"example_base","date":"example_date","currencies":"example_currencies"}' --json

Provider shortcut

kosmo integrations:exchangerate exchangerate_rates '{"base":"example_base","date":"example_date","currencies":"example_currencies"}' --json

exchangerate.exchangerate_history

Read read

Compare a currency pair across multiple dates to see rate changes over time. Returns each date's rate and the overall change.

Parameters
from, to, dates

Generic CLI call

kosmo integrations:call exchangerate.exchangerate_history '{"from":"example_from","to":"example_to","dates":"example_dates"}' --json

Provider shortcut

kosmo integrations:exchangerate exchangerate_history '{"from":"example_from","to":"example_to","dates":"example_dates"}' --json

Function Schemas

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

exchangerate.exchangerate_list_currencies

List all available currencies (fiat, crypto, precious metals, stablecoins). Supports 340+ assets. Optionally filter by name or code.

Operation
Read read
Schema command
kosmo integrations:schema exchangerate.exchangerate_list_currencies --json
ParameterTypeRequiredDescription
query string no Filter currencies by code or name (e.g. "dollar", "btc", "gold").

exchangerate.exchangerate_convert_currency

Convert an amount from one currency to another. Supports 340 fiat currencies, cryptocurrencies, and precious metals. Common codes: usd, eur, gbp, jpy, cny, chf, cad, aud, btc, eth, sol, xau, xag.

Operation
Read read
Schema command
kosmo integrations:schema exchangerate.exchangerate_convert_currency --json
ParameterTypeRequiredDescription
from string yes Source currency code (e.g. "usd", "btc", "xau").
to string yes Target currency code (e.g. "eur", "jpy").
amount string no Amount to convert (default: "1").
date string no Date for the rate (default: "latest"). Format: "YYYY-MM-DD" or "latest".

exchangerate.exchangerate_rates

Get all exchange rates for a base currency. Optionally filter to specific target currencies. Supports 340 fiat currencies, cryptocurrencies, and precious metals.

Operation
Read read
Schema command
kosmo integrations:schema exchangerate.exchangerate_rates --json
ParameterTypeRequiredDescription
base string yes Base currency code (e.g. "usd", "btc").
date string no Date for rates (default: "latest"). Format: "YYYY-MM-DD" or "latest".
currencies string no Comma-separated currency codes to filter (e.g. "eur,gbp,jpy"). Shows popular currencies if omitted.

exchangerate.exchangerate_history

Compare a currency pair across multiple dates to see rate changes over time. Returns each date's rate and the overall change.

Operation
Read read
Schema command
kosmo integrations:schema exchangerate.exchangerate_history --json
ParameterTypeRequiredDescription
from string yes Source currency code (e.g. "usd", "btc", "xau").
to string yes Target currency code (e.g. "eur", "jpy").
dates string yes Comma-separated dates to compare (e.g. "2026-01-01,2026-02-01,2026-02-20").

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.