docs/x.md
X posts
With X set up, Shrok can read a post you share or name, such as a link from the X app. Reading posts through the X API costs money from your prepaid X credits, about $0.005 per post. Reading the same post again on the same UTC day is free.
Shrok uses xurl and offers X only when xurl is installed and both of its keys are set.
In the X developer portal, create an app with OAuth 2.0 user authentication.
Install
xurlwhere Shrok's service can find it, such asnpm install -g @xdevplatform/xurl.Give Shrok the app's client ID and secret as
XURL_CLIENT_IDandXURL_CLIENT_SECRET, the same way you gave it the model key.As the user Shrok runs as, register the app with xurl and log in:
sh1 xurl auth apps add shrok --client-id ... --client-secret ... 2 xurl auth oauth2 --app shrok 3 xurl auth default shrok xurlopens a browser to sign in and keeps its tokens in~/.xurlof that user.Restart Shrok, then share an X link with it to check.
Shrok's own sandbox can't read ~/.xurl, so a command Shrok runs in bash can't take your tokens.