🧪 Skills
Bit URL Shortener
Manage Bit URL shortener links — create, list, get, update, delete short links and view click analytics.
v1.0.1
Description
name: bit description: Manage Bit URL shortener links — create, list, get, update, delete short links and view click analytics. metadata: {"openclaw": {"requires": {"bins": ["bit"], "env": ["BIT_API_KEY"]}, "primaryEnv": "BIT_API_KEY"}}
Bit URL Shortener
Use this skill to interact with the Bit URL shortener API via the bit CLI.
Available Commands
bit ping— Check API healthbit list [--limit N] [--cursor X]— List all short linksbit create <url>— Create a new short linkbit get <id>— Get link details and recent click analyticsbit update <id> <new-url>— Update a link's destinationbit delete <id>— Delete a linkbit clicks <id> [--limit N] [--cursor X]— List click records
Environment Variables
BIT_API_KEY(required) — API authentication keyBIT_API_URL(optional) — API base URL, defaults tohttp://localhost:4000
Original GitHub Sources
- This CLI repository:
https://github.com/ParinLL/bit-cli - Bit server (upstream project):
https://github.com/sjdonado/bit - Bit API docs:
https://sjdonado.github.io/bit/
Installation
Build Locally
git clone git@github.com:ParinLL/bit-cli.git
cd bit-cli
go build -o bit .
Install to PATH
cd bit-cli
go build -o bit .
sudo mv bit /usr/local/bin/
Docker Image
docker build -t bit-cli .
docker buildx build --platform linux/amd64,linux/arm64 -t bit-cli .
Docker Compose
export BIT_ADMIN_API_KEY=$(openssl rand -base64 32)
docker compose up -d bit
docker compose run --rm bit-cli ping
Usage Examples
When the user asks to shorten a URL, run: bit create <url>
When the user asks to see all links, run: bit list
When the user asks about clicks on a link, run: bit clicks <id>
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!