经 AI Skill Hub 精选评估,PromptOS 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
PromptOS 是一款基于 TypeScript 开发的开源工具,专注于 ai、generate、llm 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
PromptOS 是一款基于 TypeScript 开发的开源工具,专注于 ai、generate、llm 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g promptos # 方式二:npx 直接运行(无需安装) npx promptos --help # 方式三:项目依赖安装 npm install promptos # 方式四:从源码运行 git clone https://github.com/staypossesed/PromptOS cd PromptOS npm install npm start
# 命令行使用
promptos --help
# 基本用法
promptos [options] <input>
# Node.js 代码中使用
const promptos = require('promptos');
const result = await promptos.run(options);
console.log(result);
# promptos 配置说明 # 查看配置选项 promptos --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export PROMPTOS_CONFIG="/path/to/config.yml"
Turn rough ideas into execution-ready AI prompts — scored, optimized, and saved.
Umprompt is a prompt engineering workspace for developers, automation builders, and AI power users. Describe what you want in plain language, pick your target AI tool, and get a structured prompt that actually performs — scored across six quality dimensions, one-click optimized, and saved to your account.
---
| Feature | What it does |
|---|---|
| **Generate** | Describe your goal in plain English. Umprompt applies tool-specific profiles (Cursor, Claude, ChatGPT) to produce a structured, execution-ready prompt. |
| **Score** | Every prompt is scored 0–100 across Clarity, Context, Constraints, Examples, Output Format, and Tool Fit. Each dimension includes one actionable improvement tip. |
| **Optimize** | Click "Optimize weak dimensions" to rewrite the prompt targeting every low-scoring dimension automatically. Confirms improvement with a before → after score. |
| **Save & Reopen** | Prompts are saved to your account with full score data. Reopen any prompt from History to refine and update it. |
| **Context Panel** | Optionally supply project type, audience, constraints, output format, and examples — fed directly into generation and restored when you reopen a saved prompt. |
---
git clone <your-repo-url>
cd promptos
npm install
.env.local (and Vercel env vars):OPENROUTER_API_KEY=sk-or-v1-...
KIMI_MODEL=moonshotai/kimi-k2.6
/model-lab while signed in.Go to Supabase → Authentication → URL Configuration and set:
| Field | Value |
|---|---|
| **Site URL** | https://<your-vercel-domain> |
| **Redirect URLs** | https://<your-vercel-domain>/auth/callback |
Keep http://localhost:3000/auth/callback in Redirect URLs for local development.
---
/demo — all 5 steps render correctly, before/after scores show/builder opens without auth redirect/privacy, /terms, /help, /demo all load without authconsole.error during any of the abovecp .env.example .env.local
Open .env.local and fill in all values (see table below). The file is gitignored — never commit it.
| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | **Yes** | Supabase project URL (safe for browser) |
NEXT_PUBLIC_SUPABASE_ANON_KEY | **Yes** | Supabase anon/public key (safe for browser) |
NEXT_PUBLIC_SITE_URL | **Yes** | App base URL — used for magic link redirects |
ANTHROPIC_API_KEY | **Yes** | Anthropic API key — **server-only, never expose to browser** |
DEFAULT_AI_PROVIDER | No | anthropic or openrouter (default: anthropic) |
DEFAULT_AI_MODEL | No | Registered model ID (default: claude-sonnet-4-6) |
SCORE_AI_MODEL | No | Model used for scoring + optimization (default: claude-sonnet-4-6) |
OPENROUTER_API_KEY | No | Required only when DEFAULT_AI_PROVIDER=openrouter |
Copy .env.example for the full template with comments.
---
Paste these into Project Settings → Environment Variables:
| Variable | Value |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Your Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Your Supabase anon/public key |
NEXT_PUBLIC_SITE_URL | Your Vercel domain, e.g. https://umprompt.vercel.app |
ANTHROPIC_API_KEY | Your Anthropic API key (server-only — never use NEXT_PUBLIC_) |
DEFAULT_AI_PROVIDER | anthropic |
DEFAULT_AI_MODEL | claude-sonnet-4-6 |
SCORE_AI_MODEL | claude-sonnet-4-6 |
OPENROUTER_API_KEY | OpenRouter key for Kimi (optional — only needed for Model Lab) |
KIMI_MODEL | moonshotai/kimi-k2.6 (informational — actual ID is hardcoded in registry) |
Important:ANTHROPIC_API_KEYmust NOT have theNEXT_PUBLIC_prefix — it is server-only and must never be exposed to the browser.
Add these to Vercel Project Settings → Environment Variables:
| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_POSTHOG_KEY | Optional | PostHog project API key — enables analytics |
NEXT_PUBLIC_POSTHOG_HOST | Optional | PostHog ingest host (default: https://us.i.posthog.com) |
UPSTASH_REDIS_REST_URL | Optional | Upstash Redis URL — enables persistent rate limiting |
UPSTASH_REDIS_REST_TOKEN | Optional | Upstash Redis token |
---
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/api/prompts | GET | Required | List the signed-in user's prompts |
/api/prompts | POST | Required | Save a new prompt |
/api/prompts/[id] | GET | Required | Fetch a single prompt |
/api/prompts/[id] | PATCH | Required | Update title, prompt, score, or context |
/api/prompts/[id] | DELETE | Required | Delete a prompt |
/api/prompts/generate | POST | Required | Stream an AI-generated prompt (text/plain) |
/api/prompts/score | POST | Required | Score a prompt across 6 dimensions |
/api/prompts/optimize | POST | Required | Rewrite prompt targeting weak dimensions |
/api/model-lab/compare | POST | Required | Compare N models on the same idea (10/day limit) |
/api/model-lab/comparisons | GET | Required | List last 10 saved comparisons (metadata only) |
/api/model-lab/comparisons | POST | Required | Save a comparison result to the dataset |
/api/model-lab/comparisons/[id] | PATCH | Required | Set winner and reason on a saved comparison |
---
Registered in lib/ai/providers.ts. Override via env vars:
| Model ID | Provider | Notes |
|---|---|---|
claude-sonnet-4-6 | Anthropic | Default — best quality/cost balance |
claude-opus-4-7 | Anthropic | Highest quality, higher cost |
claude-haiku-4-5 | Anthropic | Fastest, lowest cost |
moonshotai/kimi-k2.6 | OpenRouter | Requires OPENROUTER_API_KEY |
To add a new model: add an entry to MODEL_REGISTRY in lib/ai/providers.ts.
---
/model-lab.高质量AI工具,生成高质量提示
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
AI Skill Hub 点评:PromptOS 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | PromptOS |
| Topics | aigeneratellmprompttypescript |
| GitHub | https://github.com/staypossesed/PromptOS |
| 语言 | TypeScript |
收录时间:2026-06-08 · 更新时间:2026-06-08 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。