Hazzel
A small terminal coding agent. Bring your own key.
Hazzel lives in your terminal. It reads code, edits files, and runs commands — always with your approval first.
pip install hazzel
cd your-project
hazzel
Run /model, pick a provider, paste your key. Keys are stored at ~/.config/hazzel/config.json with 0600 permissions. Env vars (OPENAI_API_KEY, ANTHROPIC_API_KEY, MISTRAL_API_KEY, GROQ_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, OPENROUTER_API_KEY) work too. Ollama runs local models with no key (OLLAMA_HOST overrides the default http://localhost:11434/v1).
Windows works too (PowerShell or cmd) — the full-screen menus gracefully fall back to plain prompts, no new dependencies.
❯ Fix the failing test in tests/test_agent.py
● read_file tests/test_agent.py
● edit_file src/hazzel/agent.py
● run_command pytest -q — passed
Why Hazzel?
Most coding agents keep getting bigger. Hazzel stays small on purpose.
The model suggests what to do. Hazzel decides whether and how to do it. Every mutation goes through you: file changes show a diff before they apply, shell commands ask first, and destructive commands stay blocked.
If you want the most feature-heavy agent, there are better options. If you want a terminal agent you can see through, that's Hazzel.
What it does
- Read, search, and list your codebase. Tag files with
@pathto put them in context. - Create and edit files with diff preview and approval. Undo with
/undo. - Run shell commands with approval and timeout, sandboxed to your project root. Read-only cmds (
ls,cat…) skip approval. - Plan mode (
/plan on): read-only exploration. Hazzel proposes a numbered plan, changes nothing until you run/plan off. - Prove mode (
/prove on): smoke-checks Python edits in/tmpbefore you trust them. - Think mode (
/think on): lets supported models reason step-by-step before answering — costs more tokens, wins on hard edits. - Goal (
/goal): pin an objective, run it with/goal run; every turn steers toward it until done. - Model thinking stays collapsed behind an Enter-to-expand prompt — peek only when curious.
- Read the web:
fetch <url>pulls public docs and references into context (read-only). - AGENTS.md support: Hazzel reads the repo-level
AGENTS.mdon startup and merges it into the system prompt so repo-specific instructions are always in context. Edits made mid-session take effect after/clearor a restart. - Multiline input: Ctrl+J for newlines, full multiline paste.
- Extras:
/docsprints the full usage guide,/initdrafts anAGENTS.mdproject map,/exportsaves the transcript,/copygrabs the last reply,/retryre-runs your last message. - Streams responses with per-turn token usage (
/usage).
Providers
Bring your own key. No subscription.
- Groq (default:
openai/gpt-oss-120b) - OpenAI
- Anthropic
- Mistral
- Gemini
- DeepSeek
- OpenRouter (100+ models through one key)
- Ollama (local, no key)
Switch anytime with /model.
What it is not
Early-stage (v1.4.0). Expect rough edges.
No deploys, no background agents, no session persistence across restarts. It doesn't replace your editor — it stays in the terminal next to it.
Contributing
Issues and pull requests welcome.
License
AGPL-3.0-or-later. See LICENSE.
If it fits your workflow, star the repo. It helps other terminal-first developers find it.
Release files for hazzel 1.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hazzel-1.4.2.tar.gz | 94.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hazzel-1.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 188.1 kB
Release files / hazzel-1.4.2.tar.gz
| Download URL | hazzel-1.4.2.tar.gz |
|---|---|
| Size | 94.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42c71f2fb1a722a82bc0fc5ad6b0ff884b78aeae20fbe74748e22dddbbe88b3b
|
|
BLAKE2b-256 checksum How to use checksums |
4b7c591f2b27f6b98c5a612c58ff6414677cde390b98ea5c851ad17edee6de05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / hazzel-1.4.2-py3-none-any.whl
| Download URL | hazzel-1.4.2-py3-none-any.whl |
|---|---|
| Size | 94.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e89aa355811f340dc66d69271f6c4411dea65393e911575d8cf688febf395fb7
|
|
BLAKE2b-256 checksum How to use checksums |
e042ef9485f7f6393f0b28c2d551300afb5833eeec4c0021e47481796203592d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|