Kernax
Pricing → For Teams → CLI → Security → Docs → Blog →
Request Beta Access →
Docs / Reference / CLI & Headless Mode

CLI & Headless Mode

Drive Kernax directly from your terminal. Launch tasks, run automated code reviews, and integrate agentic pipelines into CI/CD.

CLI Installation & Auth

The Kernax CLI brings the full power of our AST context engine, multi-model cascade router, and autonomous agent loops directly to your terminal.

Install the standalone binary via curl or PowerShell:

terminal
# macOS & Linux
curl -fsSL https://kernax.com/install.sh | bash

# Windows (PowerShell Administrator)
irm https://kernax.com/install.ps1 | iex

# Authenticate with your closed beta credentials
kernax auth login

Headless Agent Execution

Run one-off refactoring tasks or script complex repository migrations non-interactively using the -p (prompt) flag:

terminal
# Run autonomous security audit and patch vulnerabilities
kernax -p "Scan @src/routes/ for unescaped SQL queries and refactor to parameterized queries"

# Generate TypeScript types from PostgreSQL database schema
kernax -p "Inspect @schema.sql and generate matching Zod schemas in src/types/schema.ts"

Model Overrides & Reasoning Flags

Pin a specific model or enable high-effort reasoning traces on command line:

terminal
# Use DeepSeek R1 with deep reasoning effort
kernax -p --model "deepseek-r1" --reasoning-effort high "Solve concurrent race condition in queue worker"

# Output pure unified diff without modifying files on disk
kernax -p --dry-run "Refactor AuthController to use dependency injection"

CI/CD GitHub Actions & Automation

Embed Kernax directly into your continuous integration workflows for automated PR reviews and documentation sync:

.github/workflows/kernax-review.yml
name: Kernax Automated Code Review
on: [pull_request]

jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Kernax CLI
        run: curl -fsSL https://kernax.com/install.sh | bash
      - name: Run AST Diff Review
        env:
          KERNAX_API_KEY: ${{ secrets.KERNAX_API_KEY }}
        run: kernax ci review --branch ${{ github.head_ref }}
Was this page helpful?
Esc