N.E.K.O: Skill for Claude Code

.agent/skills/gemini-openai-api/SKILL.md

gemini-openai-api is a skill for Claude Code, Codex from Project-N-E-K-O/N.E.K.O. It costs 89 tokens per session (950 once invoked), scanned A, original, Apache-2.0.

A setup guide for using Google’s Gemini models through an API that follows the OpenAI API format. It covers configuration for summary, correction, emotion analysis, and vision tasks, plus Gemini’s thinking controls and response formatting.

In plain words
What is it for?
It is for configuring Gemini API clients, controlling or disabling model thinking, selecting task-specific models, and handling Markdown code blocks in responses.
Why use it?
It explains the project-specific request settings and response handling needed to connect Gemini as a supporting model without sending unsupported parameters.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is Project-N-E-K-O/N.E.K.O's own configuration. It tells Claude Code and Codex how to work on N.E.K.O itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything N.E.K.O configures →

About the project

N.E.K.O is a real-time AI catgirl companion designed to live with the user, initiate interaction, share media, and perform tasks through an emotional engine. It is intended for people seeking a proactive personal digital companion. The catalogue contains skills for working with it.

Project-N-E-K-O/N.E.K.O · 2,816 stars · on GitHub · store.steampowered.com

Reuse

Borrowing it

Nothing to install: this file belongs to Project-N-E-K-O/N.E.K.O. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Project-N-E-K-O/N.E.K.O/main/.agent/skills/gemini-openai-api/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Project-N-E-K-O/N.E.K.O

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-openai-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api/github.svg)](https://agentmods.dev/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api)
Your own site
<a href="https://agentmods.dev/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api"><img src="https://agentmods.dev/badge/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-openai-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api"><img src="https://agentmods.dev/badge/skills/project-n-e-k-o/n.e.k.o/gemini-openai-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.00950
Opus 5 $0.00044 $0.00475
Sonnet 5 $0.00018 $0.00190
Haiku 4.5 $0.00009 $0.00095

Measured 10d ago against content hash e5291413fdc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gemini-openai-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/gemini-openai-api/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gemini OpenAI 兼容 API 接入

Gemini 提供 OpenAI 兼容端点,可作为辅助 API 使用。

[!IMPORTANT] memory/ + utils/ 下不要传 temperature。项目级约定:所有走 utils.llm_client.create_chat_llm / ChatOpenAI 的调用一律不下发 temperature 字段(默认 None = 不写进请求体)。守门见 scripts/check_no_temperature.pyextra_body(控制 thinking)/ max_completion_tokens / timeout / max_retries 这类参数继续按需配置,但 不要为了"调风格"再加 temperature=...

Base URL

https://generativelanguage.googleapis.com/v1beta/openai/

模型配置

用途 推荐模型
Summary / Correction / Vision gemini-3-flash-preview
Emotion Analysis gemini-2.5-flash

控制 Thinking

Gemini 2.5+ 模型需要通过 extra_body 控制 thinking 行为。

禁用 Thinking(用于 gemini-2.5-flash)

extra_body = {
    "extra_body": {
        "google": {
            "thinking_config": {
                "thinking_budget": 0
            }
        }
    }
}

低级别 Thinking(用于 gemini-3-flash-preview)

extra_body = {
    "extra_body": {
        "google": {
            "thinking_config": {
                "thinking_level": "low",
                "include_thoughts": False
            }
        }
    }
}

[!IMPORTANT] extra_body 需要双层嵌套:外层 "extra_body" 是传给 OpenAI client 的参数名,内层 {"google": {...}} 是 Gemini 的实际配置。

响应格式处理

Gemini 可能返回 markdown 代码块包装的 JSON:

```json
{"emotion": "happy", "confidence": 0.8}

处理方法:

```python
if result_text.startswith("```"):
    lines = result_text.split("\n")
    if lines[0].startswith("```"):
        lines = lines[1:]
    if lines and lines[-1].strip() == "```":
        lines = lines[:-1]
    result_text = "\n".join(lines).strip()

配置文件位置

  • config/api_providers.json - 添加 gemini 到 assist_api_providers
  • config/__init__.py - 添加 EXTRA_BODY_GEMINIMODELS_EXTRA_BODY_MAP

api_providers.json 示例

"gemini": {
  "key": "gemini",
  "name": "Gemini(Google)",
  "description": "Google AI 辅助模型,国内无法使用",
  "openrouter_url": "https://generativelanguage.googleapis.com/v1beta/openai/",
  "summary_model": "gemini-3-flash-preview",
  "correction_model": "gemini-3-flash-preview",
  "emotion_model": "gemini-2.5-flash",
  "vision_model": "gemini-3-flash-preview"
}

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 126 lines · 89 tokens per session scan A e5291413fdc1

Subscribe to this mod's changes

gemini-openai-api is a skill published in the GitHub repository Project-N-E-K-O/N.E.K.O (2,816 stars, last pushed today), licensed Apache-2.0. It adds 89 tokens to every session and 950 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.