openui-forge-openai

openui-forge-openai is a skill for Claude Code from OthmanAdi/openui-forge. It costs 38 tokens per session (1,812 once invoked), scanned A, original, MIT.

A setup guide for building a generative user interface with an OpenUI React frontend and an OpenAI software development kit backend that streams chat responses.

In plain words
What is it for?
Use it to create OpenUI chat applications with OpenAI or compatible providers such as Gemini, OpenRouter, xAI, or DeepSeek.
Why use it?
It provides a standard connection between the interface and OpenAI-compatible model providers, so changing providers can be done through configuration rather than application code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx @openuidev/cli generate ./src/lib/library.ts --out src/generated/system-prompt.txt.

Part of the openui-forge plugin — 14 skills, 6 commands shipped together

Good fit Use it to create OpenUI chat applications with OpenAI or compatible providers such as Gemini, OpenRouter, xAI, or DeepSeek.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/OthmanAdi/openui-forge
agentmods
npx agentmods add skills/othmanadi/openui-forge/openui-forge-openai

Made for: Claude Code.

Or install openui-forge, the plugin that ships this one along with the rest of its 14 skills, 6 commands.

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 openui-forge-openai

README.md
[![agentmods](https://agentmods.dev/badge/skills/othmanadi/openui-forge/openui-forge-openai/github.svg)](https://agentmods.dev/skills/othmanadi/openui-forge/openui-forge-openai)
Your own site
<a href="https://agentmods.dev/skills/othmanadi/openui-forge/openui-forge-openai"><img src="https://agentmods.dev/badge/skills/othmanadi/openui-forge/openui-forge-openai/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 openui-forge-openai

Your own site · 80×15
<a href="https://agentmods.dev/skills/othmanadi/openui-forge/openui-forge-openai"><img src="https://agentmods.dev/badge/skills/othmanadi/openui-forge/openui-forge-openai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,812 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.
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.00038 $0.01812
Opus 5.5 $0.00015 $0.00725
Sonnet 5.5 $0.00008 $0.00362
Haiku 4.5 $0.00004 $0.00181

Measured 1mo ago against content hash d06f5b66e790, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openui-forge-openai 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 1mo 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.

.agents/skills/openui-forge-openai/SKILL.md · 166 lines

How it starts

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

OpenUI Forge — OpenAI

Build generative UI apps with OpenUI + OpenAI SDK. One backend, one adapter, streaming out of the box.

Activation Triggers

  • "openui openai", "openui gpt", "openui chatgpt"
  • "generative ui openai", "openai streaming ui"

Prerequisites

  • Node.js >= 22 (24 LTS recommended), React >= 18.3.1 (19+ recommended)
  • OPENAI_API_KEY environment variable set
  • Optional: OPENAI_BASE_URL to route via an OpenAI-compatible provider (Gemini, OpenRouter, xAI, DeepSeek, etc.) without code changes. OPENAI_BASE_URL is the correct env var; the legacy OPENAI_API_BASE was removed in openai v6. See Provider Routing below.
  • Optional: OPENAI_MODEL to pin a specific model (defaults to gpt-5.5)
  • Next.js project (App Router recommended)

Provider Routing

This is the OpenAI-compatible variant: the same OpenAI client and chat.completions.create code talks to any provider below by setting OPENAI_BASE_URL (and OPENAI_MODEL). No code changes. OPENAI_BASE_URL is the correct env var; the old OPENAI_API_BASE was removed in openai v6.

Provider OPENAI_BASE_URL Example OPENAI_MODEL
Gemini https://generativelanguage.googleapis.com/v1beta/openai/ gemini-3.5-flash
OpenRouter https://openrouter.ai/api/v1 anthropic/claude-opus-4.7
xAI (Grok) https://api.x.ai/v1 grok-4.3
DeepSeek https://api.deepseek.com deepseek-v4-pro
Groq https://api.groq.com/openai/v1 llama-3.3-70b-versatile
Mistral https://api.mistral.ai/v1 mistral-large-latest
Together https://api.together.ai/v1 openai/gpt-oss-20b
Fireworks https://api.fireworks.ai/inference/v1 accounts/fireworks/models/glm-5
Ollama (local) http://localhost:11434/v1/ llama3.3 (any placeholder API key)
LM Studio (local) http://localhost:1234/v1 loaded model id (any placeholder API key)

Model ids drift; check each provider's current catalog. Base-url routing covers chat completions only, not full OpenAI API parity.

Read the full file on GitHub · 166 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. 1mo ago First seen · 166 lines · 38 tokens per session scan A d06f5b66e790

Subscribe to this mod's changes

openui-forge-openai is a skill published in the GitHub repository OthmanAdi/openui-forge (24 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 1,812 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

apollo-graphql

Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching, and caching.

Mindrally/skills · 26 tokens

trpc

Skill "trpc" from claude-dev-suite/claude-dev-suite, covering trpc core knowledge, router definition, client usage (react), protected procedures and with next.js.

claude-dev-suite/claude-dev-suite · 132 tokens

modern-web-development

Modern web development best practices for TypeScript, Next.js 14, React Server Components, Supabase, GraphQL, and Tailwind CSS.

Mindrally/skills · 33 tokens

go-expert

Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.

personamanagmentlayer/pcl · 65 tokens

nextjs-expert

Expert knowledge in Next.js framework, Server-Side Rendering, Static Site Generation, App Router, Server Components, and full-stack React applications. Use when the user mentions React, SSR, SSG, the App Router, React Server Components, or full stack, or when the task involves Next.js Fundamentals, App Router…

personamanagmentlayer/pcl · 77 tokens

remix-expert

Expert knowledge in Remix framework, nested routing, loaders, actions, progressive enhancement, and building resilient full-stack web applications. Use when the user mentions React, nested routing, loaders, actions, progressive enhancement, or full stack, or when the task involves Remix Fundamentals, Routing System…

personamanagmentlayer/pcl · 70 tokens