Skip to main content

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.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moltcli-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file moltcli-0.1.0.tar.gz.

File metadata

  • Download URL: moltcli-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for moltcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 21f0672093dbb456254d0223c9ac61d58cc2537d4b92ffa4f30587d81259fa55
MD5 1ca677d3e41df04e777f209b649f2cf7
BLAKE2b-256 7b41fa2dc1b18b924c4565a24f42a119d6cdb96669bc4ca6f18688378151e273

See more details on using hashes here.

File details

Details for the file moltcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: moltcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for moltcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c43415f7ea9a97fd3d0ab6e65bfdf0f305e1c9ce7de1d441a29cad62b8c67d05
MD5 87050165c479ab9d9800c7eeb32c914c
BLAKE2b-256 c0110ac42b3cb82229f261b97f9b43bd19eaf990a00456eea7c527655dbeffb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page