freshcrate
Skin:/
Home > AI Agents > hawk

hawk

Hawk CLI โ€” Model-Agnostic. Limitless Intelligence.

Why this rank:Recent releaseHealthy 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

  • ๐Ÿ’ฌ Discord โ€” Get help, share ideas
  • ๐Ÿฆ X/Twitter โ€” Updates and announcements
  • ๐Ÿ› GitHub Issues โ€” Bug reports and feature requests

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
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 morev15.9.5
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-06-05
piclawI'm going to build my own OpenClaw, with blackjack... and bun!v2.6.1
iterateA self-evolving coding agent written in Go. Reads its own source, decides what to improve, writes code, runs tests, and commits โ€” autonomously.main@2026-06-04
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-06-04

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

hermes-agentThe agent that grows with you
awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
CopilotKitThe Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
e2bE2B SDK that give agents cloud environments