@defai.digital/ax-grok
v5.3.7
Published
Grok AI Coding Assistant CLI powered by xAI - Terminal-based vibe coding with Grok 4 thinking mode, vision, live web search, and MCP integration. Part of the AX CLI ecosystem.
Maintainers
Readme
AX-Grok - Grok AI Coding Assistant CLI
Enterprise-grade AI coding assistant powered by xAI's Grok 4 - Terminal-based vibe coding with extended reasoning, vision, live web search, and MCP integration.
Quick Start
npm install -g @defai.digital/ax-grok
ax-grok setup
ax-grokFeatures
- Grok 4 Models: Most capable reasoning, coding, vision, and search
- Live Web Search: Built-in real-time web search capability
- Vision Support: Analyze images and screenshots
- Extended Thinking: Deep reasoning with
reasoning_effortparameter - 17 Built-in Tools: File editing, bash execution, search, todos, and more
- MCP Integration: Model Context Protocol with 12+ production-ready templates
- AutomatosX Agents: 20+ specialized AI agents for complex tasks
Supported Models
| Model | Context | Features |
|-------|---------|----------|
| grok-4-0709 | 131K | Most capable: reasoning, coding, vision, search (default) |
| grok-4.1-fast | 131K | Fast variant with agent tools support |
| grok-2-image-1212 | 32K | Image generation: text-to-image |
Usage
Interactive Mode
ax-grok # Start interactive session
ax-grok --continue # Resume previous conversationHeadless Mode
ax-grok -p "analyze this codebase"
ax-grok -p "fix TypeScript errors" -d /path/to/projectEssential Commands
| Command | Description |
|---------|-------------|
| /init | Initialize project context |
| /help | Show all commands |
| /models | Switch AI model |
| /doctor | Run diagnostics |
Configuration
# Config location
~/.ax-grok/config.json # User settings (encrypted API key)
.ax-grok/settings.json # Project overrides
.ax-grok/CUSTOM.md # Custom AI instructions
# Environment variable
export XAI_API_KEY=your_keyPart of AX CLI Ecosystem
| Package | Description | |---------|-------------| | @defai.digital/ax-grok | Grok-optimized CLI (this package) | | @defai.digital/ax-glm | GLM-optimized CLI | | @defai.digital/ax-core | Shared core library |
Documentation
License
MIT License - see LICENSE
Made with love by DEFAI Digital
