Agent tools
There are two independent ways to wire HiAPI into an agent tool. Pick by what you want the agent to do.
| What you want the agent to do | How to connect | Entry |
|---|---|---|
| Chat, write code and run agent workflows on text models | Point the tool at HiAPI’s base URL and API key | Text reasoning |
| Generate images, video and audio | Install the MCP server or Agent Skills | Media generation |
They don’t conflict — a tool can have text only, or both.
Setup
- Get an API key: create a key in the console and have it ready before you connect.
- API key setup: pick your tool and copy a ready-made config with the right base URL and key filled in.
- Base URL & protocols: the URL differs by protocol, and a wrong one usually returns 404 right away.
- Node.js setup: Claude Code, Codex CLI, Pi and DeepSeek Harness all need it first.
- CC Switch install and one-click import: set up Claude Code, Codex and OpenCode without editing config files.
- Common errors: 401, 404, 429 and other errors any tool can hit, plus why you should check the request log before retrying.
Text reasoning
Point the tool at HiAPI’s OpenAI-compatible endpoint and you can chat, write code and run agent workflows on Claude, GPT and DeepSeek text models.
There are two usual shapes: command-line tools take a config file or environment variables, desktop apps take a custom provider in their settings. Pick the page for your tool below and follow it.
Command line
| Tool | Best for |
|---|---|
| Claude Code | Understanding, editing and collaborating on code with Claude in the terminal |
| Codex CLI | Handling coding tasks with GPT models in the terminal |
| OpenCode | One config file for multiple models, coding in the terminal |
| OpenClaw | An open-source agent: chat in the web dashboard or terminal, with models and tools managed in one place |
| Hermes | An open-source agent: connect to HiAPI in a few steps with its built-in wizard |
| Pi | Working on project files with a lightweight coding agent in the terminal |
Desktop apps & clients
| Tool | Best for |
|---|---|
| Claude Desktop | Using HiAPI’s Claude models in the Claude desktop app |
| Codex Desktop | Using GPT models in the Codex desktop app, entirely through the UI |
| Cherry Studio | Using Claude, GPT and DeepSeek in one chat client |
| Trae | Adding a custom model to an AI IDE for coding |
| WorkBuddy | Adding a custom model in the WorkBuddy desktop assistant |
| DeepSeek Harness | A DeepSeek coding agent that starts in the terminal and runs in the browser |
Media generation
Once text is wired up the agent can only talk. To make it actually produce images, video and audio, give it both the knowledge and the permission to call HiAPI’s media endpoints — two ways, pick the one your client supports.
| Approach | Best for | What it gives you |
|---|---|---|
| MCP | Most MCP clients (Cursor, VS Code, Claude Desktop and more) | Connect to https://mcp.hiapi.ai/mcp and image, video, audio and text tools are available after one authorization — nothing to deploy locally |
| Skills | Claude Code, Codex, OpenClaw | The agent learns how to fill in each model’s parameters and turns a request into a correct call |
They complement each other: MCP provides the capability to call, Skills provide the knowledge of how to call. Install both if your client supports it.