Fetch examples
Dependency-free examples for chat completions and model listing.
Developer examples
RouterBase exposes an OpenAI-compatible API gateway at https://routerbase.com/v1.
This directory collects maintained examples for Node.js, Python, Go, Ruby, Docker, API collections,
and package registry publishing.
export ROUTERBASE_API_KEY="sk-rb-..."
npm run demo:node
Dependency-free examples for chat completions and model listing.
Small SDK-style package with tests and a CLI entry point.
Typed Go module starter indexed on pkg.go.dev.
Ruby client package with examples and gem metadata.
Composer-ready PHP client for RouterBase workflows.
Maven-ready Java client distributed through JitPack.
Minimal package for trying the OpenAI-compatible base URL.
Containerized prompt runner for quick smoke tests.
Install the RouterBase CLI on macOS and Linux.
OpenAPI, Postman, Bruno, and Insomnia import paths.
Guides and recipes for RouterBase API workflows.
A curated index of packages, SDKs, tools, and docs.