leoyishou/personal-ai-company/api-openrouter
Claude Code and agent skill by leoyishou/personal-ai-company
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
在本地通过 OpenRouter API 调用多模型,支持单轮/多轮消息、系统提示词和结构化输出。
Install
npx vskill@latest install leoyishou/personal-ai-company/api-openrouterSKILL.md
The same SKILL.md was published earlier as leoyishou/personal-ai-company/api-openrouter.
OpenRouter 通用调用工具
将 OpenRouter API 封装为 Claude Code 可调用的本地 skill,用于 Nanobanana 作图、Gemini、GPT 模型的调用等场景。
快速开始
环境配置
设置 OpenRouter API key:
或创建 .env 文件(放在 skill 根目录):
可选配置:
基础使用
冒烟测试
多轮消息
指定系统提示词与模型
常用模型(个人偏好)
google/gemini-3-pro-image-preview(Nanobanana)google/gemini-3-pro-previewanthropic/claude-sonnet-4.5
工作流建议
当用户请求调用 OpenRouter 时,遵循以下流程:
Step 1: 明确调用目标
与用户确认:
- 目标任务(总结/翻译/写作/代码生成等)
- 期望模型(可选)
- 输出格式(自然语言或 JSON)
- 是否需要系统提示词或上下文消息
Step 2: 组织输入
根据场景选择输入方式:
- 单轮:
--prompt或管道输入 - 多轮:准备
messages.json并使用--messages - 结构化输出:准备
--extraJSON 载荷(如 response_format)
Step 3: 调用脚本
Step 4: 返回结果
输出模型回复,并按用户要求整理或格式化。
输出格式
- 默认:仅输出模型回复文本
--print-json:输出完整 JSON--output result.json:保存完整响应
依赖安装
开始使用
在 Claude Code 中直接说:
Claude 会调用该 skill 完成请求。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-global/skills/api-openrouter/skill.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyishou/personal-ai-company/api-openrouter)