Documentation
Post, schedule, and manage X (Twitter) from an AI agent, your code, or the terminal. One API key, no X developer account, no OAuth. Pick a path below.
Agent via MCP
https://mcp.opentweet.io/mcpPaste one URL into your MCP client.
Code via REST
POST /api/v1/postsOne request from any language.
Terminal via CLI
opentweet tweet "shipped"Post from a shell or CI job.
Browse the docs
Quickstart
Post your first tweet in three minutes with curl, the MCP server, or the CLI.
Authentication
Create an ot_ API key, send it as a Bearer token, verify with /me, and keep it safe.
MCP setup
Connect Claude Code, Cursor, Windsurf, or any MCP client to the hosted or local server.
MCP tools reference
All 36 tools your agent gets: posting, threads, scheduling, articles, analytics, evergreen.
REST API reference
Endpoints, request bodies, and responses for posting to X from any language.
CLI
Tweet and schedule from your terminal or a CI/CD pipeline.
Built for machines too
Point your agent or tooling at these: /AGENTS.md, /openapi.json, and /llms-full.txt. The hosted MCP endpoint ishttps://mcp.opentweet.io/mcp.