xai-auth
Installation
SKILL.md
xAI Grok API Authentication
Complete guide for setting up and managing xAI API authentication for Grok models with Twitter/X integration.
Quick Start
1. Get API Key
- Go to console.x.ai
- Sign in with your X (Twitter) account
- Navigate to "API Keys" section
- Click "Create API Key"
- Copy and save the key (starts with
xai-)
2. Set Environment Variable
# Add to .bashrc, .zshrc, or .env
export XAI_API_KEY="xai-your-key-here"