Ghost Writer runs 100% in your browser. All API requests go directly to OpenRouter without intermediaries or telemetry servers.
Quick 2-Minute Setup:
- Create a free account and grab an API key at openrouter.ai/keys.
- Click Settings at the bottom of the sidebar (or the key banner prompt) and paste your key into OpenRouter API Key.
- Click Save. You are immediately ready to chat, write code, generate tools, and run research.
OpenRouter is a unified AI gateway supporting 200+ frontier and uncensored open-weight models under a single API key.
Step-by-Step Key Generation:
- Visit openrouter.ai/keys and log in with Google, GitHub, or email.
- Click Create Key, name it
Ghost Writer, and set optional credit limits. - Copy the key (begins with
sk-or-v1-...). - Your key is encrypted in your device's browser
localStorageonly and is never transmitted to any DIGITAL GHOST servers.
Click the model selector in the topbar to open the categorized Model Picker with instant filter chips:
- โก Ultra-Fast: Gemini 2.0 Flash, Claude 3.5 Haiku, DeepSeek V3, Llama 3.3 70B Nitro. Outputs 150โ250+ tokens/second.
- ๐ Flagships: Claude 3.5 Sonnet, GPT-4o, Gemini 2.5 Pro. Unmatched depth for full-stack systems and architecture.
- ๐ง Reasoning: DeepSeek R1, o1-mini. Native chain-of-thought verification for algorithms and math.
- ๐ก๏ธ Uncensored: Hermes 3 405B, Dolphin Mixtral, Grok 3. No guardrails, perfect for red teaming, CTFs, and payload analysis.
Ghost Writer features automatic OpenRouter Provider Dispatch to optimize latency and generation speed:
How it works:
- Highest Throughput Routing: Ghost Writer instructs OpenRouter to route your request to the data center hardware cluster currently streaming the highest tokens/sec.
- Nitro Capacity: Compatible models (like
Llama 3.3 70B Nitro) bypass queuing and run on dedicated high-speed clusters. - Auto-Fallbacks: If a provider suffers temporary degradation, OpenRouter automatically fails over to the next healthy replica.
Toggle or customize your routing priority anytime under Settings โ General โ Routing Priority.
Ghost Writer's persona is engineered for directness, technical accuracy, and zero preachiness:
- No Disclaimers: Ghost Writer will not lecture, preach, or recite boilerplate ethical disclaimers.
- Full Exploit PoCs & Auditing: Generates exploit proofs-of-concept, fuzzers, shellcode analysis, CTF solvers, and binary reverse engineering breakdowns.
- Best Models for Offensive SecOps: Pick
Hermes 3 405B,Dolphin Mixtral, orGrok 3for unfiltered security research.
Easily feed source code, configuration files, and data logs directly into Ghost Writer:
- Click the paperclip button (
๐) or simply drag and drop files onto the chat interface. - Supported file types:
.py,.js,.ts,.json,.txt,.csv,.md,.html,.sh,.sql,.c,.rs,.go. - Files are read instantly in your browser via client-side
FileReader. No files are uploaded to third-party file hosting servers. - Token estimates update automatically in the topbar context counter.
Ghost Writer specializes in single-file tools, scripts, and web apps. Test them instantly without copying them out!
- Every assistant code block with HTML/JS displays a โถ Run Sandbox button.
- Clicking it immediately switches to the ๐ฅ๏ธ Sandbox tab and executes the code in an isolated container.
- Edit the HTML/CSS/JS live in the right editor panel and click Run to test edits.
- View live console output (`console.log`, `console.error`) in the built-in Sandbox Console.
- Export or download the ready-to-use HTML file with one click.
Switch your agent's persona, model, and sampling parameters with a single click from the Presets bar:
- ๐๏ธ Speed Coder: Gemini 2.0 Flash / Haiku โ Instant script generation, automation one-liners, low temperature.
- ๐ง Deep Reasoning: DeepSeek R1 / o1-mini โ Algorithmic problem solving, complex math, architecture planning.
- ๐ก๏ธ Offensive / Red Team: Hermes 3 405B / Dolphin Mixtral โ Unfiltered vulnerability research, exploit PoCs, payload crafting.
- ๐ฏ Refactor & Review: Claude 3.5 Sonnet โ Rigorous code reviews, security hardening, bug triage.
Ghost Writer is architected with strict operational security (OpSec) standards:
- Zero Logging: There is no backend database tracking your conversations, prompts, or API keys.
- Direct Browser-to-API Calls: Requests travel directly from your browser to the OpenRouter completion endpoints.
- Local Persistence: All chat histories and custom models live in browser
localStorage. - Full Backup & Wipe: Export your full encrypted backup or wipe all device data with one click under Settings โ Data.
Instead of merely predicting next tokens, Ghost Writer operates as an autonomous agent in a ReAct loop:
- THINK (Reasoning): The agent analyzes your query and formulates a plan using internal reasoning tokens.
- ACT (Tool Calling): Dispatches structured function calls:
web_search(...),document_retrieval(...), orread_webpage(...). - OBSERVE (Inspection): Executes the action and parses returned data, web pages, or vector snippets.
- SYNTHESIZE & RESPOND: Constructs an authoritative, verified answer with grounded source citations.
Feed your AI custom architectural specifications, user manuals, and codebases via Settings โ Docs & Knowledge:
- Multi-Format Drag & Drop: Upload
.pdf,.txt,.md,.json,.csv, or code files. PDFs are parsed and extracted directly in your browser. - Free Vector Embeddings: Choose between the built-in โก Client Vector Engine (100% free, runs offline with zero latency) or the ๐ค Hugging Face Serverless Inference API (
all-MiniLM-L6-v2). - Semantic Chunking: Documents are automatically segmented into overlapping semantic chunks with normalized vector embeddings.
- Agentic Retrieval: When you ask about your systems, the agent autonomously calls
document_retrieval(query)to find the most relevant chunks.
Get up-to-date facts, current news, releases, and external documentation beyond static LLM training cutoffs:
- Zero API Key Required: Powered by
@purili/web-searchwith resilient fallbacks to DuckDuckGo and Wikipedia. - Automatic Decision: The agent detects when current info is needed, plans a search query, and executes the search.
- Webpage Reading: Uses
read_webpage(url)to inspect full articles or technical documentation from returned results. - Source Grounding: Clean hyperlinks and citation lists are appended to the response for verification.
Eliminate manual debugging cycles with real-time error reflection and autonomous code healing:
- Runtime Exception Trapping: Captures uncaught exceptions, promise rejections, syntax errors, and Python tracebacks with line-accurate telemetry.
- Autonomous Repair Pipeline: The agent inspects the broken code, diagnoses the root cause, and synthesizes a hardened patch without user intervention.
- Single-Click Auto-Fix: When an error occurs in the sandbox, click Auto-Fix to let Ghost Writer rewrite the code and hot-reload the running sandbox.
- Chat Diagnostic Fallback: If API keys are paused, transfers the exact error trace into the chat composer with one tap.
Execute real Python scripts in your browser with zero server dependencies or containers:
- WebAssembly Sandboxing: Official Pyodide CPython 3.12 engine running safely client-side in WebAssembly.
- Standard Library & Math: Full support for
math,json,random,re,datetime, algorithms, data analysis, and simulated security tooling. - Live Stdio Stream: Standard output (
sys.stdout) and errors (sys.stderr) stream directly into the live sandbox console. - Graphical & HTML Rendering: Generates HTML reports, ASCII tables, and dynamic visual output in the sandbox frame.
Seamless bidirectional feedback bridge between the live visual sandbox and the reasoning agent:
- Context-Preserving Feedback: Click Feedback to Chat to bundle current artifact code, language runtime, and console logs into chat.
- Guided Refactoring Presets: Instantly launch one-click workflows for UI modernization, dark theme polish, red team audits, and architecture cleanup.
- Zero Copy-Paste Friction: Never manually copy code back and forth between browser tabs. Ghost Writer keeps state synchronized.
Ghost Writer supports Anthropic's open Model Context Protocol (MCP 2024-11-05) client-side without needing Supabase or external servers:
- Zero Server Infrastructure Needed: Connect directly to remote MCP servers via JSON-RPC 2.0 over HTTP POST or SSE stream.
- Dynamic Tool Discovery: Queries
tools/listfrom any connected server, registers the tools into the agent's function-calling registry, and executes them overtools/call. - Built-in Utilities: Comes pre-loaded with an in-memory MCP suite (advanced math calculator, international timezone converter, text analytics, UUID generation).
- Interactive Playground: Test any discovered MCP tool manually in Settings โ MCP Servers before executing them via agent reasoning.
Ghost Writer
An uncensored, zero-telemetry, autonomous artificial intelligence agent built by DIGITAL GHOST. Equipped with structured tool use, real-time web search, vector document retrieval (Agentic RAG), in-browser Python WebAssembly execution, and autonomous self-healing code repair. Visit www.digitalghost.blog.
Core Architecture & Philosophy
ReAct Agentic Loop
Executes continuous autonomous cycles: Think (Reasoning tokens) โ Act (Structured Tool Calls) โ Observe (Inspect outputs) โ Respond with verified citations.
Autonomous Self-Correction
Live exception trapper captures sandbox runtime crashes and tracebacks. Ghost Writer autonomously diagnoses bugs, rewrites the code, and verifies hot-reloaded artifacts.
Pyodide WebAssembly Python
Runs real CPython 3.12 100% in-browser with zero server reliance. Streams stdout/stderr live and renders dynamic output in the sandbox frame.
Direct Sandbox Feedback Loop
One-click bidirectional bridge feeds artifact code, active language, and console logs directly into chat for iterative refactoring, styling, or feature expansion.
Multi-Format Knowledge RAG
Drag-and-drop PDFs, TXT, Markdown specs, JSON, and CSVs. Parsed directly in the browser and queried autonomously by the agent via vector retrieval.
Live Web Search via Purili
Real-time internet search with zero API keys required. Fetches live web pages, documentation updates, and breaking news on demand.
Model Context Protocol (MCP)
Direct JSON-RPC 2.0 client connecting to external or local tool servers over HTTP & SSE without Supabase or middleman proxies. Discovered tools register dynamically.
Client-Only Confidentiality
Runs 100% inside your browser. No middleman proxies, tracking cookies, or prompt databases. Your API key and knowledge base never leave your device.
Dynamic Nitro Routing
Orchestrates OpenRouter high-throughput pipelines, latency sorting, and provider auto-fallbacks for sustained 200+ tokens/sec speeds.
Capabilities & Feature Matrix
Reasoning & Thinking Tokens
Native chain-of-thought support for DeepSeek-R1, Gemini Flash Thinking, and Claude 3.7 with live thought trace timers.
Multi-Format Knowledge Ingestion
Drag-and-drop or batch upload PDFs, Markdown documentation, JSON datasets, CSVs, and source code files into persistent vector storage.
Multi-Language Synthesis
Writes end-to-end runnable code in Python, JavaScript, TypeScript, Rust, Go, C, C++, Bash, SQL, Ruby, and HTML/CSS.
Persona Presets
One-click tuning for Autonomous Web Researcher, Document RAG Analyst, Speed Coding, and Offensive SecOps.
Context & Token Precision
Real-time conversation token estimation, model context boundary alerts, and visual warnings before truncation limits.
Research Export & Backup
One-click research report exports as formatted JSON, plus full state backup and migration without exporting sensitive keys.