Skip to main content

Quick Installation

The fastest way to install Grok-X is using the one-line installer:
1

Run the installer

Execute the following command in your terminal:
bash <(curl -fsSL https://raw.githubusercontent.com/stat-guy/grok-x/main/install.sh)
The installer will:
  • Create a virtual environment at ~/.claude/skills/grok-x/.venv
  • Install the required dependencies
  • Register the skill with Claude Code
2

Verify the installation

Confirm the installation was successful by running:
~/.claude/skills/grok-x/.venv/bin/python3 ~/.claude/skills/grok-x/grok_x.py --help
You should see the help output displaying available commands and options.
3

Configure your API key

Add your xAI API key to complete the setup. See the Configuration guide for details.
The installer requires either curl or wget and will automatically detect which is available on your system.

Manual Installation

If you prefer to install manually or need more control over the process:
1

Clone the skill repository

git clone https://github.com/stat-guy/grok-x.git ~/.claude/skills/grok-x
2

Create a virtual environment

python3 -m venv ~/.claude/skills/grok-x/.venv
3

Install dependencies

~/.claude/skills/grok-x/.venv/bin/pip install openai
Grok-X uses the OpenAI Python client library to communicate with the xAI API.
4

Verify the installation

~/.claude/skills/grok-x/.venv/bin/python3 ~/.claude/skills/grok-x/grok_x.py --help

Troubleshooting

If you encounter a python3: command not found error, ensure Python 3.9 or later is installed and available in your PATH.
The skill directory at ~/.claude/skills/grok-x can be relocated if needed, but you’ll need to update any absolute paths in your configuration.

Next Steps

With Grok-X installed, proceed to Configuration to add your xAI API key and start using the skill.

Build docs developers (and LLMs) love