Bun+TS headless CLI for Farcaster
List commands ./hyper help:
ls <user>: List most recent casts+repliesurl <url>: Resolve a cast URL to a full hashlike <url>: Like a castcast [message]: Cast a message (options:--channel, repeatable--embed; message can be read from STDIN)boost <url>: Boost a cast by liking + recastingreply <url> <message>: Reply to a cast (option:--like)delete <url>: Delete a castwho-liked <url>: Who liked a castfrens: List frens by most recent likes (option:--limit)user <username>: Get user info by usernameuser-info <fid>: Get user info by FIDbalance <username>: Get ETH + USDC balance on Basefollow <fid>: Follow a userunfollow <fid>: Unfollow a userfollowing: List users you follow (option:--fid)followers: List your followers (option:--fid)whoami: Get your own user info
- Message input: pass
[message]as an argument, or pipe it via STDIN (supports multi-line). - Embeds: repeat
--embed <url>(0–2 embeds supported).
# cast a message
./hyper cast "hello world"
# multi-line via STDIN
cat draft.txt | ./hyper cast
# 1-2 embeds (repeat the flag)
./hyper cast "with embeds" --embed "https://example.com" --embed "https://example.org"bun install
bun check
chmod u+x ./hyper
./hyper --helpTo use commands that sign/write to Farcaster (e.g., cast, reply, like, recast, delete) you need:
FID: your Farcaster fid (number)PK: your Farcaster signer private key (hex; with or without0x)
To use commands that hit Neynar reads (e.g., frens) you may also with to provide:
NEYNAR_API_KEY
Start from .env.example and make sure the variables are present in your environment before running ./hyper.
Ask your LLM if this is safe before running.
See CONTRIBUTING.md
MIT License: LICENSE.