Client integrationsBeginnersUpdated

Set up Oh My Pi

The example uses GPT-6.1 Sol (gpt-6.1-sol). Get an I Code Easy API key from API keys. Choose the Standard endpoint for GPT in Endpoint selection.

Installation

Use Bun 1.4.4 or later.

bash
bun install -g @oh-my-pi/pi-coding-agent

Oh My Pi

This configuration sends requests to /v1/responses over HTTP.

Merge the icodeeasy entry below into providers in ~/.omp/agent/models.yml. Set apiKey to the environment variable name ICODEEASY_API_KEY.

yaml
providers:
  icodeeasy:
    baseUrl: https://api.icodeeasy.cc/v1
    api: openai-responses
    apiKey: ICODEEASY_API_KEY
    models:
      - id: gpt-6.1-sol
        name: GPT-6.1 Sol
        preferWebsockets: false

Set the key in the terminal that launches the client. Replace YOUR_API_KEY with your key.

bash
export ICODEEASY_API_KEY='YOUR_API_KEY'
powershell
$env:ICODEEASY_API_KEY = 'YOUR_API_KEY'

preferWebsockets: false keeps this model on HTTP even if WebSockets are enabled in Oh My Pi.

Start a session

Run omp, open /model, and select icodeeasy/gpt-6.1-sol.

See Set up Pi for Pi's JSON configuration.

Verify your first request

Send a short text prompt and check the model and request status in Usage logs. For a 401 error, check the key. For a model or permission error, check the model ID and selected endpoint. If the connection is unstable, try https://jp.icodeeasy.cc or https://sg.icodeeasy.cc and keep the /v1 path.

Official client documentation