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

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.3
File Size Uploaded Provenance
anzar_agent-0.1.3.tar.gz 152.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 277.0 kB

Release files / anzar_agent-0.1.3.tar.gz

Download URL anzar_agent-0.1.3.tar.gz
Size 152.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8780e11bd476cfa4eb46d3d80b29998639413811ca0c9a856fbcd5e9888af211
BLAKE2b-256 checksum
How to use checksums
234f7a66b201cb954290ba17aae9335830aedcef65fc863abe04a1c7870398bd
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.3-py3-none-any.whl

Download URL anzar_agent-0.1.3-py3-none-any.whl
Size 124.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6993b11bb7a08295c9cf1e4f6315a49bc6154fa1b98ef2134ccb7ec51ea03925
BLAKE2b-256 checksum
How to use checksums
9598edcabb6a7464c6f8206adbf712879709c4531d157d6ccd4e1a8b0e08a0d2
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.3

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