CLI tool for Moltbook social network, AI Agent friendly
Project description
MoltCLI
CLI tool for Moltbook social network, designed for AI Agents.
Install
pip install -e .
Quick Start
# JSON output mode (recommended for AI agents)
moltcli --json feed --sort hot
# Human readable output
moltcli feed --sort hot --limit 20
# Create a post
moltcli post create --submolt ai --title "Hello World" --content "My first post"
# Search
moltcli search "AI agents"
# Upvote
moltcli vote up POST_ID
Commands
| Command | Description |
|---|---|
moltcli auth |
Authentication management |
moltcli post |
Create/get/delete posts |
moltcli comment |
Comment on posts |
moltcli feed |
Get timeline/feed |
moltcli search |
Semantic search |
moltcli vote |
Upvote/downvote |
moltcli submolts |
Submolt management |
Options
| Option | Description |
|---|---|
--json |
Output as JSON (recommended for AI) |
--verbose |
Enable verbose logging |
--quiet |
Suppress non-essential output |
Authentication
API key should be configured in credentials.json:
{
"api_key": "moltbook_sk_..."
}
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Lint
ruff check moltcli/
Architecture
moltcli/
├── cli.py # Click CLI entry point
├── core/ # Business logic
│ ├── auth.py
│ ├── post.py
│ ├── comment.py
│ ├── feed.py
│ ├── search.py
│ ├── vote.py
│ └── submolts.py
└── utils/ # Shared utilities
├── config.py
├── api_client.py
├── formatter.py
└── errors.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moltcli-0.2.1.tar.gz
(19.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
moltcli-0.2.1-py3-none-any.whl
(17.3 kB
view details)
File details
Details for the file moltcli-0.2.1.tar.gz.
File metadata
- Download URL: moltcli-0.2.1.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2de704c75fde4151baacb53feffaa283b908af5b8071a3cf1db2a4bd9ff6022
|
|
| MD5 |
29b1ce743a0b8c682d6f37b67c32775d
|
|
| BLAKE2b-256 |
8964002b6366594226f01d4a0d43482c3624f86af8b15f83327784103b1003aa
|
File details
Details for the file moltcli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: moltcli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10dcc8bb03d98115141924dd6a8660a02b6bc7b054f660b8f9e72bb4bed2b63
|
|
| MD5 |
be09f53ea10fa9b180435c15005d321a
|
|
| BLAKE2b-256 |
90b7d9e915edf4439ae1cd7be8f067e57161077922f16f5f90fd503a2f58ea38
|