Client setup
Clients that support a custom OpenAI Base URL can usually connect to MomoyAI.
| Setting | Value |
|---|---|
| API Base URL | https://cpa.momoyai.com/v1 |
| API Key | Your MomoyAI API key |
| Model | Select from /v1/models |
OpenAI JavaScript SDK
Section titled “OpenAI JavaScript SDK”const client = new OpenAI({ apiKey: process.env.MOMOYAI_API_KEY, baseURL: "https://cpa.momoyai.com/v1",});General clients
Section titled “General clients”Claude Code, Codex, Cherry Studio, NextChat, and other tools may call the setting Base URL, API Host, or OpenAI Endpoint. Prefer the client’s credential store and never commit a key to a synced public config file.