Cookbook

Coding agents

Which AI Hub route each coding agent uses, with links to its configuration guide.

Each guide gives the client settings and the relevant API limits. Use an exact catalogue model ID with the tool support required by your project.

ClientAI Hub routeStatus
Claude Code/api/v1/messagesSetup guide
Codex CLI/api/v1/responsesSetup guide
Qwen Code/api/v1/chat/completionsSetup guide
Hermes Agent/api/v1/chat/completionsSetup guide
OpenClaw/api/v1/chat/completionsSetup guide
OpenCode/api/v1/chat/completionsSetup guide
Claude Desktop/api/v1/messagesConnection guide
Codex Desktop/api/v1/responsesConnection guide

Limits that apply to every agent

  • The Responses route is stateless: store: true, previous_response_id and background: true are refused. Hosted tools such as web search are ignored; turn them off in the client.
  • The Messages route refuses mcp_servers, container and document blocks, and ignores extended thinking and server tools.
  • Fields a route ignores are listed in the X-TokenHub-Ignored-Fields response header.
  • An agent resends its instructions and tools every turn. Use a dedicated key with a monthly spend cap.

To give an agent AI Hub's docs and catalogue as tools, connect the AI Hub MCP server. That is separate from making AI Hub the agent's model provider.