Quickstart
Let’s learn how to start using oxy
Overview
In this quickstart guide, we will install oxy and bootstrap a simple setup that uses DuckDB as warehouse and OpenAI as LLM provider. For this walkthrough, you’ll need an OpenAI API key and access to a terminal.
Install and configure oxy
Oxy supports both Mac and Windows. To get started with oxy, you will need to
work within the terminal. For Mac users, we recommend using
iTerm2 as it offers better features, customization
options, and more frequent updates as compared to the stock Mac terminal. Other
great terminal options include the GPU-accelerated
Alacritty or AI-native
Warp. For windows, we recommend installing WSL 2 (search
forUbuntu
in the Microsoft store).
Once you have your terminal set up, follow the steps below:
Install oxy
Install oxy by running the following within your Mac/Linux/WSL terminal:
Upon successful installation, you should see the message “Oxy has been installed successfully.”
You may need to restart your terminal for the command to be recognized.
For transparency, you can review the installation script’s source code.
Create a sample repository
In order to get started with a base agent set up, run the following command in an empty directory where you want to store your project:
This command will generate the main oxy configuration file (config.yml
), a sample agent file, a sample workflow file, some data, and a sample semantic layer file.
If you use all the configuration defaults, you should be able to run the agent and workflow against the sample data out-of-the-box.
Connect oxy to OpenAI
For the model, we recommend using OpenAI’s gpt-4o. For alternative models, please refer to our integration documentation, here.
Replace OPENAI_API_KEY
with your actual OpenAI API key.
All Done
Congrats! You’re ready to start using Oxy now. If you haven’t changed the configuration defaults, you should be able to run the following commands to test out oxy against some sample sleep data: