Skip to main content

Anzar — AI Software Engineer Agent

Local-first coding agent for your terminal. Install with one command, then run it in any project — ask for a change, review diffs, and roll back. No login, no server required.

Install

One command, on any platform (bootstraps Python/pipx if needed):

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/ghaaith/anzar-agent/main/scripts/install.sh | sh

# Windows (PowerShell)
irm https://raw.githubusercontent.com/ghaaith/anzar-agent/main/scripts/install.ps1 | iex

Prefer plain pip?

pipx install anzar-agent
# or
pip install anzar-agent

Requires Python 3.10+.

Quickstart

# start the interactive terminal UI
anzar

# or run a single task and exit
anzar "explain this codebase"
anzar "add tests for the checkout module"

On first run, anzar asks which AI provider to use and where to paste your API key. You can also configure it manually (see below).

Create a free API key with any provider to get started:

provider key free tier
openrouter https://openrouter.ai/keys yes
groq https://console.groq.com/keys yes
gemini https://aistudio.google.com/apikey yes
ollama local, no key needed yes
openai / anthropic provider console no

Everyday commands

command what it does
anzar open the interactive terminal UI
anzar "task" run one task and exit
anzar checkpoint snapshot the current workspace
anzar diff show changes since the last checkpoint
anzar diff <id> review changes versus a specific checkpoint
anzar diff A..B diff between two checkpoints
anzar rollback restore the workspace to the last checkpoint
anzar rollback <id> restore to a specific checkpoint
anzar history recent tasks for this workspace
anzar doctor show environment/configuration diagnostics

Checkpoints are per-workspace. Snapshot with anzar checkpoint before big changes, then diff or roll back whenever you need to.

Configuration

The first-run wizard writes your key into local settings; the rest lives in ~/.anzar/config.yaml:

provider: groq
model: openai/gpt-oss-120b

Environment variables also work and override on launch:

export ANZAR_PROVIDER=groq
export ANZAR_API_KEY=your-key          # overrides provider-specific vars
export GROQ_API_KEY=your-key

Provider env vars: OPENROUTER_API_KEY, GROQ_API_KEY, GOOGLE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY.

Inside the UI, /provider, /model, /apikey, and /help adjust the session without touching files.

How it works

  • Read-only gate: every shell command is checked against a command policy; destructive commands are blocked or require your approval before running
  • Workspace checkpoints let you diff and roll back anything the agent changed
  • Everything runs locally against your own project files — no uploads

Development

git clone https://github.com/ghaaith/anzar-agent.git
cd anzar-agent
pip install -e ".[dev]"
python -m pytest -q      # full suite, no API key required
ruff check src tests     # lint

License

MIT

Metadata

Release files for anzar-agent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anzar-agent 0.1.0
File Size Uploaded Provenance
anzar_agent-0.1.0.tar.gz 150.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for anzar-agent 0.1.0
File Interpreter ABI Platform
anzar_agent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 274.8 kB

Release files / anzar_agent-0.1.0.tar.gz

Download URL anzar_agent-0.1.0.tar.gz
Size 150.9 kB
Tags Source
SHA-256 checksum
How to use checksums
26674e204ac7084c56878512ed3a298d62502d2876ca00ccc1335160b2a13ddd
BLAKE2b-256 checksum
How to use checksums
0d281b43b8dd0fe5e14bbf7a9c46059b4c4b12750a3ba00dade426fedfbc3339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / anzar_agent-0.1.0-py3-none-any.whl

Download URL anzar_agent-0.1.0-py3-none-any.whl
Size 124.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bb026a9e370228a4e14b728354354c530a6aba75671192d2249f3c4935055bd
BLAKE2b-256 checksum
How to use checksums
da1a54dde58c75864e89e0b7248fca32a5a373c32a2b63a7fe7405f32681f148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for anzar-agent 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page