Skip to content

Discover Powergentic CLI

Powergentic CLI (pga) is an open-source, AI-powered coding assistant for the command line. It provides GitHub Copilot CLI-like functionality with configurable LLM backends, a customizable agent system, and built-in developer tools.

License: MIT Framework: .NET 10+ Build and Test Ollama: Ready OpenAI: Ready Azure AI Foundry: Ready

Get Started Installation


🚀 Quick Start

Bash
1
2
3
4
5
6
pga                              # Start interactive chat (default)
pga chat                         # Explicit interactive chat session
pga explain "git rebase"         # Single-shot explanation
pga suggest "find large files"   # Get a shell command suggestion
pga config init                  # Create initial configuration
pga init                         # Scaffold AGENTS.md and agents/ in a project

Powergentic CLI screenshot


💡 Key Features

  • Interactive Chat


    Multi-turn conversations with full tool access for exploring and modifying your codebase.

    Commands

  • Agent System


    Define project-specific AI behaviors with AGENTS.md and *.agent.md files, following the GitHub Copilot agent convention.

    Agents

  • 9 Built-in Tools


    File I/O, shell execution, git operations, grep search, web fetch, and more — all with configurable safety levels.

    Tools

  • Multiple LLM Backends


    Azure OpenAI (API key + Entra ID), Azure AI Foundry, and Ollama for local models.

    LLM Providers

  • Tool Safety — Configurable approval modes (auto-approve, prompt-writes, prompt-always)
  • Scoped Agents — Agents that only apply to specific directories in a monorepo
  • Multiple Profiles — Switch between LLM configurations per agent or per session
  • Auto-Select Rules — Automatically pick the right model based on context
  • Single-Shot Commands — explain and suggest for quick answers

🧠 Use Cases

Powergentic CLI is great for:

  • Exploring unfamiliar codebases interactively from the terminal
  • Getting command-line explanations and shell suggestions
  • Automating code review with custom agents
  • Working across multiple projects with scoped agent configurations
  • Running local models via Ollama for privacy-sensitive work
  • Integrating AI assistance into your terminal workflow

âš™ LLM Providers

Powergentic CLI supports multiple LLM backends. Configure one or many profiles and switch between them per session or per agent.

  • Azure OpenAI


    Use Azure-hosted OpenAI models like GPT-4o with API key or Entra ID authentication.

    Setup Guide

  • Azure AI Foundry


    Deploy and use models via Azure AI Foundry.

    Setup Guide

  • Ollama


    Run open-source models locally — Llama 3, Codestral, Qwen, and more.

    Setup Guide


🙌 Contributing

We welcome contributions, feedback, and new ideas. Whether it's a bug report or a pull request, head over to our GitHub repository to start collaborating!


Requirements

  • .NET 10 SDK or later
  • An LLM provider: Azure OpenAI, Azure AI Foundry, or Ollama (for local models)

Disclaimer

Powergentic CLI is experimental prerelease software and is provided "as is", without warranties of any kind.

LLM output can be incorrect, incomplete, insecure, or destructive. Always review prompts, generated content, and tool actions before approval or execution.

You are solely responsible for commands run, files modified, and data accessed while using this tool.

Do not use Powergentic CLI in production or against sensitive systems/data unless you have appropriate safeguards, backups, and approval controls in place.