> For the complete documentation index, see [llms.txt](https://docs.haikaldev.my.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.haikaldev.my.id/koneksi-ai/ohhmyagent.md).

# OhhMyAgent

[OhhMyAgent](https://ohhmyagent.com) menyediakan GPT 5.6 dan Opus 5 lewat satu API key — otak utama AI-Haikaru.

Bagian setup di halaman ini pendek. **Bagian keanehan gateway yang panjang** — dan itu bagian paling berharganya, karena semua gejalanya menyesatkan dan tidak satu pun memunculkan error.

## Setup

{% stepper %}
{% step %}

### Buat API key

Daftar di [ohhmyagent.com](https://ohhmyagent.com) → buat API key.
{% endstep %}

{% step %}

### Isi `.env`

```env
API_KEY=sk-...
BASE_URL=https://ohhmyagent.com
MODEL=ohh/gpt-5.6
PREMIUM_MODEL=ohh/opus-5
```

`BASE_URL` boleh dengan atau tanpa `/v1` — dinormalkan otomatis oleh `config/models.js:normalizeBaseURL`.
{% endstep %}
{% endstepper %}

## Model & kuota

| Model         | Peran di bot                                                                  | Kuota (akun penulis) |
| ------------- | ----------------------------------------------------------------------------- | -------------------- |
| `ohh/gpt-5.6` | Utama — semua chat & tool calling. Auto-route lintas kluster (sol/terra/luna) | 200 jt token         |
| `ohh/opus-5`  | Premium — **hanya** saat user minta eksplisit (*"pakai opus"*)                | 50 jt token          |

Dua endpoint yang dipakai bot:

* `POST /v1/chat/completions` — OpenAI-compatible, untuk semua percakapan & tool calling
* `POST /v1/messages` — Anthropic-compatible, **khusus vision** (alasannya di bawah)

## Keanehan gateway

{% hint style="warning" %}
Semua di bawah ini ditemukan dari debugging produksi, bukan dari dokumentasi. Kalau kamu fork proyek ini dan menemui gejala yang sama — ini jawabannya.
{% endhint %}

## Perilaku auto-routing

`ohh/gpt-5.6` dirutekan otomatis lintas kluster (sol/terra/luna) oleh gateway — kamu tidak perlu, dan tidak bisa, memilihnya.

{% hint style="info" %}
Konsekuensinya: **latensi bisa berbeda antar jam**. Itu normal dan bukan tanda bot melambat.
{% endhint %}

## Health check

Bot mem-probe gateway saat start (root URL, tanpa `/v1`). Kalau gateway tidak sehat, hasilnya dilaporkan di log start — dan bot tetap hidup untuk jalur non-AI (`/ws`, `.ping`, `.mp3`).

Ini penerapan langsung prinsip *"gagal dengan kalimat, bukan diam-diam"* dari [filosofi desain](/tentang/tentang.md).

## Terkait

* Kembali ke peta besar: [Peta koneksi](/koneksi-ai/koneksi-ai.md)
* Provider kedua: [Google AI Studio](/koneksi-ai/google-ai-studio.md)
* Gejala aneh lainnya: [Troubleshooting](/referensi/troubleshooting.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.haikaldev.my.id/koneksi-ai/ohhmyagent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
