Install
openclaw skills install uf2-netCreate, manage, and track custom short URLs with uf2.net API; links never expire and provide click counts and public stats via simple REST calls.
openclaw skills install uf2-netCreate and manage short URLs via the uf2.net API. This skill provides a CLI wrapper for the uf2.net service (https://uf2.net), an API-first URL shortener designed for automation and bots.
If you don't have a uf2.net account:
curl -X POST https://uf2.net/api/v1/accounts/register \
-H "Content-Type: application/json" \
-d '{"username":"your-username"}'
Response includes api_key field. Store this securely (see Credential Management below).
export UF2_API_KEY="uf2_..."
Important: Do not hardcode API keys in scripts or commit them to version control.
Shorten a URL:
scripts/uf2.sh create "https://example.com/long/path"
# → {"short_url":"https://uf2.net/abc123",...}
Custom slug:
scripts/uf2.sh create "https://github.com/my-repo" "my-repo" "My GitHub Repo"
# → {"short_url":"https://uf2.net/my-repo",...}
List your links:
scripts/uf2.sh list 10
# → {"links":[...],"total":42}
Get link stats (public, no auth needed):
scripts/uf2.sh get abc123
# → {"code":"abc123","click_count":42,...}
Delete a link:
scripts/uf2.sh delete abc123
Most secure for temporary/session use:
export UF2_API_KEY="uf2_..."
Choose one based on your security requirements:
Option 1: Shell profile (user-only access)
echo 'export UF2_API_KEY="uf2_..."' >> ~/.zshrc
# or ~/.bashrc for bash
Option 2: OpenClaw secret store (if available)
# Store in OpenClaw's secure credential storage
# (consult OpenClaw docs for secret management)
Option 3: System keychain/credential manager
# macOS Keychain, Linux Secret Service, Windows Credential Manager
# Use OS-native secure storage
⚠️ Avoid: Storing keys in plain text files in shared or version-controlled directories.
For operations not covered by the script, use curl directly. See api.md for full API reference.
Example:
curl -X POST https://uf2.net/api/v1/links \
-H "X-API-Key: $UF2_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","slug":"custom"}'
UF2_API_KEY header