{"repo":"OhadAssulin/headless-coder-sdk","free":true,"listed":false,"github":"https://github.com/OhadAssulin/headless-coder-sdk","clone":"git clone https://github.com/OhadAssulin/headless-coder-sdk.git","description":"Unified SDK for headless AI coders (Codex, Claude, Gemini)","language":"TypeScript","stars":38,"topics":["ai-agents","ai-coder","claude-code","codex","gemini-cli","sdk","sdk-typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"headless-coder-sdk Unified SDK for headless AI coders (Codex, Claude, Gemini) --- Headless Coder SDK unifies multiple headless AI-coder SDKs - OpenAI Codex, Anthropic Claude Agent, and Google Gemini CLI - under one consistent interface. It standardizes threads, streaming, structured outputs, permissions, and sandboxing, allowing you to build AI coding tools or autonomous agents that switch backends with a single line of code. --- 🚀 Why use it? - Avoid vendor lock-in between AI-coder SDKs - Unified threads and streaming API - Structured output and sandbox enforcement - Works in Node, Electron, or CI pipelines - Extensible - add your own adapters easily --- 📦 Packages - @headless-coder-sdk/core – Shared types and the createCoder factory - @headless-coder-sdk/codex-adapter – Wraps the OpenAI Codex SDK - @headless-coder-sdk/claude-adapter – Wraps Anthropic Claude Agent SDK - @headless-coder-sdk/gemini-adapter – Invokes the Gemini CLI (headless mode) - @headless-coder-sdk/examples – Example scripts demonstrating runtime wiring OpenCode support is being designed as a direct adapter package. See docs/opencode-adapter-plan.md for the current implementation plan. --- 🧭 Quickstart --- ▶️ Basic Run (Codex) --- 🌊 Streaming Example (Claude) --- 🧩 Structured Output Example (Gemini) Gemini sessions are resumable—reuse the same thread handle for follow-up runs or call resumeThread() with a stored threadId to keep the CLI conversation active. --- 🔁 Resume Example (Codex) --- 🔄 Multi-Pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/OhadAssulin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OhadAssulin/headless-coder-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}