Pi

Pi

Pi is a coding agent harness. The pi-mixlayer extension registers Mixlayer as a Pi provider through Mixlayer’s OpenAI-compatible Chat Completions API.

Create a Mixlayer API key

Before installing the extension, create an API key in the Mixlayer console.

Select + New Key, give it a name, and copy the secret. You will not be able to view the secret again after leaving the page. See API Keys for more details on creating and managing keys.

Install the extension

Run the following in your terminal:

pi install npm:pi-mixlayer
pi

Authenticate

Inside Pi, run:

/login

Select Use an API key, then choose Mixlayer from the provider list. Enter your Mixlayer API key when prompted. Pi stores the credential in ~/.pi/agent/auth.json.

Verify

Run pi --list-models to verify the registered models after installation.