freshcrate
Skin:/
Home > AI Agents > hawk

hawk

Hawk CLI — Model-Agnostic. Limitless Intelligence.

Why this rank:Release freshnessHealthy release cadenceStrong adoption

Description

Hawk CLI — Model-Agnostic. Limitless Intelligence.

README


What is Hawk?

Hawk is a powerful, extensible CLI coding agent that brings the intelligence of modern LLMs directly to your terminal. Unlike locked-in alternatives, Hawk is provider-agnostic — use your own API keys, run local models, or switch between 8+ providers including access to 200+ models via OpenRouter.

Built for developers who want control without compromise.

# One command to start coding with AI
hawk

Features

🤖 Universal LLM Support

Connect to any OpenAI-compatible API. From GPT-4o to local Ollama models — you choose the brain.

🛠️ Complete Tool Suite

25+ built-in tools for real-world development:

  • Bash — Execute commands securely
  • File Edit — Precise code modifications
  • Grep/Glob — Search and find patterns
  • LSP Integration — Language server support
  • MCP Support — Model Context Protocol
  • WebFetch — Research from the web

⚡ Streaming Responses

Real-time token streaming for instant feedback. No waiting, just coding.

🧠 Smart Provider Routing

Built-in failover and health monitoring. Automatically switch providers when one is down.

📊 Session Insights

Track costs, tokens, and performance per session. Know exactly what you're spending.

🔒 Privacy First

Run entirely local with Ollama. Your code never leaves your machine.

Installation

Via npm (Recommended)

npm install -g hawk

Via Homebrew

brew install hawk

From Source

git clone https://github.com/GrayCodeAI/hawk.git
cd hawk
bun install
bun run build
npm link

Quick Start

1. Configure Your Provider

# OpenAI
bun run profile:init -- --provider openai --api-key sk-xxx --model gpt-4o

# Anthropic Claude
bun run profile:anthropic -- --api-key sk-ant-xxx --model claude-3-5-sonnet-latest

# Local Ollama (Free, Private)
bun run profile:init -- --provider ollama --model llama3.2 --base-url http://localhost:11434

# Grok / xAI
bun run profile:grok -- --api-key xai-xxx --model grok-2

2. Launch Hawk

hawk

3. Start Coding

Ask Hawk to help with any task:

  • "Create a React component for a login form"
  • "Refactor this function to use async/await"
  • "Debug why my API calls are failing"
  • "Write tests for this module"

Supported Providers

Hawk supports 8 official provider profiles plus any OpenAI-compatible endpoint.

Official Provider Profiles

Provider Best For Setup
OpenAI General purpose, fast profile:init --provider openai
Anthropic Complex reasoning, code profile:anthropic
Gemini Long context, free tier Built-in support
Grok/xAI X integration, real-time profile:grok
OpenRouter Access 200+ models profile:init --provider openrouter
Ollama Local, free, private profile:init --provider ollama
CanopyWave Open-source models OpenAI-compatible endpoint
OpenCodeGO Kimi thinking models OpenAI-compatible endpoint

OpenAI-Compatible Endpoints

Hawk's universal adapter works with any API that follows the OpenAI format:

  • DeepSeek — Cost-effective coding
  • Groq — Fast inference, free tier
  • Together AI — Open-source models
  • Azure OpenAI — Enterprise deployments
  • LM Studio — Local GUI inference
  • Custom endpoints — Your own API

Configure any compatible provider using the /config command inside Hawk, or edit ~/.hawk/provider.json directly:

{
  "openai_api_key": "your-key",
  "openai_base_url": "https://your-endpoint.com/v1",
  "active_model": "model-name"
}

See full provider list for more.

Commands

Command Description
hawk Start interactive session
hawk --version Show version
hawk --help Show help
/provider-status View provider health & metrics
/refresh-model-catalog Update available models
/debug-model-catalog Debug model configuration

Architecture

Hawk is built with a modular architecture:

  • CLI Interface — Ink-based React terminal UI
  • Tool System — 25+ extensible tools for code operations
  • Provider Layer — Universal adapter for any LLM API
  • Session Manager — Cost tracking, history, state management

See ARCHITECTURE.md for detailed diagrams and system design.

Development

# Install dependencies
bun install

# Build project
bun run build

# Run in development mode
bun run dev

# Run tests
bun run smoke

# Validate environment
bun run doctor:runtime

# Quick local setup with Ollama
bun run dev:fast

Project Status

This is the 1.x branch of Hawk with:

  • ✅ Provider-agnostic architecture
  • ✅ 25+ production-ready tools
  • ✅ Smart provider routing with failover
  • ✅ Real-time cost tracking
  • ✅ MCP (Model Context Protocol) support
  • ✅ LSP integration

Check releases for the latest updates.

Sponsors

Support Hawk's development:

GitHub SponsorsKo-fiBuy Me A CoffeeYour sponsorship helps us maintain and improve Hawk.

We welcome contributions! Please read our Contributing Guide before submitting PRs.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Community

Security

See SECURITY.md for our security policy and vulnerability disclosure process.

License

MIT License — see LICENSE for details.


Made with ⚡ by GrayCodeAI

Release History

VersionChangesUrgencyDate
v0.2.0## [0.2.0] — 2026-07-13 ### Changed - **Hawk/Eyrie production boundary completed**: Hawk owns the product face, sessions, tools, permissions, and public schemas while Eyrie v0.2.1 owns credentials, catalog resolution, provider transport, resilience, and usage telemetry behind the stable `eyrie/engine` facade. - **Provider routing and usage attribution hardened**: resolved route changes, continuation segments, and terminal usage are propagated without duplicate accounting, and productiHigh7/13/2026
v0.1.0## Changelog * 9ed5605194e912625ace956c0dc79065a22f4f9b Add cmdhistory: structured command history with FTS5 search * 030b3153465c7d132b6c072f7d91308b04300c21 Add convodag: conversation-as-DAG with SQLite persistence * 0b48ecdb8d3469f43ab59511fc48aa52256c685c Add cost optimization: wasted spend detection + model downgrade suggestions * eeb764840aed7748f525e3cf7600c669fc69c469 Add diffsandbox: virtual file overlay for proposed edits * 420dbd45812ccb018028304c92bf66104e9a0c0a Add fingerprint: fastHigh6/8/2026
main@2026-06-02Latest activity on main branchHigh6/2/2026
v0.2.0## hawk v0.2.0 AI coding agent — reads, writes, and runs code in your terminal ## Changelog ### 🚀 Features * 1722d76d7fdeec2cabc0855d062e7958f6d26d68: feat(hawk): production hardening — adopt top-50 OSS patterns (#2) (@Patel230) * 339276d4a272b5899aedf8485dea8c1a004ead33: feat: add core CLI features — stats, session export, pr, enhanced websearch, daemon API (@Patel230) * e09d3f0770a6a246ba4faf87fb78b8b1a389a09c: feat: add integration pipeline wiring all 200 features together (@Patel230) * d6High5/16/2026
v0.1.0## Changelog * 9ed5605194e912625ace956c0dc79065a22f4f9b Add cmdhistory: structured command history with FTS5 search * 030b3153465c7d132b6c072f7d91308b04300c21 Add convodag: conversation-as-DAG with SQLite persistence * 0b48ecdb8d3469f43ab59511fc48aa52256c685c Add cost optimization: wasted spend detection + model downgrade suggestions * eeb764840aed7748f525e3cf7600c669fc69c469 Add diffsandbox: virtual file overlay for proposed edits * 420dbd45812ccb018028304c92bf66104e9a0c0a Add fingerprint: fastHigh5/12/2026
v0.4.0## Changelog * 9ed5605194e912625ace956c0dc79065a22f4f9b Add cmdhistory: structured command history with FTS5 search * 030b3153465c7d132b6c072f7d91308b04300c21 Add convodag: conversation-as-DAG with SQLite persistence * 0b48ecdb8d3469f43ab59511fc48aa52256c685c Add cost optimization: wasted spend detection + model downgrade suggestions * eeb764840aed7748f525e3cf7600c669fc69c469 Add diffsandbox: virtual file overlay for proposed edits * 420dbd45812ccb018028304c92bf66104e9a0c0a Add fingerprint: fastHigh5/5/2026
main@2026-04-30Latest activity on main branchHigh4/30/2026
v1.0.0Latest release: v1.0.0High4/9/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

oh-my-pi⌥ AI Coding agent for the terminal — hash-anchored edits, optimized tool harness, LSP, Python, browser, subagents, and morev18.1.14
ai-git-hooksAutomate git workflows with AI-powered hooks that review code, generate and validate commit messages, and scan for bugs and security issues.main@2026-09-09
serverlessclawOfficial ServerlessClaw: The authoritative autonomous AI agent swarm for AWS. Zero idle cost, self-evolving, and infinite scale. Powered by OpenClaw.main@2026-09-05
piclawI'm going to build my own OpenClaw, with blackjack... and bun!v2.15.4
MiniSearchMinimalist web-searching platform with an AI assistant that runs directly from your browser. Uses WebLLM, Wllama and SearXNG. Demo: https://felladrin-minisearch.hf.spacemain@2026-09-02

More from GrayCodeAI

iterateA self-evolving coding agent written in Go. Reads its own source, decides what to improve, writes code, runs tests, and commits — autonomously.

More in AI Agents

llm-for-zoteroA simple Zotero plugin that brings your own LLM into the side panel.
CopilotKitThe Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
AIGC-Interview-Book【三年面试五年模拟】AIGC算法工程师面试秘籍。涵盖AIGC、LLM大模型、AI Agent、传统深度学习、自动驾驶、机器学习、计算机视觉、自然语言处理、强化学习、大数据挖掘、具身智能、元宇宙、AGI等AI行业面试笔试干货经验与核心知识。
a2a-sdkA2A Python SDK