farcaster-skillPost, read, search, and engage on Farcaster via the Neynar API. Use when an agent needs to: (1) post casts with text, embeds, or in channels, (2) reply to or thread casts, (3) read a user's feed or a channel feed, (4) search casts by keyword, (5) look up user profiles by username or FID, (6) like or recast, (7) delete casts, (8) list or search channels. Pure bash+curl+jq โ zero npm dependencies.
Install via ClawdBot CLI:
clawdbot install openclaw-consensus-bot/farcaster-skillAll scripts use the Neynar v2 REST API. Requires curl and jq.
Set these env vars (or pass --api-key / --signer flags):
export NEYNAR_API_KEY="your-api-key"
export NEYNAR_SIGNER_UUID="your-signer-uuid" # required for write ops
Alternatively, put credentials in a JSON file and source them:
eval $(jq -r '"export NEYNAR_API_KEY=\(.apiKey)\nexport NEYNAR_SIGNER_UUID=\(.signerUuid)"' /path/to/neynar.json)
Post text, with optional embeds, channel, or reply-to.
# Simple text cast
scripts/fc_cast.sh --text "Hello Farcaster!"
# Cast with image/video embed
scripts/fc_cast.sh --text "Check this out" --embed "https://example.com/image.png"
# Cast with two embeds (max 2)
scripts/fc_cast.sh --text "Links" --embed "https://a.com" --embed "https://b.com"
# Post to a channel
scripts/fc_cast.sh --text "gm" --channel "base"
# Reply to a cast
scripts/fc_cast.sh --text "Great point!" --parent "0xabcdef1234..."
# Quote-cast (embed another cast)
scripts/fc_cast.sh --text "This ๐" --embed-cast "0xabcdef1234..." --embed-cast-fid 12345
Output: JSON {success, hash}.
# User's casts by FID
scripts/fc_feed.sh --fid 3 --limit 10
# User's casts by username
scripts/fc_feed.sh --username "vitalik" --limit 5
# Channel feed
scripts/fc_feed.sh --channel "base" --limit 10
# Following feed (casts from people the signer follows)
scripts/fc_feed.sh --following --fid 3 --limit 10
# Cast replies/thread
scripts/fc_feed.sh --thread "0xabcdef..."
# Pagination with cursor
scripts/fc_feed.sh --fid 3 --cursor "eyJwYWdlIjoxfQ=="
Output: JSON array of casts with {hash, author, text, timestamp, embeds, reactions, replies}.
# By username
scripts/fc_user.sh --username "dwr"
# By FID
scripts/fc_user.sh --fid 3
# By Ethereum address (verified)
scripts/fc_user.sh --address "0x1234..."
# Bulk by FIDs
scripts/fc_user.sh --fids "3,194,6131"
Output: JSON user object(s) with {fid, username, display_name, bio, follower_count, following_count, verified_addresses}.
# Search by keyword
scripts/fc_search.sh --query "base chain"
# Search with author filter
scripts/fc_search.sh --query "ethereum" --author-fid 3
# Search in channel
scripts/fc_search.sh --query "gm" --channel "base"
# Limit results
scripts/fc_search.sh --query "nft" --limit 5
Output: JSON array of matching casts.
# Like a cast
scripts/fc_react.sh --like "0xabcdef..."
# Unlike
scripts/fc_react.sh --like "0xabcdef..." --undo
# Recast
scripts/fc_react.sh --recast "0xabcdef..."
# Undo recast
scripts/fc_react.sh --recast "0xabcdef..." --undo
scripts/fc_delete.sh --hash "0xabcdef..."
# Search channels by keyword
scripts/fc_channels.sh --search "defi"
# Get channel details by ID
scripts/fc_channels.sh --id "base"
# List trending channels
scripts/fc_channels.sh --trending --limit 10
HASH1=$(scripts/fc_cast.sh --text "Thread ๐งต 1/3: Big news!" --channel "base" | jq -r .hash)
HASH2=$(scripts/fc_cast.sh --text "2/3: Details here..." --parent "$HASH1" | jq -r .hash)
scripts/fc_cast.sh --text "3/3: Link below" --parent "$HASH2" --embed "https://example.com"
while true; do
scripts/fc_search.sh --query "@yourusername" --limit 5
sleep 300
done
# Upload to catbox/litterbox first
URL=$(curl -sS -F "reqtype=fileupload" -F "time=72h" \
-F "fileToUpload=@/path/to/image.png" \
https://litterbox.catbox.moe/resources/internals/api.php)
# Then embed the URL
scripts/fc_cast.sh --text "Check this out!" --embed "$URL"
Not all endpoints are available on Neynar's free plan.
| Feature | Script | Free? |
|---------|--------|-------|
| Post cast | fc_cast.sh | โ |
| User casts feed | fc_feed.sh --fid | โ |
| User lookup (username/FID/address) | fc_user.sh | โ |
| Like / recast | fc_react.sh | โ |
| Following feed | fc_feed.sh --following | โ |
| Channel feed | fc_feed.sh --channel | โ Paid |
| Cast search | fc_search.sh | โ Paid |
| Channel search/details/trending | fc_channels.sh | โ Paid |
| Delete cast | fc_delete.sh | โ Paid |
| Thread/conversation | fc_feed.sh --thread | โ |
Scripts that hit paid endpoints will exit non-zero with a clear 402 PaymentRequired error.
All scripts exit 0 on success, non-zero on failure. Errors print to stderr as JSON:
{"error": "message", "status": 403}
Common errors:
401 โ Invalid API key402 โ Feature requires paid Neynar plan403 โ Signer not approved or not paired with API key404 โ Cast/user/channel not found429 โ Rate limited (Neynar free tier: 300 req/min)See references/neynar_endpoints.md for the full endpoint list and parameter docs.
Generated Mar 1, 2026
AI agents use this skill to automate posting updates, announcements, and educational content about a crypto project on Farcaster. They can schedule casts in threads, embed links to whitepapers or media, and engage with community mentions by searching for keywords or usernames, helping maintain an active presence without manual effort.
Agents leverage the skill to read feeds from specific users or channels, such as trending influencers or niche communities like 'base', and compile summaries or alerts. They can search for trending topics, monitor discussions, and share curated content with followers, ideal for news bots or research tools in decentralized social networks.
Businesses deploy AI agents to handle customer inquiries on Farcaster by monitoring mentions with search queries, replying to casts with automated responses, and liking or recasting positive feedback. This skill enables real-time interaction, helping brands manage reputation and provide support in web3 communities efficiently.
Agents use the skill to gather data on user profiles, track follower counts, and analyze cast engagement through feeds and reactions. They can search for influencers by keywords, compile reports on trending channels, and assist marketing teams in identifying key voices for partnerships in the social finance (SocialFi) space.
Moderation bots employ this skill to scan casts in channels or threads for inappropriate content by searching keywords, deleting harmful casts if authorized, and flagging issues. They can also like or recast positive contributions to encourage healthy discussions, enhancing community management in decentralized platforms.
Offer a subscription-based service where businesses pay monthly to use AI agents powered by this skill for automated posting, engagement, and analytics on Farcaster. Revenue comes from tiered plans based on usage limits, such as number of casts per day or access to paid features like channel feeds and search.
Develop and sell custom AI agents that integrate this skill for specific use cases, like crypto project bots or support assistants. Offer a free version with basic features (e.g., posting and user lookup) and charge for advanced capabilities like paid endpoint access, channel management, or premium support, generating one-time sales or ongoing licenses.
Use the skill to collect and analyze Farcaster data, such as user trends and engagement metrics, then sell insights or APIs to marketers, researchers, or investors. Revenue is generated through data licensing fees, custom report generation, or access to real-time analytics dashboards, leveraging paid endpoints for deeper analysis.
๐ฌ Integration Tip
Set up environment variables for API keys and signer UUIDs in your deployment to avoid passing flags manually, and test with free endpoints first to ensure compatibility before scaling to paid features.
Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
Fetch and summarize YouTube video transcripts. Use when asked to summarize, transcribe, or extract content from YouTube videos. Handles transcript fetching via residential IP proxy to bypass YouTube's cloud IP blocks.
Browse, search, post, and moderate Reddit. Read-only works without auth; posting/moderation requires OAuth setup.
Interact with Twitter/X โ read tweets, search, post, like, retweet, and manage your timeline.
LinkedIn automation via browser relay or cookies for messaging, profile viewing, and network actions.
Search YouTube videos, get channel info, fetch video details and transcripts using YouTube Data API v3 via MCP server or yt-dlp fallback.