Loading...
Loading...
Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.
npx skill4agent add holon-run/uxc x-openapi-skilluxcuxcuxcPATHhttps://api.x.comhttps://api.x.com/2/openapi.jsonuxc auth oauth start x-api-user \
--endpoint https://api.x.com/2 \
--client-id M3VseG9xOXZXZVREZnNqWk9jN1I6MTpjaQ \
--redirect-uri http://127.0.0.1:11111/callback \
--scope users.read \
--scope tweet.read \
--scope tweet.write \
--scope tweet.moderate.write \
--scope media.write \
--scope like.read \
--scope like.write \
--scope follows.read \
--scope follows.write \
--scope list.read \
--scope list.write \
--scope timeline.read \
--scope space.read \
--scope mute.read \
--scope mute.write \
--scope block.read \
--scope block.write \
--scope bookmark.read \
--scope bookmark.write \
--scope dm.read \
--scope dm.write \
--authorization-endpoint https://x.com/i/oauth2/authorize \
--token-endpoint https://api.x.com/2/oauth2/tokenoffline.access--scope offline.accessuxc auth oauth complete x-api-user \
--session-id <session_id> \
--authorization-response '<callback_url>'uxc auth binding add \
--id x-api-user \
--host api.x.com \
--path-prefix /2 \
--scheme https \
--credential x-api-user \
--priority 100uxc auth binding match https://api.x.com/2uxc auth credential set x-api-app \
--auth-type bearer \
--secret-env X_API_BEARER_TOKEN
uxc auth binding add \
--id x-api-app \
--host api.x.com \
--path-prefix /2 \
--scheme https \
--credential x-api-app \
--priority 90--auth x-api-appcommand -v x-openapi-cliuxc link x-openapi-cli https://api.x.com --schema-url https://api.x.com/2/openapi.jsonx-openapi-cli -hx-openapi-cli get:/2/users/me -hx-openapi-cli get:/2/users/{id}/bookmarks -hx-openapi-cli post:/2/tweets -hx-openapi-cli get:/2/users/mex-openapi-cli get:/2/users/{id}/bookmarks id=<user_id> max_results=20x-openapi-cli get:/2/users/{id}/timelines/reverse_chronological id=<user_id> max_results=20x-openapi-cli post:/2/tweets text='hello from uxc'x-openapi-cli post:/2/tweets '{"text":"hello from uxc"}'uxc subscribeuxc subscribe start https://api.x.com/2/tweets/search/stream \
--auth x-api-app \
--sink file:$HOME/.uxc/subscriptions/x-search-stream.ndjson--textokkindprotocoldataerrorx-openapi-cli <operation> ...uxc https://api.x.com --schema-url https://api.x.com/2/openapi.json <operation> ...post:/2/tweetsreferences/usage-patterns.mdhttps://api.x.com/2/openapi.jsonhttps://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-codehttps://docs.x.com/fundamentals/authentication/oauth-2-0/application-only