Developer examples

Practical starters for building with RouterBase.

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.

Quick Start

export ROUTERBASE_API_KEY="sk-rb-..."
npm run demo:node

Language Starters

Node.js

Fetch examples

Dependency-free examples for chat completions and model listing.

Python

Python starter

Small SDK-style package with tests and a CLI entry point.

Java

JitPack package

Maven-ready Java client distributed through JitPack.

Tools And Registries

Docker

GHCR image

Containerized prompt runner for quick smoke tests.

Homebrew

Homebrew tap

Install the RouterBase CLI on macOS and Linux.

Cookbook

Cookbook

Guides and recipes for RouterBase API workflows.