Prompt Optimizer refines your instructions to ensure AI models grasp your intent precisely. It is available as a web app, desktop application, Chrome extension, or Docker container—choose the setup that best fits your workflow.
The tool transforms vague prompts into clear, structured directions. Whether you are building a role-play persona, extracting entities for a knowledge graph, or composing poetry, it provides the necessary clarity. For role-play, a tightened prompt helps smaller models maintain character consistency. For knowledge graphs, it ensures smaller models produce clean, predictable JSON. For creative writing, it converts a loose idea into a concrete creative brief.
Core Features
How to Use It
Hosted Web App (Recommended)
Visit prompt.always200.com. The site runs entirely in your browser. All prompts and settings stay on your local machine and are never uploaded to a remote server.
Deploying on Vercel
ACCESS_PASSWORD for security and VITE_OPENAI_API_KEY for your model keys.The fork method allows you to sync upstream changes and keep your deployment up to date.
Desktop Application
Download the installer or portable ZIP from the GitHub Releases page. The installer version supports automatic updates, while the portable version does not. The desktop app bypasses CORS restrictions entirely, allowing you to call any API endpoint directly without browser-imposed limitations.
Chrome Extension
Install the optimizer from the Chrome Web Store. Once installed, click the icon to launch the tool. Note that the Web Store version may occasionally lag behind the latest GitHub release.
Docker
For a basic setup:
docker run -d -p 80:80 --restart unless-stopped --name prompt-optimizer linshen/prompt-optimizer
To include API keys and a password at launch:
docker run -d -p 80:80 \
-e VITE_OPENAI_API_KEY=your_key \
-e ACCESS_USERNAME=your_username \
-e ACCESS_PASSWORD=your_password \
--restart unless-stopped \
--name prompt-optimizer \
linshen/prompt-optimizer
Users in China can use the Alibaba Cloud registry instead: registry.cn-guangzhou.aliyuncs.com/prompt-optimizer/prompt-optimizer.
Docker Compose
git clone https://github.com/linshenkx/prompt-optimizer.git
cd prompt-optimizer
# Create .env file (optional)
cat > .env << EOF
VITE_OPENAI_API_KEY=your_openai_api_key
VITE_GEMINI_API_KEY=your_gemini_api_key
VITE_DEEPSEEK_API_KEY=your_deepseek_api_key
VITE_ZHIPU_API_KEY=your_zhipu_api_key
VITE_SILICONFLOW_API_KEY=your_siliconflow_api_key
ACCESS_USERNAME=your_username
ACCESS_PASSWORD=your_password
EOF
docker compose up -d
docker compose logs -f
Configuring API Keys
llmParams field. For example: {"temperature": 0.7, "max_tokens": 4096, "timeout": 60000}.-e flags during Docker deployment as shown in the examples above.Local Development
git clone https://github.com/linshenkx/prompt-optimizer.git
cd prompt-optimizer
pnpm install
# Run the full environment (builds core/ui and serves the web app)
pnpm dev
# Serve the web app only
pnpm dev:web
# Perform a clean reset and restart
pnpm dev:fresh
Troubleshooting
OLLAMA_ORIGINS=* to allow requests from any origin. If issues persist, set OLLAMA_HOST=0.0.0.0:11434 to ensure it listens on all interfaces.http:// addresses (common for local models). To resolve this, use the desktop app, Chrome extension, or Docker version, as these environments do not enforce the same mixed-content restrictions.
OpenThoughts-Agent: Train Small AI Models with HPC Scale
ETF Grid Trading Strategy Design Tool: Smart Parameters & Risk Control
VibeVoice: Long-Form Multi-Speaker TTS for Natural Dialogue Generation
RunAgent: Build AI Agents in Python, Invoke Them Natively from Any Language
BuildAdmin: Vue 3 + ThinkPHP 8 Admin Panel with CRUD Generator
OCode: Native AI Coding Assistant for Your Terminal (Ollama)
Microsandbox Guide: Secure MicroVM Code Execution in 200ms
II-Agent Review: An Open-Source LLM Assistant Built for Autonomous Tasks
AI Peer Review Tool for Neuroscience: LLM-Driven Meta-Review Framework
PDF Patcher: Open-Source PDF Editing and Bookmark Utility for Windows
LiveTerm: A Next.js Terminal-Style Website Template
How to Highlight Top 3 and Bottom 3 Bars in an Excel Chart