Report Abuse

Basic Information

PSAI is a PowerShell module that integrates OpenAI and Azure OpenAI capabilities into the PowerShell console and scripts. It is designed to let users create and run autonomous agents from the command line, combine AI models with PowerShell functions, and extend scripts with natural language-driven behaviors. The module supports basic chat and conversation commands, agent creation, and provider configuration for both OpenAI API keys and Azure OpenAI secrets. PSAI is intended to bridge automation and AI by enabling file searches, data analysis, web queries, calculations, and other tasks directly from PowerShell. It also includes utilities to package GitHub repositories into AI-optimized prompts for use with ChatGPT, Claude, or Gemini. The project is distributed as an installable PowerShell module and includes examples and documented commands to get started.

Links

App Details

Features
PSAI provides modular autonomous agents that can be composed with specialized tools such as a CalculatorTool, WebSearchTool (TavilyAI), and StockTickerTool. It supports creating custom agents with New-Agent and interacting with them via Get-AgentResponse. The module offers Invoke-QuickPrompt with Tools and ShowToolCalls parameters to attach PowerShell functions and reveal tool usage. ConvertTo-AIPrompt packages repositories into an AI-optimized format for feeding codebases to language models. PSAI supports both OpenAI and Azure OpenAI providers, accepts environment-based API keys and Azure secrets including optional organizationId, and demonstrates multi-tool and multi-agent scenarios. Examples and scripts show how to fetch web news, stock data, run calculations, and combine tools in a single agent workflow.
Use Cases
PSAI helps PowerShell users automate and enrich scripts with AI-driven decision making and natural language interaction. It reduces manual work by enabling agents to perform multi-step tasks such as web searching, numerical calculations, and retrieving financial data, all from the terminal. Packaging repositories into AI-ready prompts simplifies code review and context feeding for language models. The module’s extensible tool model lets users register custom tools to adapt agents to specific workflows, improving repeatability and consistency. Cross-provider support for OpenAI and Azure OpenAI makes it adaptable to different deployment requirements. Examples and CLI-oriented features make it accessible for administrators, automation engineers, and developers who want to augment existing PowerShell pipelines with conversational and autonomous capabilities.

Please fill the required fields*