KosmoKrator

marketing

Brandfetch CLI for AI Agents

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

7 functions 7 read 0 write Bearer token auth

Brandfetch CLI Setup

Brandfetch can be configured headlessly with `kosmokrator integrations:configure brandfetch`.

# 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 brandfetch --set access_token="$BRANDFETCH_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor brandfetch --json
kosmokrator integrations:status --json

Credentials

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

KeyEnv varTypeRequiredLabel
access_token BRANDFETCH_ACCESS_TOKEN Secret secret yes Access Token
url BRANDFETCH_URL URL url no API Base URL

Call Brandfetch Headlessly

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

kosmo integrations:call brandfetch.brandfetch_get_brand '{
  "domain": "example_domain"
}' --json

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

kosmo integrations:brandfetch brandfetch_get_brand '{
  "domain": "example_domain"
}' --json

Agent Discovery Commands

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

kosmo integrations:docs brandfetch --json
kosmo integrations:docs brandfetch.brandfetch_get_brand --json
kosmo integrations:schema brandfetch.brandfetch_get_brand --json
kosmo integrations:search "Brandfetch" --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 Brandfetch.

brandfetch.brandfetch_get_brand

Read read

Look up a brand by its domain (e.g., "spotify.com") to retrieve logos, colors, fonts, and other brand assets. Returns the complete brand profile with all available assets.

Parameters
domain

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_get_brand '{"domain":"example_domain"}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_get_brand '{"domain":"example_domain"}' --json

brandfetch.brandfetch_search_brands

Read read

Search for brands by name or domain. Returns a list of matching brands with basic info. Use the brand ID from results to fetch detailed assets like logos, colors, and fonts.

Parameters
query, limit

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_search_brands '{"query":"example_query","limit":1}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_search_brands '{"query":"example_query","limit":1}' --json

brandfetch.brandfetch_list_logos

Read read

List all logo variants available for a brand. Returns logos in different formats (SVG, PNG), sizes, and themes (light, dark, icon).

Parameters
brand_id, limit

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_list_logos '{"brand_id":"example_brand_id","limit":1}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_list_logos '{"brand_id":"example_brand_id","limit":1}' --json

brandfetch.brandfetch_list_colors

Read read

List the official brand colors (hex values) for a brand. Returns color types such as primary, secondary, accent, dark, and light.

Parameters
brand_id, limit

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_list_colors '{"brand_id":"example_brand_id","limit":1}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_list_colors '{"brand_id":"example_brand_id","limit":1}' --json

brandfetch.brandfetch_list_fonts

Read read

List the fonts used by a brand. Returns font families, weights, and usage context (heading, body, etc.).

Parameters
brand_id, limit

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_list_fonts '{"brand_id":"example_brand_id","limit":1}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_list_fonts '{"brand_id":"example_brand_id","limit":1}' --json

brandfetch.brandfetch_get_current_user

Read read

Get the authenticated user's Brandfetch account details, including name, email, plan, and usage information.

Parameters
none

Generic CLI call

kosmo integrations:call brandfetch.brandfetch_get_current_user '{}' --json

Provider shortcut

kosmo integrations:brandfetch brandfetch_get_current_user '{}' --json

Function Schemas

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

brandfetch.brandfetch_get_brand

Look up a brand by its domain (e.g., "spotify.com") to retrieve logos, colors, fonts, and other brand assets. Returns the complete brand profile with all available assets.

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_get_brand --json
ParameterTypeRequiredDescription
domain string yes The brand domain to look up (e.g., "spotify.com", "nike.com").

brandfetch.brandfetch_search_brands

Search for brands by name or domain. Returns a list of matching brands with basic info. Use the brand ID from results to fetch detailed assets like logos, colors, and fonts.

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_search_brands --json
ParameterTypeRequiredDescription
query string yes Search term — brand name or domain (e.g., "Nike", "spotify.com").
limit integer no Maximum number of results to return.

brandfetch.brandfetch_list_logos

List all logo variants available for a brand. Returns logos in different formats (SVG, PNG), sizes, and themes (light, dark, icon).

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_list_logos --json
ParameterTypeRequiredDescription
brand_id string yes The brand identifier obtained from a brand search or lookup.
limit integer no Maximum number of logos to return.

brandfetch.brandfetch_list_colors

List the official brand colors (hex values) for a brand. Returns color types such as primary, secondary, accent, dark, and light.

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_list_colors --json
ParameterTypeRequiredDescription
brand_id string yes The brand identifier obtained from a brand search or lookup.
limit integer no Maximum number of colors to return.

brandfetch.brandfetch_list_fonts

List the fonts used by a brand. Returns font families, weights, and usage context (heading, body, etc.).

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_list_fonts --json
ParameterTypeRequiredDescription
brand_id string yes The brand identifier obtained from a brand search or lookup.
limit integer no Maximum number of fonts to return.

brandfetch.brandfetch_get_current_user

Get the authenticated user's Brandfetch account details, including name, email, plan, and usage information.

Operation
Read read
Schema command
kosmo integrations:schema brandfetch.brandfetch_get_current_user --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.