claudedwithlove
explore/openrouter-go

openrouter-go

Cherished

A Go client library for the OpenRouter API that provides complete access to chat completions, model discovery, and provider information without external dependencies. Designed for developers building Go applications that need streaming support, structured outputs, tool calling, and multimodal inputs with built-in retry logic and error handling.

H
by hra42
·2··submitted April 17, 2026
View on GitHub
Clauded With Love Rating
8.0 / 10

openrouter-go is a comprehensive Go client library for the OpenRouter API that provides zero-dependency access to chat completions, streaming, model discovery, and multimodal inputs. The library offers extensive features including structured outputs, tool calling, web search integration, and complete API coverage with robust error handling.

Code Quality8.2
Usefulness8.7
Claude Usage7.8
Documentation8.9
Originality6.5
Highlights
  • Zero external dependencies with complete API coverage including streaming SSE support
  • Comprehensive multimodal support (text, images, audio, PDF) with multiple encoding options and parsing engines
  • Well-designed functional options pattern with extensive configuration capabilities and per-request ZDR enforcement
To Improve
  • Add comprehensive unit tests and integration tests to validate the extensive feature set and error handling paths
  • Include performance benchmarks and connection pooling optimizations for high-throughput production usage
Topic
Language