操作系统
Linux
系统版本
PRETTY_NAME="Ubuntu 22.04.4 LTS"
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box version 1.13.11
Environment: go1.26.2 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale,with_ccm,with_ocm,with_naive_outbound,badlinkname,tfogo_checklinkname0
CGO: enabled
描述
OCM 功能不可用
重现方式
{
"log": {
"level": "debug",
"timestamp": true
},
"outbounds": [
{
"type": "http",
"tag": "http-proxy-out",
"server": "xxx",
"server_port": 20172
},
{
"type": "direct",
"tag": "direct-out"
}
],
"services": [
{
"type": "ocm",
"listen": "0.0.0.0",
"listen_port": 9091,
"credential_path": "/home/xxx/.codex/auth.json",
"usages_path": "./codex-usages.json",
"detour": "http-proxy-out"
}
]
}
[model_providers.ocm]
name = "OCM Proxy"
base_url = "http://127.0.0.1:9091/v1"
supports_websockets = true
[profiles.ocm]
model_provider = "ocm"
日志
+0800 2026-04-27 20:31:09 INFO network: updated default interface eno2np1, index 3
+0800 2026-04-27 20:31:09 INFO service/ocm[0]: tcp server started at 0.0.0.0:9091
+0800 2026-04-27 20:31:09 INFO sing-box started (0.00s)
支持我们
完整性要求
操作系统
Linux
系统版本
PRETTY_NAME="Ubuntu 22.04.4 LTS"
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
描述
OCM 功能不可用
重现方式
config.json{ "log": { "level": "debug", "timestamp": true }, "outbounds": [ { "type": "http", "tag": "http-proxy-out", "server": "xxx", "server_port": 20172 }, { "type": "direct", "tag": "direct-out" } ], "services": [ { "type": "ocm", "listen": "0.0.0.0", "listen_port": 9091, "credential_path": "/home/xxx/.codex/auth.json", "usages_path": "./codex-usages.json", "detour": "http-proxy-out" } ] }config.toml日志
支持我们
完整性要求