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.
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.
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.
export ICODEEASY_API_KEY='YOUR_API_KEY'
$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
Related guides
Set up Pi
In Pi, register a custom model in models.json with I Code Easy, then verify the first request.
OpenAI Responses
Send input using the OpenAI Responses format. This page shows HTTP streaming. See the related guide for Codex client setup.
How do I troubleshoot slow connections or failed requests?
Match 401, 403, 429, timeouts, and Gemini path errors before changing hosts. Switch to the jp or sg backup domain only after the network is the problem.