Overview
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:
- Chat with a local CLI - Try it!
- Chat with an OpenAPI compliant endpoint - Try it!
- Chat with local files and directories - Try it!
- Run an automated workflow - Try it!
Getting Started
- MacOS and Linux (Homebrew)
- MacOS and Linux (install.sh)
- Windows
Homebrew Tap
brew install gptscript
gptscript github.com/gptscript-ai/llm-basics-demo
Homebrew
warning
The formula in homebrew-core might be slightly outdated. Use our homebrew tap to always get the latest updates.
brew install gptscript
gptscript github.com/gptscript-ai/llm-basics-demo
curl https://get.gptscript.ai/install.sh | sh
gptscript github.com/gptscript-ai/llm-basics-demo
winget install gptscript-ai.gptscript
gptscript github.com/gptscript-ai/llm-basics-demo
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.