KosmoKrator

marketing

Bitly CLI for Coding Agents

Use the Bitly CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

8 functions 5 read 3 write Bearer token auth

Bitly CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Bitly CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Bitly CLI for Coding Agents
kosmokrator integrations:configure bitly --set access_token="$BITLY_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call bitly.bitly_shorten_link '{"long_url":"example_long_url","domain":"example_domain","group_guid":"example_group_guid"}' --json

Discovery Before Execution

Agents and scripts can inspect Bitly docs and schemas before choosing a function.

kosmo integrations:docs bitly --json
kosmo integrations:docs bitly.bitly_shorten_link --json
kosmo integrations:schema bitly.bitly_shorten_link --json
kosmo integrations:search "Bitly" --json
kosmo integrations:list --json

Useful Bitly CLI Functions

FunctionTypeParametersDescription
bitly.bitly_shorten_link Write long_url, domain, group_guid Shorten a long URL into a Bitlink. Returns the shortened URL and link details.
bitly.bitly_get_link Read bitlink Retrieve details for a Bitlink, including the long URL, title, tags, and timestamps.
bitly.bitly_update_link Write bitlink, title, archived, tags Update a Bitlink's metadata — set the title, archive/unarchive, or update tags.
bitly.bitly_get_clicks Read bitlink, unit, units, unit_reference Get click metrics for a Bitlink. Returns click counts by time unit (minute, hour, day, week, month).
bitly.bitly_list_groups Read none List all groups in the Bitly account. Groups organize links and are used when creating new Bitlinks.
bitly.bitly_get_group Read group_guid Retrieve details for a specific Bitly group by its GUID.
bitly.bitly_create_bitlink Write long_url, title, tags, domain, group_guid Create a new Bitlink with title, tags, and optional custom domain. More full-featured than shorten — use this when you need metadata.
bitly.bitly_get_current_user Read none Get the authenticated Bitly user's profile. Use this to verify the connection and see account info.

Automation Notes

Related Bitly CLI Pages