Discover and explore top open-source AI tools and projects—updated daily.
OpenRouterTeamAPI integration examples for LLMs
Top 95.6% on SourcePulse
Provides tested, executable examples for integrating the OpenRouter API across various ecosystems, enabling developers to quickly adopt and utilize the service. The repository serves as a practical resource for understanding and implementing OpenRouter features with minimal friction.
How It Works
This project offers a curated collection of examples structured into distinct ecosystems: shell scripts using curl and jq, and a TypeScript monorepo managed with Bun workspaces. The TypeScript examples cover raw fetch, Vercel AI SDK v5, and Effect-TS integrations, sharing common constants and types from a centralized typescript/shared directory for consistency and type safety.
Quick Start & Requirements
Set your API key: export OPENROUTER_API_KEY="your-key-here". Install Bun runtime (curl -fsSL https://bun.sh/install | bash). For curl examples, install jq. Install TypeScript dependencies via make install or cd typescript && bun install. Run all examples with make examples, or specific ecosystems with make curl or make typescript. Individual TypeScript examples can be run from their respective directories (e.g., cd typescript/fetch && bun examples). API keys are available at https://openrouter.ai/keys.
Highlighted Details
Maintenance & Community
Contribution guidelines are provided within ecosystem-specific READMEs. No specific details on core maintainers, community channels, or roadmap are present in the main README.
Licensing & Compatibility
The project is distributed under the license specified in LICENSE.md. Compatibility for commercial use depends on the terms of that license.
Limitations & Caveats
Examples for the official openrouter-sdk/ within the TypeScript monorepo are explicitly marked as a TODO and are not yet implemented.
3 weeks ago
Inactive
llamastack
transitive-bullshit