On this page
Agent Tools
Entry point for connecting Claude Code, Codex, OpenCode, OpenClaw, Hermes, Pi, Cherry Studio, Trae, WorkBuddy, and DeepSeek Harness to HiAPI.
Connect text models with an API Key Generate a config for Claude Code, Codex, OpenCode, or Hermes — or import it into CC Switch in one click. MCP one-click setup (image, video, audio) Approve once in the browser and let Claude, ChatGPT, Codex and others call HiAPI media models directly.
This section explains how to connect common agent tools to HiAPI text models. Start with Get an API Key, then configure the tool you use.
Before you start
- Get an API Key: create a key in the console and have it ready before you connect.
- 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.
Command line
| Tool | Best for |
|---|---|
| Claude Code | Understanding, editing, and collaborating on code with Claude in the terminal |
| Codex CLI | Running code tasks with GPT models in the terminal |
| OpenCode | Using several models from one config file while 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 |
| DeepSeek Harness | A DeepSeek coding agent that starts in the terminal and runs in the browser |
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 |
To let these tools call HiAPI’s image, video and audio generation, set up MCP as well.