openrouter-python-streaming

Community

Stream OpenRouter LLMs in Python with streaming.

Authormarcus
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Connect to OpenRouter's unified API and stream LLM responses in Python, enabling real-time chat experiences and streaming insights without manual polling.

Core Features & Use Cases

  • Async streaming with LiteLLM and multi-provider access to 400+ models
  • Robust retry logic and backoff for transient failures
  • Production-ready usage patterns for building responsive AI assistants

Quick Start

Run the minimal example to start streaming responses from OpenRouter using LiteLLM.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: openrouter-python-streaming
Download link: https://github.com/marcus/marcus-skills/archive/main.zip#openrouter-python-streaming

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.