You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Claude Code**|`claudecode`|`claude-cli/2.1.76 (external, cli)`| Current default Claude CLI-style UA, configurable via `claude_code_user_agent`|
202
204
|**Kimi Code**|`kimicode`|`claude-code/0.1.0`| Kimi Code API subscription auth format |
205
+
|**OpenCode**|`opencode`|`opencode/1.2.27 ai-sdk/provider-utils/3.0.20 runtime/bun/1.3.10`| Legacy disguise id with default UA updated from local capture report |
203
206
|**OpenClaw**|`openclaw`|`OpenClaw-Gateway/1.0`| Compatibility default, configurable via `openclaw_user_agent`|
204
207
|**Custom**|`custom`| (custom) | Use `custom_user_agent` config |
205
208
206
209
> **Note**: `claudecode` mode also injects `x-app: cli` if the incoming request does not already provide it.
210
+
> **Note**: `opencode` mode keeps the legacy disguise id but now defaults to the locally captured OpenCode 1.2.27 UA. Override it with `opencode_user_agent` if needed.
207
211
> **Note**: `openclaw` mode keeps `OpenClaw-Gateway/1.0` as a compatibility default, but this does not imply every current OpenClaw request path uses the same UA.
208
212
209
213
### 📡 API Endpoints
@@ -250,6 +254,7 @@ You can also configure via environment variables:
250
254
|`API_CODING_URL`| Custom coding endpoint URL |
251
255
|`DISGUISE_TOOL`| Override disguise tool |
252
256
|`CLAUDE_CODE_USER_AGENT`| Override the default UA used by `claudecode` mode |
257
+
|`OPENCODE_USER_AGENT`| Override the default UA used by `opencode` mode |
253
258
|`OPENCLAW_USER_AGENT`| Override the compatibility UA used by `openclaw` mode |
0 commit comments