AI Gateway: Six Tool Integration Capability Summary

Last updated: 2026-08-20 (Asia/Shanghai)

1. Overview

This document summarizes the protocol capabilities, verification requirements, and known limitations when integrating the following six AI coding tools with AI Gateway:

  • WorkBuddy
  • OpenCode
  • TRAE International
  • OpenClaw
  • Kilo Code
  • Codex CLI

This document helps you confirm:

  1. Which API protocols each tool can be configured for;
  2. How to determine whether a model is usable when selecting one;
  3. The confirmed baseline capabilities and known compatibility limitations for each tool.

This document provides a capability overview. For actual installation, configuration, and troubleshooting, refer to the configuration guide for the corresponding tool.

Example AI Gateway Base URL:

<https://cn-shanghai-alicloud-aimesh.api.singdata.com/gateway/v1>

2. Required Reading Before Use

The model catalog in AI Gateway may change based on API key permissions, subscription plan, routing, and upstream status. Always use the real-time query result for the current API key — do not treat historical model lists as a long-term valid catalog.

For a model to be usable, all of the following conditions must be met simultaneously:

Model appears in the current API key's catalog for the target protocol ↓ A standard request using the same protocol returns HTTP 200 and final text ↓ The target tool uses the correct provider or API format ↓ The target tool's actual message returns final text

Therefore:

  • A model appearing in /models only means the current API key can see it;
  • A successful Chat request does not mean Responses will succeed;
  • A successful Anthropic Messages request does not mean OpenAI Chat will succeed;
  • A successful standard request does not mean the tool is fully configured;
  • One model succeeding does not mean other models in the same catalog or from the same vendor will succeed;
  • Successful basic text does not mean streaming, tool calling, multimodal, and long-context are all available.

3. Protocol Capability Summary for All Six Tools

ToolOpenAI Chat CompletionsOpenAI ResponsesAnthropic MessagesMost Important Current Limitation
WorkBuddySupported; is the base protocol for custom model configurationCustom model configuration not supportedCustom model configuration not supported"Custom protocol" only changes URL handling, it does not transform the request format; Claude can only be used if AI Gateway provides an OpenAI Chat-compatible route
OpenCodeSupported; uses OpenAI Compatible providerSupported; requires a separately configured Responses providerSupported; uses Anthropic providerThe three providers are independent; a successful one protocol does not automatically fall back to another
TRAE InternationalSupported; can be selected in custom model configurationCustom configuration not supportedSupported; can be selected in custom model configurationThe custom model page only has Chat and Anthropic API formats; a successful Responses request cannot be added directly to TRAE
OpenClawSupported; uses openai-completions providerSupported; uses openai-responses providerSupported; uses anthropic-messages providerA separate provider must be created for each protocol that passes standard request testing; a model ID prefix does not automatically select a protocol
Kilo CodeSupported; uses OpenAI Compatible providerTool supports it, but a known streaming event compatibility issue currently existsSupported; uses Anthropic providerTested with Kilo Code CLI 7.4.22: Responses standard request succeeds, but actual client messages fail due to SSE-Keep-Alive event parsing failure
Codex CLICustom provider not supportedSupported; also the only native wire protocolCustom provider not supportedModels must have a Responses route to connect natively; models that only support Chat or Anthropic require a translation layer or a different client

4. How to Choose a Tool Based on Model Type

This table is a recommendation for the first test path to try, not a fixed model list. The final determination is always based on the real-time catalog of the current API key and actual requests.

Model TypePriority Protocol to TestAvailable ToolsSpecial Notes
OpenAI GPT, Codex, and other OpenAI seriesOpenAI Chat or OpenAI ResponsesChat: WorkBuddy, OpenCode, TRAE, OpenClaw, Kilo; Responses: OpenCode, OpenClaw, Kilo, Codex CLIEach model requires separate testing for Chat and Responses; Kilo Responses has a known compatibility issue
Anthropic ClaudeAnthropic MessagesOpenCode, TRAE, OpenClaw, Kilo CodeWorkBuddy cannot send Anthropic Messages directly; Codex CLI requires a Responses compatibility layer
DeepSeekTest OpenAI Chat first; if available in the catalog, then test Anthropic Messages or ResponsesChat: the five non-Codex tools; Anthropic: OpenCode, TRAE, OpenClaw, Kilo; Responses: only for tools that support Responses after actual successDo not assume Responses is available based on the DeepSeek name
QwenTest OpenAI Chat first; test other protocols one by one based on the catalogDepends on which protocols actually succeed for that modelOne Qwen model succeeding does not mean other Qwen models or other protocols will succeed
Gemini, Grok, Mistral, Meta, GLM, Kimi, MiniMax, etc.Use the compatible protocol that AI Gateway actually providesChoose tools that support that protocolVendor name is not a protocol switch; always query the catalog and make a minimal request

5. Verification Scope and Known Limitations

The table below lists the confirmed protocol integration capabilities for each tool and the acceptance tests that must be completed before use. A model not listed here does not mean it is unavailable; verify each model individually using the real-time catalog for the current API key.

ToolConfirmed Integration CapabilitiesMust Complete Before UseKnown Limitations or Recommendations
WorkBuddyOpenAI Chat Completions basic text integration pathBoth the standard Chat request for the target model and an actual WorkBuddy message must return final textDo not enter an Anthropic Messages or Responses URL directly into WorkBuddy's custom model configuration
OpenCodeCan configure OpenAI Chat, OpenAI Responses, and Anthropic Messages providers separatelyThe target model must first pass a standard request for the same protocol, then return final text via the corresponding OpenCode providerThe three providers are independent; a Chat provider cannot substitute for a Responses provider
TRAE InternationalCan configure OpenAI Chat and Anthropic Messages custom modelsComplete standard request, TRAE connectivity test, and Agent actual messageDoes not provide an OpenAI Responses custom format
OpenClawCan configure Chat, Responses, and Anthropic providers separatelyComplete standard request, provider configuration, Gateway check, and openclaw agent actual messageModels must be added to the provider matching the protocol that passed testing
Kilo Code CLIqwen/qwen3.6-flash passed OpenAI Chat basic text validation; anthropic/claude-opus-5 passed Anthropic Messages basic text validationOther models and protocols still require separate standard requests and kilo run verificationopenai/gpt-5.5 Responses standard request succeeds, but Kilo actual messages show text part SSE-Keep-Alive not found; this path is not recommended at this time
Codex CLISupports OpenAI Responses custom providerBoth the Responses standard request for the target model and codex exec must return final textDoes not support direct configuration of Chat or Anthropic Messages; when Claude is needed, a Responses compatibility layer must be provided

6. Why the Model List Requires Real-Time Queries

The range of available models is determined by the following factors together:

Number of models and model IDs = AI Gateway's current routing + current API key permissions + tenant or subscription plan + upstream real-time status

Therefore, under the same Base URL, different API keys may see different catalogs; the same API key may also see different catalogs depending on whether OpenAI or Anthropic authentication is used.

Using historical model lists directly may cause the following issues:

  • Decommissioned or unauthorized models remain marked as available;
  • Newly added models are not displayed in time;
  • Catalog visibility is mistakenly interpreted as protocol availability;
  • Success with one protocol is incorrectly assumed to apply to other protocols;
  • A successful standard request is mistakenly assumed to mean all clients will succeed.

Therefore, the specific model list must be retrieved in real time using the current API key, and verification must be completed for the target protocol and tool.

7. Getting the Model Catalog for the Current API Key

First, safely load the API key in Terminal:

read -s 'AI_GATEWAY_API_KEY?Enter API Key: ' echo export AI_GATEWAY_API_KEY export AI_GATEWAY_BASE_URL='https://cn-shanghai-alicloud-aimesh.api.singdata.com/gateway/v1'

Query the OpenAI Protocol View

curl -sS "$AI_GATEWAY_BASE_URL/models" \ -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \ | jq -r '.data[]?.id'

The models returned here are candidates for OpenAI Chat and OpenAI Responses; this does not mean both endpoints will necessarily succeed.

Query the Anthropic Protocol View

curl -sS "$AI_GATEWAY_BASE_URL/models" \ -H "x-api-key: $AI_GATEWAY_API_KEY" \ -H 'anthropic-version: 2023-06-01' \ | jq -r '.data[]?.id'

The models returned here are candidates for Anthropic Messages; this does not mean they have been validated with the target tool.

After querying, clean up temporary variables:

unset AI_GATEWAY_API_KEY unset AI_GATEWAY_BASE_URL

8. What Qualifies a Model as "Supported"

It is recommended to use the following standard status names:

StatusCriteriaHow to Describe Externally
Catalog visibleThe corresponding authentication method's /models returns the model IDThe current API key can discover this model
Protocol text availableThe target protocol returns HTTP 200 with final textA basic text request for this model succeeded on a specific protocol
Tool baseline availableThe target tool using the correct provider returns final textThis model has passed basic text acceptance on the specified tool
Advanced capabilities availableTool calling, streaming, multimodal, and other specialized tests passOnly declare capabilities that have been individually validated
Stably availableMultiple time points, multiple requests, and actual load tests passStability can be described within the scope of testing

Do not use the following inferences:

/models lists the model → all protocols are supported WRONG curl succeeds → all tools are supported WRONG one model succeeds → all models from the same vendor succeed WRONG basic text succeeds → tool calling, streaming, multimodal all work WRONG

9. Selecting the Correct Tutorial for Each Tool

Target ToolConfiguration Guide to ReadProtocol to Confirm First
WorkBuddyWorkBuddy Configuration GuideOpenAI Chat Completions
OpenClawOpenClaw Configuration GuideChoose Chat, Responses, or Anthropic based on the model
Codex CLICodex CLI Configuration GuideOpenAI Responses
TRAE InternationalTRAE Configuration GuideOpenAI Chat or Anthropic Messages
Kilo CodeKilo Code Configuration GuidePrefer Chat or Anthropic; note known compatibility issue with Responses
OpenCodeOpenCode Configuration GuideChoose Chat, Responses, or Anthropic based on the model

10. Quick Reference

If you only remember six points:

  1. WorkBuddy configures custom models using OpenAI Chat only.
  2. TRAE custom models support Chat and Anthropic; Responses is not supported.
  3. Codex CLI natively uses Responses only.
  4. OpenCode and OpenClaw can create separate providers for all three protocols.
  5. Kilo Code supports all three providers, but Kilo Code CLI 7.4.22 has a known SSE-Keep-Alive compatibility issue with Responses.
  6. Every model must go through three layers of validation: real-time catalog → same-protocol curl → actual message in the target tool.

This document covers only basic text connectivity. Streaming output, tool calling, code editing, multimodal, structured output, caching, search, long context, concurrency, and stability must all be tested separately.