Desktop AI Assistant powered by GPT-5, GPT-4, o1, o3, Gemini, Claude, Ollama, DeepSeek, Perplexity, Grok, Bielik, chat, vision, voice, RAG, image and video generation, agents, tools, MCP, plugins, speech synthesis and recognition, web search, memory, presets, assistants,and more. Linux, Windows, Mac
Release: 2.7.12 | build: 2026-02-06 | Python: >=3.10, <3.14
Official website: https://pygpt.net | Documentation: https://pygpt.readthedocs.io
Discord: https://pygpt.net/discord | Snap: https://snapcraft.io/pygpt | PyPi: https://pypi.org/project/pygpt-net
Compiled version for Linux (
zip) and Windows 10/11 (msi) 64-bit: https://pygpt.net/#download❤️ Donate: https://www.buymeacoffee.com/szczyglis | https://github.com/sponsors/szczyglis-dev
PyGPT is all-in-one Desktop AI Assistant that provides direct interaction with OpenAI language models, including GPT-5, GPT-4, o1, o3 and more, through the OpenAI API. By utilizing other SDKs and LlamaIndex, the application also supports alternative LLMs, like those available on HuggingFace, locally available models via Ollama (like gpt-oss, Llama 3,Mistral, DeepSeek V3/R1 or Bielik), and other models like Google Gemini, Anthropic Claude, Perplexity / Sonar, and xAI Grok.
This assistant offers multiple modes of operation such as chat, assistants, agents, completions, and image-related tasks like image generation and image analysis. PyGPT has filesystem capabilities for file I/O, can generate and run Python code, execute system commands, execute custom commands and manage file transfers. It also allows models to perform web searches with the DuckDuckGo, Google and Microsoft Bing.
For audio interactions, PyGPT includes speech synthesis using the Microsoft Azure, Google, Eleven Labs and OpenAI Text-To-Speech services. Additionally, it features speech recognition capabilities provided by OpenAI Whisper, Google and Bing enabling the application to understand spoken commands and transcribe audio inputs into text. It features context memory with save and load functionality, enabling users to resume interactions from predefined points in the conversation. Prompt creation and management are streamlined through an intuitive preset system.
PyGPT's functionality extends through plugin support, allowing for custom enhancements (with multiple plugins included). Its multi-modal capabilities make it an adaptable tool for a range of AI-assisted operations, such as text-based interactions, system automation, daily assisting, vision applications, natural language processing, code generation and image creation.
Multiple operation modes are included, such as chat, text completion, assistant, agents, vision, Chat with Files (via LlamaIndex), commands execution, external API calls and image generation, making PyGPT a multi-tool for many AI-driven tasks.
Showcase (mp4, version 2.5.65, build 2025-07-24):
https://github.com/user-attachments/assets/d8305109-8b1b-41cb-b3ba-8c654271a95c
Screenshots (version 2.5.64, build 2025-07-23):
Dark theme:

Light theme:

You can download compiled 64-bit versions for Windows and Linux here: https://pygpt.net/#download
Linux, Windows and Mac, written in Python.ChatGPT, but locally (on a desktop computer).OpenAI GPT-5, GPT-4, o1, o3, o4, Google Gemini, Anthropic Claude, xAI Grok, DeepSeek V3/R1, Perplexity / Sonar, and any model accessible through LlamaIndex and Ollama such as DeepSeek, gpt-oss, Llama 3, Mistral, Bielik, etc.LlamaIndex support: chat with data such as: txt, pdf, csv, html, md, docx, json, epub, xlsx, xml, webpages, Google, GitHub, video/audio, images and other data types, or use conversation history as additional context provided to the model.DALL-E, gpt-image, Imagen, Gemini, and Nano Banana.Veo3 and Sora2.DuckDuckGo, Google and Microsoft Bing.Microsoft Azure, Google, Eleven Labs and OpenAI Text-To-Speech services.OpenAI Whisper, Google and Microsoft Speech Recognition.Files I/O, Code Interpreter, Web Search, Google, Facebook, X/Twitter, Slack, Telegram, GitHub, MCP, and many more.GitHub.The application is free, open-source, and runs on PCs with Linux, Windows 10, Windows 11 and Mac.
Full Python source code is available on GitHub.
PyGPT uses the user's API key - to use the GPT models, you must have a registered OpenAI account and your own API key. Local models do not require any API keys.
You can also use built-it LlamaIndex support to connect to other Large Language Models (LLMs), such as those on HuggingFace. Additional API keys may be required.
You can download compiled binary versions for Linux and Windows (10/11).
PyGPT binaries require a PC with Windows 10, 11, or Linux. Simply download the installer or the archive with the appropriate version from the download page at https://pygpt.net, extract it, or install it, and then run the application. A binary version for Mac is not available, so you must run PyGPT from PyPi or from the source code on Mac. Currently, only 64-bit binaries are available.
Linux version requires GLIBC >= 2.35.
For Windows 10/11, you can install PyGPT directly from Microsoft Store:
Link to MS Store: https://apps.microsoft.com/detail/XP99R4MX3X65VQ
You can download the latest PyGPT AppImage for Linux from the release page:
Releases: https://github.com/szczyglis-dev/py-gpt/releases
Tip: Remember to give execution permissions to the downloaded file:
chmod +x ./PyGPT-X.X.X-x86_64.AppImage
To manage future updates you can use AppImageUpdate tool:
You can download it from: https://github.com/AppImage/AppImageUpdate/releases
After downloading, run the following command in terminal:
appimageupdatetool ./PyGPT-X.X.X-x86_64.AppImage
You can install PyGPT directly from Snap Store:
sudo snap install pygpt
To manage future updates use:
sudo snap refresh pygpt
Using camera: to use camera in Snap version you must connect the camera with:
sudo snap connect pygpt:camera
Using microphone: to use microphone in Snap version you must connect the microphone with:
sudo snap connect pygpt:audio-record :audio-record
sudo snap connect pygpt:alsa
Using audio output: to use audio output in Snap version you must connect the audio with:
sudo snap connect pygpt:audio-playback
sudo snap connect pygpt:alsa
Connecting IPython in Docker in Snap version:
To use IPython in the Snap version, you must connect PyGPT to the Docker daemon:
sudo snap connect pygpt:docker-executables docker:docker-executables
sudo snap connect pygpt:docker docker:docker-daemon
The application can also be installed from PyPi using pip install:
python3 -m venv venv
source venv/bin/activate
pip install pygpt-net
pygpt
An alternative method is to download the source code from GitHub and execute the application using the Python interpreter (>=3.10, <3.14).
git clone https://github.com/szczyglis-dev/py-gpt.git
cd py-gpt
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 run.py
git clone https://github.com/szczyglis-dev/py-gpt.git
cd py-gpt
pip install poetry
poetry env use python3.10
poetry shell
or (Poetry >= 2.0):
poetry env use python3.10
poetry env activate
poetry install
poetry run python3 run.py
Tip: you can use PyInstaller to create a compiled version of
the application for your system (required version >= 6.0.0).
If you have a problems with xcb plugin with newer versions of PySide on Linux, e.g. like this:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
...then install libxcb:
sudo apt install libxcb-cursor0
If you have a problems with audio on Linux, then try to install portaudio19-dev and/or libasound2:
sudo apt install portaudio19-dev
sudo apt install libasound2
sudo apt install libasound2-data
sudo apt install libasound2-plugins
Problems with GLIBC on Linux
If you encounter error:
Error loading Python lib libpython3.10.so.1.0: dlopen: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.35 not found (required by libpython3.10.so.1.0)
when trying to run the compiled version for Linux, try updating GLIBC to version 2.35, or use a newer operating system that has at least version 2.35 of GLIBC.
Access to camera in Snap version:
sudo snap connect pygpt:camera
Access to microphone in Snap version:
To use microphone in Snap version you must connect the microphone with:
sudo snap connect pygpt:audio-record :audio-record
Snap and AppArmor permission denied
Snap installs AppArmor profiles for each application by default. The profile for PyGPT is created at:
/var/lib/snapd/apparmor/profiles/snap.pygpt.pygpt
The application should work with the default profile; however, if you encounter errors like:
PermissionError: [Errno 13] Permission denied: '/etc/httpd/conf/mime.types'
add the appropriate access rules to the profile file, for example:
# /var/lib/snapd/apparmor/profiles/snap.pygpt.pygpt
...
/etc/httpd/conf/mime.types r
and reload the profiles.
Alternatively, you can try removing snap and reinstalling it:
sudo snap remove --purge pygpt
sudo snap install pygpt
Access to a microphone and audio in Windows version:
If you have a problems with audio or a microphone in the non-binary PIP/Python version on Windows, check to see if FFmpeg is installed. If it's not, install it and add it to the PATH. You can find a tutorial on how to do this here: https://phoenixnap.com/kb/ffmpeg-windows. The binary version already includes FFmpeg.
Windows and VC++ Redistributable
On Windows, the proper functioning requires the installation of the VC++ Redistributable, which can be found on the Microsoft website:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
The libraries from this environment are used by PySide6 - one of the base packages used by PyGPT.
The absence of the installed libraries may cause display errors or completely prevent the application from running.
It may also be necessary to add the path C:\path\to\venv\Lib\python3.x\site-packages\PySide6 to the PATH variable.
WebEngine/Chromium renderer and OpenGL problems
If you have a problems with WebEngine / Chromium renderer you can force the legacy mode by launching the app with command line arguments:
python3 run.py --legacy=1
and to force disable OpenGL hardware acceleration:
python3 run.py --disable-gpu=1
You can also manualy enable legacy mode by editing config file - open the %WORKDIR%/config.json config file in editor and set the following options:
"render.engine": "legacy",
"render.open_gl": false,
For operation, an internet connection is needed (for API connectivity), a registered OpenAI account,
and an active API key that must be input into the program. Local models, such as Llama3 do not require OpenAI account and any API keys.
Please go to Debugging and Logging section for instructions on how to log and diagnose issues in a more detailed manner.
You can configure API keys for various providers, such as OpenAI, Anthropic, Google, xAI, Perplexity, OpenRouter, and more. This flexibility allows you to use different providers based on your needs.
During the initial setup, configure your API keys within the application.
To do so, navigate to the menu:
Config -> Settings -> API Keys
Here, you can add or manage API keys for any supported provider.

Configuring Provider
Example
Note: The ability to use models or services depends on your access level with the respective provider. If you wish to use custom API endpoints or local APIs that do not require API keys, simply enter any value into the API key field to bypass prompts about an empty key.
+ Inline Vision and Image generation
In PyGPT, this mode mirrors ChatGPT, allowing you to chat with models like GPT-5, GPT-4, o1, o3, Claude, Gemini, Grok, Perplexity (Sonar), Deepseek, and more. It works with the OpenAI SDK using the Responses API and ChatCompletions API. You can also use SDKs from Google GenAI, Anthropic, or xAI if the native SDK is enabled. You can set the endpoint for ChatCompletions in Config -> Settings -> API Keys`.
Tip: This mode uses the provider SDK directly. If there's no native client built into the app, models like Sonar, or Llama3 are supported in Chat mode via LlamaIndex or OpenAI-compatible API endpoints. The app automatically switches to these endpoints when using non-OpenAI models. You can enable or disable the use of the native API SDK (per provider) in Settings -> API Keys. If the native SDK is disabled, the OpenAI SDK will be used via the compatible ChatCompletions API endpoint.
Currently built-in native clients:
The main part of the interface is a chat window where you see your conversations. Below it is a message box for typing. On the right side, you can set up or change the model and system prompt. You can also save these settings as presets to easily switch between models or tasks.
Above where you type your messages, the interface shows you the number of tokens your message will use up as you type it – this helps to keep track of usage. There is also a feature to attach and upload files in this area. Go to the Files and Attachments section for more information on how to use attachments.

Vision: If you want to send photos from your disk or images from your camera for analysis, and the selected model does not support Vision, you must enable the Vision (inline) plugin in the Plugins menu. This plugin allows you to send photos or images from your camera for analysis in any Chat mode.

With this plugin, you can capture an image with your camera or attach an image and send it for analysis to discuss the photograph:

Image generation: If you want to generate images directly in chat you must enable plugin Image generation (inline) in the Plugins menu.
Plugin allows you to generate images in Chat mode:

This mode enables chat interaction with your documents and entire context history through conversation.
It seamlessly incorporates LlamaIndex into the chat interface, allowing for immediate querying of your indexed documents.
Tip: If you do not want to call tools/commands, disable the checkbox +Tools. It will speed up the response time when using local models. You can also enable the ReAct agent for tool calls in: Settings -> Indexes / LlamaIndex -> Chat -> Use ReAct agent for Tool calls in Chat with Files mode. Stream mode is disabled if the ReAct agent and +Tools checkbox are active.
Querying single files
You can also query individual files "on the fly" using the query_file command from the Files I/O plugin. This allows you to query any file by simply asking a question about that file. A temporary index will be created in memory for the file being queried, and an answer will be returned from it. From version 2.1.9 similar command is available for querying web and external content: Directly query web content with LlamaIndex.
For example:
If you have a file: data/my_cars.txt with content My car is red.
You can ask for: Query the file my_cars.txt about what color my car is.
And you will receive the response: Red.
Note: this command indexes the file only for the current query and does not persist it in the database. To store queried files also in the standard index you must enable the option Auto-index readed files in plugin settings. Remember to enable + Tools checkbox to allow usage of tools and commands from plugins.
Using Chat with Files mode
In this mode, you are querying the whole index, stored in a vector store database. To start, you need to index (embed) the files you want to use as additional context. Embedding transforms your text data into vectors. If you're unfamiliar with embeddings and how they work, check out this article:
https://stackoverflow.blog/2023/11/09/an-intuitive-introduction-to-text-embeddings/
For a visualization from OpenAI's page, see this picture:
Source: https://cdn.openai.com/new-and-improved-embedding-model/draft-20221214a/vectors-3.svg
To index your files, simply copy or upload them into the data directory and initiate indexing (embedding) by clicking the Index all button, or right-click on a file and select Index.... Additionally, you have the option to utilize data from indexed files in any Chat mode by activating the Chat with Files (LlamaIndex, inline) plugin.

After the file(s) are indexed (embedded in vector store), you can use context from them in chat mode:

Built-in file loaders:
Files:
Web/external content:
You can configure data loaders in Settings / Indexes / LlamaIndex / Data Loaders by providing list of keyword arguments for specified loaders.
You can also develop and provide your own custom loader and register it within the application.
LlamaIndex is also integrated with context database - you can use data from database (your context history) as additional context in discussion.
Options for indexing existing context history or enabling real-time indexing new ones (from database) are available in Settings / Indexes / LlamaIndex section.
WARNING: remember that when indexing content, API calls to the embedding model are used. Each indexing consumes additional tokens. Always control the number of tokens used on the provider's page.
Tip: Using the Chat with Files mode, you have default access to files manually indexed from the /data directory. However, you can use additional context by attaching a file - such additional context from the attachment does not land in the main index, but only in a temporary one, available only for the given conversation.
Token limit: When you use Chat with Files in non-query mode, LlamaIndex adds extra context to the system prompt. If you use a plugins (which also adds more instructions to system prompt), you might go over the maximum number of tokens allowed. If you get a warning that says you've used too many tokens, turn off plugins you're not using or turn off the "+ Tools" option to reduce the number of tokens used by the system prompt.
Available vector stores (provided by LlamaIndex):
- ChromaVectorStore
- ElasticsearchStore
- PinecodeVectorStore
- QdrantVectorStore
- RedisVectorStore
- SimpleVectorStore
You can configure selected vector store by providing config options like api_key, etc. in Settings -> LlamaIndex window. See the section: Configuration / Vector stores for configuration reference.
Configuring data loaders
In the Settings -> LlamaIndex -> Data loaders section you can define the additional keyword arguments to pass into data loader instance. See the section: Configuration / Data Loaders for configuration reference.
This mode works like the Chat mode but with native support for audio input and output using a Realtime and Live APIs. In this mode, audio input and output are directed to and from the model directly, without the use of external plugins. This enables faster and better audio communication.
Currently, in beta.
At this moment, only OpenAI real-time models (via the Realtime API) and Google Gemini real-time models (via the Live API) are supported.
This mode (when using Sonar and R1 models) operates using the Perplexity API: https://perplexity.ai.
It allows for deep web searching and utilizes Sonar models, available in Perplexity AI.
It requires a Perplexity API key, which can be generated at: https://perplexity.ai.
From version 2.5.27 also OpenAI deep-research models are available in this mode.
An older mode of operation that allows working in the standard text completion mode. However, it allows for a bit more flexibility with the text by enabling you to initiate the entire discussion in any way you like.
Similar to chat mode, on the right-hand side of the interface, there are convenient presets. These allow you to fine-tune instructions and swiftly transition between varied configurations and pre-made prompt templates.
Additionally, this mode offers options for labeling the AI and the user, making it possible to simulate dialogues between specific characters - for example, you could create a conversation between Batman and the Joker, as predefined in the prompt. This feature presents a range of creative possibilities for setting up different conversational scenarios in an engaging and exploratory manner.
From version 2.0.107 the davinci models are deprecated and has been replaced with gpt-3.5-turbo-instruct model in Completion mode.
PyGPT enables quick and easy image creation with models like DALL-E 3, gpt-image-1, Imagen 3/4, and Nano Banana, as well as video generation using Veo3 and Sora2.
Generating images and videos is akin to a chat conversation - a user's prompt triggers the generation, followed by downloading, saving to the computer, and displaying the image onscreen. You can send raw prompt to the model in Image generation mode or ask the model for the best prompt.

Image generation using image models is also available in every mode via plugin Image Generation (inline). Just ask any model, in any mode, like e.g. GPT or Gemini to generate an image and it will do it inline, without need to mode change.
If you want to generate images directly in chat you must enable plugin Image generation (inline) in the Plugins menu. Plugin allows you to generate images in Chat mode:

For OpenAI models, you can also enable remote image generation in Config -> Settings -> Remote Tools. If enabled, image generation will be available natively within the conversation, without plugins, in Chat mode.
To use Imagen models you must enable VertexAI in Config -> Settings -> API Keys -> Google -> Advanced options.
To remix or extend from a previous image or video instead of creating a new one from scratch, enable the Remix/Extend option checkbox in the toolbox. The last generated image or video in the current context will be used as a reference for your prompt, allowing you to request changes to the generated content. If the Remix/Extend option is enabled, uploading an image attachment as a reference will not take effect.
There is an option for switching prompt generation mode.
If Raw Mode is enabled, a model will receive the prompt exactly as you have provided it. If Raw Mode is disabled, a model will generate the best prompt for you based on your instructions.
Once you've generated an image, you can easily save it anywhere on your disk by right-clicking on it. You also have the options to delete it or view it in full size in your web browser.
Tip: Use presets to save your prepared prompts. This lets you quickly use them again for generating new images later on.
The app keeps a history of all your prompts, allowing you to revisit any session and reuse previous prompts for creating new images.
Images are stored in img directory in PyGPT user data folder.
This mode uses the OpenAI's Assistants API.
This mode expands on the basic chat functionality by including additional external tools like a Code Interpreter for executing code, Retrieval Files for accessing files, and custom Functions for enhanced interaction and integration with other APIs or services. In this mode, you can easily upload and download files. PyGPT streamlines file management, enabling you to quickly upload documents and manage files created by the model.
Setting up new assistants is simple - a single click is all it takes, and they instantly sync with the OpenAI API. Importing assistants you've previously created with OpenAI into PyGPT is also a seamless process.

In Assistant mode you are allowed to storage your files in remote vector store (per Assistant) and manage them easily from app:

Please note that token usage calculation is unavailable in this mode. Nonetheless, file (attachment)
uploads are supported. Simply navigate to the Files tab to effortlessly manage files and attachments which
can be sent to the OpenAI API.
Assistant mode supports the use of external vector databases offered by the OpenAI API. This feature allows you to store your files in a database and then search them using the Assistant's API. Each assistant can be linked to one vector database—if a database is linked, all files uploaded in this mode will be stored in the linked vector database. If an assistant does not have a linked vector database, a temporary database is automatically created during the file upload, which is accessible only in the current thread. Files from temporary databases are automatically deleted after 7 days.
To enable the use of vector stores, enable the Chat with Files checkbox in the Assistant settings. This enables the File search tool in Assistants API.
To manage external vector databases, click the DB icon next to the vector database selection list in the Assistant creation and editing window (screen below). In this management window, you can create a new vector database, edit an existing one, or import a list of all existing databases from the OpenAI server:

You can define, using Expire days, how long files should be automatically kept in the database before deletion (as storing files on OpenAI incurs costs). If the value is set to 0, files will not be automatically deleted.
The vector database in use will be displayed in the list of uploaded files, on the field to the right—if a file is stored in a database, the name of the database will be displayed there; if not, information will be shown indicating that the file is only accessible within the thread:

Mode that allows the use of agents offered by LlamaIndex.
Includes built-in agents (Workflow):
Includes built-in agents (Legacy):
In the future, the list of built-in agents will be expanded.
You can create your own types (workflows/patterns) using the built-in visual node-based editor found in the Tools -> Agents Builder.
You can also create your own agent by creating a new provider that inherits from pygpt_net.provider.agents.base.
Tools and Plugins
In this mode, all commands from active plugins are available (commands from plugins are automatically converted into tools for the agent on-the-fly).
RAG - using indexes
If an index is selected in the agent preset, a tool for reading data from the index is automatically added to the agent, creating a RAG automatically.
Multimodality is currently unavailable, only text is supported. Vision support will be added in the future.
Loop / Evaluate Mode
You can run the agent in autonomous mode, in a loop, and with evaluation of the current output. When you enable the Loop / Evaluate checkbox, after the final response is given, the quality of the answer will be rated on a percentage scale of 0% to 100% by another agent. If the response receives a score lower than the one expected (set using a slider at the bottom right corner of the screen, with a default value 75%), a prompt will be sent to the agent requesting improvements and enhancements to the response.
Setting the expected (required) score to 0% means that the response will be evaluated every time the agent produces a result, and it will always be prompted to self-improve its answer. This way, you can put the agent in an autonomous loop, where it will continue to operate until it succeeds.
You can choose between two methods of evaluation:
You can set the limit of steps in such a loop by going to Settings -> Agents and experts -> LlamaIndex agents -> Max evaluation steps . The default value is 3, meaning the agent will only make three attempts to improve or correct its answer. If you set the limit to zero, there will be no limit, and the agent can operate in this mode indefinitely (watch out for tokens!).
You can change the prompts used for evaluating the response in Settings -> Prompts -> Agent: evaluation prompt in loop. Here, you can adjust it to suit your needs, for example, by defining more or less critical feedback for the responses received.
The mode operates on the openai-agents library integrated into the application:
https://github.com/openai/openai-agents-python
It allows running agents for OpenAI models and models compatible with the OpenAI API.
In this mode, you can use pre-configured Experts in Expert mode presets - they will be launched as agents (in the openai_agents_experts type, which allows launching one main agent and subordinate agents to which queries will be appropriately directed).
Agent types (workflows/patterns):
Agent with experts - uses attached experts as sub-agentsAgent with experts + feedback - uses attached experts as sub-agents + feedback agent in a loopAgent with feedback - single agent + feedback agent in a loopPlanner - planner agent, 3 sub-agents inside: planner, base agent + feedbackResearch bot - researcher, 3 sub-agents inside: planner, searcher and writer as base agentSimple agent - a single agent.Evolve - in each generation (cycle), the best response from a given parent agent is selected; in the next generation, the cycle repeats.B2B - bot-to-bot communication, involving two bots interacting with each other while keeping a human in the loop.Supervisor + Worker - one agent (supervisor) acts as a bridge between the user and the second agent (worker). The user provides a query to the supervisor, who then sends instructions to the worker until the task is completed by the worker.You can create your own types (workflows/patterns) using the built-in visual node-based editor found in the Tools -> Agents Builder.
There are also predefined presets added as examples:
CoderExperts agentPlannerResearcherSimple agentWriter with Feedback2 botsSupervisor + workerIn the Agents (OpenAI) mode, all remote tools are available for the base agent according to the configuration in the Config -> Settings -> Remote tools menu.
Remote tools for experts can be selected separately for each expert in the preset configuration.
Local tools (from plugins) are available for agents and experts according to the enabled plugins, as in other modes.
In agents with feedback and plans, tools can be allowed in a preset configuration for each agent. They also have separate prompts that can be configured in presets.
Description of how different types of agents work:
Below is a pattern for how different types of agents work. You can use these patterns to create agents for different tasks by modifying the appropriate prompts in the preset for the specific task.
Simple Agent
Agent with Feedback
Agent with Experts
Agent with Experts + Feedback
Research Bot
Planner
Evolve
B2B
Supervisor + Worker
Tip: Starting from version 2.5.97, you can assign and use Experts in all of the agent types.
Limitations:
Computer use tool is selected for an expert or when the computer-use model is chosen, all other tools will not be available for that model.This is an older version of the Agent mode, still available as legacy. However, it is recommended to use the newer mode: Agent (LlamaIndex).
WARNING: Please use this mode with caution - autonomous mode, when connected with other plugins, may produce unexpected results!
The mode activates autonomous mode, where AI begins a conversation with itself. You can set this loop to run for any number of iterations. Throughout this sequence, the model will engage in self-dialogue, answering his own questions and comments, in order to find the best possible solution, subjecting previously generated steps to criticism.
WARNING: Setting the number of run steps (iterations) to 0 activates an infinite loop which can generate a large number of requests and cause very high token consumption, so use this option with caution! Confirmation will be displayed every time you run the infinite loop.
This mode is similar to Auto-GPT - it can be used to create more advanced inferences and to solve problems by breaking them down into subtasks that the model will autonomously perform one after another until the goal is achieved.
You can create presets with custom instructions for multiple agents, incorporating various workflows, instructions, and goals to achieve.
All plugins are available for agents, so you can enable features such as file access, command execution, web searching, image generation, vision analysis, etc., for your agents. Connecting agents with plugins can create a fully autonomous, self-sufficient system. All currently enabled plugins are automatically available to the Agent.
When the Auto-stop option is enabled, the agent will attempt to stop once the goal has been reached.
In opposition to Auto-stop, when the Always continue... option is enabled, the agent will use the "always continue" prompt to generate additional reasoning and automatically proceed to the next step, even if it appears that the task has been completed.
Options
The agent is essentially a virtual mode that internally sequences the execution of a selected underlying mode. You can choose which internal mode the agent should use in the settings:
Settings / Agent (autonomous) / Sub-mode to use
Default mode is: Chat.
If you want to use the LlamaIndex mode when running the agent, you can also specify which index LlamaIndex should use with the option:
Settings / Agents and experts / Index to use

Expert mode allows for the creation of experts (using presets) and then consulting them during a conversation. In this mode, a primary base context is created for conducting the conversation. From within this context, the model can make requests to an expert to perform a task and return the results to the main thread. When an expert is called in the background, a separate context is created for them with their own memory. This means that each expert, during the life of one main context, also has access to their own memory via their separate, isolated context.
In simple terms - you can imagine an expert as a separate, additional instance of the model running in the background, which can be called at any moment for assistance, with its own context and memory, as well as its own specialized instructions in a given subject.
Experts do not share contexts with one another, and the only point of contact between them is the main conversation thread. In this main thread, the model acts as a manager of experts, who can exchange data between them as needed.
An expert is selected based on the name in the presets; for example, naming your expert as: ID = python_expert, name = "Python programmer" will create an expert whom the model will attempt to invoke for matters related to Python programming. You can also manually request to refer to a given expert:
Call the Python expert to generate some code.
Experts can be activated or deactivated - to enable or disable use RMB context menu to select the Enable/Disable options from the presets list. Only enabled experts are available to use in the thread.
Experts can also be used in Agent (autonomous) mode - by creating a new agent using a preset. Simply move the appropriate experts to the active list to automatically make them available for use by the agent.
You can also use experts in "inline" mode - by activating the Experts (inline) plugin. This allows for the use of experts in any mode, such as normal chat.
Expert mode, like agent mode, is a "virtual" mode - you need to select a target mode of operation for it, which can be done in the settings at Settings / Agent (autonomous) / Sub-mode for experts.
You can also ask for a list of active experts at any time:
Give me a list of active experts.
This mode allows for autonomous computer control.
In this mode, the model takes control of the mouse and keyboard and can navigate within the user's environment. The Computer use remote tool is used here: https://platform.openai.com/docs/guides/tools-computer-use, combined with the Mouse and Keyboard plugin.
Example of use:
Click on the Start Menu to open it, search for the Notepad in the list, and run it.
You can change the environment in which the navigation mode operates by using the list at the bottom of the toolbox.
Available Environments:
You can run this mode in Sandbox (using Playwright - https://playwright.dev/) - to do it, just enable the Sandbox switch in the toolbox. Playwright browsers must be installed on your system. To do so, run:
pip install playwright
playwright install <chromium|firefox|webkit>
After that, set the path to directory with installed browsers in Mouse and Keyborad plugin settings option: Sandbox (Playwright) / Browsers directory.
Compiled binary and Snap versions have chromium preinstalled in the package.
Tip: DO NOT enable the Mouse and Keyboard plugin in Computer use mode—it is already connected to Computer use mode "in the background."
PyGPT features a continuous chat mode that maintains a long context of the ongoing dialogue. It preserves the entire conversation history and automatically appends it to each new message (prompt) you send to the AI. Additionally, you have the flexibility to revisit past conversations whenever you choose. The application keeps a record of your chat history, allowing you to resume discussions from the exact point you stopped.
On the left side of the application interface, there is a panel that displays a list of saved conversations. You can save numerous contexts and switch between them with ease. This feature allows you to revisit and continue from any point in a previous conversation. PyGPT automatically generates a summary for each context, akin to the way ChatGPT operates and gives you the option to modify these titles itself.

You can disable context support in the settings by using the following option:
Config -> Settings -> Use context
You can clear the entire memory (all contexts) by selecting the menu option:
File -> Clear history...
On the application side, the context is stored in the SQLite database located in the working directory (db.sqlite).
In addition, all history is also saved to .txt files for easy reading.
Once a conversation begins, a title for the chat is generated and displayed on the list to the left. This process is similar to ChatGPT, where the subject of the conversation is summarized, and a title for the thread is created based on that summary. You can change the name of the thread at any time.
Using Your Own Files as Additional Context in Conversations
You can use your own files (for example, to analyze them) during any conversation. You can do this in two ways: by indexing (embedding) your files in a vector database, which makes them available all the time during a "Chat with Files" session, or by adding a file attachment (the attachment file will only be available during the conversation in which it was uploaded).
Attachments
PyGPT makes it simple for users to upload files and send them to the model for tasks like analysis, similar to attaching files in ChatGPT. There's a separate Attachments tab next to the text input area specifically for managing file uploads.
Tip: Attachments uploaded in group are available in all contexts in group.

You can use attachments to provide additional context to the conversation. Uploaded files will be converted into text using loaders from LlamaIndex, and then embedded into the vector store. You can upload any file format supported by the application through LlamaIndex. Supported formats include:
Text-based types:
Media-types:
Archives:
The content from the uploaded attachments will be used in the current conversation and will be available throughout (per context). There are 3 modes available for working with additional context from attachments:
Full context: Provides best results. This mode attaches the entire content of the read file to the user's prompt. This process happens in the background and may require a large number of tokens if you uploaded extensive content.
RAG: The indexed attachment will only be queried in real-time using LlamaIndex. This operation does not require any additional tokens, but it may not provide access to the full content of the file 1:1.
Summary: When queried, an additional query will be generated in the background and executed by a separate model to summarize the content of the attachment and return the required information to the main model. You can change the model used for summarization in the settings under the Files and attachments section.
In the RAG and Summary mode, you can enable an additional setting by going to Settings -> Files and attachments -> Use history in RAG query. This allows for better preparation of queries for RAG. When this option is turned on, the entire conversation context is considered, rather than just the user's last query. This allows for better searching of the index for additional context. In the RAG limit option, you can set a limit on how many recent entries in a discussion should be considered (0 = no limit, default: 3).
Important: When using Full context mode, the entire content of the file is included in the prompt, which can result in high token usage each time. If you want to reduce the number of tokens used, instead use the RAG option, which will only query the indexed attachment in the vector database to provide additional context.
Images as Additional Context
Files such as jpg, png, and similar images are a special case. By default, images are not used as additional context; they are analyzed in real-time using a vision model. If you want to use them as additional context instead, you must enable the "Allow images as additional context" option in the settings: Files and attachments -> Allow images as additional context.
Uploading larger files and auto-index
To use the RAG mode, the file must be indexed in the vector database. This occurs automatically at the time of upload if the Auto-index on upload option in the Attachments tab is enabled. When uploading large files, such indexing might take a while - therefore, if you are using the Full context option, which does not use the index, you can disable the Auto-index option to speed up the upload of the attachment. In this case, it will only be indexed when the RAG option is called for the first time, and until then, attachment will be available in the form of Full context and Summary.
Embeddings
When using RAG to query attachments, the documents are indexed into a temporary vector store. With multiple providers and models available, you can select the model used for querying attachments in: Config -> Settings -> Files and Attachments. You can also choose the embedding models for specified providers in Config -> Settings -> Indexes / LlamaIndex -> Embeddings -> Default embedding models list. By default, when querying an attachment using RAG, the default embedding model and provider corresponding to the RAG query model will be used. If no default configuration is provided for a specific provider, the global embedding configuration will be used.
For example, if the RAG query model is gpt-4o-mini, then the default model for the provider OpenAI will be used. If the default model for OpenAI is not specified on the list, the global provider and model will be used.
PyGPT enables the automatic download and saving of files created by the model. This is carried out in the background, with the files being saved to an data folder located within the user's working directory. To view or manage these files, users can navigate to the Files tab which features a file browser for this specific directory. Here, users have the interface to handle all files sent by the AI.
This data directory is also where the application stores files that are generated locally by the AI, such as code files or any other data requested from the model. Users have the option to execute code directly from the stored files and read their contents, with the results fed back to the AI. This hands-off process is managed by the built-in plugin system and model-triggered commands. You can also indexing files from this directory (using integrated LlamaIndex) and use it's contents as additional context provided to discussion.
The Files I/O plugin takes care of file operations in the data directory, while the Code Interpreter plugin allows for the execution of code from these files.

To allow the model to manage files or python code execution, the + Tools option must be active, along with the above-mentioned plugins:

Presets in PyGPT are essentially templates used to store and quickly apply different configurations. Each preset includes settings for the mode you want to use (such as chat, completion, or image generation), an initial system prompt, an assigned name for the AI, a username for the session, and the desired "temperature" for the conversation. A warmer "temperature" setting allows the AI to provide more creative responses, while a cooler setting encourages more predictable replies. These presets can be used across various modes and with models accessed via the OpenAI API or LlamaIndex.
The application lets you create as many presets as needed and easily switch among them. Additionally, you can clone an existing preset, which is useful for creating variations based on previously set configurations and experimentation.

The application includes several sample presets that help you become acquainted with the mechanism of their use.
You can create multiple profiles for an app and switch between them. Each profile uses its own configuration, settings, context history, and a separate folder for user files. This allows you to set up different environments and quickly switch between them, changing the entire setup with just one click.
The app lets you create new profiles, edit existing ones, and duplicate current ones.
To create a new profile, select the option from the menu: Config -> Profile -> New Profile...
To edit saved profiles, choose the option from the menu: Config -> Profile -> Edit Profiles...
To switch to a created profile, pick the profile from the menu: Config -> Profile -> [Profile Name]
Each profile uses its own user directory (workdir). You can link a newly created or edited profile to an existing workdir with its configuration.
The name of the currently active profile is shown as (Profile Name) in the window title.
PyGPT has a preconfigured list of models (as of 2026-02-06):
bielik-11b-v2.3-instruct:Q4_K_M (Ollama)chatgpt-4o-latest (OpenAI)claude-3-5-sonnet-20240620 (Anthropic)claude-3-7-sonnet (Anthropic)claude-3-opus (Anthropic)claude-3-opus (Anthropic)claude-opus-4-0 (Anthropic)claude-sonnet-4-0 (Anthropic)claude-opus-4-5 (Anthropic)claude-sonnet-4-5 (Anthropic)codellama (Ollama)codex-mini (OpenAI)dall-e-2 (OpenAI)dall-e-3 (OpenAI)deep-research-pro-preview-12-2025 (Google)deepseek-chat (DeepSeek)deepseek-r1:1.5b (Ollama)deepseek-r1:14b (Ollama)deepseek-r1:32b (Ollama)deepseek-r1:7b (Ollama)deepseek-reasoner (DeepSeek)gemini-2.5-computer-use-preview-10-2025 (Google)gemini-1.5-flash (Google)gemini-1.5-pro (Google)gemini-2.0-flash-exp (Google)gemini-2.5-flash (Google)gemini-2.5-flash-preview-native-audio-dialog (Google, real-time)gemini-2.5-pro (Google)gemini-3-flash-preview (Google)gemini-3-pro-image-preview (Google)gemini-3-pro-preview (Google)gpt-3.5-turbo (OpenAI)gpt-3.5-turbo-16k (OpenAI)gpt-3.5-turbo-instruct (OpenAI)gpt-4 (OpenAI)gpt-4-32k (OpenAI)gpt-4-turbo (OpenAI)gpt-4-vision-preview (OpenAI)gpt-4.1 (OpenAI)gpt-4.1-mini (OpenAI)gpt-4.1-nano (OpenAI)gpt-4o (OpenAI)gpt-4o-realtime-preview (OpenAI, real-time)gpt-4o-mini (OpenAI)gpt-5 (OpenAI)gpt-5-mini (OpenAI)gpt-5-nano (OpenAI)gpt-5.2 (OpenAI)gpt-image-1 (OpenAI)gpt-image-1.5 (OpenAI)gpt-oss:20b (OpenAI - via Ollama and HuggingFace Router)gpt-oss:120b (OpenAI - via Ollama and HuggingFace Router)gpt-realtime (OpenAI, real-time)grok-2-vision (xAI)grok-3 (xAI)grok-3-fast (xAI)grok-3-mini (xAI)grok-3-mini-fast (xAI)grok-4 (xAI)grok-imagine-image (xAI)grok-imagine-video (xAI)llama2-uncensored (Ollama)llama3.1 (Ollama)llama3.1:70b (Ollama)mistral (Ollama)mistral-large (Ollama)mistral-small3.1 (Ollama)nano-banana-pro-preview (Google)o1 (OpenAI)o1-mini (OpenAI)o1-pro (OpenAI)o3 (OpenAI)o3-deep-research (OpenAI)o3-mini (OpenAI)o3-pro (OpenAI)o4-mini (OpenAI)o4-mini-deep-research (OpenAI)qwen2:7b (Ollama)qwen2.5-coder:7b (Ollama)qwen3:8b (Ollama)qwen3:30b-a3b (Ollama)r1 (Perplexity)sonar (Perplexity)sonar-deep-research (Perplexity)sonar-pro (Perplexity)sonar-reasoning (Perplexity)sonar-reasoning-pro (Perplexity)sora-2 (OpenAI)veo-3.0-generate-preview (Google)veo-3.0-fast-generate-preview (Google)veo-3.1-generate-preview (Google)veo-3.1-fast-generate-preview (Google)All models are specified in the configuration file models.json, which you can customize.
This file is located in your working directory. You can add new models provided directly by OpenAI API (or compatible), Google Gen AI API, Anthropic API, xAI API, and those supported by LlamaIndex or Ollama to this file. Configuration for LlamaIndex in placed in llama_index key.
You can import new models by manually editing models.json or by using the model importer in the Config -> Models -> Import menu.
Tip: The models on the list are sorted by provider, not by manufacturer. A model from a particular manufacturer may be available through different providers (e.g., OpenAI models can be provided by the OpenAI API or by OpenRouter). If you want to use a specific model through a particular provider, you need to configure the provider in Config -> Models -> Edit, or import it directly via Config -> Models -> Import.
Tip: Anthropic and Deepseek API providers use VoyageAI for embeddings (Chat with Files and attachments RAG), so you must also configure the Voyage API key if you want to use embeddings from these providers.
You can add your own models. See the section Extending PyGPT / Adding a new model for more info.
There is built-in support for those LLM providers:
AnthropicAzure OpenAI (native SDK)Deepseek APIGoogle (native SDK)HuggingFace APIHuggingFace Router (wrapper for OpenAI compatible ChatCompletions)Local models (OpenAI API compatible)Mistral AIOllamaOpenAI (native SDK)OpenRouterPerplexityxAI (native SDK)How to use locally installed Llama 3, DeepSeek, Mistral, etc. models:
Choose a working mode: Chat or Chat with Files.
On the models list - select, edit, or add a new model (with ollama provider). You can edit the model settings through the menu Config -> Models -> Edit, then configure the model parameters in the advanced section.
Download and install Ollama from here: https://github.com/ollama/ollama
For example, on Linux:
curl -fsSL https://ollama.com/install.sh | sh
ollama run llama3.1
Example available models
llama3.1codellamamistralllama2-uncensoreddeepseek-r1etc.
You can add more models by editing the models list.
Real-time importer
You can also import models in real-time from a running Ollama instance using the Config -> Models -> Import... tool.
Custom Ollama endpoint
The default endpoint for Ollama is: http://localhost:11434
You can change it globally by setting the environment variable OLLAMA_API_BASE in Settings -> General -> Advanced -> Application environment.
You can also change the "base_url" for a specific model in its configuration:
Config -> Models -> Edit, then in the Advanced -> [LlamaIndex] ENV Vars section add the variable:
NAME: OLLAMA_API_BASE
VALUE: http://my_endpoint.com:11434
List of all models supported by Ollama
https://github.com/ollama/ollama
IMPORTANT: Remember to define the correct model name in the **kwargs list in the model settings.
Using local embeddings
Refer to: https://docs.llamaindex.ai/en/stable/examples/embeddings/ollama_embedding/
You can use an Ollama instance for embeddings. Simply select the ollama provider in:
Config -> Settings -> Indexes / LlamaIndex -> Embeddings -> Embeddings provider
Define parameters like model name and Ollama base URL in the Embeddings provider **kwargs list, e.g.:
name: model_name, value: llama3.1, type: str
name: base_url, value: http://localhost:11434, type: str
If you want to use non-OpenAI models in Chat with Files and Agents (LlamaIndex) modes, then remember to configure the required parameters like API keys in the model config fields. Chat mode works via OpenAI SDK (compatible API), Chat with Files and Agents (LlamaIndex) modes works via LlamaIndex.
Google Gemini
Required ENV:
Required **kwargs:
Anthropic Claude
Required ENV:
Required **kwargs:
xAI Grok (Chat mode only)
Required ENV:
Required **kwargs:
Mistral AI
Required ENV:
Required **kwargs:
Perplexity
Required ENV:
Required **kwargs:
HuggingFace API
Required ENV:
Required **kwargs:
PyGPT can be enhanced with plugins to add new features.
The following plugins are currently available, and model can use them instantly:
API calls - plugin lets you connect the model to the external services using custom defined API calls.
Audio Input - provides speech recognition.
Audio Output - provides voice synthesis.
Autonomous Agent (inline) - enables autonomous conversation (AI to AI), manages loop, and connects output back to input. This is the inline Agent mode.
Bitbucket - Access Bitbucket API to manage repositories, issues, and pull requests.
Chat with Files (LlamaIndex, inline) - plugin integrates LlamaIndex storage in any chat and provides additional knowledge into context (from indexed files and previous context from database).
Code Interpreter - responsible for generating and executing Python code, functioning much like the Code Interpreter on ChatGPT, but locally. This means a model can interface with any script, application, or code. Plugins can work in conjunction to perform sequential tasks; for example, the Files plugin can write generated Python code to a file, which the Code Interpreter can execute it and return its result to model.
Context history (calendar, inline) - provides access to context history database.
Crontab / Task scheduler - plugin provides cron-based job scheduling - you can schedule tasks/prompts to be sent at any time using cron-based syntax for task setup.
Custom Commands - allows you to create and execute custom commands on your system.
Experts (inline) - allows calling experts in any chat mode. This is the inline Experts (co-op) mode.
Facebook - Manage user info, pages, posts, and photos on Facebook pages.
Files I/O - provides access to the local filesystem, enabling a model to read and write files, as well as list and create directories.
GitHub - Access GitHub API to manage repositories, issues, and pull requests.
Google - Access Gmail, Drive, Docs, Maps, Calendar, Contacts, Colab, YouTube, Keep - for managing emails, files, events, notes, video info, and contacts.
Image Generation (inline) - integrates DALL-E 3 image generation with any chat and mode. Just enable and ask for image in Chat mode, using standard model like GPT-4. The plugin does not require the + Tools option to be enabled.
Mailer - Provides the ability to send, receive and read emails.
MCP - Provides access to remote tools via the Model Context Protocol (MCP), including stdio, SSE, and Streamable HTTP transports, with per-server allow/deny filtering, Authorization header support, and a tools cache.
Mouse and Keyboard - provides the ability to control the mouse and keyboard by the model.
OpenStreetMap - Search, geocode, plan routes, and generate static maps using OpenStreetMap services (Nominatim, OSRM, staticmap).
Real Time - automatically appends the current date and time to the system prompt, informing the model about current time.
Serial port / USB - plugin provides commands for reading and sending data to USB ports.
Server (SSH/FTP) - Connect to remote servers using FTP, SFTP, and SSH. Execute remote commands, upload, download, and more.
Slack - Handle users, conversations, messages, and files on Slack.
System Prompt Extra (append) - appends additional system prompts (extra data) from a list to every current system prompt. You can enhance every system prompt with extra instructions that will be automatically appended to the system prompt.
System (OS) - allows you to create and execute custom commands on your system.
Telegram - Send messages, photos, and documents; manage chats and contacts.
Tuya (IoT) - Handle Tuya Smart Home devices via Tuya Cloud API.
Vision (inline) - integrates Vision capabilities with any chat mode, not just Vision mode. When the plugin is enabled, the model temporarily switches to vision in the background when an image attachment or vision capture is provided.
Voice Control (inline) - provides voice control command execution within a conversation.
Web Search - provides the ability to connect to the Web, search web pages for current data, and index external content using LlamaIndex data loaders.
Wikipedia - Search Wikipedia for information.
Wolfram Alpha - Compute and solve with Wolfram Alpha: short answers, full JSON pods, math (solve, derivatives, integrals), unit conversions, matrix operations, and plots.
X/Twitter - Interact with tweets and users, manage bookmarks and media, perform likes, retweets, and more.
PyGPT lets you connect the model to the external services using custom defined API calls.
To activate this feature, turn on the API calls plugin found in the Plugins menu.
In this plugin you can provide list of allowed API calls, their parameters and request types. The model will replace provided placeholders with required params and make API call to external service.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#api-calls
The plugin facilitates speech recognition (by default using the Whisper model from OpenAI, Google and Bing are also available). It allows for voice commands to be relayed to the AI using your own voice. Whisper doesn't require any extra API keys or additional configurations; it uses the main OpenAI key. In the plugin's configuration options, you should adjust the volume level (min energy) at which the plugin will respond to your microphone. Once the plugin is activated, a new Speak option will appear at the bottom near the Send button - when this is enabled, the application will respond to the voice received from the microphone.
The plugin can be extended with other speech recognition providers.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#audio-input
The plugin lets you turn text into speech using the TTS model from OpenAI or other services like Microsoft Azure, Google, and Eleven Labs. You can add more text-to-speech providers to it too. OpenAI TTS does not require any additional API keys or extra configuration; it utilizes the main OpenAI key.
Microsoft Azure requires to have an Azure API Key. Before using speech synthesis via Microsoft Azure, Google or Eleven Labs, you must configure the audio plugin with your API keys, regions and voices if required.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#audio-output
WARNING: Please use autonomous mode with caution! - this mode, when connected with other plugins, may produce unexpected results!
The plugin activates autonomous mode in standard chat modes, where AI begins a conversation with itself. You can set this loop to run for any number of iterations. Throughout this sequence, the model will engage in self-dialogue, answering his own questions and comments, in order to find the best possible solution, subjecting previously generated steps to criticism.
This mode is similar to Auto-GPT - it can be used to create more advanced inferences and to solve problems by breaking them down into subtasks that the model will autonomously perform one after another until the goal is achieved. The plugin is capable of working in cooperation with other plugins, thus it can utilize tools such as web search, access to the file system, or image generation using DALL-E.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#autonomous-agent-inline
The Bitbucket plugin allows for seamless integration with the Bitbucket Cloud API, offering functionalities to manage repositories, issues, and pull requests. This plugin provides highly configurable options for authentication, cached convenience, and manages HTTP requests efficiently.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#bitbucket
Plugin integrates LlamaIndex storage in any chat and provides additional knowledge into context.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#chat-with-files-llamaindex-inline
From version 2.4.13 with built-in IPython.
The plugin operates similarly to the Code Interpreter in ChatGPT, with the key difference that it works locally on the user's system. It allows for the execution of any Python code on the computer that the model may generate. When combined with the Files I/O plugin, it facilitates running code from files saved in the data directory. You can also prepare your own code files and enable the model to use them or add your own plugin for this purpose. You can execute commands and code on the host machine or in Docker container.
IPython: Starting from version 2.4.13, it is highly recommended to adopt the new option: IPython, which offers significant improvements over previous workflows. IPython provides a robust environment for executing code within a kernel, allowing you to maintain the state of your session by preserving the results of previous commands. This feature is particularly useful for iterative development and data analysis, as it enables you to build upon prior computations without starting from scratch. Moreover, IPython supports the use of magic commands, such as !pip install <package_name>, which facilitate the installation of new packages directly within the session. This capability streamlines the process of managing dependencies and enhances the flexibility of your development environment. Overall, IPython offers a more efficient and user-friendly experience for executing and managing code.
To use IPython in sandbox mode, Docker must be installed on your system.
You can find the installation instructions here: https://docs.docker.com/engine/install/
Tip: connecting IPython in Docker in Snap version:
To use IPython in the Snap version, you must connect PyGPT to the Docker daemon:
sudo snap connect pygpt:docker-executables docker:docker-executables
sudo snap connect pygpt:docker docker:docker-daemon
Code interpreter: a real-time Python Code Interpreter is built-in. Click the <> icon to open the interpreter window. Both the input and output of the interpreter are connected to the plugin. Any output generated by the executed code will be displayed in the interpreter. Additionally, you can request the model to retrieve contents from the interpreter window output.

INFO: Executing Python code using IPython in compiled versions requires an enabled sandbox (Docker container). You can connect the Docker container via Plugins -> Settings.
Tip: always remember to enable the + Tools option to allow execute commands from the plugins.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#code-interpreter
Provides access to context history database. Plugin also provides access to reading and creating day notes.
Examples of use, you can ask e.g. for the following:
Give me today day note
Save a new note for today
Update my today note with...
Get the list of yesterday conversations
Get contents of conversation ID 123
etc.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#context-history-calendar-inline
Plugin provides cron-based job scheduling - you can schedule tasks/prompts to be sent at any time using cron-based syntax for task setup.

Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#crontab-task-scheduler
With the Custom Commands plugin, you can integrate PyGPT with your operating system and scripts or applications. You can define an unlimited number of custom commands and instruct model on when and how to execute them. Configuration is straightforward, and PyGPT includes a simple tutorial command for testing and learning how it works:

Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#custom-commands
The plugin allows calling experts in any chat mode. This is the inline Experts (co-op) mode.
See the Work modes -> Experts section for more details.
The plugin integrates with Facebook's Graph API to enable various actions such as managing pages, posts, and media uploads. It uses OAuth2 for authentication and supports automatic token exchange processes.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#facebook
The plugin allows for file management within the local filesystem. It enables the model to create, read, write and query files located in the data directory, which can be found in the user's work directory. With this plugin, the AI can also generate Python code files and thereafter execute that code within the user's system.
Plugin capabilities include:
If a file being created (with the same name) already exists, a prefix including the date and time is added to the file name.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#files-i-o
The plugin provides seamless integration with GitHub, allowing various operations such as repository management, issue tracking, pull requests, and more through GitHub's API. This plugin requires authentication, which can be configured using a Personal Access Token (PAT) or OAuth Device Flow.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#github
The plugin integrates with various Google services, enabling features such as email management, calendar events, contact handling, and document manipulation through Google APIs.
Gmail
Google Calendar
Google Keep
Google Drive
YouTube
Google Contacts
Google Docs
Google Maps
Google Colab
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#google-gmail-drive-calendar-contacts-yt-keep-docs-maps-colab
The plugin integrates DALL-E 3 image generation with any chat mode. Simply enable it and request an image in Chat mode, using a standard model such as GPT-4. The plugin does not require the + Tools option to be enabled.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#image-generation-inline
Enables the sending, receiving, and reading of emails from the inbox. Currently, only SMTP is supported. More options coming soon.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#mailer
With the MCP plugin, you can connect PyGPT to remote tools exposed by Model Context Protocol servers (stdio, Streamable HTTP, or SSE). The plugin discovers available tools on your configured servers and publishes them to the model as callable commands with proper parameter schemas. You can whitelist/blacklist tools per server and optionally cache discovery results for speed.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#mcp
Introduced in version: 2.4.4 (2024-11-09)
WARNING: Use this plugin with caution - allowing all options gives the model full control over the mouse and keyboard
The plugin allows for controlling the mouse and keyboard by the model. With this plugin, you can send a task to the model, e.g., "open notepad, type something in it" or "open web browser, do search, find something."
Plugin capabilities include:
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#mouse-and-keyboard
Provides everyday mapping utilities using OpenStreetMap services:
Images are saved under data/openstreetmap/ in the user data directory.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#openstreetmap
This plugin automatically adds the current date and time to each system prompt you send. You have the option to include just the date, just the time, or both.
When enabled, it quietly enhances each system prompt with current time information before sending it to model.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#real-time
Provides commands for reading and sending data to USB ports.
Tip: in Snap version you must connect the interface first: https://snapcraft.io/docs/serial-port-interface
You can send commands to, for example, an Arduino or any other controllers using the serial port for communication.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#serial-port-usb
The Server plugin provides integration for remote server management via SSH, SFTP, and FTP protocols. This plugin allows executing commands, transferring files, and managing directories on remote servers.
For security reasons, the model will not see any credentials, only the server name and port fields (see the docs)
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#server-ssh-ftp
The Slack plugin integrates with the Slack Web API, enabling interaction with Slack workspaces through the application. This plugin supports OAuth2 for authentication, which allows for seamless integration with Slack services, enabling actions such as posting messages, retrieving users, and managing conversations.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#slack
The plugin provides access to the operating system and executes system commands.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#system-os
The plugin appends additional system prompts (extra data) from a list to every current system prompt. You can enhance every system prompt with extra instructions that will be automatically appended to the system prompt.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#system-prompt-extra-append
The plugin enables integration with Telegram for both bots and user accounts through the Bot API and the Telethon library respectively. It allows sending and receiving messages, managing chats, and handling updates.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#telegram
The Tuya plugin integrates with Tuya's Smart Home platform, enabling seamless interactions with your smart devices via the Tuya Cloud API. This plugin provides a user-friendly interface to manage and control devices directly from your assistant.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#tuya-iot
The plugin integrates vision capabilities across all chat modes, not just Vision mode. Once enabled, it allows the model to seamlessly switch to vision processing in the background whenever an image attachment or vision capture is detected.
Tip: When using Vision (inline) by utilizing a plugin in standard mode, such as Chat (not Vision mode), the + Vision special checkbox will appear at the bottom of the Chat window. It will be automatically enabled any time you provide content for analysis (like an uploaded photo). When the checkbox is enabled, the vision model is used. If you wish to exit the vision model after image analysis, simply uncheck the checkbox. It will activate again automatically when the next image content for analysis is provided.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#vision-inline
The plugin provides voice control command execution within a conversation.
See the Accessibility section for more details.
PyGPT lets you connect model to the internet and carry out web searches in real time as you make queries.
To activate this feature, turn on the Web Search plugin found in the Plugins menu.
Web searches are provided by Google Custom Search Engine and Microsoft Bing APIs and can be extended with other search engine providers.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#web-search
The Wikipedia plugin allows for comprehensive interactions with Wikipedia, including language settings, article searching, summaries, and random article discovery. This plugin offers a variety of options to optimize your search experience.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#wikipedia
Provides computational knowledge via Wolfram Alpha: short answers, full JSON pods, numeric and symbolic math (solve, derivatives, integrals), unit conversions, matrix operations, and plots rendered as images. Images are saved under data/wolframalpha/ in the user data directory.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#wolfram-alpha
The X/Twitter plugin integrates with the X platform, allowing for comprehensive interactions such as tweeting, retweeting, liking, media uploads, and more. This plugin requires OAuth2 authentication and offers various configuration options to manage API interactions effectively.
Documentation: https://pygpt.readthedocs.io/en/latest/plugins.html#x-twitter
You can create your own plugin for PyGPT at any time. The plugin can be written in Python and then registered with the application just before launching it. All plugins included with the app are stored in the plugin directory - you can use them as coding examples for your own plugins.
PyGPT can be extended with:
custom models
custom plugins
custom LLMs
custom vector store providers
custom data loaders
custom audio input providers
custom audio output providers
custom web search engine providers
custom agents (LlamaIndex or OpenAI Agents)
See the section Extending PyGPT / Adding a custom plugin for more details.
Tip remember to enable the + Tools checkbox to enable execution of tools and commands from plugins.
From version 2.2.20 PyGPT uses native API function calls by default. You can go back to internal syntax (described below) by switching off option Config -> Settings -> Prompts -> Use native API function calls. You must also enable Tool calls checkbox in model advanced settings to use native function calls with the specified model.
In background, PyGPT uses an internal syntax to define commands and their parameters, which can then be used by the model and executed on the application side or even directly in the system. This syntax looks as follows (example command below):
<tool>{"cmd": "send_email", "params": {"quote": "Why don't skeletons fight each other? They don't have the guts!"}}</tool>
It is a JSON object wrapped between <tool> tags. The application extracts the JSON object from such formatted text and executes the appropriate function based on the provided parameters and command name. Many of these types of commands are defined in plugins (e.g., those used for file operations or internet searches). You can also define your own commands using the Custom Commands plugin, or simply by creating your own plugin and adding it to the application.
Tip: The + Tools option checkbox must be enabled to allow the execution of commands from plugins. Disable the option if you do not want to use commands, to prevent additional token usage (as the command execution system prompt consumes additional tokens and may slow down local models).

When native API function calls are disabled, a special system prompt responsible for invoking commands is added to the main system prompt if the + Tools option is active.
However, there is an additional possibility to define your own commands and execute them with the help of model. These are functions / tools - defined on the API side and described using JSON objects. You can find a complete guide on how to define functions here:
https://platform.openai.com/docs/guides/function-calling
https://cookbook.openai.com/examples/how_to_call_functions_with_chat_models
PyGPT offers compatibility of these functions with commands (tools) used in the application. All you need to do is define the appropriate functions using the correct JSON schema, and PyGPT will do the rest, translating such syntax on the fly into its own internal format.
Local functions and tools from plugins are available in all modes, except Assistants.
To enable local functions for Assistants mode (in this mode remote tools are used by default), create a new Assistant, open the Preset edit dialog and import tools from plugins or add a new function using + Function button e.g. with the following content:
Name: send_email
Description: Send a quote using email
Params (JSON):
{
"type": "object",
"properties": {
"quote": {
"type": "string",
"description": "A generated funny quote"
}
},
"required": [
"quote"
]
}
Then, in the Custom Commands plugin, create a new command with the same name and the same parameters:
Command name: send_email
Instruction/prompt: send mail
Params list: quote
Command to execute: echo "OK. Email sent: {quote}"
At next, enable the + Tools option and enable the plugin.
Ask a model:
Create a funny quote and email it
In response you will receive prepared command, like this:
<tool>{"cmd": "send_email", "params": {"quote": "Why do we tell actors to 'break a leg?' Because every play has a cast!"}}</tool>
After receiving this, PyGPT will execute the system echo command with params given from params field and replacing {quote} placeholder with quote param value.
As a result, response like this will be sent to the model:
[{"request": {"cmd": "send_email"}, "result": "OK. Email sent: Why do we tell actors to 'break a leg?' Because every play has a cast!"}]
With this flow you can use both forms - API provider JSON schema and PyGPT schema - to define and execute commands and functions in the application. They will cooperate with each other and you can use them interchangeably.
PyGPT features several useful tools, including:

The application has a built-in notepad, divided into several tabs. This can be useful for storing information in a convenient way, without the need to open an external text editor. The content of the n