Skip to content

Quick start

Terminal window
curl -fsSL https://raw.githubusercontent.com/muthuishere/askx/main/install.sh | sh

askx init probes local Ollama (127.0.0.1:11434), local OpenAI-compatible servers, installed coding CLIs (claude, devin, opencode, copilot, gemini), and standard API key env vars. It writes key_env names — never raw secrets — to ~/.config/askx/profiles.yaml (0600).

Terminal window
askx init
askx doctor
Terminal window
# Simple prompt
askx "what is the difference between a mutex and a channel in Go?"
# Pipe stdin or attach files
git diff | askx "write a 1-line commit message"
askx "summarize in 3 bullets" -f README.md
# Pick a specific profile
askx -p claude-cli "review this diff for race conditions" -f diff.patch

Enforce a JSON Schema across any backend (OpenAI, Anthropic, Ollama, ACP, or CLI). If the model emits invalid JSON or misses required fields, askx runs an automatic repair loop before returning.

Terminal window
askx --schema '{"type":"object","properties":{"severity":{"enum":["low","medium","high"]},"summary":{"type":"string"}},"required":["severity","summary"]}' \
"classify this error log" -f error.log
Terminal window
# Clean plain-text deltas on stdout (zero ANSI escape codes)
askx --stream -p ollama "explain Go escape analysis"
# Typed NDJSON events for CI pipelines and orchestrators
askx --stream-json -p ollama "summarize README.md" -f README.md

--stream-json emits one JSON object per line with types text, tool_call, tool_result, denied, and done.

Attach .png, .jpg, .jpeg, .webp, .gif, or .pdf files with -f. Binary attachments are sent as structured multimodal parts (including native ACP blocks) and base64 payloads are scrubbed from audit logs.

Terminal window
askx -p ollama -f screenshot.png "what error is shown on this screen?"
askx -p hosted -f invoice.pdf "extract invoice number and total as JSON"