create-headless-agent
Installation
SKILL.md
Create Headless Agent
Scaffolds a headless agent in TypeScript targeting OpenRouter. The generated project uses @openrouter/agent for the inner loop (model calls, tool execution, stop conditions) and provides a clean programmatic shell: configuration, session management, tool definitions, and one or more entry points (CLI, HTTP server, MCP server, or library import). No terminal UI, no readline, no ANSI — just input in, result out.
Prerequisites
- Bun 1.1+
OPENROUTER_API_KEYfrom openrouter.ai/settings/keys- For full SDK reference, see the
openrouter-typescript-sdkskill