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.1

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.1
File Size Uploaded Provenance
anzar_agent-0.1.1.tar.gz 151.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 275.4 kB

Release files / anzar_agent-0.1.1.tar.gz

Download URL anzar_agent-0.1.1.tar.gz
Size 151.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f607fb060a78807e9aed7e878c1b163b92d80501c7ba273324f80ba939e4a723
BLAKE2b-256 checksum
How to use checksums
aff176e1bc7f1151fa655bf0831376958ba6e5b579a1d9830cd7db8ae3e74616
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.1-py3-none-any.whl

Download URL anzar_agent-0.1.1-py3-none-any.whl
Size 124.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3de9e422f7f57a548e25514c95d97ed65a956b6d83ce388403d236b188fd0e0b
BLAKE2b-256 checksum
How to use checksums
7efdd58977156975976b7e8ac960f07b262d12ed64ee07038d82d9910fa9ac4f
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.1

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