Run Coding Agents on Muapi
Muapi speaks the native protocols of popular coding agents, so Claude Code and Codex CLI can use your Muapi credits and a single API key.
| Agent | Protocol | Base URL |
|---|---|---|
| Claude Code | Anthropic Messages | https://api.muapi.ai/anthropic |
| Codex CLI | OpenAI Responses | https://api.muapi.ai/openai/v1 |
Install the skill (optional)
npx skills add https://muapi.ai
The muapi-chat-agents skill lets an agent configure itself: it reads the live model list and writes the right settings. Or follow the manual steps on each agent's page.
Before you start
- Create an API key at muapi.ai/dashboard and export it as
MUAPI_API_KEY. - Keep credit in your account. Each request is checked against your balance before it runs, using a worst-case estimate (your prompt plus the full output limit). A large request on a large model can reserve a dollar or more; whatever isn't used is returned right away.
- Prices match the same models in the Muapi API. Usage shows in your dashboard.
Rules
- Never put the full request URL in the base URL; agents add
/v1/messagesor/responsesthemselves. - Read model ids from the models endpoint rather than guessing.
- Keep provider settings in user-level config files, never in a committed project file.
Models
curl -s -H "Authorization: Bearer $MUAPI_API_KEY" https://api.muapi.ai/anthropic/v1/models
curl -s -H "Authorization: Bearer $MUAPI_API_KEY" https://api.muapi.ai/openai/v1/models