Enable Azure OpenAI integration with OpenClaw via a lightweight local proxy. Use when configuring Azure OpenAI as a model provider, when encountering 404 errors with Azure OpenAI in OpenClaw, or when needing to use Azure credits (e.g. Visual Studio subscription) with OpenClaw subagents. Solves the api-version query parameter issue that prevents direct Azure OpenAI integration.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install azure-proxy或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install azure-proxy⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/azure-proxy/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: azure-proxy description: Enable Azure OpenAI integration with OpenClaw via a lightweight local proxy. Use when configuring Azure OpenAI as a model provider, when encountering 404 errors with Azure OpenAI in OpenClaw, or when needing to use Azure credits (e.g. Visual Studio subscription) with OpenClaw subagents. Solves the api-version query parameter issue that prevents direct Azure OpenAI integration. ---
A lightweight Node.js proxy that bridges Azure OpenAI with OpenClaw.
OpenClaw constructs API URLs like this:
const endpoint = `${baseUrl}/chat/completions`;
Azure OpenAI requires:
https://{resource}.openai.azure.com/openai/deployments/{model}/chat/completions?api-version=2025-01-01-preview
When api-version is in the baseUrl, OpenClaw's path append breaks it.
# Set your Azure details
export AZURE_OPENAI_ENDPOINT="your-resource.openai.azure.com"
export AZURE_OPENAI_DEPLOYMENT="gpt-4o"
export AZURE_OPENAI_API_VERSION="2025-01-01-preview"
# Run the proxy
node scripts/server.js
Add to ~/.openclaw/openclaw.json:
{
"models": {
"providers": {
"azure-gpt4o": {
"baseUrl": "http://127.0.0.1:18790",
"apiKey": "YOUR_AZURE_API_KEY",
"api": "openai-completions",
"authHeader": false,
"headers": {
"api-key": "YOUR_AZURE_API_KEY"
},
"models": [
{ "id": "gpt-4o", "name": "GPT-4o (Azure)" }
]
}
}
},
"agents": {
"defaults": {
"models": {
"azure-gpt4o/gpt-4o": {}
}
}
}
}
Important: Set authHeader: false — Azure uses api-key header, not Bearer tokens.
Save Azure credits by routing automated tasks through Azure:
{
"agents": {
"defaults": {
"subagents": {
"model": "azure-gpt4o/gpt-4o"
}
}
}
}
Copy the template and configure:
mkdir -p ~/.config/systemd/user
cp scripts/azure-proxy.service ~/.config/systemd/user/
# Edit the service file with your Azure details
nano ~/.config/systemd/user/azure-proxy.service
# Enable and start
systemctl --user daemon-reload
systemctl --user enable azure-proxy
systemctl --user start azure-proxy
| Variable | Default | Description | |----------|---------|-------------| | AZURE_PROXY_PORT | 18790 | Local proxy port | | AZURE_PROXY_BIND | 127.0.0.1 | Bind address | | AZURE_OPENAI_ENDPOINT | — | Azure resource hostname | | AZURE_OPENAI_DEPLOYMENT | gpt-4o | Deployment name | | AZURE_OPENAI_API_VERSION | 2025-01-01-preview | API version |
curl http://localhost:18790/health
# {"status":"ok","deployment":"gpt-4o"}
404 Resource not found: Check endpoint hostname and deployment name match Azure Portal.
401 Unauthorized: API key is wrong or expired.
Content Filter Errors: Azure has aggressive content filtering — some prompts that work on OpenAI may get blocked.
安装 Azure OpenAI Proxy 后,可以对 AI 说这些话来触发它
Help me get started with Azure OpenAI Proxy
Explains what Azure OpenAI Proxy does, walks through the setup, and runs a quick demo based on your current project
Use Azure OpenAI Proxy to azure OpenAI integration with OpenClaw via a lightweight local proxy
Invokes Azure OpenAI Proxy with the right parameters and returns the result directly in the conversation
What can I do with Azure OpenAI Proxy in my developer & devops workflow?
Lists the top use cases for Azure OpenAI Proxy, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/azure-proxy/ 目录(个人级,所有项目可用),或 .claude/skills/azure-proxy/(项目级)。重启 AI 客户端后,用 /azure-proxy 主动调用,或让 AI 根据上下文自动发现并使用。
Azure OpenAI Proxy 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Azure OpenAI Proxy 可免费安装使用。请查阅仓库了解许可证信息。
Enable Azure OpenAI integration with OpenClaw via a lightweight local proxy. Use when configuring Azure OpenAI as a model provider, when encountering 404 errors with Azure OpenAI in OpenClaw, or when needing to use Azure credits (e.g. Visual Studio subscription) with OpenClaw subagents. Solves the api-version query parameter issue that prevents direct Azure OpenAI integration.
Automate my developer & devops tasks using Azure OpenAI Proxy
Identifies repetitive steps in your workflow and sets up Azure OpenAI Proxy to handle them automatically
Azure OpenAI Proxy 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。