OpenAI Assistants API
The ai
CLI allows you to create, manage, and interact with OpenAI's Assistants API.
Prerequisites
Before you begin, you'll need to install the ai
CLI and set up Azure OpenAI.
Install the ai
CLI
Setup Azure OpenAI
Listing, creating, updating, and deleting assistants
List all assistantsai chat assistant list
Create an assistantai chat assistant create --name MyAssistant
Update an assistantai chat assistant update --instructions @instructions.txt
Delete an assistantai chat assistant delete --id ID
See the persisted config from ai chat assistant create/update
View assistant configurationai config @assistant.id
Picking a new assistant
List all assistantsai chat assistant list
Set assistant by IDai config --set assistant.id ID
Clearing the assistant ID from the config
Clear assistant IDai config --clear assistant.id