Skip to main content

Connect Oh My Pi with Zeldoc.ai

Oh My Pi (omp) is an open source fork of Pi with more built in: LSP, a debugger, subagents, and browser and GitHub tools. Providers are declared in a YAML file, so Zeldoc.ai takes a few lines.

Prerequisites​

Add Zeldoc.ai to models.yml​

Create or edit ~/.omp/agent/models.yml and add a zeldoc provider:

providers:
zeldoc:
baseUrl: https://api.zeldoc.ai/v1
apiKey: ZELDOC_API_KEY
api: openai-completions
models:
- id: zdev
name: ZDev
reasoning: true
input: [text, image]
contextWindow: 1000000
maxTokens: 131072
thinking:
mode: effort
efforts: [low, high, max]
defaultLevel: high
  • apiKey — The name of the environment variable that holds your key, without a $.
  • thinking — ZDev's three thinking levels, lowest first. defaultLevel is the one new sessions start with.
  • input — ZDev accepts images as well as text.

Set the environment variable before starting omp:

export ZELDOC_API_KEY=your-api-key
Set the variable first

If ZELDOC_API_KEY isn't set, omp sends the name ZELDOC_API_KEY itself as the key, and every request fails with an authentication error.

Persist the environment variable

Add the export line to your shell profile (e.g. ~/.bashrc or ~/.zshrc) so the key is available in every new terminal session.

Make ZDev the default​

To use ZDev in every new session, add this to ~/.omp/agent/config.yml:

modelRoles:
default: zeldoc/zdev

Verify the connection​

Run a one-off prompt:

omp -p --model zeldoc/zdev "Reply with the single word OK."

A reply from the model confirms Zeldoc.ai is connected. In an interactive session, pick ZDev with /model.

Use other Zeldoc.ai models​

Add more entries to the models list, using each model ID exactly as Zeldoc.ai reports it (see list your available models). Context windows and thinking levels differ between models, so don't copy ZDev's values to another model.