JSPM

  • Created
  • Published
  • Downloads 168
  • Score
    100M100P100Q76377F
  • License MIT

Grok-optimized AI coding assistant CLI powered by xAI - full-featured coding assistant with Grok 3 thinking mode, vision, and search

Package Exports

  • @defai.digital/ax-grok

Readme

AX-Grok - Grok AI Coding Assistant CLI

npm version License: MIT

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-grok

Features

  • 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_effort parameter
  • 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 conversation

Headless Mode

ax-grok -p "analyze this codebase"
ax-grok -p "fix TypeScript errors" -d /path/to/project

Essential 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_key

Part 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