Перейти к основному содержанию
omp (oh-my-pi) — кодинг-агент в терминале. ethereal подключается как OpenAI-совместимый провайдер.

1. Ключ

Положи свой eth-... в переменную окружения:
export ETHEREAL_API_KEY="eth-..."
Чтобы не вводить каждый раз — добавь в ~/.zshrc / ~/.bashrc.

2. Провайдер

Файл ~/.omp/agent/models.yml (на Windows — C:\Users\<имя>\.omp\agent\models.yml):
providers:
  ethereal:
    baseUrl: https://api.ethereal.llc/v1
    apiKey: ETHEREAL_API_KEY
    api: openai-completions
    models:
      - id: claude-opus-4-8
        name: Claude Opus 4.8
        api: openai-completions
        reasoning: true
        input: [text, image]
        contextWindow: 200000
        maxTokens: 32000
      - id: claude-sonnet-4-6
        name: Claude Sonnet 4.6
        api: openai-completions
        reasoning: true
        input: [text, image]
        contextWindow: 200000
        maxTokens: 64000
      - id: claude-haiku-4-5
        name: Claude Haiku 4.5
        api: openai-completions
        reasoning: true
        input: [text, image]
        contextWindow: 200000
        maxTokens: 32000

3. Модель по умолчанию

Файл ~/.omp/agent/config.yml (Windows — C:\Users\<имя>\.omp\agent\config.yml):
modelRoles:
  default: ethereal/claude-opus-4-8
  smol: ethereal/claude-haiku-4-5
Запусти omp — он пойдёт через ethereal. Сменить модель: флаг --model ethereal/claude-sonnet-4-6 или переключатель моделей в сессии.
apiKey — это имя переменной окружения (ETHEREAL_API_KEY), а не сам ключ. Списание идёт по тарифу модели за токены сессии — баланс и разбивку смотри в кабинете.