360 Secure SkillHub
360 安全技能中心

YandexGPT Proxy

这是适配YandexGPT的OpenAI兼容翻译代理,核心功能是在本地8444端口运行HTTP服务,接收OpenAI格式的API调用并转译为YandexGPT API请求,支持3种YandexGPT模型。适合需用支持OpenAI API的工具调用YandexGPT的场景,需配置Yandex Cloud API密钥与文件夹ID,通过配套脚本部署启动,输入为OpenAI格式API请求,输出为对应格式响应,仅依赖Node.js与curl。

smvlx
smvlx
热度 52.58
最近更新 2026-05-11 17:29:11
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add yandexgpt-skill
Metadata
name
yandexgpt
description
OpenAI-compatible translation proxy for Yandex Cloud Foundation Models (YandexGPT)
version
1.1.0
metadata
{"openclaw":{"emoji":"🦊","homepage":"https://github.com/smvlx/openclaw-ru-skills","os":["darwin","linux"],"requires":{"bins":["node","curl"],"env":["YANDEX_API_KEY","YANDEX_FOLDER_ID"]},"primaryEnv":"YANDEX_API_KEY","configPaths":["~/.openclaw/yandexgpt.env","~/.openclaw/openclaw.json"]}}

YandexGPT Proxy

OpenAI-compatible translation proxy for Yandex Cloud Foundation Models (YandexGPT).

What it does

Runs a local HTTP proxy on port 8444 that accepts OpenAI-format API calls and translates them to the YandexGPT API. Zero external dependencies — pure Node.js.

Supported Models

Model YandexGPT Model URI
yandexgpt gpt://FOLDER_ID/yandexgpt/latest
yandexgpt-lite gpt://FOLDER_ID/yandexgpt-lite/latest
yandexgpt-32k gpt://FOLDER_ID/yandexgpt-32k/latest

Setup

  1. Get a Yandex Cloud API key and folder ID
  2. Save to ~/.openclaw/yandexgpt.env:
    YANDEX_API_KEY=your_api_key
    YANDEX_FOLDER_ID=your_folder_id
    YANDEX_PROXY_PORT=8444
    
  3. Run scripts/setup.sh
  4. Run scripts/start.sh
  5. Run scripts/patch-config.sh to add to OpenClaw config

Endpoints

  • GET /v1/models — List available models
  • POST /v1/chat/completions — Chat completion (OpenAI format)

Scripts

  • scripts/setup.sh — Create env file template
  • scripts/start.sh — Start proxy
  • scripts/stop.sh — Stop proxy
  • scripts/status.sh — Check status
  • scripts/patch-config.sh — Add YandexGPT to openclaw.json