KosmoKrator

data

FRED CLI for AI Agents

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

FRED CLI Setup

FRED can be configured headlessly with `kosmokrator integrations:configure fred`.

Install, configure, and verify
# 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 fred --set api_key="$FRED_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor fred --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.

KeyEnv varTypeRequiredLabel
api_key FRED_API_KEY Secret secret yes API Key

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call fred.fred_category '{}' --json
Provider shortcut
kosmo integrations:fred fred_category '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs fred --json
kosmo integrations:docs fred.fred_category --json
kosmo integrations:schema fred.fred_category --json
kosmo integrations:search "FRED" --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.

fred.fred_category

Get a FRED category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category '{}' --json
Shortcut
kosmo integrations:fred fred_category '{}' --json

fred.fred_category_children

Get child categories for a parent category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category_children '{}' --json
Shortcut
kosmo integrations:fred fred_category_children '{}' --json

fred.fred_category_related

Get related categories for a category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category_related '{}' --json
Shortcut
kosmo integrations:fred fred_category_related '{}' --json

fred.fred_category_series

Get series in a category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category_series '{}' --json
Shortcut
kosmo integrations:fred fred_category_series '{}' --json

fred.fred_category_tags

Get tags for a category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category_tags '{}' --json
Shortcut
kosmo integrations:fred fred_category_tags '{}' --json

fred.fred_category_related_tags

Get related tags for a category.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_category_related_tags '{}' --json
Shortcut
kosmo integrations:fred fred_category_related_tags '{}' --json

fred.fred_releases

Get all releases of economic data.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_releases '{}' --json
Shortcut
kosmo integrations:fred fred_releases '{}' --json

fred.fred_releases_dates

Get release dates for all releases.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_releases_dates '{}' --json
Shortcut
kosmo integrations:fred fred_releases_dates '{}' --json

fred.fred_release

Get one release of economic data.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release '{}' --json
Shortcut
kosmo integrations:fred fred_release '{}' --json

fred.fred_release_dates

Get release dates for one release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_dates '{}' --json
Shortcut
kosmo integrations:fred fred_release_dates '{}' --json

fred.fred_release_series

Get series on a release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_series '{}' --json
Shortcut
kosmo integrations:fred fred_release_series '{}' --json

fred.fred_release_sources

Get sources for a release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_sources '{}' --json
Shortcut
kosmo integrations:fred fred_release_sources '{}' --json

fred.fred_release_tags

Get tags for a release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_tags '{}' --json
Shortcut
kosmo integrations:fred fred_release_tags '{}' --json

fred.fred_release_related_tags

Get related tags for a release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_related_tags '{}' --json
Shortcut
kosmo integrations:fred fred_release_related_tags '{}' --json

fred.fred_release_tables

Get release tables for a release.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_release_tables '{}' --json
Shortcut
kosmo integrations:fred fred_release_tables '{}' --json

fred.fred_series

Get an economic data series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series '{}' --json
Shortcut
kosmo integrations:fred fred_series '{}' --json

fred.fred_series_categories

Get categories for a series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_categories '{}' --json
Shortcut
kosmo integrations:fred fred_series_categories '{}' --json

fred.fred_series_observations

Get observations for a series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_observations '{}' --json
Shortcut
kosmo integrations:fred fred_series_observations '{}' --json

fred.fred_series_release

Get the release for a series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_release '{}' --json
Shortcut
kosmo integrations:fred fred_series_release '{}' --json

fred.fred_series_search

Search economic data series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_search '{}' --json
Shortcut
kosmo integrations:fred fred_series_search '{}' --json

fred.fred_series_search_tags

Get tags for a series search.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_search_tags '{}' --json
Shortcut
kosmo integrations:fred fred_series_search_tags '{}' --json

fred.fred_series_search_related_tags

Get related tags for a series search.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_search_related_tags '{}' --json
Shortcut
kosmo integrations:fred fred_series_search_related_tags '{}' --json

fred.fred_series_tags

Get tags for a series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_tags '{}' --json
Shortcut
kosmo integrations:fred fred_series_tags '{}' --json

fred.fred_series_updates

Get series sorted by latest FRED server updates.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_updates '{}' --json
Shortcut
kosmo integrations:fred fred_series_updates '{}' --json

fred.fred_series_vintagedates

Get vintage dates for a series.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_series_vintagedates '{}' --json
Shortcut
kosmo integrations:fred fred_series_vintagedates '{}' --json

fred.fred_sources

Get all sources of economic data.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_sources '{}' --json
Shortcut
kosmo integrations:fred fred_sources '{}' --json

fred.fred_source

Get one source of economic data.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_source '{}' --json
Shortcut
kosmo integrations:fred fred_source '{}' --json

fred.fred_source_releases

Get releases for a source.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_source_releases '{}' --json
Shortcut
kosmo integrations:fred fred_source_releases '{}' --json

fred.fred_tags

Get all tags, search tags, or get tags by name.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_tags '{}' --json
Shortcut
kosmo integrations:fred fred_tags '{}' --json

fred.fred_related_tags

Get related tags for one or more tags.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_related_tags '{}' --json
Shortcut
kosmo integrations:fred fred_related_tags '{}' --json

fred.fred_tags_series

Get series matching tags.

Read read
Parameters
none
Generic call
kosmo integrations:call fred.fred_tags_series '{}' --json
Shortcut
kosmo integrations:fred fred_tags_series '{}' --json

Function Schemas

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

fred.fred_category 0 parameters
Schema command
kosmo integrations:schema fred.fred_category --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_category_children 0 parameters
Schema command
kosmo integrations:schema fred.fred_category_children --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_category_series 0 parameters
Schema command
kosmo integrations:schema fred.fred_category_series --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_category_tags 0 parameters
Schema command
kosmo integrations:schema fred.fred_category_tags --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_releases 0 parameters
Schema command
kosmo integrations:schema fred.fred_releases --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_releases_dates 0 parameters
Schema command
kosmo integrations:schema fred.fred_releases_dates --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release 0 parameters
Schema command
kosmo integrations:schema fred.fred_release --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release_dates 0 parameters
Schema command
kosmo integrations:schema fred.fred_release_dates --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release_series 0 parameters
Schema command
kosmo integrations:schema fred.fred_release_series --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release_sources 0 parameters
Schema command
kosmo integrations:schema fred.fred_release_sources --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release_tags 0 parameters
Schema command
kosmo integrations:schema fred.fred_release_tags --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_release_tables 0 parameters
Schema command
kosmo integrations:schema fred.fred_release_tables --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series 0 parameters
Schema command
kosmo integrations:schema fred.fred_series --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_categories 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_categories --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_observations 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_observations --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_release 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_release --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_search_tags 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_search_tags --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_tags 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_tags --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_updates 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_updates --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_series_vintagedates 0 parameters
Schema command
kosmo integrations:schema fred.fred_series_vintagedates --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_sources 0 parameters
Schema command
kosmo integrations:schema fred.fred_sources --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_source 0 parameters
Schema command
kosmo integrations:schema fred.fred_source --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_source_releases 0 parameters
Schema command
kosmo integrations:schema fred.fred_source_releases --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_tags 0 parameters
Schema command
kosmo integrations:schema fred.fred_tags --json
ParameterTypeRequiredDescription
No parameters.
fred.fred_tags_series 0 parameters
Schema command
kosmo integrations:schema fred.fred_tags_series --json
ParameterTypeRequiredDescription
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.