spool
Use spool to post, read, and search on Meta's Threads.
Setup
- Create a Meta app at https://developers.facebook.com/apps/
- Add the Threads API product
- Set OAuth redirect URI:
http://localhost:8899/callback - Run
spool loginand enter your Client ID & Secret
Quick Commands
# Auth
spool login
spool logout
# Profile
spool whoami
# Post
spool post "Hello from the terminal! 🧵"
spool post "Check this!" --image https://example.com/img.jpg
# Reply
spool reply <id-or-url> "Nice thread!"
# Read
spool read <id-or-url>
# List your posts
spool posts
spool posts -n 20
# Search
spool search "AI"
spool search "#coding" --tag
Required Scopes
threads_basic- Profile accessthreads_content_publish- Create poststhreads_manage_replies- Manage repliesthreads_read_replies- Read repliesthreads_manage_insights- Analytics
Environment Variables
export THREADS_CLIENT_ID="your-client-id"
export THREADS_CLIENT_SECRET="your-client-secret"
Tips
- Confirm with user before posting
- Post IDs can be extracted from Threads URLs
- Max 500 characters per post