🐦 ssky - Simple Bluesky Client
A lightweight, command-line Bluesky client that makes it easy to interact with the Bluesky social network from your terminal.
✨ Features
- 🔑 Simple authentication and session management
- 📝 Post, reply, quote, and repost content
- 🔍 Search posts and users
- 👥 Follow/unfollow users
- 📊 View timelines and profiles
- 🖼️ Support for images and link cards
- 📦 Linux shell friendly output formats
🚀 Quick Start
Installation
pip install ssky
This installs the CLI and nothing else. If you also want the MCP server for IDE integration, install the optional extra instead:
pip install 'ssky[mcp]'
Login
ssky login your-handle.bsky.social:your-password
Or set credentials via environment variable:
export SSKY_USER=your-handle.bsky.social:your-password
Configuration
By default, ssky stores session data in ~/.ssky. You can customize this location using the SSKY_CONFIG_PATH environment variable:
# Use a custom session file location
export SSKY_CONFIG_PATH=/path/to/custom/session
ssky login your-handle.bsky.social:your-password
# Useful for testing or managing multiple accounts
export SSKY_CONFIG_PATH=~/.ssky-test
Note: The SSKY_CONFIG_PATH must be set before running ssky commands, as it's evaluated when the session module is first loaded.
📖 Basic Usage
Posting
# Simple post
ssky post "Hello, Bluesky!"
# Post with images (add alt text in the same order as --image)
ssky post "Check out these photos!" --image photo1.jpg --image photo2.jpg --alt "a cat" --alt "a dog"
# Post a video
ssky post "My clip" --video clip.mp4 --video-alt "a short clip"
# Tag the language(s) of the post
ssky post "こんにちは" --lang ja
# Reply to a post
ssky post "Great post!" --reply-to at://did:plc:.../app.bsky.feed.post/...
# Quote a post
ssky post "Interesting!" --quote at://did:plc:.../app.bsky.feed.post/...
# Restrict who can reply (threadgate) and disable quote posts (postgate)
ssky post "Announcement" --allow-reply following --allow-reply mentioned --no-quote
ssky post "Private thought" --allow-reply nobody
Reading
# View your timeline
ssky get
# View your timeline with full threads
ssky get --thread
# Get specific post with its thread
ssky get at://did:plc:.../app.bsky.feed.post/... --thread
# Get user's posts as threads with custom depth
ssky get user.bsky.social --thread --thread-depth 5 --thread-parent-height 2
# View someone's profile
ssky profile user.bsky.social
# Search posts
ssky search "keyword"
# Search users
ssky user "username"
Social Actions
# Follow a user
ssky follow user.bsky.social
# Repost a post
ssky repost at://did:plc:.../app.bsky.feed.post/...
# Delete a post
ssky delete at://did:plc:.../app.bsky.feed.post/...
🔧 Advanced Usage
Thread Retrieval
Retrieve posts along with their complete conversation threads:
# Get timeline with full threads (each post expanded to its thread)
ssky get --thread
# Get specific post's thread
ssky get at://did:plc:.../app.bsky.feed.post/... --thread
# Get user's posts as threads
ssky get user.bsky.social --thread
# Control thread depth (default: 10 replies deep)
ssky get --thread --thread-depth 5
# Include parent posts (default: 0 parents)
ssky get --thread --thread-parent-height 2
# Save threads to files
ssky get --thread --output ./threads
Thread Output Formatting:
- Short/ID format (no flag,
-I): Reply lines prefixed with"| " - Long/Text format (
-L,-T): Posts within thread separated by"|", independent threads by"----------------" - JSON/simple-json: Cannot be used with
--thread(returns error)
Output Formats
# Get only post IDs
ssky get --id
# Get only text content
ssky get --text
# Get full JSON output
ssky get --json
# Get simplified JSON with facets metadata (ideal for programmatic access)
ssky get --simple-json
# Save posts to files
ssky get --output ./posts
📖 Output format specification — exactly what each format emits for each kind of result: field sets, delimiters, escaping, empty results, and error behavior. Read this before scripting against ssky output.
Facets Metadata in Simple-JSON
The --simple-json format includes structured facets metadata for rich text features:
- links: URLs with byte positions and text
- mentions: User mentions with handles, DIDs, and byte positions
- tags: Hashtags with byte positions and text
Example output:
{
"status": "success",
"data": [{
"uri": "at://...",
"cid": "...",
"author": {
"did": "did:plc:...",
"handle": "user.bsky.social",
"display_name": "User Name",
"avatar": "https://..."
},
"text": "Check out https://example.com @user.bsky.social #bluesky",
"created_at": "2024-01-01T00:00:00.000Z",
"facets": {
"links": [
{
"url": "https://example.com",
"byte_start": 10,
"byte_end": 30,
"text": "https://example.com"
}
],
"mentions": [
{
"handle": "user.bsky.social",
"did": "did:plc:...",
"byte_start": 31,
"byte_end": 49,
"text": "@user.bsky.social"
}
],
"tags": [
{
"tag": "bluesky",
"byte_start": 50,
"byte_end": 58,
"text": "#bluesky"
}
]
}
}]
}
Useful Examples
# Reply to your last post
ssky post "Update!" --reply-to $(ssky get myself --limit 1 --id)
# Search your own posts
ssky search "keyword" --author myself
# Save your timeline to files
ssky get --output ./timeline
🤖 IDE Integration
Cursor Agent MCP Tools
ssky provides comprehensive MCP (Model Context Protocol) tools for seamless integration with Cursor Agent, enabling AI-powered Bluesky interactions directly in your development environment.
Features:
- 📋 10 comprehensive tools: Complete Bluesky functionality
- 🤖 AI-optimized: Long format defaults for better AI understanding
- 🔧 Full feature support: Posts with images, quotes, replies, search, social actions
- ⚡ Real-time integration: Direct Bluesky interaction from Cursor
Quick Setup:
# Install ssky with the MCP extra
pip install 'ssky[mcp]'
# Copy the sample configuration
mkdir -p .cursor
cp mcp/mcp.sample.json .cursor/mcp.json
# Set your Bluesky credentials
export SSKY_USER=your-handle.bsky.social:your-password
# Restart Cursor to load the MCP tools
The MCP server is a Python process that runs over stdio, so uvx works without
installing anything permanently — see mcp/mcp.sample.json.
Alternative Setup:
- Docker:
cp mcp/mcp.docker.sample.json .cursor/mcp.jsonuses the pre-builtghcr.io/simpleskyclient/ssky-mcpimage, which is pulled automatically on first use. Useful if you would rather not have a Python environment involved. - For existing MCP setup: Add the ssky server to your
.cursor/mcp.json(see the sample files above) - For local development: Use
cd mcp && ./build.sh && cd ..to build the image locally - Complete guide: See MCP Documentation
Available Tools:
ssky_get,ssky_search,ssky_user,ssky_profile- Content retrievalssky_post- Content creation with images/quotes/repliesssky_follow,ssky_unfollow,ssky_repost,ssky_unrepost- Social actionsssky_delete- Content management
🤝 Contributing
Contributions are welcome. CONTRIBUTING.md covers development setup, the Dev Container, running the tests, and how to open a pull request.
Please read the claiming convention there before you start work: comment on an issue to claim it, and check whether an open pull request already references it.
📝 Requirements
- Python 3.12 or later
📜 License
👥 Author
Metadata
Release files for ssky 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ssky-1.1.0.tar.gz | 38.4 kB | Without provenance | Details for ssky-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ssky-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for ssky-1.1.0-py3-none-any.whl |
Total release size: 83.3 kB
Release files / ssky-1.1.0.tar.gz
| Download URL | ssky-1.1.0.tar.gz |
|---|---|
| Size | 38.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af4db7753f6e2adb8656bf6a5e9916141f0f4a9d2e569119cfad1b6f30930b61
|
|
BLAKE2b-256 checksum How to use checksums |
d1cf58ca9d99b755ae8281e78cceb1f9aaa08237ed2ffbab5e3d8f2248b78205
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.14 Linux/6.17.0-1022-azure
|
Release files / ssky-1.1.0-py3-none-any.whl
| Download URL | ssky-1.1.0-py3-none-any.whl |
|---|---|
| Size | 44.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34f8b6fc3f1c449489488f4283f5a1d88648433cf9e29ce05000185e17537079
|
|
BLAKE2b-256 checksum How to use checksums |
f44b433c04319c3613e5968c96bbae3fbdbb260a57bb31c055caefd6395fdbd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.12.14 Linux/6.17.0-1022-azure
|
Security for ssky 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.