Installation
This guide provides the fastest and easiest way to install WrenAI on your local computer. We support Linux, Windows, and Mac OSX computers.
Prerequisites
1. Install Docker Desktop on your local computer.
Please ensure the version of Docker Desktop at least >= 4.17.
2. Prepare an OpenAI API key
Please ensure that your Open API key has Full Permission(All).
The OpenAI key is used for generating SQL whenever a question is asked in WrenAI.
We will not store your OpenAI key for other purposes.
Using WrenAI Launcher
WrenAI Launcher is a program that we designed to make installation as easy as possible.
- Mac OSX
- Linux
- Windows
Download and run WrenAI Launcher
Execute following commands in the terminal.
curl -L https://github.com/Canner/WrenAI/releases/latest/download/wren-launcher-darwin.tar.gz | tar -xz && ./wren-launcher-darwin
You can see other versions from our release page on Github: https://github.com/Canner/WrenAI/releases
Set privacy & security setting
-
You will notice that the launcher will fail to run because this program is not verified by Apple yet.
-
Go to System Settings from the Apple menu, then click Privacy & Security in the sidebar. You will see
"wren-launcher-darwin" was blocked...
message. Click Allow Anyway.
Run the program
-
Click Open
-
Enter your OpenAI API key
-
Wait for the installation to finish
At this point, the installation is automatically running. This program will setup docker containers for you and open the application URL in the browser for you after installation.
-
Enjoy it!
If the launcher program doesn't open the URL for you, go to localhost:3000 to start using WrenAI.
Download and run WrenAI Launcher
Execute the following commands in the terminal.
curl -L https://github.com/Canner/WrenAI/releases/latest/download/wren-launcher-linux.tar.gz | tar -xz && ./wren-launcher-linux
You can see other versions from our release page on Github: https://github.com/Canner/WrenAI/releases
Run the program
-
Enter your OpenAI API key
-
Wait for the installation to finish
At this point, the installation is automatically running. This program will setup docker containers for you and open the application URL in the browser for you after installation.
-
Enjoy it!
If the launcher program doesn't open the URL for you, go to localhost:3000 to start using WrenAI.
Download WrenAI Launcher
Download the program: wren-launcher-windows.zip.
Unzip the file, and you will see an execution file called wren-launcher-windows.exe
.
Run WrenAI Launcher
-
Right-click on the
wren-launcher-windows.exe
and choose to run as administrator. -
You will see a
Microsoft Defender SmartScreen
popup, choose More info and click run anyway -
Enter OpenAI API key
Right-click to paste your API key to the command line.
-
Wait for the installation to finish
At this point, the installation is automatically running. This program will setup docker containers for you and open the application URL in the browser for you after installation.
-
Enjoy it!
If the launcher program doesn't open the URL for you, go to localhost:3000 to start using WrenAI.
Change OpenAI API Key
If you wish to change the OpenAI API Key you've previously used in WrenAI, please follow these steps to update the key.
- Run the WrenAI Launcher again and enter the OpenAI API key you'd like to use
- Restart WrenAI service
To restart WrenAI service using Docker Desktop, simply click on therestart
option listed in thewrenai
project.
Update WrenAI Version
If you'd like to upgrade your WrenAI version, please follow these steps:
- Download the WrenAI Launcher of the latest version and run it
You can simply use the command line provided in Using WrenAI Launcher. - Restart WrenAI service
To restart WrenAI service using Docker Desktop, simply click on therestart
option listed in thewrenai
project.
Troubleshooting
-
Wren-engine failed to start due to
qemu: uncaught target signal 11 (Segmentation fault)
issueIf you're using Apple Silicon Mac, you saw WrenAI failed to launch and
wren-engine
container failed to start due to following errors:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Seamentation fault
...please upgrade your docker desktop to the latest version or enable
Use Rosetta for x86/amd64 emulation on Apple Silicon
option in docker desktop settings.