Skip to main content




GPTScript is a framework that allows Large Language Models (LLMs) to operate and interact with various systems. These systems can range from local executables to complex applications with OpenAPI schemas, SDK libraries, or any RAG-based solutions. GPTScript is designed to easily integrate any system, whether local or remote, with your LLM using just a few lines of prompts.

Here are some sample use cases of GPTScript:

  1. Chat with a local CLI - Try it!
  2. Chat with an OpenAPI compliant endpoint - Try it!
  3. Chat with local files and directories - Try it!
  4. Run an automated workflow - Try it!

Getting Started

Homebrew Tap

brew install gptscript 



The formula in homebrew-core might be slightly outdated. Use our homebrew tap to always get the latest updates.

brew install gptscript

A few notes:

  • You'll need an OpenAI API key
  • On Windows, after installing gptscript you may need to restart your terminal for the changes to take effect
  • The above script is a simple chat-based assistant. You can ask it questions and it will answer to the best of its ability.