scvxzf1/xai-sso-to-credentials — explained in plain English
Analysis updated 2026-05-18
Convert a batch of xAI SSO cookies into ready-to-use credential files in one run.
Reformat existing xAI access tokens into the JSON structure other tools expect.
Process many accounts at once with adjustable concurrency and automatic retries on failure.
| scvxzf1/xai-sso-to-credentials | 2arons/llm-cli | abe238/claude-video-plus | |
|---|---|---|---|
| Stars | 11 | 11 | 11 |
| Language | Python | Python | Python |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Authenticated mode needs the curl_cffi Python package installed.
This is a small command line tool for converting xAI account credentials into a specific JSON file format. If you have an SSO cookie from xAI, or you already hold an OAuth access token, this script turns either one into a xai-*.json credential file that other tools expecting that format can use. There are two modes. In authenticated mode, you provide an SSO cookie and the script runs a real device flow login against xAI to produce a valid credential file. In the second mode, you already have an access token or a JSON credential, and the script just reformats it without contacting xAI again. The tool ships with an interactive terminal interface called tui.sh that walks you through picking a mode, pasting your input, setting how many conversions run at once, choosing retry attempts and the wait time between them, and picking an output folder. There is also a plain command line script, sso_to_auth_json.py, for people who prefer to call it directly with flags for concurrency, retry count, and retry interval. Input can be a single value or a text file with one entry per line, in a few accepted formats including a raw token, an email and password pair followed by a token, or a numbered list. Each processed account produces its own output file named after the account's email or subject identifier. The README requires the curl_cffi Python package for the authenticated mode, since local parsing alone is enough for the no-auth mode. It also warns plainly that SSO cookies, tokens, and the generated credential files are sensitive and should never be committed to a public repository, and notes that the project's own gitignore already excludes common input and output files. The project is released under the MIT license.
A command line tool that converts xAI SSO cookies or access tokens into standardized credential JSON files, one per account.
Mainly Python. The stack also includes Python.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.