Skip to main content

A command-line interface for Twitter/X using cookie-based authentication

Project description

clix

Twitter/X from your terminal. No API keys. No bullshit.

Python 3.11+ PolyForm NC 1.0 PyPI


Why?

Twitter killed free API access. clix uses cookie-based auth — just log in with your browser, and you're in. Works for humans (rich terminal output) and AI agents (structured JSON). Zero API keys, zero OAuth dance.

Quick Start

# install
uv pip install clix0

# authenticate (extracts cookies from your browser)
clix auth

Commands

Command Description
clix feed [--type for-you|following] [--count N] Timeline
clix search <query> [--type top|latest|photos|videos] Search tweets
clix tweet <id> View tweet + thread
clix user <handle> Profile + recent tweets
clix post <text> [--reply-to ID] Post a tweet
clix delete <id> Delete a tweet
clix like <id> / clix unlike <id> Like / unlike
clix retweet <id> / clix unretweet <id> Retweet / undo
clix bookmark <id> / clix unbookmark <id> Bookmark / remove
clix bookmarks List bookmarks
clix auth Auth status / setup
clix config Manage config

Agent Mode

Every command supports --json for structured output. Pipe detection is automatic — non-TTY gets JSON by default.

# explicit
clix feed --json | jq '.tweets[0].text'

# automatic when piped
clix search "LLM" | python process.py

See SKILL.md for AI agent integration docs.

MCP Server

clix ships as an MCP server — any MCP-compatible client can use it.

{
  "mcpServers": {
    "clix": {
      "command": "uvx",
      "args": ["clix0", "mcp"]
    }
  }
}

Or with explicit auth:

{
  "mcpServers": {
    "clix": {
      "command": "uvx",
      "args": ["clix0", "mcp"],
      "env": {
        "X_AUTH_TOKEN": "your-token",
        "X_CT0": "your-ct0"
      }
    }
  }
}

14 tools: get_feed, search, get_tweet, get_user, list_bookmarks, post_tweet, delete_tweet, like, unlike, retweet, unretweet, bookmark, unbookmark, auth_status

Contributing

See CONTRIBUTING.md.

Disclaimer

This tool is for educational and personal use only. It is not affiliated with, endorsed by, or associated with X Corp (formerly Twitter). Use at your own risk. The authors are not responsible for any consequences resulting from the use of this software. By using this tool, you agree to comply with X/Twitter's Terms of Service.

License

PolyForm Noncommercial 1.0.0

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

clix0-0.2.2.tar.gz (97.7 kB view details)

Uploaded Source

Built Distribution

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

clix0-0.2.2-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file clix0-0.2.2.tar.gz.

File metadata

  • Download URL: clix0-0.2.2.tar.gz
  • Upload date:
  • Size: 97.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clix0-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3b5b9339084284822b8e9b122085a4ed95fecf32432bbfe9f337f1081a00f5ba
MD5 d9a3cb0f0bb1332214783a846dc8d69b
BLAKE2b-256 5f357e1548a2f6ad74fad99fc5f0f0aa94db6a69ddc7b9239b098ea3f7c6dcb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for clix0-0.2.2.tar.gz:

Publisher: release.yml on spideystreet/clix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clix0-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: clix0-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clix0-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b489d4746b82cdee39f08d81e945e9673bbe8085f9e5fd8e16fd25832d2603cb
MD5 17e519f3d847d70b39f90e6a3384df9e
BLAKE2b-256 cd01d620aaacbe7028732389ac58ab828bfd9a1be1e380b65dc56b4f184106f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for clix0-0.2.2-py3-none-any.whl:

Publisher: release.yml on spideystreet/clix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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