Skip to content
Navigation Menu
XInTheDark
raycast-g4f
 
Type / to search
Code
Issues
16
Pull requests
1
Discussions
Actions
Projects
Wiki
Security
Insights
Owner avatar
raycast-g4f
Public
XInTheDark/raycast-g4f

t
Name		
XInTheDark
XInTheDark
Add Drafts feature in AI Chat
61b9592
 · 
4 days ago
.github
Add GitHub issue templates
11 months ago
assets
Update logo and icons (#133)
8 months ago
src
Add Drafts feature in AI Chat
4 days ago
.eslintrc.json
Update Google Gemini models to exp-0827, update ESLint config
10 months ago
.gitignore
Preferences rework (#167)
6 months ago
.prettierrc
Initial commit
last year
LICENSE.txt
Create LICENSE.txt
last year
Privacy.md
Add Mhystical provider (#152)
7 months ago
README.md
Update README.md
last week
package-lock.json
Refactor provider initialization
2 months ago
package.json
Refactor provider initialization
2 months ago
requirements.txt
Fix DuckDuckGo web search (#147)
7 months ago
Repository files navigation
README
GPL-3.0 license
Raycast-G4F (GPT4Free)

Use the powerful GPT-4, Llama-3 and more AI models on Raycast, for FREE! + Full support for custom APIs.

Homepage · Privacy Policy · FAQs · Discord

Screenshots

1 2 3 4
Getting Started

"If you like the extension, please consider giving it a ✨star✨ tysm!" - the developer, probably

Prerequisites

Install the Raycast app.
Currently, Raycast is only available for macOS. Windows support is in progress.
Install Node.js.
The minimum version recommended is v20.18.1. If you're using an older version, you may encounter issues.
Installation

This extension is currently not available on the Raycast Extension store, but installation from source is extremely simple.

Download the source code from the latest release, or clone the repository.
Navigate to the directory, and open a Terminal window at the downloaded folder.
Run npm ci --production to install required dependencies.
(Optional) Run pip3 install -r requirements.txt to install Python dependencies. These are required for some features, e.g. web search.
Run npm run dev to build and import the extension.
The extension, and its full set of commands, should then show up in your Raycast app.

Troubleshooting

Please open an issue if any unexpected problems occur during installation.

Updating

Automatically

There is built-in support for updating within the extension itself! Simply run the "Check for Updates" command in the extension, and it will take care of the update process for you. Furthermore, the "Automatically Check for Updates" feature is available in the preferences (enabled by default).

Manually

In the command line, run git pull, npm ci --production and npm run dev (in that order).

You might want to update manually if the automatic update doesn't work (please also open a GitHub issue if this is the case); updating manually also allows you to fetch and view the latest changes to the source code.

Summary

▶️️ Streaming support - see messages load in real-time, providing a seamless experience.
⚡ Ask anything from anywhere - with 18 commands available, there's something for you no matter what you need.
💪 Support for many providers & models (more info below!)
💬 Chat command - interact with the AI in a conversation, and your chat history will be stored in the extension.
🌐 Web search - let GPT search the web for the latest information.
📄 File upload - you can upload image, video, audio and text files to the AI. (only available for a few providers, more to come!)
🎨 Image generation capabilities - imagine anything, and make it reality with state-of-the-art models.
✏️ Custom AI Commands - create your own commands with custom prompts!
Providers & Models

List of built-in providers
Custom APIs

The extension fully supports custom APIs! You can use any OpenAI-compatible API and connect it.

Get started by reading the help page.

Provider-specific notes

Google Gemini: An API Key is required to use this model. You can get one completely for free:
Go to https://aistudio.google.com/app/apikey
Sign in to your Google account if you haven't done so.
Click on "Create API Key" and follow the instructions there.
Copy the API Key and paste it into the corresponding box in the extension preferences.
The rate limit for Google Gemini is 1500 requests per day (as of the time of writing). This should be much more than enough for any normal usage. If your use case needs an increased rate limit, you can even create multiple API Keys with different Google accounts; separate them with commas in the preferences.

Google Gemini: This provider supports File upload functionality, as well as the Ask About Screen Content command! To upload a file in AI Chat, press Command-Enter or select "Compose Message" from the actions. Then, simply click on the upload button to get started.
Features

Note

As of v5.0, the extension preferences are now found in the "Preferences" command. Please use this command to access the preferences instead of the Raycast preferences.
Web Search

Let GPT decide to search the web for information if it does not have enough knowledge or context. Uses DuckDuckGo search, fast and free.

Usage

Enabling web search is fast and easy. Go to the extension preferences, and the "Web Search" option will be available. There are 4 options:

Disabled (default)
Automatic: Enable Web Search only in AI Chat. GPT will automatically decide when to use it.
Balanced: Use Web Search in every query for AI commands¹, and automatically in AI Chat. This is basically an extension of the "Automatic" option.
Always: Always use Web Search for every query, both in AI Chat and in commands¹.
¹: Commands that support Web Search are: Ask AI, Ask About Selected Text, Explain. Other commands will not use Web Search.

Web Search is also available in the following commands:

Custom AI Commands: You can enable Web Search for each command individually.
AI Chat: You can enable Web Search for each chat individually.
AI Presets: You can enable Web Search for each preset individually.
Smart Chat Naming

Let GPT automatically come up with a name for the current chat session after you send the first message. For example, this is similar to what the ChatGPT web UI does.

Automatically Check for Updates

Let the extension automatically check for updates every day. If a new version is available, you will be notified, along with the option to update the extension with a single click.

Persistent Storage

Enable more persistent storage of the extension's data, like AI Chat data or Custom Commands. This will back up a copy of this data to files on your computer. Useful for saving large amounts of data. Note: With this option off, your data is already well preserved. Do not enable this if you have sensitive data.

Enable Cursor Icon

Show a cursor icon when the response is loading - cosmetic option only.

Code Interpreter (BETA)

Allows GPT to execute Python code locally. The model has been instructed to strictly only produce safe code, but use at your own risk!

Only models with function calling capabilities support this feature. Currently, this includes only selected DeepInfra models.

FAQs

Why is this extension not on the official Raycast store?

By default, this extension comes with a number of third-party providers which you can use for free. Raycast doesn't like that because it's not possible to entirely verify the quality of these providers. (I do provide all the privacy details here, though, and the extension is open-source.) ...and also because they're selling their own AI.
Also, for me as a developer, publishing updates to the Raycast store is too slow and troublesome; I have to submit a PR, wait a week for it to be reviewed, and possibly have it rejected. This is not a good experience for me or for users.
Thus, the extension will have to be installed from source. Regarding this, I apologize as it's indeed more complicated than downloading it from the store. I have tried my best to make the installation process quick and streamlined - please do provide feedback on whether it was simple enough!
How does this extension compare to the paid Raycast AI? Why should I use this instead?

I’ve noticed many users subscribing to Raycast AI, which is quite expensive, and then only using it for a few casual chats a day. Honestly, that’s unnecessary. Here’s my honest suggestion: Everyone should first try out raycast-g4f. Here’s why:

Freedom. You get to choose whatever provider/API to use, and can even add multiple at once. OpenAI, Anthropic, Google… basically any API out there. (“Can I use my OpenAI API Key in Raycast AI?” No, you can’t.) That also means your AI access isn’t just locked inside Raycast. (“Can I use my Raycast AI in other apps?” No, you can’t.)
Price. This extension is completely free to use if you're sticking with the built-in providers. And if you want to use your own API, you pay only for what you use. That’s cheaper than raycast AI. There is no fixed price - you can choose whatever provider you want. You can even run models locally and connect them to the extension.
Privacy. The extension is open source and it respects your privacy. Everything is stored only on your device, and you choose what data you send.
Why is the UI worse than Raycast AI?

Because the developer API that Raycast provides is limited, it's not possible to replicate the Raycast AI interface exactly. The components I can use are very simple, and a lot of the features in built-in Raycast commands are not available to extension developers.
However, I've spent a lot of effort trying to make the UI really intuitive, and I'm always open to feedback on how to improve it!
The extension isn't working! (e.g. I sent a message but there is no response)

Sometimes third party providers can be slow or unresponsive. If you're experiencing this issue, please try again in a few minutes; or if the problem persists, please try switching to another provider.
If you've tried various providers and the issue still persists, please open an issue on GitHub!
How do I contribute to the extension?

I welcome all contributions! If you have an idea for a new feature, or if you've found a bug, please open an issue.
If you'd like to contribute code, please open a pull request, and I'll make sure to review it as soon as possible.
Powered by DartNode

Star History

Star History Chart

License & Acknowledgements

License: GPLv3. Full license is found in LICENSE.txt.

The code base is derived from Raycast Gemini by Evan Zhou.

Third-party libraries used for generation:

g4f-image
gemini-ai-sdk
(Both packages are maintained by the extension author.)

Some of the code in this repository was inspired or ported from the original gpt4free project (written in Python).
About

Raycast extension to use GPT, Claude, Llama, and more... all for FREE! + Full support for custom APIs.

Topics
chatbot  gemini  gpt  claude gpt-4  raycast-extension  chatgpt free-gpt  gpt4free  llama3  gpt-4o
Resources
 Readme
License
 GPL-3.0 license
 Activity
Stars
 958 stars
Watchers
 9 watching
Forks
 69 forks
Report repository
Releases 52

v5.5.1
Latest
on Apr 15
+ 51 releases
Packages

No packages published
Contributors
2

@XInTheDark
XInTheDark Muzhen Gaming
@jfernandogt
jfernandogt Fernando Barrios - jfergt
Languages

JavaScript
99.6%
 
Shell
0.4%
Footer
© 2025 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact
Manage cookies
Do not share my personal information




Skip to content
Navigation Menu
XInTheDark
raycast-g4f
 
Type / to search
Code
Issues
16
Pull requests
1
Discussions
Actions
Projects
Wiki
Security
Insights
Owner avatar
raycast-g4f
Public
XInTheDark/raycast-g4f

t
Name		
XInTheDark
XInTheDark
Add Drafts feature in AI Chat
61b9592
 · 
4 days ago
.github
Add GitHub issue templates
11 months ago
assets
Update logo and icons (#133)
8 months ago
src
Add Drafts feature in AI Chat
4 days ago
.eslintrc.json
Update Google Gemini models to exp-0827, update ESLint config
10 months ago
.gitignore
Preferences rework (#167)
6 months ago
.prettierrc
Initial commit
last year
LICENSE.txt
Create LICENSE.txt
last year
Privacy.md
Add Mhystical provider (#152)
7 months ago
README.md
Update README.md
last week
package-lock.json
Refactor provider initialization
2 months ago
package.json
Refactor provider initialization
2 months ago
requirements.txt
Fix DuckDuckGo web search (#147)
7 months ago
Repository files navigation
README
GPL-3.0 license
Raycast-G4F (GPT4Free)

Use the powerful GPT-4, Llama-3 and more AI models on Raycast, for FREE! + Full support for custom APIs.

Homepage · Privacy Policy · FAQs · Discord

Screenshots

1 2 3 4
Getting Started

"If you like the extension, please consider giving it a ✨star✨ tysm!" - the developer, probably

Prerequisites

Install the Raycast app.
Currently, Raycast is only available for macOS. Windows support is in progress.
Install Node.js.
The minimum version recommended is v20.18.1. If you're using an older version, you may encounter issues.
Installation

This extension is currently not available on the Raycast Extension store, but installation from source is extremely simple.

Download the source code from the latest release, or clone the repository.
Navigate to the directory, and open a Terminal window at the downloaded folder.
Run npm ci --production to install required dependencies.
(Optional) Run pip3 install -r requirements.txt to install Python dependencies. These are required for some features, e.g. web search.
Run npm run dev to build and import the extension.
The extension, and its full set of commands, should then show up in your Raycast app.

Troubleshooting

Please open an issue if any unexpected problems occur during installation.

Updating

Automatically

There is built-in support for updating within the extension itself! Simply run the "Check for Updates" command in the extension, and it will take care of the update process for you. Furthermore, the "Automatically Check for Updates" feature is available in the preferences (enabled by default).

Manually

In the command line, run git pull, npm ci --production and npm run dev (in that order).

You might want to update manually if the automatic update doesn't work (please also open a GitHub issue if this is the case); updating manually also allows you to fetch and view the latest changes to the source code.

Summary

▶️️ Streaming support - see messages load in real-time, providing a seamless experience.
⚡ Ask anything from anywhere - with 18 commands available, there's something for you no matter what you need.
💪 Support for many providers & models (more info below!)
💬 Chat command - interact with the AI in a conversation, and your chat history will be stored in the extension.
🌐 Web search - let GPT search the web for the latest information.
📄 File upload - you can upload image, video, audio and text files to the AI. (only available for a few providers, more to come!)
🎨 Image generation capabilities - imagine anything, and make it reality with state-of-the-art models.
✏️ Custom AI Commands - create your own commands with custom prompts!
Providers & Models

List of built-in providers
Custom APIs

The extension fully supports custom APIs! You can use any OpenAI-compatible API and connect it.

Get started by reading the help page.

Provider-specific notes

Google Gemini: An API Key is required to use this model. You can get one completely for free:
Go to https://aistudio.google.com/app/apikey
Sign in to your Google account if you haven't done so.
Click on "Create API Key" and follow the instructions there.
Copy the API Key and paste it into the corresponding box in the extension preferences.
The rate limit for Google Gemini is 1500 requests per day (as of the time of writing). This should be much more than enough for any normal usage. If your use case needs an increased rate limit, you can even create multiple API Keys with different Google accounts; separate them with commas in the preferences.

Google Gemini: This provider supports File upload functionality, as well as the Ask About Screen Content command! To upload a file in AI Chat, press Command-Enter or select "Compose Message" from the actions. Then, simply click on the upload button to get started.
Features

Note

As of v5.0, the extension preferences are now found in the "Preferences" command. Please use this command to access the preferences instead of the Raycast preferences.
Web Search

Let GPT decide to search the web for information if it does not have enough knowledge or context. Uses DuckDuckGo search, fast and free.

Usage

Enabling web search is fast and easy. Go to the extension preferences, and the "Web Search" option will be available. There are 4 options:

Disabled (default)
Automatic: Enable Web Search only in AI Chat. GPT will automatically decide when to use it.
Balanced: Use Web Search in every query for AI commands¹, and automatically in AI Chat. This is basically an extension of the "Automatic" option.
Always: Always use Web Search for every query, both in AI Chat and in commands¹.
¹: Commands that support Web Search are: Ask AI, Ask About Selected Text, Explain. Other commands will not use Web Search.

Web Search is also available in the following commands:

Custom AI Commands: You can enable Web Search for each command individually.
AI Chat: You can enable Web Search for each chat individually.
AI Presets: You can enable Web Search for each preset individually.
Smart Chat Naming

Let GPT automatically come up with a name for the current chat session after you send the first message. For example, this is similar to what the ChatGPT web UI does.

Automatically Check for Updates

Let the extension automatically check for updates every day. If a new version is available, you will be notified, along with the option to update the extension with a single click.

Persistent Storage

Enable more persistent storage of the extension's data, like AI Chat data or Custom Commands. This will back up a copy of this data to files on your computer. Useful for saving large amounts of data. Note: With this option off, your data is already well preserved. Do not enable this if you have sensitive data.

Enable Cursor Icon

Show a cursor icon when the response is loading - cosmetic option only.

Code Interpreter (BETA)

Allows GPT to execute Python code locally. The model has been instructed to strictly only produce safe code, but use at your own risk!

Only models with function calling capabilities support this feature. Currently, this includes only selected DeepInfra models.

FAQs

Why is this extension not on the official Raycast store?

By default, this extension comes with a number of third-party providers which you can use for free. Raycast doesn't like that because it's not possible to entirely verify the quality of these providers. (I do provide all the privacy details here, though, and the extension is open-source.) ...and also because they're selling their own AI.
Also, for me as a developer, publishing updates to the Raycast store is too slow and troublesome; I have to submit a PR, wait a week for it to be reviewed, and possibly have it rejected. This is not a good experience for me or for users.
Thus, the extension will have to be installed from source. Regarding this, I apologize as it's indeed more complicated than downloading it from the store. I have tried my best to make the installation process quick and streamlined - please do provide feedback on whether it was simple enough!
How does this extension compare to the paid Raycast AI? Why should I use this instead?

I’ve noticed many users subscribing to Raycast AI, which is quite expensive, and then only using it for a few casual chats a day. Honestly, that’s unnecessary. Here’s my honest suggestion: Everyone should first try out raycast-g4f. Here’s why:

Freedom. You get to choose whatever provider/API to use, and can even add multiple at once. OpenAI, Anthropic, Google… basically any API out there. (“Can I use my OpenAI API Key in Raycast AI?” No, you can’t.) That also means your AI access isn’t just locked inside Raycast. (“Can I use my Raycast AI in other apps?” No, you can’t.)
Price. This extension is completely free to use if you're sticking with the built-in providers. And if you want to use your own API, you pay only for what you use. That’s cheaper than raycast AI. There is no fixed price - you can choose whatever provider you want. You can even run models locally and connect them to the extension.
Privacy. The extension is open source and it respects your privacy. Everything is stored only on your device, and you choose what data you send.
Why is the UI worse than Raycast AI?

Because the developer API that Raycast provides is limited, it's not possible to replicate the Raycast AI interface exactly. The components I can use are very simple, and a lot of the features in built-in Raycast commands are not available to extension developers.
However, I've spent a lot of effort trying to make the UI really intuitive, and I'm always open to feedback on how to improve it!
The extension isn't working! (e.g. I sent a message but there is no response)

Sometimes third party providers can be slow or unresponsive. If you're experiencing this issue, please try again in a few minutes; or if the problem persists, please try switching to another provider.
If you've tried various providers and the issue still persists, please open an issue on GitHub!
How do I contribute to the extension?

I welcome all contributions! If you have an idea for a new feature, or if you've found a bug, please open an issue.
If you'd like to contribute code, please open a pull request, and I'll make sure to review it as soon as possible.
Powered by DartNode

Star History

Star History Chart

License & Acknowledgements

License: GPLv3. Full license is found in LICENSE.txt.

The code base is derived from Raycast Gemini by Evan Zhou.

Third-party libraries used for generation:

g4f-image
gemini-ai-sdk
(Both packages are maintained by the extension author.)

Some of the code in this repository was inspired or ported from the original gpt4free project (written in Python).
About

Raycast extension to use GPT, Claude, Llama, and more... all for FREE! + Full support for custom APIs.

Topics
chatbot  gemini  gpt  claude gpt-4  raycast-extension  chatgpt free-gpt  gpt4free  llama3  gpt-4o
Resources
 Readme
License
 GPL-3.0 license
 Activity
Stars
 958 stars
Watchers
 9 watching
Forks
 69 forks
Report repository
Releases 52

v5.5.1
Latest
on Apr 15
+ 51 releases
Packages

No packages published
Contributors
2

@XInTheDark
XInTheDark Muzhen Gaming
@jfernandogt
jfernandogt Fernando Barrios - jfergt
Languages

JavaScript
99.6%
 
Shell
0.4%
Footer
© 2025 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact
Manage cookies
Do not share my personal information




Skip to content
Navigation Menu
XInTheDark
raycast-g4f
 
Type / to search
Code
Issues
16
Pull requests
1
Discussions
Actions
Projects
Wiki
Security
Insights
Owner avatar
raycast-g4f
Public
XInTheDark/raycast-g4f

t
Name		
XInTheDark
XInTheDark
Add Drafts feature in AI Chat
61b9592
 · 
4 days ago
.github
Add GitHub issue templates
11 months ago
assets
Update logo and icons (#133)
8 months ago
src
Add Drafts feature in AI Chat
4 days ago
.eslintrc.json
Update Google Gemini models to exp-0827, update ESLint config
10 months ago
.gitignore
Preferences rework (#167)
6 months ago
.prettierrc
Initial commit
last year
LICENSE.txt
Create LICENSE.txt
last year
Privacy.md
Add Mhystical provider (#152)
7 months ago
README.md
Update README.md
last week
package-lock.json
Refactor provider initialization
2 months ago
package.json
Refactor provider initialization
2 months ago
requirements.txt
Fix DuckDuckGo web search (#147)
7 months ago
Repository files navigation
README
GPL-3.0 license
Raycast-G4F (GPT4Free)

Use the powerful GPT-4, Llama-3 and more AI models on Raycast, for FREE! + Full support for custom APIs.

Homepage · Privacy Policy · FAQs · Discord

Screenshots

1 2 3 4
Getting Started

"If you like the extension, please consider giving it a ✨star✨ tysm!" - the developer, probably

Prerequisites

Install the Raycast app.
Currently, Raycast is only available for macOS. Windows support is in progress.
Install Node.js.
The minimum version recommended is v20.18.1. If you're using an older version, you may encounter issues.
Installation

This extension is currently not available on the Raycast Extension store, but installation from source is extremely simple.

Download the source code from the latest release, or clone the repository.
Navigate to the directory, and open a Terminal window at the downloaded folder.
Run npm ci --production to install required dependencies.
(Optional) Run pip3 install -r requirements.txt to install Python dependencies. These are required for some features, e.g. web search.
Run npm run dev to build and import the extension.
The extension, and its full set of commands, should then show up in your Raycast app.

Troubleshooting

Please open an issue if any unexpected problems occur during installation.

Updating

Automatically

There is built-in support for updating within the extension itself! Simply run the "Check for Updates" command in the extension, and it will take care of the update process for you. Furthermore, the "Automatically Check for Updates" feature is available in the preferences (enabled by default).

Manually

In the command line, run git pull, npm ci --production and npm run dev (in that order).

You might want to update manually if the automatic update doesn't work (please also open a GitHub issue if this is the case); updating manually also allows you to fetch and view the latest changes to the source code.

Summary

▶️️ Streaming support - see messages load in real-time, providing a seamless experience.
⚡ Ask anything from anywhere - with 18 commands available, there's something for you no matter what you need.
💪 Support for many providers & models (more info below!)
💬 Chat command - interact with the AI in a conversation, and your chat history will be stored in the extension.
🌐 Web search - let GPT search the web for the latest information.
📄 File upload - you can upload image, video, audio and text files to the AI. (only available for a few providers, more to come!)
🎨 Image generation capabilities - imagine anything, and make it reality with state-of-the-art models.
✏️ Custom AI Commands - create your own commands with custom prompts!
Providers & Models

List of built-in providers
Custom APIs

The extension fully supports custom APIs! You can use any OpenAI-compatible API and connect it.

Get started by reading the help page.

Provider-specific notes

Google Gemini: An API Key is required to use this model. You can get one completely for free:
Go to https://aistudio.google.com/app/apikey
Sign in to your Google account if you haven't done so.
Click on "Create API Key" and follow the instructions there.
Copy the API Key and paste it into the corresponding box in the extension preferences.
The rate limit for Google Gemini is 1500 requests per day (as of the time of writing). This should be much more than enough for any normal usage. If your use case needs an increased rate limit, you can even create multiple API Keys with different Google accounts; separate them with commas in the preferences.

Google Gemini: This provider supports File upload functionality, as well as the Ask About Screen Content command! To upload a file in AI Chat, press Command-Enter or select "Compose Message" from the actions. Then, simply click on the upload button to get started.
Features

Note

As of v5.0, the extension preferences are now found in the "Preferences" command. Please use this command to access the preferences instead of the Raycast preferences.
Web Search

Let GPT decide to search the web for information if it does not have enough knowledge or context. Uses DuckDuckGo search, fast and free.

Usage

Enabling web search is fast and easy. Go to the extension preferences, and the "Web Search" option will be available. There are 4 options:

Disabled (default)
Automatic: Enable Web Search only in AI Chat. GPT will automatically decide when to use it.
Balanced: Use Web Search in every query for AI commands¹, and automatically in AI Chat. This is basically an extension of the "Automatic" option.
Always: Always use Web Search for every query, both in AI Chat and in commands¹.
¹: Commands that support Web Search are: Ask AI, Ask About Selected Text, Explain. Other commands will not use Web Search.

Web Search is also available in the following commands:

Custom AI Commands: You can enable Web Search for each command individually.
AI Chat: You can enable Web Search for each chat individually.
AI Presets: You can enable Web Search for each preset individually.
Smart Chat Naming

Let GPT automatically come up with a name for the current chat session after you send the first message. For example, this is similar to what the ChatGPT web UI does.

Automatically Check for Updates

Let the extension automatically check for updates every day. If a new version is available, you will be notified, along with the option to update the extension with a single click.

Persistent Storage

Enable more persistent storage of the extension's data, like AI Chat data or Custom Commands. This will back up a copy of this data to files on your computer. Useful for saving large amounts of data. Note: With this option off, your data is already well preserved. Do not enable this if you have sensitive data.

Enable Cursor Icon

Show a cursor icon when the response is loading - cosmetic option only.

Code Interpreter (BETA)

Allows GPT to execute Python code locally. The model has been instructed to strictly only produce safe code, but use at your own risk!

Only models with function calling capabilities support this feature. Currently, this includes only selected DeepInfra models.

FAQs

Why is this extension not on the official Raycast store?

By default, this extension comes with a number of third-party providers which you can use for free. Raycast doesn't like that because it's not possible to entirely verify the quality of these providers. (I do provide all the privacy details here, though, and the extension is open-source.) ...and also because they're selling their own AI.
Also, for me as a developer, publishing updates to the Raycast store is too slow and troublesome; I have to submit a PR, wait a week for it to be reviewed, and possibly have it rejected. This is not a good experience for me or for users.
Thus, the extension will have to be installed from source. Regarding this, I apologize as it's indeed more complicated than downloading it from the store. I have tried my best to make the installation process quick and streamlined - please do provide feedback on whether it was simple enough!
How does this extension compare to the paid Raycast AI? Why should I use this instead?

I’ve noticed many users subscribing to Raycast AI, which is quite expensive, and then only using it for a few casual chats a day. Honestly, that’s unnecessary. Here’s my honest suggestion: Everyone should first try out raycast-g4f. Here’s why:

Freedom. You get to choose whatever provider/API to use, and can even add multiple at once. OpenAI, Anthropic, Google… basically any API out there. (“Can I use my OpenAI API Key in Raycast AI?” No, you can’t.) That also means your AI access isn’t just locked inside Raycast. (“Can I use my Raycast AI in other apps?” No, you can’t.)
Price. This extension is completely free to use if you're sticking with the built-in providers. And if you want to use your own API, you pay only for what you use. That’s cheaper than raycast AI. There is no fixed price - you can choose whatever provider you want. You can even run models locally and connect them to the extension.
Privacy. The extension is open source and it respects your privacy. Everything is stored only on your device, and you choose what data you send.
Why is the UI worse than Raycast AI?

Because the developer API that Raycast provides is limited, it's not possible to replicate the Raycast AI interface exactly. The components I can use are very simple, and a lot of the features in built-in Raycast commands are not available to extension developers.
However, I've spent a lot of effort trying to make the UI really intuitive, and I'm always open to feedback on how to improve it!
The extension isn't working! (e.g. I sent a message but there is no response)

Sometimes third party providers can be slow or unresponsive. If you're experiencing this issue, please try again in a few minutes; or if the problem persists, please try switching to another provider.
If you've tried various providers and the issue still persists, please open an issue on GitHub!
How do I contribute to the extension?

I welcome all contributions! If you have an idea for a new feature, or if you've found a bug, please open an issue.
If you'd like to contribute code, please open a pull request, and I'll make sure to review it as soon as possible.
Powered by DartNode

Star History

Star History Chart

License & Acknowledgements

License: GPLv3. Full license is found in LICENSE.txt.

The code base is derived from Raycast Gemini by Evan Zhou.

Third-party libraries used for generation:

g4f-image
gemini-ai-sdk
(Both packages are maintained by the extension author.)

Some of the code in this repository was inspired or ported from the original gpt4free project (written in Python).
About

Raycast extension to use GPT, Claude, Llama, and more... all for FREE! + Full support for custom APIs.

Topics
chatbot  gemini  gpt  claude gpt-4  raycast-extension  chatgpt free-gpt  gpt4free  llama3  gpt-4o
Resources
 Readme
License
 GPL-3.0 license
 Activity
Stars
 958 stars
Watchers
 9 watching
Forks
 69 forks
Report repository
Releases 52

v5.5.1
Latest
on Apr 15
+ 51 releases
Packages

No packages published
Contributors
2

@XInTheDark
XInTheDark Muzhen Gaming
@jfernandogt
jfernandogt Fernando Barrios - jfergt
Languages

JavaScript
99.6%
 
Shell
0.4%
Footer
© 2025 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact
Manage cookies
Do not share my personal information