nighthawk 0.4.0

AI terminal autocomplete — zero config, zero login, zero telemetry
Documentation

nighthawk

Open-source, local-first, cross-platform AI terminal autocomplete. The spiritual successor to Fig.

What is this?

Type a command, see gray ghost text with the completion. Press Tab to accept. No login, no telemetry, no cloud required. Works in any terminal, any shell.

Features

  • Inline ghost text via ANSI escapes — works in any terminal emulator
  • 689+ CLI specs from the withfig/autocomplete community repo
  • Auto-parse --help for any CLI without a spec
  • History-based predictions — your most-used commands surface first
  • Full-token replacement — typo-aware (cclaclaude, not cclaude)
  • Zero config — works immediately with no API key, no login, no account
  • Cross-platform — macOS, Linux, Windows
  • Multi-shell — zsh and PowerShell (5.1+, 7+)
  • Local LLM support — AI completions via local Ollama / llama.cpp / vLLM, never leave your machine (opt-in via --features local-llm)
  • BYOK cloud — bring your own API key for OpenAI, Anthropic, or Groq (opt-in via --features cloud-llm)

Architecture

Lightweight Rust daemon + thin shell plugins (~50 lines each). The daemon runs a tiered prediction cascade:

Tier Latency Source
0 <1ms Shell history prefix matching
1 <1ms Static CLI specs (withfig/autocomplete + --help parser)
2 ~500ms Local LLM (Ollama / llama.cpp / vLLM)
3 ~2s Cloud API (OpenAI / Anthropic / Groq, BYOK)

Status

Early development. Building in public.

Shell Status
zsh Supported
PowerShell (5.1+, 7+) Supported
bash Planned
fish Planned
nushell Planned
Platform Status
macOS Supported
Linux Supported
Windows Supported

License

MIT