Install
openclaw skills install bitly-url-shortner-and-managerBitly URL Shortner and Manager for a local Windows OpenClaw workspace. Use when the user wants to log into Bitly with locally stored credentials, validate auth, inspect account/group details, list/search/filter/export existing bitlinks, shorten one or many URLs, inspect long URLs and click metrics, create custom aliases, or prepare short links for X/social posting workflows without exposing secrets inside the published skill.
openclaw skills install bitly-url-shortner-and-managerUse the official Bitly API through a local CLI that reads secrets from a local .env file outside the skill folder.
Store real credentials in a local env file outside the skill folder.
Recommended approaches:
BITLY_ENV_FILE to point at your local env fileBITLY_CLIENT_ID, BITLY_CLIENT_SECRET, BITLY_ACCESS_TOKEN, and optional BITLY_DEFAULT_GROUP_GUID directly in the shellThe skill does not need secrets embedded inside the published skill folder.
Example env file shape is documented in:
references/env-example.mdValidate auth:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py whoami
List groups:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py groups
List recent links:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py bitlinks --limit 10
Search/filter links:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py search --query "etsy" --limit 20 --tag t-shirts
Shorten one URL:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py shorten --long-url "https://example.com/page"
Shorten many URLs from a txt file:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py bulk-shorten --input "C:\path\to\urls.txt" --output "C:\path\to\results.json"
Export links for other workflows:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py export-links --tag t-shirts --format txt --output "C:\path\to\bitly-links.txt"
Inspect a bitlink:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py expand --bitlink "bit.ly/abc123"
Get clicks for a bitlink:
python .\skills\bitly-url-shortner-and-manager\scripts\bitly_manager.py clicks --bitlink "bit.ly/abc123" --unit day --limit 30
whoami first when verifying a new setup.groups if you need the correct group_guid.bitlinks, search, and filters to inspect existing links.shorten or bulk-shorten to create new links.export-links to hand clean link sets to other tools or skills.x-post-prep or another social workflow.whoami — verify auth and inspect account infogroups — list accessible groupsbitlinks --limit N [--query TEXT] — list recent links in a groupsearch --query TEXT --limit N — search links by textshorten --long-url URL — create a new short linkexpand --bitlink bit.ly/abc123 — inspect an existing bitlinkclicks --bitlink bit.ly/abc123 — fetch click metricscreate-custom --bitlink bit.ly/abc123 --custom-bitlink yourdomain.com/name — try to create a custom aliasbulk-shorten --input urls.txt — shorten many URLs from a local txt fileexport-links --format json|txt|csv --output file — export filtered link setsenv-template — print or write a local env templateList/search/export commands support filters like:
--tag--domain--containsMany list-style commands also support --csv for flatter output.
For a local desktop-style setup, use:
http://127.0.0.1:8765/callbackOptionally also add:
http://localhost:8765/callbackThis skill pairs naturally with:
x-post-prep for adding short links into prepared post filesx-poster for later scheduling or posting those linked postsbitly_manager.py — local Bitly CLI for account, link, metrics, export, and batch operationsapi-notes.md — Bitly endpoint notesenv-example.md — non-secret example of the local env file shape
example of the local env file shape