omp), a coding agent built on
Pi.
Before you begin
Make sure you have:Connect to the Modular provider
Modular is a built-in provider in Oh My Pi, so you can connect a model from any of our shared endpoints with only an API key.-
Start Oh My Pi:
-
Run the
/login modularcommand and paste your API key. You can skip this step if you set theMODULAR_API_KEYenvironment variable before you start Oh My Pi. -
Run the
/modelcommand and choose a Modular Cloud model.
Connect a dedicated deployment
Each dedicated deployment runs on your organization’s own endpoint, so you need to add it to Oh My Pi as a custom provider:- Open your deployment and copy its Dedicated Endpoint and Model ID.
-
Export your API key as an environment variable:
-
Open (or create) the
~/.omp/agent/models.ymlconfig file and add a provider for your deployment:Inmodels.ymlbaseUrl, paste the dedicated endpoint you copied in step 1 with/v1appended. Then replace the model ID with your deployment’s model ID. Modular Cloud supports the OpenAI chat completions API, so setapitoopenai-completions. Avoid naming the providermodular. That ID belongs to the built-in Modular provider, so your settings would override it instead of adding a separate provider. -
Start Oh My Pi, run the
/modelcommand, and select your deployment’s model.